diff --git a/errors/cloudflare/error.md b/errors/cloudflare/error.md new file mode 100644 index 0000000000..d68179b600 --- /dev/null +++ b/errors/cloudflare/error.md @@ -0,0 +1,9 @@ +--- +name = "CLOUDFLARE_ERROR" +description = "Cloudflare returned an error: {error}" +http_status = 400 +--- + +# Cloudflare Error + +An error was returned by a cloudflare API and has been re-routed to this error response. diff --git a/errors/opengb/env-never-deployed.md b/errors/opengb/env-never-deployed.md new file mode 100644 index 0000000000..2cbb606687 --- /dev/null +++ b/errors/opengb/env-never-deployed.md @@ -0,0 +1,9 @@ +--- +name = "OPENGB_ENV_NEVER_DEPLOYED" +description = "OpenGB environment was never deployed. Deploy it before trying again." +http_status = 400 +--- + +# OpenGB Environment Never Deployed + +The requested environment was never deployed. Deploy it before attempting to call this resource again. diff --git a/errors/opengb/env-not-found.md b/errors/opengb/env-not-found.md new file mode 100644 index 0000000000..b16282c2e0 --- /dev/null +++ b/errors/opengb/env-not-found.md @@ -0,0 +1,9 @@ +--- +name = "OPENGB_ENV_NOT_FOUND" +description = "OpenGB environment not found." +http_status = 404 +--- + +# OpenGB Environment Not Found + +The requested environment could not be found. diff --git a/errors/opengb/invalid-neon-project-config.md b/errors/opengb/invalid-neon-project-config.md new file mode 100644 index 0000000000..7e8751239d --- /dev/null +++ b/errors/opengb/invalid-neon-project-config.md @@ -0,0 +1,9 @@ +--- +name = "OPENGB_INVALID_NEON_PROJECT_CONFIG" +description = "Neon project config is invalid: {reason}." +http_status = 400 +--- + +# OpenGB Invalid Neon Project Config + +The Neon project config given was invalid. See https://api-docs.neon.tech/reference/updateproject for more info. diff --git a/errors/opengb/invalid-variable.md b/errors/opengb/invalid-variable.md new file mode 100644 index 0000000000..2547c8c94e --- /dev/null +++ b/errors/opengb/invalid-variable.md @@ -0,0 +1,9 @@ +--- +name = "OPENGB_INVALID_VARIABLE" +description = "Environment variable is invalid: {reason}." +http_status = 400 +--- + +# OpenGB Invalid Variable + +A provided environment variable is invalid. diff --git a/errors/opengb/module-db-not-found.md b/errors/opengb/module-db-not-found.md new file mode 100644 index 0000000000..86966463e8 --- /dev/null +++ b/errors/opengb/module-db-not-found.md @@ -0,0 +1,9 @@ +--- +name = "OPENGB_MODULE_DB_NOT_FOUND" +description = "OpenGB module database not found." +http_status = 404 +--- + +# OpenGB Module DB Not Found + +The requested module database could not be found. diff --git a/errors/opengb/project-not-found.md b/errors/opengb/project-not-found.md new file mode 100644 index 0000000000..24db2fbaee --- /dev/null +++ b/errors/opengb/project-not-found.md @@ -0,0 +1,9 @@ +--- +name = "OPENGB_PROJECT_NOT_FOUND" +description = "OpenGB project not found." +http_status = 404 +--- + +# OpenGB Project Not Found + +The requested project could not be found. diff --git a/fern/definition/cloud/common.yml b/fern/definition/cloud/common.yml index 7e5b1c6a3e..c6fcaa547f 100644 --- a/fern/definition/cloud/common.yml +++ b/fern/definition/cloud/common.yml @@ -13,9 +13,7 @@ types: svc_name: docs: The name of the service. type: string - ts: - docs: RFC3339 timestamp. - type: datetime + ts: commons.Timestamp duration: docs: Unsigned 64 bit integer. type: long diff --git a/fern/definition/cloud/games/games.yml b/fern/definition/cloud/games/__package__.yml similarity index 93% rename from fern/definition/cloud/games/games.yml rename to fern/definition/cloud/games/__package__.yml index a2c08f6e7f..dfd3733dd6 100644 --- a/fern/definition/cloud/games/games.yml +++ b/fern/definition/cloud/games/__package__.yml @@ -132,14 +132,7 @@ 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 + type: optional ValidateGameResponse: properties: diff --git a/fern/definition/cloud/games/cdn.yml b/fern/definition/cloud/games/cdn.yml index 8f7c0acf94..8d3f9d0db6 100644 --- a/fern/definition/cloud/games/cdn.yml +++ b/fern/definition/cloud/games/cdn.yml @@ -41,8 +41,6 @@ types: CreateGameCdnSiteResponse: properties: - site_id: - type: uuid - upload_id: - type: uuid + site_id: uuid + upload_id: uuid presigned_requests: list diff --git a/fern/definition/cloud/games/namespaces/analytics.yml b/fern/definition/cloud/games/namespaces/analytics.yml index bcfcd506a5..416c3500a2 100644 --- a/fern/definition/cloud/games/namespaces/analytics.yml +++ b/fern/definition/cloud/games/namespaces/analytics.yml @@ -9,9 +9,9 @@ service: path-parameters: game_id: type: uuid - namespace_id: type: uuid + endpoints: getAnalyticsMatchmakerLive: path: /matchmaker/live diff --git a/fern/definition/common.yml b/fern/definition/common.yml index 9eb715763a..82c33ea70e 100644 --- a/fern/definition/common.yml +++ b/fern/definition/common.yml @@ -77,7 +77,7 @@ types: AccountNumber: integer Timestamp: - type: string + type: datetime docs: RFC3339 timestamp GlobalEventNotification: diff --git a/fern/definition/group/common.yml b/fern/definition/group/common.yml index d95ee1dd42..5bae99269c 100644 --- a/fern/definition/group/common.yml +++ b/fern/definition/group/common.yml @@ -58,9 +58,7 @@ types: docs: A group join request. properties: identity: identityCommons.Handle - ts: - docs: RFC3339 timestamp. - type: datetime + ts: commons.Timestamp Member: docs: A group member. diff --git a/fern/definition/identity/__package__.yml b/fern/definition/identity/__package__.yml index b5ba477129..0ba65310ac 100644 --- a/fern/definition/identity/__package__.yml +++ b/fern/definition/identity/__package__.yml @@ -71,7 +71,6 @@ service: request: name: GetHandlesRequest query-parameters: - # TODO: how is this list serialized over the wire # With allow-multiple, Fern assumes that lists are sent over the wire as # param=a¶m=b¶m=c. identity_ids: diff --git a/fern/definition/identity/common.yml b/fern/definition/identity/common.yml index 49eb072b06..1c9d50f06b 100644 --- a/fern/definition/identity/common.yml +++ b/fern/definition/identity/common.yml @@ -11,7 +11,7 @@ types: GlobalEvent: docs: An event relevant to the current identity. properties: - ts: datetime + ts: commons.Timestamp kind: GlobalEventKind notification: optional diff --git a/infra/tf/dns/cert_packs.tf b/infra/tf/dns/cert_packs.tf index ade0833f26..ee52c9f599 100644 --- a/infra/tf/dns/cert_packs.tf +++ b/infra/tf/dns/cert_packs.tf @@ -14,8 +14,7 @@ locals { certificate_authority = "lets_encrypt" } -# TODO: Only if we use deprecated subdomains -# Allow CLoudflare to serve TLS requests at the edge for our wildcard +# Allow Cloudflare to serve TLS requests at the edge for our wildcard # subdomains. # # This requires paying money for these certs. @@ -29,13 +28,22 @@ resource "cloudflare_certificate_pack" "main" { certificate_authority = local.certificate_authority # The certificate must include the root domain in it. # - # We convert to set then back to list to remove potential duplicates of the root zoon. - hosts = sort(tolist(toset([ - data.cloudflare_zone.main.name, - var.domain_main, - "*.${var.domain_main}", - "*.api.${var.domain_main}", - ]))) + # We convert to set then back to list to remove potential duplicates of the root zone. + hosts = sort(tolist(toset( + flatten([ + [ + data.cloudflare_zone.main.name, + var.domain_main, + "*.${var.domain_main}", + # TODO: Only if we use deprecated subdomains + "*.api.${var.domain_main}", + ], + var.opengb_enabled ? [ + "*.opengb.${var.domain_main}", + "db.opengb-internal.${var.domain_main}" + ] : [] + ]) + ))) type = "advanced" validation_method = "txt" validity_days = 90 diff --git a/infra/tf/dns/vars.tf b/infra/tf/dns/vars.tf index 126f421d2a..239db66cc3 100644 --- a/infra/tf/dns/vars.tf +++ b/infra/tf/dns/vars.tf @@ -41,6 +41,11 @@ variable "extra_dns" { })) } +# MARK: OpenGB +variable "opengb_enabled" { + type = bool +} + # MARK: Cloudflare variable "cloudflare_account_id" { type = string diff --git a/infra/tf/tls/cloudflare.tf b/infra/tf/tls/cloudflare.tf index c36cd02ac3..2ac9f051ca 100644 --- a/infra/tf/tls/cloudflare.tf +++ b/infra/tf/tls/cloudflare.tf @@ -57,7 +57,18 @@ resource "tls_cert_request" "cf_origin_rivet_gg" { resource "cloudflare_origin_ca_certificate" "rivet_gg" { csr = tls_cert_request.cf_origin_rivet_gg.cert_request_pem - hostnames = ["*.${var.domain_main}", "${var.domain_main}", "*.api.${var.domain_main}", "api.${var.domain_main}"] + hostnames = flatten([ + [ + "*.${var.domain_main}", + "${var.domain_main}", + "*.api.${var.domain_main}", + "api.${var.domain_main}", + ], + var.opengb_enabled ? [ + "*.opengb.${var.domain_main}", + "db.opengb-internal.${var.domain_main}" + ] : [] + ]) request_type = "origin-rsa" requested_validity = 15 * 365 } diff --git a/infra/tf/tls/vars.tf b/infra/tf/tls/vars.tf index 6f9bd1f3c4..d466d9fdd8 100644 --- a/infra/tf/tls/vars.tf +++ b/infra/tf/tls/vars.tf @@ -25,6 +25,11 @@ variable "prometheus_enabled" { type = bool } +# MARK: OpenGB +variable "opengb_enabled" { + type = bool +} + # MARK: K8s variable "kubeconfig_path" { type = string diff --git a/lib/bolt/config/src/ns.rs b/lib/bolt/config/src/ns.rs index ec46fe57da..4984a1a399 100644 --- a/lib/bolt/config/src/ns.rs +++ b/lib/bolt/config/src/ns.rs @@ -515,6 +515,8 @@ pub struct Rivet { pub cdn: Cdn, #[serde(default)] pub billing: Option, + #[serde(default)] + pub opengb: Option, } #[derive(Serialize, Deserialize, Clone, Debug, Default)] @@ -525,6 +527,10 @@ pub struct Telemetry { pub disable: bool, } +#[derive(Serialize, Deserialize, Clone, Debug, Default)] +#[serde(deny_unknown_fields)] +pub struct RivetOpenGb {} + #[derive(Serialize, Deserialize, Clone, Debug)] #[serde(deny_unknown_fields)] pub enum RivetAccess { diff --git a/lib/bolt/core/src/context/project.rs b/lib/bolt/core/src/context/project.rs index 5852ba4b9e..2f811c3166 100644 --- a/lib/bolt/core/src/context/project.rs +++ b/lib/bolt/core/src/context/project.rs @@ -194,16 +194,16 @@ impl ProjectContextData { if self.ns().dns.is_some() { assert_eq!( 80, *api_http_port, - "api_http_port must be 80 if dns is configured" + "api_http_port must be 80 if DNS is configured" ); assert_eq!( Some(443), *api_https_port, - "api_https_port must be 443 if dns is configured" + "api_https_port must be 443 if DNS is configured" ); assert_eq!( 9000, *minio_port, - "minio_port must not be changed if dns is configured" + "minio_port must not be changed if DNS is configured" ); } } @@ -218,11 +218,19 @@ impl ProjectContextData { assert!( self.dns_enabled(), - "must have dns provider configured with a distributed cluster" + "must have DNS configured with a distributed cluster" ); } } + // MARK: OpenGB + if self.ns().rivet.opengb.is_some() { + assert!( + self.ns().dns.is_some(), + "must have DNS configured with for OpenGB" + ); + } + // MARK: Cluster Provisioning if let Some(cluster) = self .ns() diff --git a/lib/bolt/core/src/context/service.rs b/lib/bolt/core/src/context/service.rs index 1353c8da78..d9e797c140 100644 --- a/lib/bolt/core/src/context/service.rs +++ b/lib/bolt/core/src/context/service.rs @@ -877,6 +877,16 @@ impl ServiceContextData { ); } + // OpenGB + if project_ctx.ns().rivet.opengb.is_some() { + let opengb_output = terraform::output::read_opengb(&project_ctx).await; + + env.insert( + "CLOUDFLARE_OPENGB_DISPATCHER_NAMESPACE".into(), + opengb_output.dispatcher_namespace_name.to_string(), + ); + } + if self.depends_on_captcha() { if let Some(hcaptcha) = &project_ctx.ns().captcha.hcaptcha { env.insert( diff --git a/lib/bolt/core/src/dep/one_password/cli.rs b/lib/bolt/core/src/dep/one_password/cli.rs index c6337a57f0..69623988ca 100644 --- a/lib/bolt/core/src/dep/one_password/cli.rs +++ b/lib/bolt/core/src/dep/one_password/cli.rs @@ -9,10 +9,7 @@ pub async fn command(service_token: Option<&str>) -> Command { cmd.arg("op"); let installed = cmd.exec_quiet(true, true).await.is_ok(); - - if !installed { - panic!("1Password secret management is enabled in the namespace config but the 1Password CLI (`op`) is not installed"); - } + assert!(installed, "1Password secret management is enabled in the namespace config but the 1Password CLI (`op`) is not installed"); let mut cmd = Command::new("op"); @@ -22,8 +19,6 @@ pub async fn command(service_token: Option<&str>) -> Command { } cmd.env("OP_SERVICE_ACCOUNT_TOKEN", service_token); - } else { - eprintln!("WARNING: 1Password secret management is enabled in the namespace config but the '1password.service_account_token' secret is not set.\n"); } cmd diff --git a/lib/bolt/core/src/dep/terraform/gen.rs b/lib/bolt/core/src/dep/terraform/gen.rs index 9d2db46891..247ed77c2f 100644 --- a/lib/bolt/core/src/dep/terraform/gen.rs +++ b/lib/bolt/core/src/dep/terraform/gen.rs @@ -229,6 +229,12 @@ async fn vars(ctx: &ProjectContext) { json!(config.rivet.provisioning.is_some()), ); + // OpenGB + vars.insert( + "opengb_enabled".into(), + json!(config.rivet.opengb.is_some()), + ); + // Tunnels if let Some(ns::Dns { provider: Some(ns::DnsProvider::Cloudflare { access, .. }), @@ -304,10 +310,14 @@ async fn vars(ctx: &ProjectContext) { "name": domain_main_api, })); - // OGS + // OpenGB + extra_dns.push(json!({ + "zone_name": "main", + "name": format!("*.opengb.{domain_main}"), + })); extra_dns.push(json!({ "zone_name": "main", - "name": format!("*.ogs.{domain_main}"), + "name": format!("db.opengb-internal.{domain_main}"), })); // Add services diff --git a/lib/bolt/core/src/dep/terraform/output.rs b/lib/bolt/core/src/dep/terraform/output.rs index 91824664b0..23a05c57c3 100644 --- a/lib/bolt/core/src/dep/terraform/output.rs +++ b/lib/bolt/core/src/dep/terraform/output.rs @@ -49,6 +49,11 @@ pub struct DnsZones { pub job: String, } +#[derive(Debug, Clone, Deserialize)] +pub struct OpenGb { + pub dispatcher_namespace_name: TerraformOutputValue, +} + #[derive(Debug, Clone, Deserialize)] pub struct KubernetesClusterAws { pub eks_admin_role_arn: TerraformOutputValue, @@ -120,6 +125,10 @@ pub async fn read_redis(ctx: &ProjectContext) -> Redis { } } +pub async fn read_opengb(ctx: &ProjectContext) -> OpenGb { + read_plan::(ctx, "opengb").await +} + /// Reads a Terraform plan's output and decodes in to type. pub async fn read_plan(ctx: &ProjectContext, plan_id: &str) -> T { let terraform_plans = crate::tasks::infra::all_terraform_plans(ctx).unwrap(); diff --git a/lib/bolt/core/src/dep/terraform/remote_states.rs b/lib/bolt/core/src/dep/terraform/remote_states.rs index 198bb191b0..851d6994e6 100644 --- a/lib/bolt/core/src/dep/terraform/remote_states.rs +++ b/lib/bolt/core/src/dep/terraform/remote_states.rs @@ -39,6 +39,9 @@ pub fn dependency_graph(_ctx: &ProjectContext) -> HashMap<&'static str, Vec vec![ + RemoteStateBuilder::default().plan_id("dns").build().unwrap() + ], } } diff --git a/lib/bolt/core/src/tasks/infra/mod.rs b/lib/bolt/core/src/tasks/infra/mod.rs index fed447061f..2907e6f0fe 100644 --- a/lib/bolt/core/src/tasks/infra/mod.rs +++ b/lib/bolt/core/src/tasks/infra/mod.rs @@ -274,6 +274,17 @@ pub fn build_plan( } } + // OpenGB + if ctx.ns().rivet.opengb.is_some() { + plan.push(PlanStep { + name_id: "opengb", + kind: PlanStepKind::Terraform { + plan_id: "opengb".into(), + needs_destroy: true, + }, + }); + } + // BetterUptime if ctx.ns().better_uptime.is_some() { plan.push(PlanStep { diff --git a/lib/claims/src/lib.rs b/lib/claims/src/lib.rs index b8b0706e8a..b8885ab314 100644 --- a/lib/claims/src/lib.rs +++ b/lib/claims/src/lib.rs @@ -346,6 +346,23 @@ pub mod ent { Ok(ProvisionedServer {}) } } + + #[derive(Clone, Debug)] + pub struct OpenGbDb { + pub environment_id: Uuid, + pub db_name: String, + } + + impl TryFrom<&schema::entitlement::OpenGbDb> for OpenGbDb { + type Error = GlobalError; + + fn try_from(value: &schema::entitlement::OpenGbDb) -> GlobalResult { + Ok(OpenGbDb { + environment_id: unwrap!(value.environment_id).as_uuid(), + db_name: value.db_name.clone(), + }) + } + } } pub trait ClaimsDecode { @@ -370,6 +387,7 @@ pub trait ClaimsDecode { fn as_bypass(&self) -> GlobalResult; fn as_access_token(&self) -> GlobalResult; fn as_provisioned_server(&self) -> GlobalResult; + fn as_opengb_db(&self) -> GlobalResult; } impl ClaimsDecode for schema::Claims { @@ -651,6 +669,22 @@ impl ClaimsDecode for schema::Claims { )) .and_then(std::convert::identity) } + + fn as_opengb_db(&self) -> GlobalResult { + self.entitlements + .iter() + .find_map(|ent| match &ent.kind { + Some(schema::entitlement::Kind::OpengbDb(ent)) => { + Some(ent::OpenGbDb::try_from(ent)) + } + _ => None, + }) + .ok_or(err_code!( + CLAIMS_MISSING_ENTITLEMENT, + entitlements = "OpenGbDb" + )) + .and_then(std::convert::identity) + } } pub trait EntitlementTag { @@ -678,6 +712,7 @@ impl EntitlementTag for schema::Entitlement { schema::entitlement::Kind::Bypass(_) => 15, schema::entitlement::Kind::AccessToken(_) => 16, schema::entitlement::Kind::ProvisionedServer(_) => 17, + schema::entitlement::Kind::OpengbDb(_) => 18, }) } } diff --git a/lib/convert/src/impls/cloud/mod.rs b/lib/convert/src/impls/cloud/mod.rs index bff4c291d2..6f0bef36ab 100644 --- a/lib/convert/src/impls/cloud/mod.rs +++ b/lib/convert/src/impls/cloud/mod.rs @@ -5,7 +5,7 @@ use proto::{ use rivet_api::models; use rivet_operation::prelude::*; -use crate::{ApiFrom, ApiTryFrom, ApiTryInto}; +use crate::{ApiTryFrom, ApiTryInto}; pub mod cloudflare; pub mod namespace; diff --git a/lib/convert/src/impls/group.rs b/lib/convert/src/impls/group.rs index d34ee99238..e0ebac1bf7 100644 --- a/lib/convert/src/impls/group.rs +++ b/lib/convert/src/impls/group.rs @@ -1,4 +1,4 @@ -use proto::backend::{self, pkg::*}; +use proto::backend; use rivet_api::models as new_models; use rivet_group_server::models; use rivet_operation::prelude::*; diff --git a/lib/util/core/src/check.rs b/lib/util/core/src/check.rs index 98e937975a..97cc9d1037 100644 --- a/lib/util/core/src/check.rs +++ b/lib/util/core/src/check.rs @@ -8,6 +8,7 @@ pub const MAX_DISPLAY_NAME_LONG_LEN: usize = 128; pub const MAX_BIOGRAPHY_LEN: usize = 200; pub const MAX_NEW_LINES: usize = 5; pub const MAX_DOMAIN_LEN: usize = 255; +pub const MAX_DENO_NAME_LEN: usize = 32; lazy_static! { static ref BCRYPT: Regex = RegexBuilder::new(r#"^\$2[ayb]?\$[0-9]{2}\$[A-Za-z0-9\./]+$"#) @@ -34,15 +35,15 @@ pub fn ident_lenient(s: impl AsRef) -> bool { pub fn ident_with_len(s: impl AsRef, lenient: bool, len: usize) -> bool { let s = s.as_ref(); - s.chars().all(|c| match c { - '0'..='9' | 'a'..='z' | '-' => true, - 'A'..='Z' | '_' if lenient => true, - _ => false, - }) && !s.is_empty() + !s.is_empty() && s.len() <= len && !s.starts_with('-') && !s.ends_with('-') - && (lenient || !s.contains("--")) + && s.chars().all(|c| match c { + '0'..='9' | 'a'..='z' | '-' => true, + 'A'..='Z' | '_' if lenient => true, + _ => false, + }) && (lenient || !s.contains("--")) } /// Same as `ident` but without the length requirement. @@ -174,6 +175,19 @@ pub fn bcrypt(s: impl AsRef) -> bool { BCRYPT.is_match(s) } +/// Checks if a string is a valid Deno name. +pub fn deno_name(s: impl AsRef) -> bool { + let s = s.as_ref(); + !s.is_empty() + && s.len() <= MAX_DENO_NAME_LEN + && !s.starts_with('_') + && !s.ends_with('_') + && s.chars().all(|c| match c { + '0'..='9' | 'a'..='z' | '_' => true, + _ => false, + }) && !s.contains("__") +} + #[cfg(test)] mod tests { #[test] diff --git a/lib/util/core/src/format.rs b/lib/util/core/src/format.rs index 882fe3276a..42e032d109 100644 --- a/lib/util/core/src/format.rs +++ b/lib/util/core/src/format.rs @@ -1,6 +1,7 @@ use std::iter::Iterator; use lazy_static::lazy_static; +use rand::seq::IteratorRandom; use regex::Regex; use crate::check; @@ -97,3 +98,33 @@ pub fn str_to_ident(s: impl AsRef) -> String { dashed.trim_matches('-').to_string() } + +pub fn gen_name_id(s: impl AsRef, default: &str) -> String { + assert!( + default.len() + 8 <= check::MAX_IDENT_LEN, + "default ident too long" + ); + + let proc_ident = str_to_ident(s); + + // Default + let (proc_ident, rng_count) = if proc_ident.is_empty() { + (default, 8) + } else { + (proc_ident.as_str(), 3) + }; + + // Choose a random hash to add to the name id + let chars = "abcdefghijklmnopqrstuvwxyz1234567890"; // pragma: allowlist secret + let mut rng = rand::thread_rng(); + let hash = std::iter::repeat_with(|| chars.chars().choose(&mut rng)) + .flatten() + .take(rng_count); + + proc_ident + .chars() + .take(check::MAX_IDENT_LEN - 4) + .chain(std::iter::once('-')) + .chain(hash) + .collect::() +} diff --git a/lib/util/core/src/route.rs b/lib/util/core/src/route.rs index cff1897417..1953896161 100644 --- a/lib/util/core/src/route.rs +++ b/lib/util/core/src/route.rs @@ -1,7 +1,8 @@ use types::rivet::backend; use uuid::Uuid; +use global_error::prelude::*; -use crate::env::{origin_api, origin_hub}; +use crate::env::{origin_api, origin_hub, domain_main}; pub fn user_settings() -> String { format!("{}/settings", origin_hub()) @@ -102,3 +103,14 @@ pub fn access_token_link(access_token_token: &str) -> String { pub fn billing(team_id: Uuid) -> String { format!("{}/groups/{}/billing", origin_hub(), team_id) } + +pub fn opengb_env(project_name_id: &str, env_name_id: &str) -> GlobalResult { + let domain_main = unwrap!(domain_main(), "dns not enabled"); + + Ok(format!( + "https://{}--{}.opengb.{}/", + project_name_id, + env_name_id, + domain_main, + )) +} diff --git a/proto/backend/opengb.proto b/proto/backend/opengb.proto new file mode 100644 index 0000000000..23c7c8d9f9 --- /dev/null +++ b/proto/backend/opengb.proto @@ -0,0 +1,41 @@ +syntax = "proto3"; + +package rivet.backend.opengb; + +import "proto/common.proto"; + +message Project { + rivet.common.Uuid project_id = 1; + rivet.common.Uuid developer_team_id = 2; + string name_id = 3; + string display_name = 4; + int64 create_ts = 5; +} + +message Environment { + rivet.common.Uuid environment_id = 1; + rivet.common.Uuid project_id = 2; + + string name_id = 3; + string display_name = 4; + Tier tier = 5; + + string neon_project_id = 6; + + int64 create_ts = 8; + optional int64 destroy_ts = 9; +} + +enum Tier { + SHARED = 0; + DEDICATED = 1; +} + +message Module { + message Db { + string name = 1; + } + + string name = 1; + optional Db db = 2; +} diff --git a/proto/claims.proto b/proto/claims.proto index b268ab1665..854a27bffd 100644 --- a/proto/claims.proto +++ b/proto/claims.proto @@ -110,7 +110,13 @@ message Entitlement { // Issued to provisioned servers for communication with our API. This will be written to prebake servers // (see /docs/packages/cluster/SERVER_PROVISIONING.md). message ProvisionedServer { + + } + // Token used to connect to a neon database through the OpenGB DB proxy + message OpenGbDb { + rivet.common.Uuid environment_id = 1; + string db_name = 2; } oneof kind { @@ -130,6 +136,7 @@ message Entitlement { Bypass bypass = 15; AccessToken access_token = 16; ProvisionedServer provisioned_server = 17; + OpenGbDb opengb_db = 18; } reserved 13; diff --git a/sdks/full/go/cloud/games/client/client.go b/sdks/full/go/cloud/games/client/client.go index a7e72a73f6..b15688c2aa 100644 --- a/sdks/full/go/cloud/games/client/client.go +++ b/sdks/full/go/cloud/games/client/client.go @@ -3,11 +3,20 @@ package client import ( + bytes "bytes" + context "context" + json "encoding/json" + errors "errors" + fmt "fmt" + uuid "github.com/google/uuid" + io "io" http "net/http" + url "net/url" + sdk "sdk" + games "sdk/cloud/games" avatars "sdk/cloud/games/avatars" builds "sdk/cloud/games/builds" cdn "sdk/cloud/games/cdn" - games "sdk/cloud/games/games" matchmaker "sdk/cloud/games/matchmaker" namespacesclient "sdk/cloud/games/namespaces/client" tokens "sdk/cloud/games/tokens" @@ -24,7 +33,6 @@ type Client struct { Avatars *avatars.Client Builds *builds.Client Cdn *cdn.Client - Games *games.Client Matchmaker *matchmaker.Client Tokens *tokens.Client Versions *versions.Client @@ -43,9 +51,648 @@ func NewClient(opts ...core.ClientOption) *Client { Avatars: avatars.NewClient(opts...), Builds: builds.NewClient(opts...), Cdn: cdn.NewClient(opts...), - Games: games.NewClient(opts...), Matchmaker: matchmaker.NewClient(opts...), Tokens: tokens.NewClient(opts...), Versions: versions.NewClient(opts...), } } + +// Returns a list of games in which the current identity is a group member of its development team. +func (c *Client) GetGames(ctx context.Context, request *games.GetGamesRequest) (*games.GetGamesResponse, error) { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := baseURL + "/" + "cloud/games" + + queryParams := make(url.Values) + if request.WatchIndex != nil { + queryParams.Add("watch_index", fmt.Sprintf("%v", *request.WatchIndex)) + } + if len(queryParams) > 0 { + endpointURL += "?" + queryParams.Encode() + } + + 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 *games.GetGamesResponse + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodGet, + Headers: c.header, + Response: &response, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return nil, err + } + return response, nil +} + +// Creates a new game. +func (c *Client) CreateGame(ctx context.Context, request *games.CreateGameRequest) (*games.CreateGameResponse, error) { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := baseURL + "/" + "cloud/games" + + 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 *games.CreateGameResponse + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodPost, + Headers: c.header, + Request: request, + Response: &response, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return nil, err + } + return response, nil +} + +// Validates information used to create a new game. +func (c *Client) ValidateGame(ctx context.Context, request *games.ValidateGameRequest) (*games.ValidateGameResponse, error) { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := baseURL + "/" + "cloud/games/validate" + + 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 *games.ValidateGameResponse + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodPost, + Headers: c.header, + Request: request, + Response: &response, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return nil, err + } + return response, nil +} + +// Returns a game by its game id. +func (c *Client) GetGameById(ctx context.Context, gameId uuid.UUID, request *games.GetGameByIdRequest) (*games.GetGameByIdResponse, error) { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v", gameId) + + queryParams := make(url.Values) + if request.WatchIndex != nil { + queryParams.Add("watch_index", fmt.Sprintf("%v", *request.WatchIndex)) + } + if len(queryParams) > 0 { + endpointURL += "?" + queryParams.Encode() + } + + 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 *games.GetGameByIdResponse + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodGet, + Headers: c.header, + Response: &response, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return nil, err + } + return response, nil +} + +// Prepares a game banner image upload. +func (c *Client) GameBannerUploadPrepare(ctx context.Context, gameId uuid.UUID, request *games.GameBannerUploadPrepareRequest) (*games.GameBannerUploadPrepareResponse, error) { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v/banner-upload/prepare", gameId) + + 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 *games.GameBannerUploadPrepareResponse + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodPost, + Headers: c.header, + Request: request, + Response: &response, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return nil, err + } + return response, nil +} + +// Completes an game banner image upload. Must be called after the file upload process completes. +func (c *Client) GameBannerUploadComplete(ctx context.Context, gameId uuid.UUID, uploadId uuid.UUID) error { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v/banner-upload/%v/complete", gameId, uploadId) + + 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 + } + + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodPost, + Headers: c.header, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return err + } + return nil +} + +// Prepares a game logo image upload. +func (c *Client) GameLogoUploadPrepare(ctx context.Context, gameId uuid.UUID, request *games.GameLogoUploadPrepareRequest) (*games.GameLogoUploadPrepareResponse, error) { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v/logo-upload/prepare", gameId) + + 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 *games.GameLogoUploadPrepareResponse + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodPost, + Headers: c.header, + Request: request, + Response: &response, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return nil, err + } + return response, nil +} + +// Completes a game logo image upload. Must be called after the file upload process completes. +func (c *Client) GameLogoUploadComplete(ctx context.Context, gameId uuid.UUID, uploadId uuid.UUID) error { + baseURL := "https://api.rivet.gg" + if c.baseURL != "" { + baseURL = c.baseURL + } + endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v/logo-upload/%v/complete", gameId, uploadId) + + 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 + } + + if err := c.caller.Call( + ctx, + &core.CallParams{ + URL: endpointURL, + Method: http.MethodPost, + Headers: c.header, + ErrorDecoder: errorDecoder, + }, + ); err != nil { + return err + } + return nil +} diff --git a/sdks/full/go/cloud/games/games.go b/sdks/full/go/cloud/games/games.go index 69f9229068..aa03069555 100644 --- a/sdks/full/go/cloud/games/games.go +++ b/sdks/full/go/cloud/games/games.go @@ -14,16 +14,6 @@ import ( upload "sdk/upload" ) -type GetGameByIdRequest struct { - // A query parameter denoting the requests watch index. - WatchIndex *string `json:"-"` -} - -type GetGamesRequest struct { - // A query parameter denoting the requests watch index. - WatchIndex *string `json:"-"` -} - type CreateGameRequest struct { // **Deprecated** NameId *sdk.Identifier `json:"name_id,omitempty"` @@ -279,8 +269,7 @@ func (g *GetGamesResponse) String() string { type ValidateGameRequest struct { 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"` + NameId *sdk.Identifier `json:"name_id,omitempty"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/cloud/games/games/client.go b/sdks/full/go/cloud/games/games/client.go deleted file mode 100644 index dd01191833..0000000000 --- a/sdks/full/go/cloud/games/games/client.go +++ /dev/null @@ -1,676 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package games - -import ( - bytes "bytes" - context "context" - json "encoding/json" - errors "errors" - fmt "fmt" - uuid "github.com/google/uuid" - io "io" - http "net/http" - url "net/url" - sdk "sdk" - games "sdk/cloud/games" - core "sdk/core" -) - -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(), - } -} - -// Returns a list of games in which the current identity is a group member of its development team. -func (c *Client) GetGames(ctx context.Context, request *games.GetGamesRequest) (*games.GetGamesResponse, error) { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := baseURL + "/" + "cloud/games" - - queryParams := make(url.Values) - if request.WatchIndex != nil { - queryParams.Add("watch_index", fmt.Sprintf("%v", *request.WatchIndex)) - } - if len(queryParams) > 0 { - endpointURL += "?" + queryParams.Encode() - } - - 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 *games.GetGamesResponse - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodGet, - Headers: c.header, - Response: &response, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return nil, err - } - return response, nil -} - -// Creates a new game. -func (c *Client) CreateGame(ctx context.Context, request *games.CreateGameRequest) (*games.CreateGameResponse, error) { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := baseURL + "/" + "cloud/games" - - 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 *games.CreateGameResponse - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodPost, - Headers: c.header, - Request: request, - Response: &response, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return nil, err - } - return response, nil -} - -// Validates information used to create a new game. -func (c *Client) ValidateGame(ctx context.Context, request *games.ValidateGameRequest) (*games.ValidateGameResponse, error) { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := baseURL + "/" + "cloud/games/validate" - - 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 *games.ValidateGameResponse - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodPost, - Headers: c.header, - Request: request, - Response: &response, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return nil, err - } - return response, nil -} - -// Returns a game by its game id. -func (c *Client) GetGameById(ctx context.Context, gameId uuid.UUID, request *games.GetGameByIdRequest) (*games.GetGameByIdResponse, error) { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v", gameId) - - queryParams := make(url.Values) - if request.WatchIndex != nil { - queryParams.Add("watch_index", fmt.Sprintf("%v", *request.WatchIndex)) - } - if len(queryParams) > 0 { - endpointURL += "?" + queryParams.Encode() - } - - 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 *games.GetGameByIdResponse - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodGet, - Headers: c.header, - Response: &response, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return nil, err - } - return response, nil -} - -// Prepares a game banner image upload. -func (c *Client) GameBannerUploadPrepare(ctx context.Context, gameId uuid.UUID, request *games.GameBannerUploadPrepareRequest) (*games.GameBannerUploadPrepareResponse, error) { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v/banner-upload/prepare", gameId) - - 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 *games.GameBannerUploadPrepareResponse - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodPost, - Headers: c.header, - Request: request, - Response: &response, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return nil, err - } - return response, nil -} - -// Completes an game banner image upload. Must be called after the file upload process completes. -func (c *Client) GameBannerUploadComplete(ctx context.Context, gameId uuid.UUID, uploadId uuid.UUID) error { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v/banner-upload/%v/complete", gameId, uploadId) - - 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 - } - - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodPost, - Headers: c.header, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return err - } - return nil -} - -// Prepares a game logo image upload. -func (c *Client) GameLogoUploadPrepare(ctx context.Context, gameId uuid.UUID, request *games.GameLogoUploadPrepareRequest) (*games.GameLogoUploadPrepareResponse, error) { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v/logo-upload/prepare", gameId) - - 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 *games.GameLogoUploadPrepareResponse - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodPost, - Headers: c.header, - Request: request, - Response: &response, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return nil, err - } - return response, nil -} - -// Completes a game logo image upload. Must be called after the file upload process completes. -func (c *Client) GameLogoUploadComplete(ctx context.Context, gameId uuid.UUID, uploadId uuid.UUID) error { - baseURL := "https://api.rivet.gg" - if c.baseURL != "" { - baseURL = c.baseURL - } - endpointURL := fmt.Sprintf(baseURL+"/"+"cloud/games/%v/logo-upload/%v/complete", gameId, uploadId) - - 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 - } - - if err := c.caller.Call( - ctx, - &core.CallParams{ - URL: endpointURL, - Method: http.MethodPost, - Headers: c.header, - ErrorDecoder: errorDecoder, - }, - ); err != nil { - return err - } - return nil -} diff --git a/sdks/full/go/cloud/games/types.go b/sdks/full/go/cloud/games/types.go index 805a3307cb..7943c6ed4b 100644 --- a/sdks/full/go/cloud/games/types.go +++ b/sdks/full/go/cloud/games/types.go @@ -6,6 +6,16 @@ import ( fmt "fmt" ) +type GetGameByIdRequest struct { + // A query parameter denoting the requests watch index. + WatchIndex *string `json:"-"` +} + +type GetGamesRequest struct { + // A query parameter denoting the requests watch index. + WatchIndex *string `json:"-"` +} + type BuildCompression string const ( diff --git a/sdks/full/go/cloud/types.go b/sdks/full/go/cloud/types.go index 8f6be5b11a..20371c98f7 100644 --- a/sdks/full/go/cloud/types.go +++ b/sdks/full/go/cloud/types.go @@ -11,7 +11,6 @@ import ( matchmaker "sdk/cloud/version/matchmaker" game "sdk/common/game" core "sdk/core" - time "time" ) // The current authenticated agent. @@ -1193,9 +1192,8 @@ func (s *SvcMetrics) String() string { // A service performance summary. type SvcPerf struct { // The name of the service. - SvcName string `json:"svc_name"` - // RFC3339 timestamp. - Ts time.Time `json:"ts"` + SvcName string `json:"svc_name"` + Ts sdk.Timestamp `json:"ts"` // Unsigned 64 bit integer. Duration int64 `json:"duration"` ReqId *uuid.UUID `json:"req_id,omitempty"` diff --git a/sdks/full/go/group/types.go b/sdks/full/go/group/types.go index 623356db96..578ffb2f6e 100644 --- a/sdks/full/go/group/types.go +++ b/sdks/full/go/group/types.go @@ -10,7 +10,6 @@ import ( group "sdk/common/group" identity "sdk/common/identity" core "sdk/core" - time "time" ) type GetBansRequest struct { @@ -92,8 +91,7 @@ func (b *BannedIdentity) String() string { // A group join request. type JoinRequest struct { Identity *identity.Handle `json:"identity,omitempty"` - // RFC3339 timestamp. - Ts time.Time `json:"ts"` + Ts sdk.Timestamp `json:"ts"` _rawJSON json.RawMessage } diff --git a/sdks/full/go/identity/types.go b/sdks/full/go/identity/types.go index 26d3730341..59334981ae 100644 --- a/sdks/full/go/identity/types.go +++ b/sdks/full/go/identity/types.go @@ -12,7 +12,6 @@ import ( identity "sdk/common/identity" core "sdk/core" matchmaker "sdk/matchmaker" - time "time" ) type GetHandlesRequest struct { @@ -209,7 +208,7 @@ func (g GameLinkStatus) Ptr() *GameLinkStatus { // An event relevant to the current identity. type GlobalEvent struct { - Ts time.Time `json:"ts"` + Ts sdk.Timestamp `json:"ts"` Kind *GlobalEventKind `json:"kind,omitempty"` Notification *GlobalEventNotification `json:"notification,omitempty"` diff --git a/sdks/full/go/types.go b/sdks/full/go/types.go index 688fdd0e33..873fa4db06 100644 --- a/sdks/full/go/types.go +++ b/sdks/full/go/types.go @@ -6,6 +6,7 @@ import ( json "encoding/json" fmt "fmt" core "sdk/core" + time "time" ) type AccountNumber = int @@ -120,7 +121,7 @@ type Identifier = string type Jwt = string // RFC3339 timestamp -type Timestamp = string +type Timestamp = time.Time // An error given by failed content validation. type ValidationError struct { diff --git a/sdks/full/openapi/openapi.yml b/sdks/full/openapi/openapi.yml index 9b040188eb..53a827c81f 100644 --- a/sdks/full/openapi/openapi.yml +++ b/sdks/full/openapi/openapi.yml @@ -1,7 +1,7 @@ openapi: 3.0.1 info: title: Rivet API - version: "" + version: '' paths: /admin/login: post: @@ -10,48 +10,48 @@ paths: - Admin parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/AdminLoginResponse" - "400": - description: "" + $ref: '#/components/schemas/AdminLoginResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: &ref_0 - BearerAuth: [] requestBody: @@ -59,7 +59,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/AdminLoginRequest" + $ref: '#/components/schemas/AdminLoginRequest' /cluster/server_ips: get: operationId: admin_clusters_getServerIps @@ -76,50 +76,50 @@ paths: in: query required: false schema: - $ref: "#/components/schemas/AdminPoolType" + $ref: '#/components/schemas/AdminPoolType' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/AdminClusterGetServerIpsResponse" - "400": - description: "" + $ref: '#/components/schemas/AdminClusterGetServerIpsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/bootstrap: get: @@ -129,185 +129,227 @@ paths: - Cloud parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudBootstrapResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudBootstrapResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /cloud/games/{game_id}/namespaces: - post: - description: Creates a new namespace for the given game. - operationId: cloud_games_namespaces_createGameNamespace + /cloud/games: + get: + description: >- + Returns a list of games in which the current identity is a group member + of its development team. + operationId: cloud_games_getGames tags: - - CloudGamesNamespaces + - CloudGames parameters: - - name: game_id - in: path - required: true + - name: watch_index + in: query + description: A query parameter denoting the requests watch index. + required: false schema: type: string - format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesCreateGameNamespaceResponse - "400": - description: "" + $ref: '#/components/schemas/CloudGamesGetGamesResponse' + '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" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + security: *ref_0 + post: + description: Creates a new game. + operationId: cloud_games_createGame + tags: + - CloudGames + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/CloudGamesCreateGameResponse' + '400': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesCreateGameNamespaceRequest - /cloud/games/{game_id}/namespaces/validate: + $ref: '#/components/schemas/CloudGamesCreateGameRequest' + /cloud/games/validate: post: - description: Validates information used to create a new game namespace. - operationId: cloud_games_namespaces_validateGameNamespace + description: Validates information used to create a new game. + operationId: cloud_games_validateGame tags: - - CloudGamesNamespaces - parameters: - - name: game_id - in: path - required: true - schema: - type: string - format: uuid + - CloudGames + parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesValidateGameNamespaceResponse - "400": - description: "" + $ref: '#/components/schemas/CloudGamesValidateGameResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesValidateGameNamespaceRequest - /cloud/games/{game_id}/namespaces/{namespace_id}: + $ref: '#/components/schemas/CloudGamesValidateGameRequest' + /cloud/games/{game_id}: get: - description: Gets a game namespace by namespace ID. - operationId: cloud_games_namespaces_getGameNamespaceById + description: Returns a game by its game id. + operationId: cloud_games_getGameById tags: - - CloudGamesNamespaces + - CloudGames parameters: - name: game_id in: path @@ -315,63 +357,62 @@ paths: schema: type: string format: uuid - - name: namespace_id - in: path - required: true + - name: watch_index + in: query + description: A query parameter denoting the requests watch index. + required: false schema: type: string - format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesGetGameNamespaceByIdResponse - "400": - description: "" + $ref: '#/components/schemas/CloudGamesGetGameByIdResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /cloud/games/{game_id}/namespaces/{namespace_id}/auth-user: + /cloud/games/{game_id}/banner-upload/prepare: post: - description: Adds an authenticated user to the given game namespace. - operationId: cloud_games_namespaces_updateNamespaceCdnAuthUser + description: Prepares a game banner image upload. + operationId: cloud_games_gameBannerUploadPrepare tags: - - CloudGamesNamespaces + - CloudGames parameters: - name: game_id in: path @@ -379,65 +420,64 @@ paths: schema: type: string format: uuid - - name: namespace_id - in: path - required: true - schema: - type: string - format: uuid responses: - "204": - description: "" - "400": - description: "" + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/CloudGamesGameBannerUploadPrepareResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest - /cloud/games/{game_id}/namespaces/{namespace_id}/auth-user/{user}: - delete: - description: Removes an authenticated user from the given game namespace. - operationId: cloud_games_namespaces_removeNamespaceCdnAuthUser + $ref: '#/components/schemas/CloudGamesGameBannerUploadPrepareRequest' + /cloud/games/{game_id}/banner-upload/{upload_id}/complete: + post: + description: >- + Completes an game banner image upload. Must be called after the file + upload process completes. + operationId: cloud_games_gameBannerUploadComplete tags: - - CloudGamesNamespaces + - CloudGames parameters: - name: game_id in: path @@ -445,64 +485,58 @@ paths: schema: type: string format: uuid - - name: namespace_id + - name: upload_id in: path required: true schema: type: string format: uuid - - name: user - in: path - description: A user name. - required: true - schema: - type: string responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /cloud/games/{game_id}/namespaces/{namespace_id}/cdn-auth: - put: - description: Updates the CDN authentication type of the given game namespace. - operationId: cloud_games_namespaces_setNamespaceCdnAuthType + /cloud/games/{game_id}/logo-upload/prepare: + post: + description: Prepares a game logo image upload. + operationId: cloud_games_gameLogoUploadPrepare tags: - - CloudGamesNamespaces + - CloudGames parameters: - name: game_id in: path @@ -510,67 +544,64 @@ paths: schema: type: string format: uuid - - name: namespace_id - in: path - required: true - schema: - type: string - format: uuid responses: - "204": - description: "" - "400": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/CloudGamesGameLogoUploadPrepareResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest - /cloud/games/{game_id}/namespaces/{namespace_id}/domain-public-auth: - put: + $ref: '#/components/schemas/CloudGamesGameLogoUploadPrepareRequest' + /cloud/games/{game_id}/logo-upload/{upload_id}/complete: + post: description: >- - Toggles whether or not to allow authentication based on domain for the - given game namespace. - operationId: cloud_games_namespaces_toggleNamespaceDomainPublicAuth + Completes a game logo image upload. Must be called after the file upload + process completes. + operationId: cloud_games_gameLogoUploadComplete tags: - - CloudGamesNamespaces + - CloudGames parameters: - name: game_id in: path @@ -578,51 +609,109 @@ paths: schema: type: string format: uuid - - name: namespace_id + - name: upload_id + in: path + required: true + schema: + type: string + format: uuid + responses: + '204': + description: '' + '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 + /cloud/games/{game_id}/namespaces: + post: + description: Creates a new namespace for the given game. + operationId: cloud_games_namespaces_createGameNamespace + tags: + - CloudGamesNamespaces + parameters: + - name: game_id in: path required: true schema: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '200': + description: '' + content: + application/json: + schema: + $ref: >- + #/components/schemas/CloudGamesNamespacesCreateGameNamespaceResponse + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -630,11 +719,11 @@ paths: application/json: schema: $ref: >- - #/components/schemas/CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest - /cloud/games/{game_id}/namespaces/{namespace_id}/domains: + #/components/schemas/CloudGamesNamespacesCreateGameNamespaceRequest + /cloud/games/{game_id}/namespaces/validate: post: - description: Adds a domain to the given game namespace. - operationId: cloud_games_namespaces_addNamespaceDomain + description: Validates information used to create a new game namespace. + operationId: cloud_games_namespaces_validateGameNamespace tags: - CloudGamesNamespaces parameters: @@ -644,51 +733,50 @@ paths: schema: type: string format: uuid - - name: namespace_id - in: path - required: true - schema: - type: string - format: uuid responses: - "204": - description: "" - "400": - description: "" + '200': + description: '' + content: + application/json: + schema: + $ref: >- + #/components/schemas/CloudGamesNamespacesValidateGameNamespaceResponse + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -696,11 +784,11 @@ paths: application/json: schema: $ref: >- - #/components/schemas/CloudGamesNamespacesAddNamespaceDomainRequest - /cloud/games/{game_id}/namespaces/{namespace_id}/domains/{domain}: - delete: - description: Removes a domain from the given game namespace. - operationId: cloud_games_namespaces_removeNamespaceDomain + #/components/schemas/CloudGamesNamespacesValidateGameNamespaceRequest + /cloud/games/{game_id}/namespaces/{namespace_id}: + get: + description: Gets a game namespace by namespace ID. + operationId: cloud_games_namespaces_getGameNamespaceById tags: - CloudGamesNamespaces parameters: @@ -716,56 +804,55 @@ paths: schema: type: string format: uuid - - name: domain - in: path - description: A valid domain name (no protocol). - required: true - schema: - type: string responses: - "204": - description: "" - "400": - description: "" + '200': + description: '' + content: + application/json: + schema: + $ref: >- + #/components/schemas/CloudGamesNamespacesGetGameNamespaceByIdResponse + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /cloud/games/{game_id}/namespaces/{namespace_id}/mm-config: + /cloud/games/{game_id}/namespaces/{namespace_id}/auth-user: post: - description: Updates matchmaker config for the given game namespace. - operationId: cloud_games_namespaces_updateGameNamespaceMatchmakerConfig + description: Adds an authenticated user to the given game namespace. + operationId: cloud_games_namespaces_updateNamespaceCdnAuthUser tags: - CloudGamesNamespaces parameters: @@ -782,44 +869,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -827,89 +914,76 @@ paths: application/json: schema: $ref: >- - #/components/schemas/CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest - /cloud/games/{game_id}/namespaces/{namespace_id}/version-history: - get: - description: Gets the version history for a given namespace. - operationId: cloud_games_namespaces_GetGameNamespaceVersionHistoryList + #/components/schemas/CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest + /cloud/games/{game_id}/namespaces/{namespace_id}/auth-user/{user}: + delete: + description: Removes an authenticated user from the given game namespace. + operationId: cloud_games_namespaces_removeNamespaceCdnAuthUser tags: - CloudGamesNamespaces parameters: - name: game_id in: path - description: A universally unique identifier. required: true schema: type: string + format: uuid - name: namespace_id in: path - description: A universally unique identifier. required: true schema: type: string - - name: anchor - in: query - description: How many items to offset the search by. - required: false + format: uuid + - name: user + in: path + description: A user name. + required: true schema: type: string - - name: limit - in: query - description: Amount of items to return. Must be between 1 and 32 inclusive. - required: false - schema: - type: integer responses: - "200": - description: "" - content: - application/json: - schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /cloud/games/{game_id}/namespaces/{namespace_id}/mm-config/validate: - post: - description: >- - Validates information used to update a game namespace's matchmaker - config. - operationId: cloud_games_namespaces_validateGameNamespaceMatchmakerConfig + /cloud/games/{game_id}/namespaces/{namespace_id}/cdn-auth: + put: + description: Updates the CDN authentication type of the given game namespace. + operationId: cloud_games_namespaces_setNamespaceCdnAuthType tags: - CloudGamesNamespaces parameters: @@ -926,49 +1000,44 @@ paths: type: string format: uuid responses: - "200": - description: "" - content: - application/json: - schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -976,11 +1045,13 @@ paths: application/json: schema: $ref: >- - #/components/schemas/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest - /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development: - post: - description: Creates a development token for the given namespace. - operationId: cloud_games_namespaces_createGameNamespaceTokenDevelopment + #/components/schemas/CloudGamesNamespacesSetNamespaceCdnAuthTypeRequest + /cloud/games/{game_id}/namespaces/{namespace_id}/domain-public-auth: + put: + description: >- + Toggles whether or not to allow authentication based on domain for the + given game namespace. + operationId: cloud_games_namespaces_toggleNamespaceDomainPublicAuth tags: - CloudGamesNamespaces parameters: @@ -997,49 +1068,44 @@ paths: type: string format: uuid responses: - "200": - description: "" - content: - application/json: - schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -1047,13 +1113,11 @@ paths: application/json: schema: $ref: >- - #/components/schemas/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest - /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development/validate: + #/components/schemas/CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest + /cloud/games/{game_id}/namespaces/{namespace_id}/domains: post: - description: >- - Validates information used to create a new game namespace development - token. - operationId: cloud_games_namespaces_validateGameNamespaceTokenDevelopment + description: Adds a domain to the given game namespace. + operationId: cloud_games_namespaces_addNamespaceDomain tags: - CloudGamesNamespaces parameters: @@ -1070,49 +1134,44 @@ paths: type: string format: uuid responses: - "200": - description: "" - content: - application/json: - schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -1120,11 +1179,11 @@ paths: application/json: schema: $ref: >- - #/components/schemas/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest - /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/public: - post: - description: Creates a public token for the given namespace. - operationId: cloud_games_namespaces_createGameNamespaceTokenPublic + #/components/schemas/CloudGamesNamespacesAddNamespaceDomainRequest + /cloud/games/{game_id}/namespaces/{namespace_id}/domains/{domain}: + delete: + description: Removes a domain from the given game namespace. + operationId: cloud_games_namespaces_removeNamespaceDomain tags: - CloudGamesNamespaces parameters: @@ -1140,55 +1199,56 @@ paths: schema: type: string format: uuid + - name: domain + in: path + description: A valid domain name (no protocol). + required: true + schema: + type: string responses: - "200": - description: "" - content: - application/json: - schema: - $ref: >- - #/components/schemas/CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /cloud/games/{game_id}/namespaces/{namespace_id}/version: - put: - description: Updates the version of a game namespace. - operationId: cloud_games_namespaces_updateGameNamespaceVersion + /cloud/games/{game_id}/namespaces/{namespace_id}/mm-config: + post: + description: Updates matchmaker config for the given game namespace. + operationId: cloud_games_namespaces_updateGameNamespaceMatchmakerConfig tags: - CloudGamesNamespaces parameters: @@ -1205,44 +1265,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -1250,373 +1310,796 @@ paths: application/json: schema: $ref: >- - #/components/schemas/CloudGamesNamespacesUpdateGameNamespaceVersionRequest - /group/groups: + #/components/schemas/CloudGamesNamespacesUpdateGameNamespaceMatchmakerConfigRequest + /cloud/games/{game_id}/namespaces/{namespace_id}/version-history: get: - description: Returns a list of suggested groups. - operationId: group_listSuggested + description: Gets the version history for a given namespace. + operationId: cloud_games_namespaces_GetGameNamespaceVersionHistoryList tags: - - Group + - CloudGamesNamespaces parameters: - - name: watch_index + - name: game_id + in: path + description: A universally unique identifier. + required: true + schema: + type: string + - name: namespace_id + in: path + description: A universally unique identifier. + required: true + schema: + type: string + - name: anchor in: query - description: A query parameter denoting the requests watch index. + description: How many items to offset the search by. required: false schema: type: string + - name: limit + in: query + description: Amount of items to return. Must be between 1 and 32 inclusive. + required: false + schema: + type: integer responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupListSuggestedResponse" - "400": - description: "" + $ref: >- + #/components/schemas/CloudGamesNamespacesGetGameNamespaceVersionHistoryResponse + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 + /cloud/games/{game_id}/namespaces/{namespace_id}/mm-config/validate: post: - description: Creates a new group. - operationId: group_create + description: >- + Validates information used to update a game namespace's matchmaker + config. + operationId: cloud_games_namespaces_validateGameNamespaceMatchmakerConfig tags: - - Group - parameters: [] + - CloudGamesNamespaces + parameters: + - name: game_id + in: path + required: true + schema: + type: string + format: uuid + - name: namespace_id + in: path + required: true + schema: + type: string + format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupCreateResponse" - "400": - description: "" + $ref: >- + #/components/schemas/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigResponse + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/GroupCreateRequest" - /group/groups/avatar-upload/prepare: + $ref: >- + #/components/schemas/CloudGamesNamespacesValidateGameNamespaceMatchmakerConfigRequest + /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development: post: - description: |- - Prepares an avatar image upload. - Complete upload with `rivet.api.group#CompleteAvatarUpload`. - operationId: group_prepareAvatarUpload + description: Creates a development token for the given namespace. + operationId: cloud_games_namespaces_createGameNamespaceTokenDevelopment tags: - - Group - parameters: [] + - CloudGamesNamespaces + parameters: + - name: game_id + in: path + required: true + schema: + type: string + format: uuid + - name: namespace_id + in: path + required: true + schema: + type: string + format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupPrepareAvatarUploadResponse" - "400": - description: "" + $ref: >- + #/components/schemas/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentResponse + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/GroupPrepareAvatarUploadRequest" - /group/groups/profile/validate: + $ref: >- + #/components/schemas/CloudGamesNamespacesCreateGameNamespaceTokenDevelopmentRequest + /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/development/validate: post: description: >- - Validate contents of group profile. Use to provide immediate feedback on - profile changes before committing them. - operationId: group_validateProfile + Validates information used to create a new game namespace development + token. + operationId: cloud_games_namespaces_validateGameNamespaceTokenDevelopment tags: - - Group - parameters: [] + - CloudGamesNamespaces + parameters: + - name: game_id + in: path + required: true + schema: + type: string + format: uuid + - name: namespace_id + in: path + required: true + schema: + type: string + format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupValidateProfileResponse" - "400": - description: "" + $ref: >- + #/components/schemas/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentResponse + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/GroupValidateProfileRequest" - /group/groups/search: - get: - description: Fuzzy search for groups. - operationId: group_search + $ref: >- + #/components/schemas/CloudGamesNamespacesValidateGameNamespaceTokenDevelopmentRequest + /cloud/games/{game_id}/namespaces/{namespace_id}/tokens/public: + post: + description: Creates a public token for the given namespace. + operationId: cloud_games_namespaces_createGameNamespaceTokenPublic tags: - - Group + - CloudGamesNamespaces parameters: - - name: query - in: query - description: The query to match group display names against. + - name: game_id + in: path required: true schema: type: string - - name: anchor - in: query - required: false + format: uuid + - name: namespace_id + in: path + required: true schema: type: string - - name: limit - in: query - description: Unsigned 32 bit integer. - required: false - schema: - type: number - format: double + format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupSearchResponse" - "400": - description: "" + $ref: >- + #/components/schemas/CloudGamesNamespacesCreateGameNamespaceTokenPublicResponse + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /group/groups/{group_id}/avatar-upload/{upload_id}/complete: - post: - description: |- - Completes an avatar image upload. Must be called after the file upload - process completes. - Call `rivet.api.group#PrepareAvatarUpload` first. - operationId: group_completeAvatarUpload + /cloud/games/{game_id}/namespaces/{namespace_id}/version: + put: + description: Updates the version of a game namespace. + operationId: cloud_games_namespaces_updateGameNamespaceVersion tags: - - Group + - CloudGamesNamespaces parameters: - - name: group_id + - name: game_id in: path required: true schema: type: string format: uuid - - name: upload_id + - name: namespace_id in: path required: true schema: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /group/groups/{group_id}/bans: - get: - description: Returns a group's bans. Must have valid permissions to view. - operationId: group_getBans + requestBody: + required: true + content: + application/json: + schema: + $ref: >- + #/components/schemas/CloudGamesNamespacesUpdateGameNamespaceVersionRequest + /group/groups: + get: + description: Returns a list of suggested groups. + operationId: group_listSuggested + tags: + - Group + parameters: + - name: watch_index + in: query + description: A query parameter denoting the requests watch index. + required: false + schema: + type: string + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/GroupListSuggestedResponse' + '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 + post: + description: Creates a new group. + operationId: group_create + tags: + - Group + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/GroupCreateResponse' + '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: + $ref: '#/components/schemas/GroupCreateRequest' + /group/groups/avatar-upload/prepare: + post: + description: |- + Prepares an avatar image upload. + Complete upload with `rivet.api.group#CompleteAvatarUpload`. + operationId: group_prepareAvatarUpload + tags: + - Group + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/GroupPrepareAvatarUploadResponse' + '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: + $ref: '#/components/schemas/GroupPrepareAvatarUploadRequest' + /group/groups/profile/validate: + post: + description: >- + Validate contents of group profile. Use to provide immediate feedback on + profile changes before committing them. + operationId: group_validateProfile + tags: + - Group + parameters: [] + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/GroupValidateProfileResponse' + '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: + $ref: '#/components/schemas/GroupValidateProfileRequest' + /group/groups/search: + get: + description: Fuzzy search for groups. + operationId: group_search + tags: + - Group + parameters: + - name: query + in: query + description: The query to match group display names against. + required: true + schema: + type: string + - name: anchor + in: query + required: false + schema: + type: string + - name: limit + in: query + description: Unsigned 32 bit integer. + required: false + schema: + type: number + format: double + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/GroupSearchResponse' + '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 + /group/groups/{group_id}/avatar-upload/{upload_id}/complete: + post: + description: |- + Completes an avatar image upload. Must be called after the file upload + process completes. + Call `rivet.api.group#PrepareAvatarUpload` first. + operationId: group_completeAvatarUpload + tags: + - Group + parameters: + - name: group_id + in: path + required: true + schema: + type: string + format: uuid + - name: upload_id + in: path + required: true + schema: + type: string + format: uuid + responses: + '204': + description: '' + '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 + /group/groups/{group_id}/bans: + get: + description: Returns a group's bans. Must have valid permissions to view. + operationId: group_getBans tags: - Group parameters: @@ -1648,48 +2131,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupGetBansResponse" - "400": - description: "" + $ref: '#/components/schemas/GroupGetBansResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/bans/{identity_id}: post: @@ -1714,44 +2197,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 delete: description: >- @@ -1774,44 +2257,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/join-requests: get: @@ -1848,48 +2331,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupGetJoinRequestsResponse" - "400": - description: "" + $ref: '#/components/schemas/GroupGetJoinRequestsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/kick/{identity_id}: post: @@ -1913,44 +2396,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/leave: post: @@ -1966,44 +2449,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/members: get: @@ -2040,48 +2523,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupGetMembersResponse" - "400": - description: "" + $ref: '#/components/schemas/GroupGetMembersResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/profile: get: @@ -2103,48 +2586,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupGetProfileResponse" - "400": - description: "" + $ref: '#/components/schemas/GroupGetProfileResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 post: operationId: group_updateProfile @@ -2158,51 +2641,51 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/GroupUpdateProfileRequest" + $ref: '#/components/schemas/GroupUpdateProfileRequest' /group/groups/{group_id}/summary: get: operationId: group_getSummary @@ -2216,48 +2699,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupGetSummaryResponse" - "400": - description: "" + $ref: '#/components/schemas/GroupGetSummaryResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/transfer-owner: post: @@ -2273,51 +2756,51 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/GroupTransferOwnershipRequest" + $ref: '#/components/schemas/GroupTransferOwnershipRequest' /identity/identities: post: description: >- @@ -2346,48 +2829,48 @@ paths: - Identity parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentitySetupResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentitySetupResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -2397,7 +2880,7 @@ paths: type: object properties: existing_identity_token: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' /identity/identities/{identity_id}/profile: get: description: Fetches an identity profile. @@ -2415,50 +2898,50 @@ paths: in: query required: false schema: - $ref: "#/components/schemas/WatchQuery" + $ref: '#/components/schemas/WatchQuery' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityGetProfileResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityGetProfileResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/self/profile: get: @@ -2471,50 +2954,50 @@ paths: in: query required: false schema: - $ref: "#/components/schemas/WatchQuery" + $ref: '#/components/schemas/WatchQuery' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityGetProfileResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityGetProfileResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 post: description: Updates profile of the current identity. @@ -2523,44 +3006,44 @@ paths: - Identity parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -2570,11 +3053,11 @@ paths: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' account_number: - $ref: "#/components/schemas/AccountNumber" + $ref: '#/components/schemas/AccountNumber' bio: - $ref: "#/components/schemas/Bio" + $ref: '#/components/schemas/Bio' /identity/identities/batch/handle: get: description: Fetches a list of identity handles. @@ -2588,48 +3071,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityGetHandlesResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityGetHandlesResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/batch/summary: get: @@ -2644,48 +3127,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityGetSummariesResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityGetSummariesResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/self/profile/validate: post: @@ -2697,44 +3180,44 @@ paths: - Identity parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -2744,11 +3227,11 @@ paths: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' account_number: - $ref: "#/components/schemas/AccountNumber" + $ref: '#/components/schemas/AccountNumber' bio: - $ref: "#/components/schemas/Bio" + $ref: '#/components/schemas/Bio' /identity/identities/search: get: description: Fuzzy search for identities. @@ -2777,48 +3260,48 @@ paths: schema: type: integer responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentitySearchResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentitySearchResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/self/activity: post: @@ -2830,44 +3313,44 @@ paths: - Identity parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -2877,7 +3360,7 @@ paths: type: object properties: game_activity: - $ref: "#/components/schemas/IdentityUpdateGameActivity" + $ref: '#/components/schemas/IdentityUpdateGameActivity' required: - game_activity delete: @@ -2887,44 +3370,44 @@ paths: - Identity parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/identities/self/status: post: @@ -2934,44 +3417,44 @@ paths: - Identity parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -2981,7 +3464,7 @@ paths: type: object properties: status: - $ref: "#/components/schemas/IdentityStatus" + $ref: '#/components/schemas/IdentityStatus' required: - status /identity/identities/{identity_id}/follow: @@ -3000,44 +3483,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 delete: description: Unfollows the given identity. @@ -3052,44 +3535,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/avatar-upload/prepare: post: @@ -3101,48 +3584,48 @@ paths: - Identity parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityPrepareAvatarUploadResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityPrepareAvatarUploadResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -3181,44 +3664,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/self/beta-signup: post: @@ -3230,44 +3713,44 @@ paths: - Identity parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -3305,44 +3788,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -3377,48 +3860,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityListFollowersResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityListFollowersResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/{identity_id}/following: get: @@ -3444,48 +3927,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityListFollowingResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityListFollowingResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/self/friends: get: @@ -3505,48 +3988,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityListFriendsResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityListFriendsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/{identity_id}/mutual-friends: get: @@ -3572,48 +4055,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityListMutualFriendsResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityListMutualFriendsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/self/recent-followers: get: @@ -3630,50 +4113,50 @@ paths: in: query required: false schema: - $ref: "#/components/schemas/WatchQuery" + $ref: '#/components/schemas/WatchQuery' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityListRecentFollowersResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityListRecentFollowersResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/self/recent-followers/{identity_id}/ignore: post: @@ -3688,44 +4171,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/identities/self/delete-request: post: @@ -3734,44 +4217,44 @@ paths: - Identity parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 delete: operationId: identity_unmarkDeletion @@ -3779,44 +4262,44 @@ paths: - Identity parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /kv/entries: get: @@ -3829,7 +4312,7 @@ paths: in: query required: true schema: - $ref: "#/components/schemas/KvKey" + $ref: '#/components/schemas/KvKey' - name: watch_index in: query description: A query parameter denoting the requests watch index. @@ -3843,48 +4326,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/KvGetResponse" - "400": - description: "" + $ref: '#/components/schemas/KvGetResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 put: description: Puts (sets or overwrites) a key-value entry by key. @@ -3893,51 +4376,51 @@ paths: - Kv parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/KvPutRequest" + $ref: '#/components/schemas/KvPutRequest' delete: description: Deletes a key-value entry by key. operationId: kv_delete @@ -3948,7 +4431,7 @@ paths: in: query required: true schema: - $ref: "#/components/schemas/KvKey" + $ref: '#/components/schemas/KvKey' - name: namespace_id in: query required: false @@ -3956,44 +4439,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /kv/entries/list: get: @@ -4006,7 +4489,7 @@ paths: in: query required: true schema: - $ref: "#/components/schemas/KvDirectory" + $ref: '#/components/schemas/KvDirectory' - name: namespace_id in: query required: true @@ -4014,48 +4497,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/KvListResponse" - "400": - description: "" + $ref: '#/components/schemas/KvListResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /kv/entries/batch: get: @@ -4068,7 +4551,7 @@ paths: in: query required: true schema: - $ref: "#/components/schemas/KvKey" + $ref: '#/components/schemas/KvKey' - name: watch_index in: query description: A query parameter denoting the requests watch index. @@ -4082,48 +4565,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/KvGetBatchResponse" - "400": - description: "" + $ref: '#/components/schemas/KvGetBatchResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 put: description: Puts (sets or overwrites) multiple key-value entries by key(s). @@ -4132,51 +4615,51 @@ paths: - Kv parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/KvPutBatchRequest" + $ref: '#/components/schemas/KvPutBatchRequest' delete: description: Deletes multiple key-value entries by key(s). operationId: kv_deleteBatch @@ -4187,7 +4670,7 @@ paths: in: query required: true schema: - $ref: "#/components/schemas/KvKey" + $ref: '#/components/schemas/KvKey' - name: namespace_id in: query required: false @@ -4195,179 +4678,100 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $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 + /datacenters/{datacenter_id}/tls: + get: + operationId: provision_datacenters_getTls tags: - - Module + - ProvisionDatacenters 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 - /datacenters/{datacenter_id}/tls: - get: - operationId: provision_datacenters_getTls - tags: - - ProvisionDatacenters - parameters: - - name: datacenter_id + - name: datacenter_id in: path required: true schema: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ProvisionDatacentersGetTlsResponse" - "400": - description: "" + $ref: '#/components/schemas/ProvisionDatacentersGetTlsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /servers/{ip}: get: @@ -4381,48 +4785,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ProvisionServersGetInfoResponse" - "400": - description: "" + $ref: '#/components/schemas/ProvisionServersGetInfoResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /auth/identity/access-token/complete-verification: post: @@ -4432,44 +4836,44 @@ paths: - AuthIdentityAccessToken parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -4486,56 +4890,56 @@ paths: - AuthIdentityEmail parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: $ref: >- #/components/schemas/AuthIdentityStartEmailVerificationResponse - "400": - description: "" + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/AuthIdentityStartEmailVerificationRequest" + $ref: '#/components/schemas/AuthIdentityStartEmailVerificationRequest' /auth/identity/email/complete-verification: post: description: Completes the email verification process. @@ -4544,49 +4948,49 @@ paths: - AuthIdentityEmail parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: $ref: >- #/components/schemas/AuthIdentityCompleteEmailVerificationResponse - "400": - description: "" + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -4603,55 +5007,55 @@ paths: - AuthTokens parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/AuthRefreshIdentityTokenResponse" - "400": - description: "" + $ref: '#/components/schemas/AuthRefreshIdentityTokenResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/AuthRefreshIdentityTokenRequest" + $ref: '#/components/schemas/AuthRefreshIdentityTokenRequest' /cloud/auth/inspect: get: description: Returns information about the current authenticated agent. @@ -4660,48 +5064,48 @@ paths: - CloudAuth parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudInspectResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudInspectResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/devices/links: post: @@ -4710,48 +5114,48 @@ paths: - CloudDevicesLinks parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudDevicesPrepareDeviceLinkResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudDevicesPrepareDeviceLinkResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' get: operationId: cloud_devices_links_get tags: @@ -4761,55 +5165,55 @@ paths: in: query required: true schema: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' - name: watch_index in: query required: false schema: - $ref: "#/components/schemas/WatchQuery" + $ref: '#/components/schemas/WatchQuery' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudDevicesGetDeviceLinkResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudDevicesGetDeviceLinkResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' /cloud/devices/links/complete: post: operationId: cloud_devices_links_complete @@ -4817,50 +5221,50 @@ paths: - CloudDevicesLinks parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/CloudDevicesCompleteDeviceLinkRequest" + $ref: '#/components/schemas/CloudDevicesCompleteDeviceLinkRequest' /cloud/games/{game_id}/avatars: get: description: Lists custom avatars for the given game. @@ -4875,48 +5279,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesListGameCustomAvatarsResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesListGameCustomAvatarsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/prepare: post: @@ -4934,56 +5338,56 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: $ref: >- #/components/schemas/CloudGamesPrepareCustomAvatarUploadResponse - "400": - description: "" + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/CloudGamesPrepareCustomAvatarUploadRequest" + $ref: '#/components/schemas/CloudGamesPrepareCustomAvatarUploadRequest' /cloud/games/{game_id}/avatar-upload/{upload_id}/complete: post: description: >- @@ -5006,44 +5410,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/builds: get: @@ -5059,48 +5463,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesListGameBuildsResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesListGameBuildsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 post: description: Creates a new game build for the given game. @@ -5115,55 +5519,55 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesCreateGameBuildResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesCreateGameBuildResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/CloudGamesCreateGameBuildRequest" + $ref: '#/components/schemas/CloudGamesCreateGameBuildRequest' /cloud/games/{game_id}/cdn/sites: get: description: Lists CDN sites for a game. @@ -5178,541 +5582,54 @@ paths: type: string format: uuid responses: - "200": - description: "" - content: - application/json: - schema: - $ref: "#/components/schemas/CloudGamesListGameCdnSitesResponse" - "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 - post: - description: Creates a new CDN site for the given game. - operationId: cloud_games_cdn_createGameCdnSite - tags: - - CloudGamesCdn - parameters: - - name: game_id - in: path - required: true - schema: - type: string - format: uuid - responses: - "200": - description: "" - content: - application/json: - schema: - $ref: "#/components/schemas/CloudGamesCreateGameCdnSiteResponse" - "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: - $ref: "#/components/schemas/CloudGamesCreateGameCdnSiteRequest" - /cloud/games: - get: - description: >- - Returns a list of games in which the current identity is a group member - of its development team. - operationId: cloud_games_games_getGames - tags: - - CloudGamesGames - parameters: - - name: watch_index - in: query - description: A query parameter denoting the requests watch index. - required: false - schema: - type: string - responses: - "200": - description: "" - content: - application/json: - schema: - $ref: "#/components/schemas/CloudGamesGetGamesResponse" - "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 - post: - description: Creates a new game. - operationId: cloud_games_games_createGame - tags: - - CloudGamesGames - parameters: [] - responses: - "200": - description: "" - content: - application/json: - schema: - $ref: "#/components/schemas/CloudGamesCreateGameResponse" - "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: - $ref: "#/components/schemas/CloudGamesCreateGameRequest" - /cloud/games/validate: - post: - description: Validates information used to create a new game. - operationId: cloud_games_games_validateGame - tags: - - CloudGamesGames - parameters: [] - responses: - "200": - description: "" - content: - application/json: - schema: - $ref: "#/components/schemas/CloudGamesValidateGameResponse" - "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: - $ref: "#/components/schemas/CloudGamesValidateGameRequest" - /cloud/games/{game_id}: - get: - description: Returns a game by its game id. - operationId: cloud_games_games_getGameById - tags: - - CloudGamesGames - parameters: - - name: game_id - in: path - required: true - schema: - type: string - format: uuid - - name: watch_index - in: query - description: A query parameter denoting the requests watch index. - required: false - schema: - type: string - responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesGetGameByIdResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesListGameCdnSitesResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 - /cloud/games/{game_id}/banner-upload/prepare: - post: - description: Prepares a game banner image upload. - operationId: cloud_games_games_gameBannerUploadPrepare - tags: - - CloudGamesGames - parameters: - - name: game_id - in: path - required: true - schema: - type: string - format: uuid - responses: - "200": - description: "" - content: - application/json: - schema: - $ref: "#/components/schemas/CloudGamesGameBannerUploadPrepareResponse" - "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: - $ref: "#/components/schemas/CloudGamesGameBannerUploadPrepareRequest" - /cloud/games/{game_id}/banner-upload/{upload_id}/complete: - post: - description: >- - Completes an game banner image upload. Must be called after the file - upload process completes. - operationId: cloud_games_games_gameBannerUploadComplete - tags: - - CloudGamesGames - parameters: - - name: game_id - in: path - required: true - schema: - type: string - format: uuid - - name: upload_id - in: path - required: true - schema: - type: string - format: uuid - responses: - "204": - description: "" - "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 - /cloud/games/{game_id}/logo-upload/prepare: - post: - description: Prepares a game logo image upload. - operationId: cloud_games_games_gameLogoUploadPrepare - tags: - - CloudGamesGames - parameters: - - name: game_id - in: path - required: true - schema: - type: string - format: uuid - responses: - "200": - description: "" - content: - application/json: - schema: - $ref: "#/components/schemas/CloudGamesGameLogoUploadPrepareResponse" - "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: - $ref: "#/components/schemas/CloudGamesGameLogoUploadPrepareRequest" - /cloud/games/{game_id}/logo-upload/{upload_id}/complete: post: - description: >- - Completes a game logo image upload. Must be called after the file upload - process completes. - operationId: cloud_games_games_gameLogoUploadComplete + description: Creates a new CDN site for the given game. + operationId: cloud_games_cdn_createGameCdnSite tags: - - CloudGamesGames + - CloudGamesCdn parameters: - name: game_id in: path @@ -5720,52 +5637,56 @@ paths: schema: type: string format: uuid - - name: upload_id - in: path - required: true - schema: - type: string - format: uuid responses: - "204": - description: "" - "400": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/CloudGamesCreateGameCdnSiteResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorBody' security: *ref_0 + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CloudGamesCreateGameCdnSiteRequest' /cloud/games/{game_id}/matchmaker/lobbies/export-history: post: description: Exports lobby history over a given query time span. @@ -5780,49 +5701,49 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: $ref: >- #/components/schemas/CloudGamesExportMatchmakerLobbyHistoryResponse - "400": - description: "" + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -5851,48 +5772,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesDeleteMatchmakerLobbyResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesDeleteMatchmakerLobbyResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs: get: @@ -5917,7 +5838,7 @@ paths: in: query required: true schema: - $ref: "#/components/schemas/CloudGamesLogStream" + $ref: '#/components/schemas/CloudGamesLogStream' - name: watch_index in: query description: A query parameter denoting the requests watch index. @@ -5925,48 +5846,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesGetLobbyLogsResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesGetLobbyLogsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs/export: post: @@ -5988,55 +5909,55 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesExportLobbyLogsResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesExportLobbyLogsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/CloudGamesExportLobbyLogsRequest" + $ref: '#/components/schemas/CloudGamesExportLobbyLogsRequest' /cloud/games/{game_id}/namespaces/{namespace_id}/analytics/matchmaker/live: get: description: Returns live information about all active lobbies for a given namespace. @@ -6057,49 +5978,49 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: $ref: >- #/components/schemas/CloudGamesNamespacesGetAnalyticsMatchmakerLiveResponse - "400": - description: "" + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies: get: @@ -6125,51 +6046,51 @@ paths: description: Returns lobbies created before this timestamp. required: false schema: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: $ref: >- #/components/schemas/CloudGamesNamespacesListNamespaceLobbiesResponse - "400": - description: "" + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/namespaces/{namespace_id}/logs/lobbies/{lobby_id}: get: @@ -6197,49 +6118,49 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: $ref: >- #/components/schemas/CloudGamesNamespacesGetNamespaceLobbyResponse - "400": - description: "" + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/tokens/cloud: post: @@ -6255,48 +6176,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesCreateCloudTokenResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesCreateCloudTokenResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/versions: post: @@ -6312,55 +6233,55 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesCreateGameVersionResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesCreateGameVersionResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/CloudGamesCreateGameVersionRequest" + $ref: '#/components/schemas/CloudGamesCreateGameVersionRequest' /cloud/games/{game_id}/versions/reserve-name: post: description: >- @@ -6378,48 +6299,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesReserveVersionNameResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesReserveVersionNameResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/games/{game_id}/versions/validate: post: @@ -6435,55 +6356,55 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesValidateGameVersionResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesValidateGameVersionResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/CloudGamesValidateGameVersionRequest" + $ref: '#/components/schemas/CloudGamesValidateGameVersionRequest' /cloud/games/{game_id}/versions/{version_id}: get: description: Returns a game version by its version ID. @@ -6504,48 +6425,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGamesGetGameVersionByIdResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGamesGetGameVersionByIdResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/groups/validate: post: @@ -6555,55 +6476,55 @@ paths: - CloudGroups parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudValidateGroupResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudValidateGroupResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/CloudValidateGroupRequest" + $ref: '#/components/schemas/CloudValidateGroupRequest' /cloud/rays/{ray_id}/perf: get: description: Returns performance information about a Rivet Ray. @@ -6618,48 +6539,48 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGetRayPerfLogsResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGetRayPerfLogsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/region-tiers: get: @@ -6669,48 +6590,48 @@ paths: - CloudTiers parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/CloudGetRegionTiersResponse" - "400": - description: "" + $ref: '#/components/schemas/CloudGetRegionTiersResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /cloud/uploads/{upload_id}/complete: post: @@ -6726,44 +6647,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/invites/{group_invite_code}: get: @@ -6781,48 +6702,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupGetInviteResponse" - "400": - description: "" + $ref: '#/components/schemas/GroupGetInviteResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/invites/{group_invite_code}/consume: post: @@ -6838,48 +6759,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupConsumeInviteResponse" - "400": - description: "" + $ref: '#/components/schemas/GroupConsumeInviteResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/invites: post: @@ -6897,55 +6818,55 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/GroupCreateInviteResponse" - "400": - description: "" + $ref: '#/components/schemas/GroupCreateInviteResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/GroupCreateInviteRequest" + $ref: '#/components/schemas/GroupCreateInviteRequest' /group/groups/{group_id}/join-request: post: description: Requests to join a group. @@ -6960,44 +6881,44 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /group/groups/{group_id}/join-request/{identity_id}: post: @@ -7019,51 +6940,51 @@ paths: type: string format: uuid responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/GroupResolveJoinRequestRequest" + $ref: '#/components/schemas/GroupResolveJoinRequestRequest' /identity/activities: get: description: Returns an overview of all players currently online or in game. @@ -7075,50 +6996,50 @@ paths: in: query required: false schema: - $ref: "#/components/schemas/WatchQuery" + $ref: '#/components/schemas/WatchQuery' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityListActivitiesResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityListActivitiesResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/events/live: get: @@ -7131,50 +7052,50 @@ paths: in: query required: false schema: - $ref: "#/components/schemas/WatchQuery" + $ref: '#/components/schemas/WatchQuery' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityWatchEventsResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityWatchEventsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/game-links: post: @@ -7216,48 +7137,48 @@ paths: - IdentityLinks parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityPrepareGameLinkResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityPrepareGameLinkResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 get: description: >- @@ -7272,55 +7193,55 @@ paths: in: query required: true schema: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' - name: watch_index in: query required: false schema: - $ref: "#/components/schemas/WatchQuery" + $ref: '#/components/schemas/WatchQuery' responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/IdentityGetGameLinkResponse" - "400": - description: "" + $ref: '#/components/schemas/IdentityGetGameLinkResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /identity/game-links/complete: post: @@ -7332,51 +7253,51 @@ paths: - IdentityLinks parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/IdentityCompleteGameLinkRequest" + $ref: '#/components/schemas/IdentityCompleteGameLinkRequest' /identity/game-links/cancel: post: description: >- @@ -7387,51 +7308,51 @@ paths: - IdentityLinks parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/IdentityCancelGameLinkRequest" + $ref: '#/components/schemas/IdentityCancelGameLinkRequest' /job/runs/cleanup: post: operationId: job_run_cleanup @@ -7439,44 +7360,44 @@ paths: - JobRun parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /matchmaker/lobbies/ready: post: @@ -7497,44 +7418,44 @@ paths: - MatchmakerLobbies parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /matchmaker/lobbies/closed: put: @@ -7566,44 +7487,44 @@ paths: - MatchmakerLobbies parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -7638,44 +7559,44 @@ paths: - MatchmakerLobbies parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: false @@ -7710,47 +7631,47 @@ paths: type: string format: uuid responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: {} - "400": - description: "" + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /matchmaker/lobbies/find: post: @@ -7787,48 +7708,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/MatchmakerFindLobbyResponse" - "400": - description: "" + $ref: '#/components/schemas/MatchmakerFindLobbyResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -7854,7 +7775,7 @@ paths: max_players: type: integer captcha: - $ref: "#/components/schemas/CaptchaConfig" + $ref: '#/components/schemas/CaptchaConfig' verification_data: {} required: - game_modes @@ -7888,48 +7809,48 @@ paths: - MatchmakerLobbies parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/MatchmakerJoinLobbyResponse" - "400": - description: "" + $ref: '#/components/schemas/MatchmakerJoinLobbyResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -7941,7 +7862,7 @@ paths: lobby_id: type: string captcha: - $ref: "#/components/schemas/CaptchaConfig" + $ref: '#/components/schemas/CaptchaConfig' verification_data: {} required: - lobby_id @@ -7971,48 +7892,48 @@ paths: - MatchmakerLobbies parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/MatchmakerCreateLobbyResponse" - "400": - description: "" + $ref: '#/components/schemas/MatchmakerCreateLobbyResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -8026,7 +7947,7 @@ paths: region: type: string publicity: - $ref: "#/components/schemas/MatchmakerCustomLobbyPublicity" + $ref: '#/components/schemas/MatchmakerCustomLobbyPublicity' tags: type: object additionalProperties: @@ -8035,7 +7956,7 @@ paths: type: integer lobby_config: {} captcha: - $ref: "#/components/schemas/CaptchaConfig" + $ref: '#/components/schemas/CaptchaConfig' verification_data: {} required: - game_mode @@ -8070,48 +7991,48 @@ paths: schema: type: boolean responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/MatchmakerListLobbiesResponse" - "400": - description: "" + $ref: '#/components/schemas/MatchmakerListLobbiesResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /matchmaker/players/connected: post: @@ -8193,44 +8114,44 @@ paths: - MatchmakerPlayers parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -8254,44 +8175,44 @@ paths: - MatchmakerPlayers parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true @@ -8312,48 +8233,48 @@ paths: - MatchmakerPlayers parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/MatchmakerGetStatisticsResponse" - "400": - description: "" + $ref: '#/components/schemas/MatchmakerGetStatisticsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /matchmaker/regions: get: @@ -8369,48 +8290,48 @@ paths: - MatchmakerRegions parameters: [] responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/MatchmakerListRegionsResponse" - "400": - description: "" + $ref: '#/components/schemas/MatchmakerListRegionsResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /portal/games/{game_name_id}/profile: get: @@ -8436,48 +8357,48 @@ paths: schema: type: string responses: - "200": - description: "" + '200': + description: '' content: application/json: schema: - $ref: "#/components/schemas/PortalGetGameProfileResponse" - "400": - description: "" + $ref: '#/components/schemas/PortalGetGameProfileResponse' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 /portal/notifications/register: post: @@ -8487,51 +8408,51 @@ paths: - PortalNotifications parameters: [] responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 requestBody: required: true content: application/json: schema: - $ref: "#/components/schemas/PortalRegisterNotificationsRequest" + $ref: '#/components/schemas/PortalRegisterNotificationsRequest' delete: description: Unregister push notification for the current identity. operationId: portal_notifications_unregisterNotifications @@ -8543,46 +8464,46 @@ paths: description: Represents a value for which notification service to unregister. required: true schema: - $ref: "#/components/schemas/PortalNotificationUnregisterService" + $ref: '#/components/schemas/PortalNotificationUnregisterService' responses: - "204": - description: "" - "400": - description: "" + '204': + description: '' + '400': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "403": - description: "" + $ref: '#/components/schemas/ErrorBody' + '403': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "404": - description: "" + $ref: '#/components/schemas/ErrorBody' + '404': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "408": - description: "" + $ref: '#/components/schemas/ErrorBody' + '408': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "429": - description: "" + $ref: '#/components/schemas/ErrorBody' + '429': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" - "500": - description: "" + $ref: '#/components/schemas/ErrorBody' + '500': + description: '' content: application/json: schema: - $ref: "#/components/schemas/ErrorBody" + $ref: '#/components/schemas/ErrorBody' security: *ref_0 components: schemas: @@ -8695,17 +8616,17 @@ components: type: object properties: cluster: - $ref: "#/components/schemas/CloudBootstrapCluster" + $ref: '#/components/schemas/CloudBootstrapCluster' access: - $ref: "#/components/schemas/CloudBootstrapAccess" + $ref: '#/components/schemas/CloudBootstrapAccess' domains: - $ref: "#/components/schemas/CloudBootstrapDomains" + $ref: '#/components/schemas/CloudBootstrapDomains' origins: - $ref: "#/components/schemas/CloudBootstrapOrigins" + $ref: '#/components/schemas/CloudBootstrapOrigins' captcha: - $ref: "#/components/schemas/CloudBootstrapCaptcha" + $ref: '#/components/schemas/CloudBootstrapCaptcha' login_methods: - $ref: "#/components/schemas/CloudBootstrapLoginMethods" + $ref: '#/components/schemas/CloudBootstrapLoginMethods' required: - cluster - access @@ -8749,7 +8670,7 @@ components: type: object properties: turnstile: - $ref: "#/components/schemas/CloudBootstrapCaptchaTurnstile" + $ref: '#/components/schemas/CloudBootstrapCaptchaTurnstile' CloudBootstrapCaptchaTurnstile: type: object properties: @@ -8767,18 +8688,143 @@ components: required: - access_token - email + CloudGamesGetGamesResponse: + type: object + properties: + games: + type: array + items: + $ref: '#/components/schemas/GameSummary' + description: A list of game summaries. + groups: + type: array + items: + $ref: '#/components/schemas/GroupSummary' + description: A list of group summaries. + watch: + $ref: '#/components/schemas/WatchResponse' + required: + - games + - groups + - watch + CloudGamesCreateGameRequest: + type: object + properties: + name_id: + $ref: '#/components/schemas/Identifier' + description: '**Deprecated**' + display_name: + $ref: '#/components/schemas/DisplayName' + developer_group_id: + type: string + format: uuid + required: + - display_name + - developer_group_id + CloudGamesCreateGameResponse: + type: object + properties: + game_id: + type: string + format: uuid + required: + - game_id + CloudGamesValidateGameRequest: + type: object + properties: + display_name: + $ref: '#/components/schemas/DisplayName' + name_id: + $ref: '#/components/schemas/Identifier' + description: '**Deprecated**' + required: + - display_name + CloudGamesValidateGameResponse: + type: object + properties: + errors: + type: array + items: + $ref: '#/components/schemas/ValidationError' + description: A list of validation errors. + required: + - errors + CloudGamesGetGameByIdResponse: + type: object + properties: + game: + $ref: '#/components/schemas/CloudGameFull' + watch: + $ref: '#/components/schemas/WatchResponse' + required: + - game + - watch + CloudGamesGameBannerUploadPrepareRequest: + type: object + properties: + path: + type: string + description: The path/filename of the game banner. + mime: + type: string + description: The MIME type of the game banner. + content_length: + type: integer + format: int64 + description: Unsigned 64 bit integer. + required: + - path + - content_length + CloudGamesGameBannerUploadPrepareResponse: + type: object + properties: + upload_id: + type: string + format: uuid + presigned_request: + $ref: '#/components/schemas/UploadPresignedRequest' + required: + - upload_id + - presigned_request + CloudGamesGameLogoUploadPrepareRequest: + type: object + properties: + path: + type: string + description: The path/filename of the game logo. + mime: + type: string + description: The MIME type of the game logo. + content_length: + type: integer + format: int64 + description: Unsigned 64 bit integer. + required: + - path + - content_length + CloudGamesGameLogoUploadPrepareResponse: + type: object + properties: + upload_id: + type: string + format: uuid + presigned_request: + $ref: '#/components/schemas/UploadPresignedRequest' + required: + - upload_id + - presigned_request CloudGamesNamespacesInspectResponse: type: object properties: agent: - $ref: "#/components/schemas/CloudAuthAgent" + $ref: '#/components/schemas/CloudAuthAgent' required: - agent CloudGamesNamespacesCreateGameNamespaceRequest: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' version_id: type: string format: uuid @@ -8805,7 +8851,7 @@ components: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' name_id: type: string description: >- @@ -8822,7 +8868,7 @@ components: errors: type: array items: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/schemas/ValidationError' description: A list of validation errors. required: - errors @@ -8830,7 +8876,7 @@ components: type: object properties: namespace: - $ref: "#/components/schemas/CloudNamespaceFull" + $ref: '#/components/schemas/CloudNamespaceFull' required: - namespace CloudGamesNamespacesUpdateNamespaceCdnAuthUserRequest: @@ -8851,7 +8897,7 @@ components: type: object properties: auth_type: - $ref: "#/components/schemas/CloudCdnAuthType" + $ref: '#/components/schemas/CloudCdnAuthType' required: - auth_type CloudGamesNamespacesToggleNamespaceDomainPublicAuthRequest: @@ -8888,7 +8934,7 @@ components: versions: type: array items: - $ref: "#/components/schemas/CloudNamespaceVersion" + $ref: '#/components/schemas/CloudNamespaceVersion' description: A list of previously deployed namespace versions. required: - versions @@ -8910,7 +8956,7 @@ components: errors: type: array items: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/schemas/ValidationError' description: A list of validation errors. required: - errors @@ -8923,7 +8969,7 @@ components: ports: type: object additionalProperties: - $ref: "#/components/schemas/CloudMatchmakerDevelopmentPort" + $ref: '#/components/schemas/CloudMatchmakerDevelopmentPort' lobby_ports: type: array items: @@ -8968,7 +9014,7 @@ components: errors: type: array items: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/schemas/ValidationError' description: A list of validation errors. required: - errors @@ -9003,15 +9049,15 @@ components: additionalProperties: type: string engine: - $ref: "#/components/schemas/CloudVersionEngineConfig" + $ref: '#/components/schemas/CloudVersionEngineConfig' cdn: - $ref: "#/components/schemas/CloudVersionCdnConfig" + $ref: '#/components/schemas/CloudVersionCdnConfig' matchmaker: - $ref: "#/components/schemas/CloudVersionMatchmakerConfig" + $ref: '#/components/schemas/CloudVersionMatchmakerConfig' kv: - $ref: "#/components/schemas/CloudVersionKvConfig" + $ref: '#/components/schemas/CloudVersionKvConfig' identity: - $ref: "#/components/schemas/CloudVersionIdentityConfig" + $ref: '#/components/schemas/CloudVersionIdentityConfig' CloudVersionFull: type: object description: A full version. @@ -9020,11 +9066,11 @@ components: type: string format: uuid create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' config: - $ref: "#/components/schemas/CloudVersionConfig" + $ref: '#/components/schemas/CloudVersionConfig' required: - version_id - create_ts @@ -9038,9 +9084,9 @@ components: type: string format: uuid create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' required: - version_id - create_ts @@ -9066,7 +9112,7 @@ components: routes: type: array items: - $ref: "#/components/schemas/CloudVersionCdnRoute" + $ref: '#/components/schemas/CloudVersionCdnRoute' description: Multiple CDN version routes. CloudVersionCdnRoute: type: object @@ -9079,7 +9125,7 @@ components: middlewares: type: array items: - $ref: "#/components/schemas/CloudVersionCdnMiddleware" + $ref: '#/components/schemas/CloudVersionCdnMiddleware' description: Multiple CDN version middleware. required: - glob @@ -9089,21 +9135,21 @@ components: type: object properties: kind: - $ref: "#/components/schemas/CloudVersionCdnMiddlewareKind" + $ref: '#/components/schemas/CloudVersionCdnMiddlewareKind' required: - kind CloudVersionCdnMiddlewareKind: type: object properties: custom_headers: - $ref: "#/components/schemas/CloudVersionCdnCustomHeadersMiddleware" + $ref: '#/components/schemas/CloudVersionCdnCustomHeadersMiddleware' CloudVersionCdnCustomHeadersMiddleware: type: object properties: headers: type: array items: - $ref: "#/components/schemas/CloudVersionCdnHeader" + $ref: '#/components/schemas/CloudVersionCdnHeader' required: - headers CloudVersionCdnHeader: @@ -9120,15 +9166,15 @@ components: type: object properties: unity: - $ref: "#/components/schemas/CloudVersionEngineUnityConfig" + $ref: '#/components/schemas/CloudVersionEngineUnityConfig' unreal: - $ref: "#/components/schemas/CloudVersionEngineUnrealConfig" + $ref: '#/components/schemas/CloudVersionEngineUnrealConfig' godot: - $ref: "#/components/schemas/CloudVersionEngineGodotConfig" + $ref: '#/components/schemas/CloudVersionEngineGodotConfig' html5: - $ref: "#/components/schemas/CloudVersionEngineHtml5Config" + $ref: '#/components/schemas/CloudVersionEngineHtml5Config' custom: - $ref: "#/components/schemas/CloudVersionEngineCustomConfig" + $ref: '#/components/schemas/CloudVersionEngineCustomConfig' CloudVersionIdentityConfig: type: object description: |- @@ -9139,28 +9185,28 @@ components: type: array items: type: string - description: "**Deprecated**" + description: '**Deprecated**' avatars: type: array items: type: string format: uuid - description: "**Deprecated**" + description: '**Deprecated**' custom_display_names: type: array items: - $ref: "#/components/schemas/CloudVersionIdentityCustomDisplayName" - description: "**Deprecated**" + $ref: '#/components/schemas/CloudVersionIdentityCustomDisplayName' + description: '**Deprecated**' custom_avatars: type: array items: - $ref: "#/components/schemas/CloudVersionIdentityCustomAvatar" - description: "**Deprecated**" + $ref: '#/components/schemas/CloudVersionIdentityCustomAvatar' + description: '**Deprecated**' CloudVersionIdentityCustomDisplayName: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' required: - display_name CloudVersionIdentityCustomAvatar: @@ -9182,17 +9228,17 @@ components: game_modes: type: object additionalProperties: - $ref: "#/components/schemas/CloudVersionMatchmakerGameMode" + $ref: '#/components/schemas/CloudVersionMatchmakerGameMode' description: A list of game modes. captcha: - $ref: "#/components/schemas/CloudVersionMatchmakerCaptcha" + $ref: '#/components/schemas/CloudVersionMatchmakerCaptcha' dev_hostname: type: string description: _Configures Rivet CLI behavior. Has no effect on server behavior._ regions: type: object additionalProperties: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeRegion" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeRegion' max_players: type: integer max_players_direct: @@ -9200,15 +9246,15 @@ components: max_players_party: type: integer docker: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeRuntimeDocker" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeRuntimeDocker' tier: type: string idle_lobbies: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeIdleLobbiesConfig" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeIdleLobbiesConfig' lobby_groups: type: array items: - $ref: "#/components/schemas/CloudVersionMatchmakerLobbyGroup" + $ref: '#/components/schemas/CloudVersionMatchmakerLobbyGroup' description: |- **Deprecated: use `game_modes` instead** A list of game modes. @@ -9218,10 +9264,10 @@ components: groups: type: array items: - $ref: "#/components/schemas/GroupSummary" + $ref: '#/components/schemas/GroupSummary' description: A list of group summaries. watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - groups - watch @@ -9229,7 +9275,7 @@ components: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' required: - display_name GroupCreateResponse: @@ -9263,7 +9309,7 @@ components: type: string format: uuid presigned_request: - $ref: "#/components/schemas/UploadPresignedRequest" + $ref: '#/components/schemas/UploadPresignedRequest' required: - upload_id - presigned_request @@ -9271,18 +9317,18 @@ components: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' bio: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' publicity: - $ref: "#/components/schemas/GroupPublicity" + $ref: '#/components/schemas/GroupPublicity' GroupValidateProfileResponse: type: object properties: errors: type: array items: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/schemas/ValidationError' description: A list of validation errors. required: - errors @@ -9292,7 +9338,7 @@ components: groups: type: array items: - $ref: "#/components/schemas/GroupHandle" + $ref: '#/components/schemas/GroupHandle' description: A list of group handles. anchor: type: string @@ -9304,13 +9350,13 @@ components: banned_identities: type: array items: - $ref: "#/components/schemas/GroupBannedIdentity" + $ref: '#/components/schemas/GroupBannedIdentity' description: A list of banned group members. anchor: type: string description: The pagination anchor. watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - banned_identities - watch @@ -9320,13 +9366,13 @@ components: join_requests: type: array items: - $ref: "#/components/schemas/GroupJoinRequest" + $ref: '#/components/schemas/GroupJoinRequest' description: A list of group join requests. anchor: type: string description: The pagination anchor. watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - join_requests - watch @@ -9336,13 +9382,13 @@ components: members: type: array items: - $ref: "#/components/schemas/GroupMember" + $ref: '#/components/schemas/GroupMember' description: A list of group members. anchor: type: string description: The pagination anchor. watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - members - watch @@ -9350,9 +9396,9 @@ components: type: object properties: group: - $ref: "#/components/schemas/GroupProfile" + $ref: '#/components/schemas/GroupProfile' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - group - watch @@ -9360,17 +9406,17 @@ components: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' bio: type: string description: Detailed information about a profile. publicity: - $ref: "#/components/schemas/GroupPublicity" + $ref: '#/components/schemas/GroupPublicity' GroupGetSummaryResponse: type: object properties: group: - $ref: "#/components/schemas/GroupSummary" + $ref: '#/components/schemas/GroupSummary' required: - group GroupTransferOwnershipRequest: @@ -9387,7 +9433,7 @@ components: type: object properties: identity_token: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' description: >- Token used to authenticate the identity. @@ -9410,9 +9456,9 @@ components: If this token is compromised, anyone with access to this token has control of the identity. identity_token_expire_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' identity: - $ref: "#/components/schemas/IdentityProfile" + $ref: '#/components/schemas/IdentityProfile' description: Information about the identity that was just authenticated. game_id: type: string @@ -9426,9 +9472,9 @@ components: type: object properties: identity: - $ref: "#/components/schemas/IdentityProfile" + $ref: '#/components/schemas/IdentityProfile' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - identity - watch @@ -9438,9 +9484,9 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - identities - watch @@ -9450,9 +9496,9 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentitySummary" + $ref: '#/components/schemas/IdentitySummary' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - identities - watch @@ -9462,7 +9508,7 @@ components: errors: type: array items: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/schemas/ValidationError' required: - errors IdentitySearchResponse: @@ -9471,7 +9517,7 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' anchor: type: string description: The pagination anchor. @@ -9484,7 +9530,7 @@ components: type: string format: uuid presigned_request: - $ref: "#/components/schemas/UploadPresignedRequest" + $ref: '#/components/schemas/UploadPresignedRequest' required: - upload_id - presigned_request @@ -9494,11 +9540,11 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' anchor: type: string watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - identities - watch @@ -9508,11 +9554,11 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' anchor: type: string watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - identities - watch @@ -9522,11 +9568,11 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' anchor: type: string watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - identities - watch @@ -9536,11 +9582,11 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' anchor: type: string watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - identities - watch @@ -9550,7 +9596,7 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' anchor: type: string required: @@ -9559,14 +9605,14 @@ components: type: object properties: value: - $ref: "#/components/schemas/KvValue" + $ref: '#/components/schemas/KvValue' deleted: type: boolean description: >- Whether or not the entry has been deleted. Only set when watching this endpoint. watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - value - watch @@ -9577,9 +9623,9 @@ components: type: string format: uuid key: - $ref: "#/components/schemas/KvKey" + $ref: '#/components/schemas/KvKey' value: - $ref: "#/components/schemas/KvValue" + $ref: '#/components/schemas/KvValue' required: - key - value @@ -9589,7 +9635,7 @@ components: entries: type: array items: - $ref: "#/components/schemas/KvEntry" + $ref: '#/components/schemas/KvEntry' required: - entries KvGetBatchResponse: @@ -9598,9 +9644,9 @@ components: entries: type: array items: - $ref: "#/components/schemas/KvEntry" + $ref: '#/components/schemas/KvEntry' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - entries - watch @@ -9613,15 +9659,9 @@ components: entries: type: array items: - $ref: "#/components/schemas/KvPutEntry" + $ref: '#/components/schemas/KvPutEntry' required: - entries - ModuleCallResponse: - type: object - properties: - data: {} - required: - - data ProvisionDatacentersGetTlsResponse: type: object properties: @@ -9764,7 +9804,7 @@ components: type: object properties: access_token: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' required: - access_token AuthIdentityStartEmailVerificationRequest: @@ -9773,7 +9813,7 @@ components: email: type: string captcha: - $ref: "#/components/schemas/CaptchaConfig" + $ref: '#/components/schemas/CaptchaConfig' game_id: type: string format: uuid @@ -9803,7 +9843,7 @@ components: type: object properties: status: - $ref: "#/components/schemas/AuthCompleteStatus" + $ref: '#/components/schemas/AuthCompleteStatus' required: - status AuthRefreshIdentityTokenRequest: @@ -9841,9 +9881,9 @@ components: description: Methods to verify a captcha properties: hcaptcha: - $ref: "#/components/schemas/CaptchaConfigHcaptcha" + $ref: '#/components/schemas/CaptchaConfigHcaptcha' turnstile: - $ref: "#/components/schemas/CaptchaConfigTurnstile" + $ref: '#/components/schemas/CaptchaConfigTurnstile' CaptchaConfigHcaptcha: type: object description: Captcha configuration. @@ -9864,7 +9904,7 @@ components: type: object properties: agent: - $ref: "#/components/schemas/CloudAuthAgent" + $ref: '#/components/schemas/CloudAuthAgent' required: - agent CloudSvcPerf: @@ -9875,9 +9915,7 @@ components: type: string description: The name of the service. ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' duration: type: integer format: int64 @@ -9888,12 +9926,12 @@ components: spans: type: array items: - $ref: "#/components/schemas/CloudLogsPerfSpan" + $ref: '#/components/schemas/CloudLogsPerfSpan' description: A list of performance spans. marks: type: array items: - $ref: "#/components/schemas/CloudLogsPerfMark" + $ref: '#/components/schemas/CloudLogsPerfMark' description: A list of performance marks. required: - svc_name @@ -9909,9 +9947,9 @@ components: type: string description: The label given to this performance span. start_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' finish_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' req_id: type: string format: uuid @@ -9926,7 +9964,7 @@ components: type: string description: The label given to this performance mark. ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' ray_id: type: string format: uuid @@ -9957,7 +9995,7 @@ components: type: string format: uuid create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' is_ready: type: boolean description: Whether or not this lobby is ready. @@ -10021,13 +10059,13 @@ components: type: string format: uuid create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' start_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' ready_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' status: - $ref: "#/components/schemas/CloudLogsLobbyStatus" + $ref: '#/components/schemas/CloudLogsLobbyStatus' required: - lobby_id - namespace_id @@ -10040,9 +10078,9 @@ components: description: A union representing the state of a lobby. properties: running: - $ref: "#/components/schemas/EmptyObject" + $ref: '#/components/schemas/EmptyObject' stopped: - $ref: "#/components/schemas/CloudLogsLobbyStatusStopped" + $ref: '#/components/schemas/CloudLogsLobbyStatusStopped' required: - running CloudLogsLobbyStatusStopped: @@ -10050,7 +10088,7 @@ components: description: The status of a stopped lobby. properties: stop_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' failed: type: boolean description: Whether or not the lobby failed or stopped successfully. @@ -10093,9 +10131,9 @@ components: description: The current authenticated agent. properties: identity: - $ref: "#/components/schemas/CloudAuthAgentIdentity" + $ref: '#/components/schemas/CloudAuthAgentIdentity' game_cloud: - $ref: "#/components/schemas/CloudAuthAgentGameCloud" + $ref: '#/components/schemas/CloudAuthAgentGameCloud' CloudAuthAgentIdentity: type: object description: The current authenticated identity. @@ -10122,9 +10160,9 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' url: type: string description: >- @@ -10154,9 +10192,9 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' content_length: type: integer format: int64 @@ -10182,9 +10220,9 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' content_length: type: integer format: int64 @@ -10207,7 +10245,7 @@ components: type: string format: uuid create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' name_id: type: string description: >- @@ -10216,7 +10254,7 @@ components: human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' developer_group_id: type: string format: uuid @@ -10232,17 +10270,17 @@ components: namespaces: type: array items: - $ref: "#/components/schemas/CloudNamespaceSummary" + $ref: '#/components/schemas/CloudNamespaceSummary' description: A list of namespace summaries. versions: type: array items: - $ref: "#/components/schemas/CloudVersionSummary" + $ref: '#/components/schemas/CloudVersionSummary' description: A list of version summaries. available_regions: type: array items: - $ref: "#/components/schemas/CloudRegionSummary" + $ref: '#/components/schemas/CloudRegionSummary' description: A list of region summaries. required: - game_id @@ -10262,9 +10300,9 @@ components: type: string format: uuid create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' version_id: type: string format: uuid @@ -10304,9 +10342,9 @@ components: **Deprecated** A universal region label given to this region. provider_display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' region_display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' required: - region_id - region_name_id @@ -10319,16 +10357,16 @@ components: description: Game lobby expenses. properties: game: - $ref: "#/components/schemas/GameHandle" + $ref: '#/components/schemas/GameHandle' namespaces: type: array items: - $ref: "#/components/schemas/CloudNamespaceSummary" + $ref: '#/components/schemas/CloudNamespaceSummary' description: A list of namespace summaries. expenses: type: array items: - $ref: "#/components/schemas/CloudRegionTierExpenses" + $ref: '#/components/schemas/CloudRegionTierExpenses' description: A list of multiple region tier expenses. required: - game @@ -10476,9 +10514,9 @@ components: type: string format: uuid create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' version_id: type: string format: uuid @@ -10490,7 +10528,7 @@ components: human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. config: - $ref: "#/components/schemas/CloudNamespaceConfig" + $ref: '#/components/schemas/CloudNamespaceConfig' required: - namespace_id - create_ts @@ -10503,13 +10541,13 @@ components: description: Cloud configuration for a given namespace. properties: cdn: - $ref: "#/components/schemas/CloudCdnNamespaceConfig" + $ref: '#/components/schemas/CloudCdnNamespaceConfig' matchmaker: - $ref: "#/components/schemas/CloudMatchmakerNamespaceConfig" + $ref: '#/components/schemas/CloudMatchmakerNamespaceConfig' kv: - $ref: "#/components/schemas/CloudKvNamespaceConfig" + $ref: '#/components/schemas/CloudKvNamespaceConfig' identity: - $ref: "#/components/schemas/CloudIdentityNamespaceConfig" + $ref: '#/components/schemas/CloudIdentityNamespaceConfig' required: - cdn - matchmaker @@ -10527,14 +10565,14 @@ components: domains: type: array items: - $ref: "#/components/schemas/CloudCdnNamespaceDomain" + $ref: '#/components/schemas/CloudCdnNamespaceDomain' description: A list of CDN domains for a given namespace. auth_type: - $ref: "#/components/schemas/CloudCdnAuthType" + $ref: '#/components/schemas/CloudCdnAuthType' auth_user_list: type: array items: - $ref: "#/components/schemas/CloudCdnNamespaceAuthUser" + $ref: '#/components/schemas/CloudCdnNamespaceAuthUser' description: A list of CDN authenticated users for a given namespace. required: - enable_domain_public_auth @@ -10594,11 +10632,11 @@ components: type: string description: A valid domain name (no protocol). create_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' verification_status: - $ref: "#/components/schemas/CloudCdnNamespaceDomainVerificationStatus" + $ref: '#/components/schemas/CloudCdnNamespaceDomainVerificationStatus' verification_method: - $ref: "#/components/schemas/CloudCdnNamespaceDomainVerificationMethod" + $ref: '#/components/schemas/CloudCdnNamespaceDomainVerificationMethod' verification_errors: type: array items: @@ -10614,9 +10652,9 @@ components: description: A union representing the verification method used for this CDN domain. properties: invalid: - $ref: "#/components/schemas/EmptyObject" + $ref: '#/components/schemas/EmptyObject' http: - $ref: "#/components/schemas/CloudCdnNamespaceDomainVerificationMethodHttp" + $ref: '#/components/schemas/CloudCdnNamespaceDomainVerificationMethodHttp' CloudCdnNamespaceDomainVerificationMethodHttp: type: object properties: @@ -10647,9 +10685,9 @@ components: port: type: integer port_range: - $ref: "#/components/schemas/CloudVersionMatchmakerPortRange" + $ref: '#/components/schemas/CloudVersionMatchmakerPortRange' protocol: - $ref: "#/components/schemas/CloudVersionMatchmakerPortProtocol" + $ref: '#/components/schemas/CloudVersionMatchmakerPortProtocol' required: - protocol CloudNamespaceVersion: @@ -10663,7 +10701,7 @@ components: type: string description: A universally unique identifier. deploy_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' required: - namespace_id - version_id @@ -10688,14 +10726,14 @@ components: cloud_token: type: string watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - watch CloudDevicesCompleteDeviceLinkRequest: type: object properties: device_link_token: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' game_id: type: string format: uuid @@ -10708,7 +10746,7 @@ components: custom_avatars: type: array items: - $ref: "#/components/schemas/CloudCustomAvatarSummary" + $ref: '#/components/schemas/CloudCustomAvatarSummary' description: A list of custom avatar summaries. required: - custom_avatars @@ -10735,7 +10773,7 @@ components: type: string format: uuid presigned_request: - $ref: "#/components/schemas/UploadPresignedRequest" + $ref: '#/components/schemas/UploadPresignedRequest' required: - upload_id - presigned_request @@ -10745,7 +10783,7 @@ components: builds: type: array items: - $ref: "#/components/schemas/CloudBuildSummary" + $ref: '#/components/schemas/CloudBuildSummary' description: A list of build summaries. required: - builds @@ -10753,18 +10791,18 @@ components: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' image_tag: type: string description: A tag given to the game build. image_file: - $ref: "#/components/schemas/UploadPrepareFile" + $ref: '#/components/schemas/UploadPrepareFile' multipart_upload: type: boolean kind: - $ref: "#/components/schemas/CloudGamesBuildKind" + $ref: '#/components/schemas/CloudGamesBuildKind' compression: - $ref: "#/components/schemas/CloudGamesBuildCompression" + $ref: '#/components/schemas/CloudGamesBuildCompression' required: - display_name - image_tag @@ -10779,11 +10817,11 @@ components: type: string format: uuid image_presigned_request: - $ref: "#/components/schemas/UploadPresignedRequest" + $ref: '#/components/schemas/UploadPresignedRequest' image_presigned_requests: type: array items: - $ref: "#/components/schemas/UploadPresignedRequest" + $ref: '#/components/schemas/UploadPresignedRequest' required: - build_id - upload_id @@ -10803,7 +10841,7 @@ components: sites: type: array items: - $ref: "#/components/schemas/CloudCdnSiteSummary" + $ref: '#/components/schemas/CloudCdnSiteSummary' description: A list of CDN site summaries. required: - sites @@ -10811,11 +10849,11 @@ components: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' files: type: array items: - $ref: "#/components/schemas/UploadPrepareFile" + $ref: '#/components/schemas/UploadPrepareFile' description: A list of files preparing to upload. required: - display_name @@ -10832,142 +10870,11 @@ components: presigned_requests: type: array items: - $ref: "#/components/schemas/UploadPresignedRequest" + $ref: '#/components/schemas/UploadPresignedRequest' required: - site_id - upload_id - presigned_requests - CloudGamesGetGamesResponse: - type: object - properties: - games: - type: array - items: - $ref: "#/components/schemas/GameSummary" - description: A list of game summaries. - groups: - type: array - items: - $ref: "#/components/schemas/GroupSummary" - description: A list of group summaries. - watch: - $ref: "#/components/schemas/WatchResponse" - required: - - games - - groups - - watch - CloudGamesCreateGameRequest: - type: object - properties: - name_id: - $ref: "#/components/schemas/Identifier" - description: "**Deprecated**" - display_name: - $ref: "#/components/schemas/DisplayName" - developer_group_id: - type: string - format: uuid - required: - - display_name - - developer_group_id - CloudGamesCreateGameResponse: - type: object - properties: - game_id: - type: string - format: uuid - required: - - game_id - CloudGamesValidateGameRequest: - type: object - properties: - display_name: - $ref: "#/components/schemas/DisplayName" - 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. - required: - - display_name - CloudGamesValidateGameResponse: - type: object - properties: - errors: - type: array - items: - $ref: "#/components/schemas/ValidationError" - description: A list of validation errors. - required: - - errors - CloudGamesGetGameByIdResponse: - type: object - properties: - game: - $ref: "#/components/schemas/CloudGameFull" - watch: - $ref: "#/components/schemas/WatchResponse" - required: - - game - - watch - CloudGamesGameBannerUploadPrepareRequest: - type: object - properties: - path: - type: string - description: The path/filename of the game banner. - mime: - type: string - description: The MIME type of the game banner. - content_length: - type: integer - format: int64 - description: Unsigned 64 bit integer. - required: - - path - - content_length - CloudGamesGameBannerUploadPrepareResponse: - type: object - properties: - upload_id: - type: string - format: uuid - presigned_request: - $ref: "#/components/schemas/UploadPresignedRequest" - required: - - upload_id - - presigned_request - CloudGamesGameLogoUploadPrepareRequest: - type: object - properties: - path: - type: string - description: The path/filename of the game logo. - mime: - type: string - description: The MIME type of the game logo. - content_length: - type: integer - format: int64 - description: Unsigned 64 bit integer. - required: - - path - - content_length - CloudGamesGameLogoUploadPrepareResponse: - type: object - properties: - upload_id: - type: string - format: uuid - presigned_request: - $ref: "#/components/schemas/UploadPresignedRequest" - required: - - upload_id - - presigned_request CloudGamesExportMatchmakerLobbyHistoryRequest: type: object properties: @@ -11012,7 +10919,7 @@ components: type: string description: Sorted old to new. watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - lines - timestamps @@ -11021,7 +10928,7 @@ components: type: object properties: stream: - $ref: "#/components/schemas/CloudGamesLogStream" + $ref: '#/components/schemas/CloudGamesLogStream' required: - stream CloudGamesExportLobbyLogsResponse: @@ -11043,7 +10950,7 @@ components: lobbies: type: array items: - $ref: "#/components/schemas/CloudLobbySummaryAnalytics" + $ref: '#/components/schemas/CloudLobbySummaryAnalytics' description: A list of analytics lobby summaries. required: - lobbies @@ -11053,7 +10960,7 @@ components: lobbies: type: array items: - $ref: "#/components/schemas/CloudLogsLobbySummary" + $ref: '#/components/schemas/CloudLogsLobbySummary' description: A list of lobby log summaries. required: - lobbies @@ -11061,9 +10968,9 @@ components: type: object properties: lobby: - $ref: "#/components/schemas/CloudLogsLobbySummary" + $ref: '#/components/schemas/CloudLogsLobbySummary' metrics: - $ref: "#/components/schemas/CloudSvcMetrics" + $ref: '#/components/schemas/CloudSvcMetrics' stdout_presigned_urls: type: array items: @@ -11081,7 +10988,7 @@ components: perf_lists: type: array items: - $ref: "#/components/schemas/CloudSvcPerf" + $ref: '#/components/schemas/CloudSvcPerf' description: |- **Deprecated** A list of service performance summaries. @@ -11108,9 +11015,9 @@ components: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' config: - $ref: "#/components/schemas/CloudVersionConfig" + $ref: '#/components/schemas/CloudVersionConfig' required: - display_name - config @@ -11126,16 +11033,16 @@ components: type: object properties: version_display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' required: - version_display_name CloudGamesValidateGameVersionRequest: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' config: - $ref: "#/components/schemas/CloudVersionConfig" + $ref: '#/components/schemas/CloudVersionConfig' required: - display_name - config @@ -11145,7 +11052,7 @@ components: errors: type: array items: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/schemas/ValidationError' description: A list of validation errors. required: - errors @@ -11153,14 +11060,14 @@ components: type: object properties: version: - $ref: "#/components/schemas/CloudVersionFull" + $ref: '#/components/schemas/CloudVersionFull' required: - version CloudValidateGroupRequest: type: object properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' required: - display_name CloudValidateGroupResponse: @@ -11169,7 +11076,7 @@ components: errors: type: array items: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/schemas/ValidationError' description: A list of validation errors. required: - errors @@ -11179,7 +11086,7 @@ components: perf_lists: type: array items: - $ref: "#/components/schemas/CloudSvcPerf" + $ref: '#/components/schemas/CloudSvcPerf' description: A list of service performance summaries. required: - perf_lists @@ -11189,7 +11096,7 @@ components: tiers: type: array items: - $ref: "#/components/schemas/CloudRegionTier" + $ref: '#/components/schemas/CloudRegionTier' description: A list of region server tiers. required: - tiers @@ -11316,9 +11223,9 @@ components: Denotes how long a connection can continue to reconnect without having to reverify a captcha (in milliseconds). hcaptcha: - $ref: "#/components/schemas/CloudVersionMatchmakerCaptchaHcaptcha" + $ref: '#/components/schemas/CloudVersionMatchmakerCaptchaHcaptcha' turnstile: - $ref: "#/components/schemas/CloudVersionMatchmakerCaptchaTurnstile" + $ref: '#/components/schemas/CloudVersionMatchmakerCaptchaTurnstile' required: - requests_before_reverify - verification_ttl @@ -11327,8 +11234,8 @@ components: description: hCpatcha configuration. properties: level: - $ref: "#/components/schemas/CloudVersionMatchmakerCaptchaHcaptchaLevel" - description: "**Deprecated**" + $ref: '#/components/schemas/CloudVersionMatchmakerCaptchaHcaptchaLevel' + description: '**Deprecated**' site_key: type: string description: Site key for your hCaptcha application. Must be set. @@ -11379,7 +11286,7 @@ components: regions: type: object additionalProperties: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeRegion" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeRegion' max_players: type: integer max_players_direct: @@ -11387,7 +11294,7 @@ components: max_players_party: type: integer docker: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeRuntimeDocker" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeRuntimeDocker' listable: type: boolean taggable: @@ -11395,11 +11302,11 @@ components: allow_dynamic_max_players: type: boolean actions: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeActions" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeActions' tier: type: string idle_lobbies: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeIdleLobbiesConfig" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeIdleLobbiesConfig' CloudVersionMatchmakerGameModeRegion: type: object description: A game mode region. @@ -11407,7 +11314,7 @@ components: tier: type: string idle_lobbies: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeIdleLobbiesConfig" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeIdleLobbiesConfig' CloudVersionMatchmakerGameModeRuntimeDocker: type: object description: A game mode runtime running through Docker. @@ -11435,7 +11342,7 @@ components: additionalProperties: type: string network_mode: - $ref: "#/components/schemas/CloudVersionMatchmakerNetworkMode" + $ref: '#/components/schemas/CloudVersionMatchmakerNetworkMode' ports: type: object additionalProperties: @@ -11454,20 +11361,20 @@ components: ### Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind port_range: - $ref: "#/components/schemas/CloudVersionMatchmakerPortRange" + $ref: '#/components/schemas/CloudVersionMatchmakerPortRange' protocol: - $ref: "#/components/schemas/CloudVersionMatchmakerPortProtocol" + $ref: '#/components/schemas/CloudVersionMatchmakerPortProtocol' proxy: - $ref: "#/components/schemas/CloudVersionMatchmakerProxyKind" + $ref: '#/components/schemas/CloudVersionMatchmakerProxyKind' description: How this port should be proxied. Defaults to 'game-guard`. dev_port: type: integer description: _Configures Rivet CLI behavior. Has no effect on server behavior._ dev_port_range: - $ref: "#/components/schemas/CloudVersionMatchmakerPortRange" + $ref: '#/components/schemas/CloudVersionMatchmakerPortRange' description: _Configures Rivet CLI behavior. Has no effect on server behavior._ dev_protocol: - $ref: "#/components/schemas/CloudVersionMatchmakerPortProtocol" + $ref: '#/components/schemas/CloudVersionMatchmakerPortProtocol' description: _Configures Rivet CLI behavior. Has no effect on server behavior._ CloudVersionMatchmakerGameModeIdleLobbiesConfig: type: object @@ -11485,11 +11392,11 @@ components: description: Configuration for the connection types allowed for a game mode. properties: find: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeFindConfig" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeFindConfig' join: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeJoinConfig" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeJoinConfig' create: - $ref: "#/components/schemas/CloudVersionMatchmakerGameModeCreateConfig" + $ref: '#/components/schemas/CloudVersionMatchmakerGameModeCreateConfig' CloudVersionMatchmakerGameModeIdentityRequirement: type: string enum: @@ -11580,7 +11487,7 @@ components: description: Defaults to true when unset. max_lobbies_per_identity: type: integer - description: "**Deprecated**" + description: '**Deprecated**' required: - enabled CloudVersionMatchmakerLobbyGroup: @@ -11599,7 +11506,7 @@ components: regions: type: array items: - $ref: "#/components/schemas/CloudVersionMatchmakerLobbyGroupRegion" + $ref: '#/components/schemas/CloudVersionMatchmakerLobbyGroupRegion' description: A list of game mode regions. max_players_normal: type: integer @@ -11611,7 +11518,7 @@ components: type: integer description: Unsigned 32 bit integer. runtime: - $ref: "#/components/schemas/CloudVersionMatchmakerLobbyGroupRuntime" + $ref: '#/components/schemas/CloudVersionMatchmakerLobbyGroupRuntime' required: - name_id - regions @@ -11626,7 +11533,7 @@ components: A union representing the runtime a game mode runs on. properties: docker: - $ref: "#/components/schemas/CloudVersionMatchmakerLobbyGroupRuntimeDocker" + $ref: '#/components/schemas/CloudVersionMatchmakerLobbyGroupRuntimeDocker' CloudVersionMatchmakerLobbyGroupRegion: type: object description: |- @@ -11668,7 +11575,7 @@ components: $ref: >- #/components/schemas/CloudVersionMatchmakerLobbyGroupRuntimeDockerEnvVar network_mode: - $ref: "#/components/schemas/CloudVersionMatchmakerNetworkMode" + $ref: '#/components/schemas/CloudVersionMatchmakerNetworkMode' ports: type: array items: @@ -11704,9 +11611,9 @@ components: type: integer description: The port number to connect to. port_range: - $ref: "#/components/schemas/CloudVersionMatchmakerPortRange" + $ref: '#/components/schemas/CloudVersionMatchmakerPortRange' proxy_protocol: - $ref: "#/components/schemas/CloudVersionMatchmakerPortProtocol" + $ref: '#/components/schemas/CloudVersionMatchmakerPortProtocol' required: - label - proxy_protocol @@ -11762,6 +11669,7 @@ components: type: integer Timestamp: type: string + format: date-time description: RFC3339 timestamp GlobalEventNotification: type: object @@ -11805,7 +11713,7 @@ components: documentation: type: string metadata: - $ref: "#/components/schemas/ErrorMetadata" + $ref: '#/components/schemas/ErrorMetadata' required: - code - message @@ -11816,9 +11724,9 @@ components: type: string format: uuid name_id: - $ref: "#/components/schemas/Identifier" + $ref: '#/components/schemas/Identifier' display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' logo_url: type: string description: The URL of this game's logo image. @@ -11836,9 +11744,9 @@ components: type: string format: uuid name_id: - $ref: "#/components/schemas/Identifier" + $ref: '#/components/schemas/Identifier' display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' logo_url: type: string description: The URL of this game's logo image. @@ -11848,7 +11756,7 @@ components: url: type: string developer: - $ref: "#/components/schemas/GroupHandle" + $ref: '#/components/schemas/GroupHandle' total_player_count: type: integer description: Unsigned 32 bit integer. @@ -11874,7 +11782,7 @@ components: human readable. Different than `rivet.common#DisplayName` because this should not include special characters and be short. display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' logo_url: type: string description: The URL of this game's logo image. @@ -11885,7 +11793,7 @@ components: type: string description: The URL to this game's website. developer: - $ref: "#/components/schemas/GroupSummary" + $ref: '#/components/schemas/GroupSummary' tags: type: array items: @@ -11897,22 +11805,22 @@ components: platforms: type: array items: - $ref: "#/components/schemas/GamePlatformLink" + $ref: '#/components/schemas/GamePlatformLink' description: A list of platform links. recommended_groups: type: array items: - $ref: "#/components/schemas/GroupSummary" + $ref: '#/components/schemas/GroupSummary' description: A list of group summaries. identity_leaderboard_categories: type: array items: - $ref: "#/components/schemas/GameLeaderboardCategory" + $ref: '#/components/schemas/GameLeaderboardCategory' description: A list of game leaderboard categories. group_leaderboard_categories: type: array items: - $ref: "#/components/schemas/GameLeaderboardCategory" + $ref: '#/components/schemas/GameLeaderboardCategory' description: A list of game leaderboard categories. required: - game_id @@ -11931,7 +11839,7 @@ components: description: A platform link denoting a supported platform. properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' url: type: string description: The URL to the given game's method of distribution on this platform. @@ -11943,7 +11851,7 @@ components: description: A game leaderboard category. properties: display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' required: - display_name GameStatSummary: @@ -11951,11 +11859,11 @@ components: description: A game statistic summary. properties: game: - $ref: "#/components/schemas/GameHandle" + $ref: '#/components/schemas/GameHandle' stats: type: array items: - $ref: "#/components/schemas/GameStat" + $ref: '#/components/schemas/GameStat' required: - game - stats @@ -11964,7 +11872,7 @@ components: description: A game statistic. properties: config: - $ref: "#/components/schemas/GameStatConfig" + $ref: '#/components/schemas/GameStatConfig' overall_value: type: number format: double @@ -11983,15 +11891,15 @@ components: type: string format: uuid format: - $ref: "#/components/schemas/GameStatFormatMethod" + $ref: '#/components/schemas/GameStatFormatMethod' aggregation: - $ref: "#/components/schemas/GameStatAggregationMethod" + $ref: '#/components/schemas/GameStatAggregationMethod' sorting: - $ref: "#/components/schemas/GameStatSortingMethod" + $ref: '#/components/schemas/GameStatSortingMethod' priority: type: integer display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' postfix_singular: type: string description: >- @@ -12078,24 +11986,24 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' avatar_url: type: string description: The URL of this group's avatar image. external: - $ref: "#/components/schemas/GroupExternalLinks" + $ref: '#/components/schemas/GroupExternalLinks' is_developer: type: boolean description: |- **Deprecated** Whether or not this group is a developer. bio: - $ref: "#/components/schemas/Bio" + $ref: '#/components/schemas/Bio' is_current_identity_member: type: boolean description: Whether or not the current identity is a member of this group. publicity: - $ref: "#/components/schemas/GroupPublicity" + $ref: '#/components/schemas/GroupPublicity' member_count: type: integer owner_identity_id: @@ -12125,12 +12033,12 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' avatar_url: type: string description: The URL of this group's avatar image external: - $ref: "#/components/schemas/GroupExternalLinks" + $ref: '#/components/schemas/GroupExternalLinks' is_developer: type: boolean description: Whether or not this group is a developer group. @@ -12152,11 +12060,9 @@ components: description: A group join request. properties: identity: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' ts: - type: string - format: date-time - description: RFC3339 timestamp. + $ref: '#/components/schemas/Timestamp' required: - identity - ts @@ -12165,7 +12071,7 @@ components: description: A group member. properties: identity: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' required: - identity GroupProfile: @@ -12176,12 +12082,12 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' avatar_url: type: string description: The URL of this group's avatar image. external: - $ref: "#/components/schemas/GroupExternalLinks" + $ref: '#/components/schemas/GroupExternalLinks' is_developer: type: boolean description: Whether or not this group is a developer. @@ -12192,19 +12098,19 @@ components: type: boolean description: Whether or not the current identity is a member of this group. publicity: - $ref: "#/components/schemas/GroupPublicity" + $ref: '#/components/schemas/GroupPublicity' member_count: type: integer description: Unsigned 32 bit integer. members: type: array items: - $ref: "#/components/schemas/GroupMember" + $ref: '#/components/schemas/GroupMember' description: A list of group members. join_requests: type: array items: - $ref: "#/components/schemas/GroupJoinRequest" + $ref: '#/components/schemas/GroupJoinRequest' description: A list of group join requests. is_current_identity_requesting_join: type: boolean @@ -12228,9 +12134,9 @@ components: description: A banned identity. properties: identity: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' ban_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' required: - identity - ban_ts @@ -12238,7 +12144,7 @@ components: type: object properties: group: - $ref: "#/components/schemas/GroupHandle" + $ref: '#/components/schemas/GroupHandle' required: - group GroupConsumeInviteResponse: @@ -12279,21 +12185,21 @@ components: identities: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' games: type: array items: - $ref: "#/components/schemas/GameSummary" + $ref: '#/components/schemas/GameSummary' suggested_groups: type: array items: - $ref: "#/components/schemas/GroupSummary" + $ref: '#/components/schemas/GroupSummary' suggested_players: type: array items: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - identities - games @@ -12305,12 +12211,11 @@ components: description: An event relevant to the current identity. properties: ts: - type: string - format: date-time + $ref: '#/components/schemas/Timestamp' kind: - $ref: "#/components/schemas/IdentityGlobalEventKind" + $ref: '#/components/schemas/IdentityGlobalEventKind' notification: - $ref: "#/components/schemas/IdentityGlobalEventNotification" + $ref: '#/components/schemas/IdentityGlobalEventNotification' required: - ts - kind @@ -12318,9 +12223,9 @@ components: type: object properties: identity_update: - $ref: "#/components/schemas/IdentityGlobalEventIdentityUpdate" + $ref: '#/components/schemas/IdentityGlobalEventIdentityUpdate' matchmaker_lobby_join: - $ref: "#/components/schemas/IdentityGlobalEventMatchmakerLobbyJoin" + $ref: '#/components/schemas/IdentityGlobalEventMatchmakerLobbyJoin' IdentityGlobalEventNotification: type: object description: >- @@ -12388,20 +12293,20 @@ components: type: object properties: identity: - $ref: "#/components/schemas/IdentityProfile" + $ref: '#/components/schemas/IdentityProfile' required: - identity IdentityGlobalEventMatchmakerLobbyJoin: type: object properties: lobby: - $ref: "#/components/schemas/MatchmakerJoinLobby" + $ref: '#/components/schemas/MatchmakerJoinLobby' ports: type: object additionalProperties: - $ref: "#/components/schemas/MatchmakerJoinPort" + $ref: '#/components/schemas/MatchmakerJoinPort' player: - $ref: "#/components/schemas/MatchmakerJoinPlayer" + $ref: '#/components/schemas/MatchmakerJoinPlayer' required: - lobby - ports @@ -12429,19 +12334,19 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' account_number: - $ref: "#/components/schemas/AccountNumber" + $ref: '#/components/schemas/AccountNumber' avatar_url: type: string description: The URL of this identity's avatar image. presence: - $ref: "#/components/schemas/IdentityPresence" + $ref: '#/components/schemas/IdentityPresence' is_registered: type: boolean description: Whether or not this identity is registered with a linked account. external: - $ref: "#/components/schemas/IdentityExternalLinks" + $ref: '#/components/schemas/IdentityExternalLinks' required: - identity_id - display_name @@ -12457,19 +12362,19 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' account_number: - $ref: "#/components/schemas/AccountNumber" + $ref: '#/components/schemas/AccountNumber' avatar_url: type: string description: The URL of this identity's avatar image. presence: - $ref: "#/components/schemas/IdentityPresence" + $ref: '#/components/schemas/IdentityPresence' is_registered: type: boolean description: Whether or not this identity is registered with a linked account. external: - $ref: "#/components/schemas/IdentityExternalLinks" + $ref: '#/components/schemas/IdentityExternalLinks' following: type: boolean description: Whether or not the requestee's identity is following this identity. @@ -12498,19 +12403,19 @@ components: type: string format: uuid display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' account_number: - $ref: "#/components/schemas/AccountNumber" + $ref: '#/components/schemas/AccountNumber' avatar_url: type: string description: The URL of this identity's avatar image. presence: - $ref: "#/components/schemas/IdentityPresence" + $ref: '#/components/schemas/IdentityPresence' is_registered: type: boolean description: Whether or not this identity is registered with a linked account. external: - $ref: "#/components/schemas/IdentityExternalLinks" + $ref: '#/components/schemas/IdentityExternalLinks' is_admin: type: boolean description: Whether or not this identity is an admin. @@ -12520,8 +12425,8 @@ components: Whether or not this game user has been linked through the Rivet dashboard. dev_state: - $ref: "#/components/schemas/IdentityDevState" - description: "**Deprecated**" + $ref: '#/components/schemas/IdentityDevState' + description: '**Deprecated**' follower_count: type: integer format: int64 @@ -12539,21 +12444,21 @@ components: is_mutual_following: type: boolean join_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' bio: - $ref: "#/components/schemas/Bio" + $ref: '#/components/schemas/Bio' linked_accounts: type: array items: - $ref: "#/components/schemas/IdentityLinkedAccount" + $ref: '#/components/schemas/IdentityLinkedAccount' groups: type: array items: - $ref: "#/components/schemas/IdentityGroup" + $ref: '#/components/schemas/IdentityGroup' games: type: array items: - $ref: "#/components/schemas/GameStatSummary" + $ref: '#/components/schemas/GameStatSummary' awaiting_deletion: type: boolean description: >- @@ -12596,11 +12501,11 @@ components: description: Information about the identity's current status, party, and active game. properties: update_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' status: - $ref: "#/components/schemas/IdentityStatus" + $ref: '#/components/schemas/IdentityStatus' game_activity: - $ref: "#/components/schemas/IdentityGameActivity" + $ref: '#/components/schemas/IdentityGameActivity' required: - update_ts - status @@ -12618,7 +12523,7 @@ components: description: The game an identity is currently participating in. properties: game: - $ref: "#/components/schemas/GameHandle" + $ref: '#/components/schemas/GameHandle' message: type: string description: A short activity message about the current game activity. @@ -12636,7 +12541,7 @@ components: description: A group that the given identity. properties: group: - $ref: "#/components/schemas/GroupHandle" + $ref: '#/components/schemas/GroupHandle' required: - group IdentityLinkedAccount: @@ -12644,15 +12549,15 @@ components: description: A union representing an identity's linked accounts. properties: email: - $ref: "#/components/schemas/IdentityEmailLinkedAccount" + $ref: '#/components/schemas/IdentityEmailLinkedAccount' access_token: - $ref: "#/components/schemas/IdentityAccessTokenLinkedAccount" + $ref: '#/components/schemas/IdentityAccessTokenLinkedAccount' IdentityEmailLinkedAccount: type: object description: An identity's linked email. properties: email: - $ref: "#/components/schemas/Email" + $ref: '#/components/schemas/Email' required: - email IdentityAccessTokenLinkedAccount: @@ -12682,9 +12587,9 @@ components: events: type: array items: - $ref: "#/components/schemas/IdentityGlobalEvent" + $ref: '#/components/schemas/IdentityGlobalEvent' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - events - watch @@ -12699,7 +12604,7 @@ components: identity_link_url: type: string expire_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' required: - identity_link_token - identity_link_url @@ -12708,15 +12613,15 @@ components: type: object properties: status: - $ref: "#/components/schemas/IdentityGameLinkStatus" + $ref: '#/components/schemas/IdentityGameLinkStatus' game: - $ref: "#/components/schemas/GameHandle" + $ref: '#/components/schemas/GameHandle' current_identity: - $ref: "#/components/schemas/IdentityHandle" + $ref: '#/components/schemas/IdentityHandle' new_identity: - $ref: "#/components/schemas/IdentityGetGameLinkNewIdentity" + $ref: '#/components/schemas/IdentityGetGameLinkNewIdentity' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - status - game @@ -12726,11 +12631,11 @@ components: type: object properties: identity_token: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' identity_token_expire_ts: - $ref: "#/components/schemas/Timestamp" + $ref: '#/components/schemas/Timestamp' identity: - $ref: "#/components/schemas/IdentityProfile" + $ref: '#/components/schemas/IdentityProfile' required: - identity_token - identity_token_expire_ts @@ -12739,14 +12644,14 @@ components: type: object properties: identity_link_token: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' required: - identity_link_token IdentityCancelGameLinkRequest: type: object properties: identity_link_token: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' required: - identity_link_token KvKey: @@ -12776,9 +12681,9 @@ components: description: A key-value entry. properties: key: - $ref: "#/components/schemas/KvKey" + $ref: '#/components/schemas/KvKey' value: - $ref: "#/components/schemas/KvValue" + $ref: '#/components/schemas/KvValue' deleted: type: boolean required: @@ -12789,9 +12694,9 @@ components: description: A new entry to insert into the key-value database. properties: key: - $ref: "#/components/schemas/KvKey" + $ref: '#/components/schemas/KvKey' value: - $ref: "#/components/schemas/KvValue" + $ref: '#/components/schemas/KvValue' required: - key - value @@ -12828,7 +12733,7 @@ components: description: A game mode that the player can join. properties: game_mode_id: - $ref: "#/components/schemas/Identifier" + $ref: '#/components/schemas/Identifier' required: - game_mode_id MatchmakerRegionInfo: @@ -12836,15 +12741,15 @@ components: description: A region that the player can connect to. properties: region_id: - $ref: "#/components/schemas/Identifier" + $ref: '#/components/schemas/Identifier' provider_display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' region_display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' datacenter_coord: - $ref: "#/components/schemas/GeoCoord" + $ref: '#/components/schemas/GeoCoord' datacenter_distance_from_client: - $ref: "#/components/schemas/GeoDistance" + $ref: '#/components/schemas/GeoDistance' required: - region_id - provider_display_name @@ -12859,15 +12764,15 @@ components: type: string format: uuid region: - $ref: "#/components/schemas/MatchmakerJoinRegion" + $ref: '#/components/schemas/MatchmakerJoinRegion' ports: type: object additionalProperties: - $ref: "#/components/schemas/MatchmakerJoinPort" - description: "**Deprecated**" + $ref: '#/components/schemas/MatchmakerJoinPort' + description: '**Deprecated**' player: - $ref: "#/components/schemas/MatchmakerJoinPlayer" - description: "**Deprecated**" + $ref: '#/components/schemas/MatchmakerJoinPlayer' + description: '**Deprecated**' required: - lobby_id - region @@ -12878,9 +12783,9 @@ components: description: A matchmaker lobby region. properties: region_id: - $ref: "#/components/schemas/Identifier" + $ref: '#/components/schemas/Identifier' display_name: - $ref: "#/components/schemas/DisplayName" + $ref: '#/components/schemas/DisplayName' required: - region_id - display_name @@ -12896,7 +12801,7 @@ components: type: integer description: The port number for this lobby. Will be null if using a port range. port_range: - $ref: "#/components/schemas/MatchmakerJoinPortRange" + $ref: '#/components/schemas/MatchmakerJoinPortRange' is_tls: type: boolean description: >- @@ -12923,7 +12828,7 @@ components: description: A matchmaker lobby player. properties: token: - $ref: "#/components/schemas/Jwt" + $ref: '#/components/schemas/Jwt' description: >- Pass this token through the socket to the lobby server. The lobby server will validate this token with `PlayerConnected.player_token` @@ -12938,13 +12843,13 @@ components: type: object properties: lobby: - $ref: "#/components/schemas/MatchmakerJoinLobby" + $ref: '#/components/schemas/MatchmakerJoinLobby' ports: type: object additionalProperties: - $ref: "#/components/schemas/MatchmakerJoinPort" + $ref: '#/components/schemas/MatchmakerJoinPort' player: - $ref: "#/components/schemas/MatchmakerJoinPlayer" + $ref: '#/components/schemas/MatchmakerJoinPlayer' required: - lobby - ports @@ -12953,13 +12858,13 @@ components: type: object properties: lobby: - $ref: "#/components/schemas/MatchmakerJoinLobby" + $ref: '#/components/schemas/MatchmakerJoinLobby' ports: type: object additionalProperties: - $ref: "#/components/schemas/MatchmakerJoinPort" + $ref: '#/components/schemas/MatchmakerJoinPort' player: - $ref: "#/components/schemas/MatchmakerJoinPlayer" + $ref: '#/components/schemas/MatchmakerJoinPlayer' required: - lobby - ports @@ -12968,13 +12873,13 @@ components: type: object properties: lobby: - $ref: "#/components/schemas/MatchmakerJoinLobby" + $ref: '#/components/schemas/MatchmakerJoinLobby' ports: type: object additionalProperties: - $ref: "#/components/schemas/MatchmakerJoinPort" + $ref: '#/components/schemas/MatchmakerJoinPort' player: - $ref: "#/components/schemas/MatchmakerJoinPlayer" + $ref: '#/components/schemas/MatchmakerJoinPlayer' required: - lobby - ports @@ -12985,15 +12890,15 @@ components: game_modes: type: array items: - $ref: "#/components/schemas/MatchmakerGameModeInfo" + $ref: '#/components/schemas/MatchmakerGameModeInfo' regions: type: array items: - $ref: "#/components/schemas/MatchmakerRegionInfo" + $ref: '#/components/schemas/MatchmakerRegionInfo' lobbies: type: array items: - $ref: "#/components/schemas/MatchmakerLobbyInfo" + $ref: '#/components/schemas/MatchmakerLobbyInfo' required: - game_modes - regions @@ -13007,7 +12912,7 @@ components: game_modes: type: object additionalProperties: - $ref: "#/components/schemas/MatchmakerGameModeStatistics" + $ref: '#/components/schemas/MatchmakerGameModeStatistics' required: - player_count - game_modes @@ -13020,7 +12925,7 @@ components: regions: type: object additionalProperties: - $ref: "#/components/schemas/MatchmakerRegionStatistics" + $ref: '#/components/schemas/MatchmakerRegionStatistics' required: - player_count - regions @@ -13038,14 +12943,14 @@ components: regions: type: array items: - $ref: "#/components/schemas/MatchmakerRegionInfo" + $ref: '#/components/schemas/MatchmakerRegionInfo' required: - regions PortalNotificationRegisterService: type: object properties: firebase: - $ref: "#/components/schemas/PortalNotificationRegisterFirebaseService" + $ref: '#/components/schemas/PortalNotificationRegisterFirebaseService' PortalNotificationRegisterFirebaseService: type: object properties: @@ -13063,10 +12968,10 @@ components: games: type: array items: - $ref: "#/components/schemas/GameSummary" + $ref: '#/components/schemas/GameSummary' description: A list of game summaries. watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - games - watch @@ -13074,9 +12979,9 @@ components: type: object properties: game: - $ref: "#/components/schemas/GameProfile" + $ref: '#/components/schemas/GameProfile' watch: - $ref: "#/components/schemas/WatchResponse" + $ref: '#/components/schemas/WatchResponse' required: - game - watch @@ -13084,7 +12989,7 @@ components: type: object properties: service: - $ref: "#/components/schemas/PortalNotificationRegisterService" + $ref: '#/components/schemas/PortalNotificationRegisterService' required: - service UploadPresignedRequest: diff --git a/sdks/full/openapi_compat/openapi.yml b/sdks/full/openapi_compat/openapi.yml index 79ec8a8357..7020fc6d83 100644 --- a/sdks/full/openapi_compat/openapi.yml +++ b/sdks/full/openapi_compat/openapi.yml @@ -1323,13 +1323,8 @@ components: display_name: $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 type: object @@ -1863,9 +1858,7 @@ components: description: The name of the service. type: string ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - svc_name - ts @@ -3089,9 +3082,7 @@ components: identity: $ref: '#/components/schemas/IdentityHandle' ts: - description: RFC3339 timestamp. - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - identity - ts @@ -3451,8 +3442,7 @@ components: notification: $ref: '#/components/schemas/IdentityGlobalEventNotification' ts: - format: date-time - type: string + $ref: '#/components/schemas/Timestamp' required: - ts - kind @@ -4366,6 +4356,7 @@ components: type: object Timestamp: description: RFC3339 timestamp + format: date-time type: string UploadPrepareFile: description: A file being prepared to upload. @@ -5398,7 +5389,7 @@ paths: get: description: Returns a list of games in which the current identity is a group member of its development team. - operationId: cloud_games_games_getGames + operationId: cloud_games_getGames parameters: - description: A query parameter denoting the requests watch index. in: query @@ -5451,10 +5442,10 @@ paths: description: '' security: *id001 tags: - - CloudGamesGames + - CloudGames post: description: Creates a new game. - operationId: cloud_games_games_createGame + operationId: cloud_games_createGame parameters: [] requestBody: content: @@ -5507,11 +5498,11 @@ paths: description: '' security: *id001 tags: - - CloudGamesGames + - CloudGames /cloud/games/validate: post: description: Validates information used to create a new game. - operationId: cloud_games_games_validateGame + operationId: cloud_games_validateGame parameters: [] requestBody: content: @@ -5564,11 +5555,11 @@ paths: description: '' security: *id001 tags: - - CloudGamesGames + - CloudGames /cloud/games/{game_id}: get: description: Returns a game by its game id. - operationId: cloud_games_games_getGameById + operationId: cloud_games_getGameById parameters: - in: path name: game_id @@ -5627,7 +5618,7 @@ paths: description: '' security: *id001 tags: - - CloudGamesGames + - CloudGames /cloud/games/{game_id}/avatar-upload/{upload_id}/complete: post: description: Completes a custom avatar image upload. Must be called after the @@ -5748,7 +5739,7 @@ paths: /cloud/games/{game_id}/banner-upload/prepare: post: description: Prepares a game banner image upload. - operationId: cloud_games_games_gameBannerUploadPrepare + operationId: cloud_games_gameBannerUploadPrepare parameters: - in: path name: game_id @@ -5807,12 +5798,12 @@ paths: description: '' security: *id001 tags: - - CloudGamesGames + - CloudGames /cloud/games/{game_id}/banner-upload/{upload_id}/complete: post: description: Completes an game banner image upload. Must be called after the file upload process completes. - operationId: cloud_games_games_gameBannerUploadComplete + operationId: cloud_games_gameBannerUploadComplete parameters: - in: path name: game_id @@ -5867,7 +5858,7 @@ paths: description: '' security: *id001 tags: - - CloudGamesGames + - CloudGames /cloud/games/{game_id}/builds: get: description: Lists game builds for the given game. @@ -6109,7 +6100,7 @@ paths: /cloud/games/{game_id}/logo-upload/prepare: post: description: Prepares a game logo image upload. - operationId: cloud_games_games_gameLogoUploadPrepare + operationId: cloud_games_gameLogoUploadPrepare parameters: - in: path name: game_id @@ -6168,12 +6159,12 @@ paths: description: '' security: *id001 tags: - - CloudGamesGames + - CloudGames /cloud/games/{game_id}/logo-upload/{upload_id}/complete: post: description: Completes a game logo image upload. Must be called after the file upload process completes. - operationId: cloud_games_games_gameLogoUploadComplete + operationId: cloud_games_gameLogoUploadComplete parameters: - in: path name: game_id @@ -6228,7 +6219,7 @@ paths: description: '' security: *id001 tags: - - CloudGamesGames + - CloudGames /cloud/games/{game_id}/matchmaker/lobbies/export-history: post: description: Exports lobby history over a given query time span. diff --git a/sdks/full/rust-cli/.openapi-generator/FILES b/sdks/full/rust-cli/.openapi-generator/FILES index bd80d4e913..0afcea178f 100644 --- a/sdks/full/rust-cli/.openapi-generator/FILES +++ b/sdks/full/rust-cli/.openapi-generator/FILES @@ -66,6 +66,7 @@ docs/CloudDevicesLinksApi.md docs/CloudDevicesPrepareDeviceLinkResponse.md docs/CloudGameFull.md docs/CloudGameLobbyExpenses.md +docs/CloudGamesApi.md docs/CloudGamesAvatarsApi.md docs/CloudGamesBuildCompression.md docs/CloudGamesBuildKind.md @@ -89,7 +90,6 @@ docs/CloudGamesGameBannerUploadPrepareRequest.md docs/CloudGamesGameBannerUploadPrepareResponse.md docs/CloudGamesGameLogoUploadPrepareRequest.md docs/CloudGamesGameLogoUploadPrepareResponse.md -docs/CloudGamesGamesApi.md docs/CloudGamesGetGameByIdResponse.md docs/CloudGamesGetGameVersionByIdResponse.md docs/CloudGamesGetGamesResponse.md @@ -356,10 +356,10 @@ src/apis/auth_tokens_api.rs src/apis/cloud_api.rs src/apis/cloud_auth_api.rs src/apis/cloud_devices_links_api.rs +src/apis/cloud_games_api.rs src/apis/cloud_games_avatars_api.rs src/apis/cloud_games_builds_api.rs src/apis/cloud_games_cdn_api.rs -src/apis/cloud_games_games_api.rs src/apis/cloud_games_matchmaker_api.rs src/apis/cloud_games_namespaces_analytics_api.rs src/apis/cloud_games_namespaces_api.rs diff --git a/sdks/full/rust-cli/README.md b/sdks/full/rust-cli/README.md index 669d03b88d..4481ea6793 100644 --- a/sdks/full/rust-cli/README.md +++ b/sdks/full/rust-cli/README.md @@ -42,6 +42,14 @@ Class | Method | HTTP request | Description *CloudDevicesLinksApi* | [**cloud_devices_links_complete**](docs/CloudDevicesLinksApi.md#cloud_devices_links_complete) | **POST** /cloud/devices/links/complete | *CloudDevicesLinksApi* | [**cloud_devices_links_get**](docs/CloudDevicesLinksApi.md#cloud_devices_links_get) | **GET** /cloud/devices/links | *CloudDevicesLinksApi* | [**cloud_devices_links_prepare**](docs/CloudDevicesLinksApi.md#cloud_devices_links_prepare) | **POST** /cloud/devices/links | +*CloudGamesApi* | [**cloud_games_create_game**](docs/CloudGamesApi.md#cloud_games_create_game) | **POST** /cloud/games | +*CloudGamesApi* | [**cloud_games_game_banner_upload_complete**](docs/CloudGamesApi.md#cloud_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | +*CloudGamesApi* | [**cloud_games_game_banner_upload_prepare**](docs/CloudGamesApi.md#cloud_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | +*CloudGamesApi* | [**cloud_games_game_logo_upload_complete**](docs/CloudGamesApi.md#cloud_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | +*CloudGamesApi* | [**cloud_games_game_logo_upload_prepare**](docs/CloudGamesApi.md#cloud_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | +*CloudGamesApi* | [**cloud_games_get_game_by_id**](docs/CloudGamesApi.md#cloud_games_get_game_by_id) | **GET** /cloud/games/{game_id} | +*CloudGamesApi* | [**cloud_games_get_games**](docs/CloudGamesApi.md#cloud_games_get_games) | **GET** /cloud/games | +*CloudGamesApi* | [**cloud_games_validate_game**](docs/CloudGamesApi.md#cloud_games_validate_game) | **POST** /cloud/games/validate | *CloudGamesAvatarsApi* | [**cloud_games_avatars_complete_custom_avatar_upload**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_complete_custom_avatar_upload) | **POST** /cloud/games/{game_id}/avatar-upload/{upload_id}/complete | *CloudGamesAvatarsApi* | [**cloud_games_avatars_list_game_custom_avatars**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_list_game_custom_avatars) | **GET** /cloud/games/{game_id}/avatars | *CloudGamesAvatarsApi* | [**cloud_games_avatars_prepare_custom_avatar_upload**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_prepare_custom_avatar_upload) | **POST** /cloud/games/{game_id}/prepare | @@ -49,14 +57,6 @@ Class | Method | HTTP request | Description *CloudGamesBuildsApi* | [**cloud_games_builds_list_game_builds**](docs/CloudGamesBuildsApi.md#cloud_games_builds_list_game_builds) | **GET** /cloud/games/{game_id}/builds | *CloudGamesCdnApi* | [**cloud_games_cdn_create_game_cdn_site**](docs/CloudGamesCdnApi.md#cloud_games_cdn_create_game_cdn_site) | **POST** /cloud/games/{game_id}/cdn/sites | *CloudGamesCdnApi* | [**cloud_games_cdn_list_game_cdn_sites**](docs/CloudGamesCdnApi.md#cloud_games_cdn_list_game_cdn_sites) | **GET** /cloud/games/{game_id}/cdn/sites | -*CloudGamesGamesApi* | [**cloud_games_games_create_game**](docs/CloudGamesGamesApi.md#cloud_games_games_create_game) | **POST** /cloud/games | -*CloudGamesGamesApi* | [**cloud_games_games_game_banner_upload_complete**](docs/CloudGamesGamesApi.md#cloud_games_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | -*CloudGamesGamesApi* | [**cloud_games_games_game_banner_upload_prepare**](docs/CloudGamesGamesApi.md#cloud_games_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | -*CloudGamesGamesApi* | [**cloud_games_games_game_logo_upload_complete**](docs/CloudGamesGamesApi.md#cloud_games_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | -*CloudGamesGamesApi* | [**cloud_games_games_game_logo_upload_prepare**](docs/CloudGamesGamesApi.md#cloud_games_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | -*CloudGamesGamesApi* | [**cloud_games_games_get_game_by_id**](docs/CloudGamesGamesApi.md#cloud_games_games_get_game_by_id) | **GET** /cloud/games/{game_id} | -*CloudGamesGamesApi* | [**cloud_games_games_get_games**](docs/CloudGamesGamesApi.md#cloud_games_games_get_games) | **GET** /cloud/games | -*CloudGamesGamesApi* | [**cloud_games_games_validate_game**](docs/CloudGamesGamesApi.md#cloud_games_games_validate_game) | **POST** /cloud/games/validate | *CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_delete_matchmaker_lobby**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_delete_matchmaker_lobby) | **DELETE** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id} | *CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_export_lobby_logs**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_export_lobby_logs) | **POST** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs/export | *CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_export_matchmaker_lobby_history**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_export_matchmaker_lobby_history) | **POST** /cloud/games/{game_id}/matchmaker/lobbies/export-history | diff --git a/sdks/full/rust-cli/docs/CloudGamesGamesApi.md b/sdks/full/rust-cli/docs/CloudGamesApi.md similarity index 73% rename from sdks/full/rust-cli/docs/CloudGamesGamesApi.md rename to sdks/full/rust-cli/docs/CloudGamesApi.md index 1a71bee76c..479675ff95 100644 --- a/sdks/full/rust-cli/docs/CloudGamesGamesApi.md +++ b/sdks/full/rust-cli/docs/CloudGamesApi.md @@ -1,23 +1,23 @@ -# \CloudGamesGamesApi +# \CloudGamesApi All URIs are relative to *https://api.rivet.gg* Method | HTTP request | Description ------------- | ------------- | ------------- -[**cloud_games_games_create_game**](CloudGamesGamesApi.md#cloud_games_games_create_game) | **POST** /cloud/games | -[**cloud_games_games_game_banner_upload_complete**](CloudGamesGamesApi.md#cloud_games_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | -[**cloud_games_games_game_banner_upload_prepare**](CloudGamesGamesApi.md#cloud_games_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | -[**cloud_games_games_game_logo_upload_complete**](CloudGamesGamesApi.md#cloud_games_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | -[**cloud_games_games_game_logo_upload_prepare**](CloudGamesGamesApi.md#cloud_games_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | -[**cloud_games_games_get_game_by_id**](CloudGamesGamesApi.md#cloud_games_games_get_game_by_id) | **GET** /cloud/games/{game_id} | -[**cloud_games_games_get_games**](CloudGamesGamesApi.md#cloud_games_games_get_games) | **GET** /cloud/games | -[**cloud_games_games_validate_game**](CloudGamesGamesApi.md#cloud_games_games_validate_game) | **POST** /cloud/games/validate | +[**cloud_games_create_game**](CloudGamesApi.md#cloud_games_create_game) | **POST** /cloud/games | +[**cloud_games_game_banner_upload_complete**](CloudGamesApi.md#cloud_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | +[**cloud_games_game_banner_upload_prepare**](CloudGamesApi.md#cloud_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | +[**cloud_games_game_logo_upload_complete**](CloudGamesApi.md#cloud_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | +[**cloud_games_game_logo_upload_prepare**](CloudGamesApi.md#cloud_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | +[**cloud_games_get_game_by_id**](CloudGamesApi.md#cloud_games_get_game_by_id) | **GET** /cloud/games/{game_id} | +[**cloud_games_get_games**](CloudGamesApi.md#cloud_games_get_games) | **GET** /cloud/games | +[**cloud_games_validate_game**](CloudGamesApi.md#cloud_games_validate_game) | **POST** /cloud/games/validate | -## cloud_games_games_create_game +## cloud_games_create_game -> crate::models::CloudGamesCreateGameResponse cloud_games_games_create_game(cloud_games_create_game_request) +> crate::models::CloudGamesCreateGameResponse cloud_games_create_game(cloud_games_create_game_request) Creates a new game. @@ -45,9 +45,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_game_banner_upload_complete +## cloud_games_game_banner_upload_complete -> cloud_games_games_game_banner_upload_complete(game_id, upload_id) +> cloud_games_game_banner_upload_complete(game_id, upload_id) Completes an game banner image upload. Must be called after the file upload process completes. @@ -76,9 +76,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_game_banner_upload_prepare +## cloud_games_game_banner_upload_prepare -> crate::models::CloudGamesGameBannerUploadPrepareResponse cloud_games_games_game_banner_upload_prepare(game_id, cloud_games_game_banner_upload_prepare_request) +> crate::models::CloudGamesGameBannerUploadPrepareResponse cloud_games_game_banner_upload_prepare(game_id, cloud_games_game_banner_upload_prepare_request) Prepares a game banner image upload. @@ -107,9 +107,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_game_logo_upload_complete +## cloud_games_game_logo_upload_complete -> cloud_games_games_game_logo_upload_complete(game_id, upload_id) +> cloud_games_game_logo_upload_complete(game_id, upload_id) Completes a game logo image upload. Must be called after the file upload process completes. @@ -138,9 +138,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_game_logo_upload_prepare +## cloud_games_game_logo_upload_prepare -> crate::models::CloudGamesGameLogoUploadPrepareResponse cloud_games_games_game_logo_upload_prepare(game_id, cloud_games_game_logo_upload_prepare_request) +> crate::models::CloudGamesGameLogoUploadPrepareResponse cloud_games_game_logo_upload_prepare(game_id, cloud_games_game_logo_upload_prepare_request) Prepares a game logo image upload. @@ -169,9 +169,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_get_game_by_id +## cloud_games_get_game_by_id -> crate::models::CloudGamesGetGameByIdResponse cloud_games_games_get_game_by_id(game_id, watch_index) +> crate::models::CloudGamesGetGameByIdResponse cloud_games_get_game_by_id(game_id, watch_index) Returns a game by its game id. @@ -200,9 +200,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_get_games +## cloud_games_get_games -> crate::models::CloudGamesGetGamesResponse cloud_games_games_get_games(watch_index) +> crate::models::CloudGamesGetGamesResponse cloud_games_get_games(watch_index) Returns a list of games in which the current identity is a group member of its development team. @@ -230,9 +230,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_validate_game +## cloud_games_validate_game -> crate::models::CloudGamesValidateGameResponse cloud_games_games_validate_game(cloud_games_validate_game_request) +> crate::models::CloudGamesValidateGameResponse cloud_games_validate_game(cloud_games_validate_game_request) Validates information used to create a new game. diff --git a/sdks/full/rust-cli/docs/CloudGamesValidateGameRequest.md b/sdks/full/rust-cli/docs/CloudGamesValidateGameRequest.md index dda2b6e9be..06585ddd22 100644 --- a/sdks/full/rust-cli/docs/CloudGamesValidateGameRequest.md +++ b/sdks/full/rust-cli/docs/CloudGamesValidateGameRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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/CloudSvcPerf.md b/sdks/full/rust-cli/docs/CloudSvcPerf.md index fb8968b23b..a207bd3d02 100644 --- a/sdks/full/rust-cli/docs/CloudSvcPerf.md +++ b/sdks/full/rust-cli/docs/CloudSvcPerf.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] **spans** | [**Vec**](CloudLogsPerfSpan.md) | A list of performance spans. | **svc_name** | **String** | The name of the service. | -**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/GroupJoinRequest.md b/sdks/full/rust-cli/docs/GroupJoinRequest.md index 2afd50aa9e..9a0307703f 100644 --- a/sdks/full/rust-cli/docs/GroupJoinRequest.md +++ b/sdks/full/rust-cli/docs/GroupJoinRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**crate::models::IdentityHandle**](IdentityHandle.md) | | -**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/IdentityGlobalEvent.md b/sdks/full/rust-cli/docs/IdentityGlobalEvent.md index ac5194ebf1..8c0ea2d415 100644 --- a/sdks/full/rust-cli/docs/IdentityGlobalEvent.md +++ b/sdks/full/rust-cli/docs/IdentityGlobalEvent.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **kind** | [**crate::models::IdentityGlobalEventKind**](IdentityGlobalEventKind.md) | | **notification** | Option<[**crate::models::IdentityGlobalEventNotification**](IdentityGlobalEventNotification.md)> | | [optional] -**ts** | **String** | | +**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/src/apis/cloud_games_games_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_api.rs similarity index 78% rename from sdks/full/rust/src/apis/cloud_games_games_api.rs rename to sdks/full/rust-cli/src/apis/cloud_games_api.rs index b2c3d3c5cf..b9a0a98e2b 100644 --- a/sdks/full/rust/src/apis/cloud_games_games_api.rs +++ b/sdks/full/rust-cli/src/apis/cloud_games_api.rs @@ -15,10 +15,10 @@ use crate::apis::ResponseContent; use super::{Error, configuration}; -/// struct for typed errors of method [`cloud_games_games_create_game`] +/// struct for typed errors of method [`cloud_games_create_game`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesCreateGameError { +pub enum CloudGamesCreateGameError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -28,10 +28,10 @@ pub enum CloudGamesGamesCreateGameError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_game_banner_upload_complete`] +/// struct for typed errors of method [`cloud_games_game_banner_upload_complete`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGameBannerUploadCompleteError { +pub enum CloudGamesGameBannerUploadCompleteError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -41,10 +41,10 @@ pub enum CloudGamesGamesGameBannerUploadCompleteError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_game_banner_upload_prepare`] +/// struct for typed errors of method [`cloud_games_game_banner_upload_prepare`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGameBannerUploadPrepareError { +pub enum CloudGamesGameBannerUploadPrepareError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -54,10 +54,10 @@ pub enum CloudGamesGamesGameBannerUploadPrepareError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_game_logo_upload_complete`] +/// struct for typed errors of method [`cloud_games_game_logo_upload_complete`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGameLogoUploadCompleteError { +pub enum CloudGamesGameLogoUploadCompleteError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -67,10 +67,10 @@ pub enum CloudGamesGamesGameLogoUploadCompleteError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_game_logo_upload_prepare`] +/// struct for typed errors of method [`cloud_games_game_logo_upload_prepare`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGameLogoUploadPrepareError { +pub enum CloudGamesGameLogoUploadPrepareError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -80,10 +80,10 @@ pub enum CloudGamesGamesGameLogoUploadPrepareError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_get_game_by_id`] +/// struct for typed errors of method [`cloud_games_get_game_by_id`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGetGameByIdError { +pub enum CloudGamesGetGameByIdError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -93,10 +93,10 @@ pub enum CloudGamesGamesGetGameByIdError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_get_games`] +/// struct for typed errors of method [`cloud_games_get_games`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGetGamesError { +pub enum CloudGamesGetGamesError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -106,10 +106,10 @@ pub enum CloudGamesGamesGetGamesError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_validate_game`] +/// struct for typed errors of method [`cloud_games_validate_game`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesValidateGameError { +pub enum CloudGamesValidateGameError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -121,7 +121,7 @@ pub enum CloudGamesGamesValidateGameError { /// Creates a new game. -pub async fn cloud_games_games_create_game(configuration: &configuration::Configuration, cloud_games_create_game_request: crate::models::CloudGamesCreateGameRequest) -> Result> { +pub async fn cloud_games_create_game(configuration: &configuration::Configuration, cloud_games_create_game_request: crate::models::CloudGamesCreateGameRequest) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -146,14 +146,14 @@ pub async fn cloud_games_games_create_game(configuration: &configuration::Config 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_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)) } } /// Completes an game banner image upload. Must be called after the file upload process completes. -pub async fn cloud_games_games_game_banner_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { +pub async fn cloud_games_game_banner_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -177,14 +177,14 @@ pub async fn cloud_games_games_game_banner_upload_complete(configuration: &confi if !local_var_status.is_client_error() && !local_var_status.is_server_error() { Ok(()) } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + 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)) } } /// Prepares a game banner image upload. -pub async fn cloud_games_games_game_banner_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_banner_upload_prepare_request: crate::models::CloudGamesGameBannerUploadPrepareRequest) -> Result> { +pub async fn cloud_games_game_banner_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_banner_upload_prepare_request: crate::models::CloudGamesGameBannerUploadPrepareRequest) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -209,14 +209,14 @@ pub async fn cloud_games_games_game_banner_upload_prepare(configuration: &config 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_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)) } } /// Completes a game logo image upload. Must be called after the file upload process completes. -pub async fn cloud_games_games_game_logo_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { +pub async fn cloud_games_game_logo_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -240,14 +240,14 @@ pub async fn cloud_games_games_game_logo_upload_complete(configuration: &configu if !local_var_status.is_client_error() && !local_var_status.is_server_error() { Ok(()) } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + 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)) } } /// Prepares a game logo image upload. -pub async fn cloud_games_games_game_logo_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_logo_upload_prepare_request: crate::models::CloudGamesGameLogoUploadPrepareRequest) -> Result> { +pub async fn cloud_games_game_logo_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_logo_upload_prepare_request: crate::models::CloudGamesGameLogoUploadPrepareRequest) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -272,14 +272,14 @@ pub async fn cloud_games_games_game_logo_upload_prepare(configuration: &configur 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_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)) } } /// Returns a game by its game id. -pub async fn cloud_games_games_get_game_by_id(configuration: &configuration::Configuration, game_id: &str, watch_index: Option<&str>) -> Result> { +pub async fn cloud_games_get_game_by_id(configuration: &configuration::Configuration, game_id: &str, watch_index: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -306,14 +306,14 @@ pub async fn cloud_games_games_get_game_by_id(configuration: &configuration::Con 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_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)) } } /// Returns a list of games in which the current identity is a group member of its development team. -pub async fn cloud_games_games_get_games(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { +pub async fn cloud_games_get_games(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -340,14 +340,14 @@ pub async fn cloud_games_games_get_games(configuration: &configuration::Configur 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_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)) } } /// Validates information used to create a new game. -pub async fn cloud_games_games_validate_game(configuration: &configuration::Configuration, cloud_games_validate_game_request: crate::models::CloudGamesValidateGameRequest) -> Result> { +pub async fn cloud_games_validate_game(configuration: &configuration::Configuration, cloud_games_validate_game_request: crate::models::CloudGamesValidateGameRequest) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -372,7 +372,7 @@ pub async fn cloud_games_games_validate_game(configuration: &configuration::Conf 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_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/apis/cloud_games_namespaces_logs_api.rs b/sdks/full/rust-cli/src/apis/cloud_games_namespaces_logs_api.rs index ad0516e80f..43e8b17d20 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<&str>) -> Result> { +pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, before_create_ts: Option) -> 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 f51157351a..112d34ab1b 100644 --- a/sdks/full/rust-cli/src/apis/mod.rs +++ b/sdks/full/rust-cli/src/apis/mod.rs @@ -99,10 +99,10 @@ pub mod auth_tokens_api; pub mod cloud_api; pub mod cloud_auth_api; pub mod cloud_devices_links_api; +pub mod cloud_games_api; pub mod cloud_games_avatars_api; pub mod cloud_games_builds_api; pub mod cloud_games_cdn_api; -pub mod cloud_games_games_api; pub mod cloud_games_matchmaker_api; pub mod cloud_games_namespaces_api; pub mod cloud_games_namespaces_analytics_api; diff --git a/sdks/full/rust-cli/src/models/cloud_games_validate_game_request.rs b/sdks/full/rust-cli/src/models/cloud_games_validate_game_request.rs index 22d8bc0ffb..30f7fb8d7b 100644 --- a/sdks/full/rust-cli/src/models/cloud_games_validate_game_request.rs +++ b/sdks/full/rust-cli/src/models/cloud_games_validate_game_request.rs @@ -16,7 +16,7 @@ pub struct CloudGamesValidateGameRequest { /// 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_svc_perf.rs b/sdks/full/rust-cli/src/models/cloud_svc_perf.rs index 419c45346f..297dd08172 100644 --- a/sdks/full/rust-cli/src/models/cloud_svc_perf.rs +++ b/sdks/full/rust-cli/src/models/cloud_svc_perf.rs @@ -28,7 +28,7 @@ pub struct CloudSvcPerf { /// The name of the service. #[serde(rename = "svc_name")] pub svc_name: String, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ts")] pub ts: String, } diff --git a/sdks/full/rust-cli/src/models/group_join_request.rs b/sdks/full/rust-cli/src/models/group_join_request.rs index 2ccedd073a..64edb19238 100644 --- a/sdks/full/rust-cli/src/models/group_join_request.rs +++ b/sdks/full/rust-cli/src/models/group_join_request.rs @@ -16,7 +16,7 @@ pub struct GroupJoinRequest { #[serde(rename = "identity")] pub identity: Box, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ts")] pub ts: String, } diff --git a/sdks/full/rust-cli/src/models/identity_global_event.rs b/sdks/full/rust-cli/src/models/identity_global_event.rs index f0395bf370..e3533a36a9 100644 --- a/sdks/full/rust-cli/src/models/identity_global_event.rs +++ b/sdks/full/rust-cli/src/models/identity_global_event.rs @@ -18,6 +18,7 @@ pub struct IdentityGlobalEvent { pub kind: Box, #[serde(rename = "notification", skip_serializing_if = "Option::is_none")] pub notification: Option>, + /// RFC3339 timestamp #[serde(rename = "ts")] pub ts: String, } diff --git a/sdks/full/rust/.openapi-generator/FILES b/sdks/full/rust/.openapi-generator/FILES index bd80d4e913..0afcea178f 100644 --- a/sdks/full/rust/.openapi-generator/FILES +++ b/sdks/full/rust/.openapi-generator/FILES @@ -66,6 +66,7 @@ docs/CloudDevicesLinksApi.md docs/CloudDevicesPrepareDeviceLinkResponse.md docs/CloudGameFull.md docs/CloudGameLobbyExpenses.md +docs/CloudGamesApi.md docs/CloudGamesAvatarsApi.md docs/CloudGamesBuildCompression.md docs/CloudGamesBuildKind.md @@ -89,7 +90,6 @@ docs/CloudGamesGameBannerUploadPrepareRequest.md docs/CloudGamesGameBannerUploadPrepareResponse.md docs/CloudGamesGameLogoUploadPrepareRequest.md docs/CloudGamesGameLogoUploadPrepareResponse.md -docs/CloudGamesGamesApi.md docs/CloudGamesGetGameByIdResponse.md docs/CloudGamesGetGameVersionByIdResponse.md docs/CloudGamesGetGamesResponse.md @@ -356,10 +356,10 @@ src/apis/auth_tokens_api.rs src/apis/cloud_api.rs src/apis/cloud_auth_api.rs src/apis/cloud_devices_links_api.rs +src/apis/cloud_games_api.rs src/apis/cloud_games_avatars_api.rs src/apis/cloud_games_builds_api.rs src/apis/cloud_games_cdn_api.rs -src/apis/cloud_games_games_api.rs src/apis/cloud_games_matchmaker_api.rs src/apis/cloud_games_namespaces_analytics_api.rs src/apis/cloud_games_namespaces_api.rs diff --git a/sdks/full/rust/README.md b/sdks/full/rust/README.md index 669d03b88d..4481ea6793 100644 --- a/sdks/full/rust/README.md +++ b/sdks/full/rust/README.md @@ -42,6 +42,14 @@ Class | Method | HTTP request | Description *CloudDevicesLinksApi* | [**cloud_devices_links_complete**](docs/CloudDevicesLinksApi.md#cloud_devices_links_complete) | **POST** /cloud/devices/links/complete | *CloudDevicesLinksApi* | [**cloud_devices_links_get**](docs/CloudDevicesLinksApi.md#cloud_devices_links_get) | **GET** /cloud/devices/links | *CloudDevicesLinksApi* | [**cloud_devices_links_prepare**](docs/CloudDevicesLinksApi.md#cloud_devices_links_prepare) | **POST** /cloud/devices/links | +*CloudGamesApi* | [**cloud_games_create_game**](docs/CloudGamesApi.md#cloud_games_create_game) | **POST** /cloud/games | +*CloudGamesApi* | [**cloud_games_game_banner_upload_complete**](docs/CloudGamesApi.md#cloud_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | +*CloudGamesApi* | [**cloud_games_game_banner_upload_prepare**](docs/CloudGamesApi.md#cloud_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | +*CloudGamesApi* | [**cloud_games_game_logo_upload_complete**](docs/CloudGamesApi.md#cloud_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | +*CloudGamesApi* | [**cloud_games_game_logo_upload_prepare**](docs/CloudGamesApi.md#cloud_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | +*CloudGamesApi* | [**cloud_games_get_game_by_id**](docs/CloudGamesApi.md#cloud_games_get_game_by_id) | **GET** /cloud/games/{game_id} | +*CloudGamesApi* | [**cloud_games_get_games**](docs/CloudGamesApi.md#cloud_games_get_games) | **GET** /cloud/games | +*CloudGamesApi* | [**cloud_games_validate_game**](docs/CloudGamesApi.md#cloud_games_validate_game) | **POST** /cloud/games/validate | *CloudGamesAvatarsApi* | [**cloud_games_avatars_complete_custom_avatar_upload**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_complete_custom_avatar_upload) | **POST** /cloud/games/{game_id}/avatar-upload/{upload_id}/complete | *CloudGamesAvatarsApi* | [**cloud_games_avatars_list_game_custom_avatars**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_list_game_custom_avatars) | **GET** /cloud/games/{game_id}/avatars | *CloudGamesAvatarsApi* | [**cloud_games_avatars_prepare_custom_avatar_upload**](docs/CloudGamesAvatarsApi.md#cloud_games_avatars_prepare_custom_avatar_upload) | **POST** /cloud/games/{game_id}/prepare | @@ -49,14 +57,6 @@ Class | Method | HTTP request | Description *CloudGamesBuildsApi* | [**cloud_games_builds_list_game_builds**](docs/CloudGamesBuildsApi.md#cloud_games_builds_list_game_builds) | **GET** /cloud/games/{game_id}/builds | *CloudGamesCdnApi* | [**cloud_games_cdn_create_game_cdn_site**](docs/CloudGamesCdnApi.md#cloud_games_cdn_create_game_cdn_site) | **POST** /cloud/games/{game_id}/cdn/sites | *CloudGamesCdnApi* | [**cloud_games_cdn_list_game_cdn_sites**](docs/CloudGamesCdnApi.md#cloud_games_cdn_list_game_cdn_sites) | **GET** /cloud/games/{game_id}/cdn/sites | -*CloudGamesGamesApi* | [**cloud_games_games_create_game**](docs/CloudGamesGamesApi.md#cloud_games_games_create_game) | **POST** /cloud/games | -*CloudGamesGamesApi* | [**cloud_games_games_game_banner_upload_complete**](docs/CloudGamesGamesApi.md#cloud_games_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | -*CloudGamesGamesApi* | [**cloud_games_games_game_banner_upload_prepare**](docs/CloudGamesGamesApi.md#cloud_games_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | -*CloudGamesGamesApi* | [**cloud_games_games_game_logo_upload_complete**](docs/CloudGamesGamesApi.md#cloud_games_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | -*CloudGamesGamesApi* | [**cloud_games_games_game_logo_upload_prepare**](docs/CloudGamesGamesApi.md#cloud_games_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | -*CloudGamesGamesApi* | [**cloud_games_games_get_game_by_id**](docs/CloudGamesGamesApi.md#cloud_games_games_get_game_by_id) | **GET** /cloud/games/{game_id} | -*CloudGamesGamesApi* | [**cloud_games_games_get_games**](docs/CloudGamesGamesApi.md#cloud_games_games_get_games) | **GET** /cloud/games | -*CloudGamesGamesApi* | [**cloud_games_games_validate_game**](docs/CloudGamesGamesApi.md#cloud_games_games_validate_game) | **POST** /cloud/games/validate | *CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_delete_matchmaker_lobby**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_delete_matchmaker_lobby) | **DELETE** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id} | *CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_export_lobby_logs**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_export_lobby_logs) | **POST** /cloud/games/{game_id}/matchmaker/lobbies/{lobby_id}/logs/export | *CloudGamesMatchmakerApi* | [**cloud_games_matchmaker_export_matchmaker_lobby_history**](docs/CloudGamesMatchmakerApi.md#cloud_games_matchmaker_export_matchmaker_lobby_history) | **POST** /cloud/games/{game_id}/matchmaker/lobbies/export-history | diff --git a/sdks/full/rust/docs/CloudGamesGamesApi.md b/sdks/full/rust/docs/CloudGamesApi.md similarity index 73% rename from sdks/full/rust/docs/CloudGamesGamesApi.md rename to sdks/full/rust/docs/CloudGamesApi.md index 1a71bee76c..479675ff95 100644 --- a/sdks/full/rust/docs/CloudGamesGamesApi.md +++ b/sdks/full/rust/docs/CloudGamesApi.md @@ -1,23 +1,23 @@ -# \CloudGamesGamesApi +# \CloudGamesApi All URIs are relative to *https://api.rivet.gg* Method | HTTP request | Description ------------- | ------------- | ------------- -[**cloud_games_games_create_game**](CloudGamesGamesApi.md#cloud_games_games_create_game) | **POST** /cloud/games | -[**cloud_games_games_game_banner_upload_complete**](CloudGamesGamesApi.md#cloud_games_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | -[**cloud_games_games_game_banner_upload_prepare**](CloudGamesGamesApi.md#cloud_games_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | -[**cloud_games_games_game_logo_upload_complete**](CloudGamesGamesApi.md#cloud_games_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | -[**cloud_games_games_game_logo_upload_prepare**](CloudGamesGamesApi.md#cloud_games_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | -[**cloud_games_games_get_game_by_id**](CloudGamesGamesApi.md#cloud_games_games_get_game_by_id) | **GET** /cloud/games/{game_id} | -[**cloud_games_games_get_games**](CloudGamesGamesApi.md#cloud_games_games_get_games) | **GET** /cloud/games | -[**cloud_games_games_validate_game**](CloudGamesGamesApi.md#cloud_games_games_validate_game) | **POST** /cloud/games/validate | +[**cloud_games_create_game**](CloudGamesApi.md#cloud_games_create_game) | **POST** /cloud/games | +[**cloud_games_game_banner_upload_complete**](CloudGamesApi.md#cloud_games_game_banner_upload_complete) | **POST** /cloud/games/{game_id}/banner-upload/{upload_id}/complete | +[**cloud_games_game_banner_upload_prepare**](CloudGamesApi.md#cloud_games_game_banner_upload_prepare) | **POST** /cloud/games/{game_id}/banner-upload/prepare | +[**cloud_games_game_logo_upload_complete**](CloudGamesApi.md#cloud_games_game_logo_upload_complete) | **POST** /cloud/games/{game_id}/logo-upload/{upload_id}/complete | +[**cloud_games_game_logo_upload_prepare**](CloudGamesApi.md#cloud_games_game_logo_upload_prepare) | **POST** /cloud/games/{game_id}/logo-upload/prepare | +[**cloud_games_get_game_by_id**](CloudGamesApi.md#cloud_games_get_game_by_id) | **GET** /cloud/games/{game_id} | +[**cloud_games_get_games**](CloudGamesApi.md#cloud_games_get_games) | **GET** /cloud/games | +[**cloud_games_validate_game**](CloudGamesApi.md#cloud_games_validate_game) | **POST** /cloud/games/validate | -## cloud_games_games_create_game +## cloud_games_create_game -> crate::models::CloudGamesCreateGameResponse cloud_games_games_create_game(cloud_games_create_game_request) +> crate::models::CloudGamesCreateGameResponse cloud_games_create_game(cloud_games_create_game_request) Creates a new game. @@ -45,9 +45,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_game_banner_upload_complete +## cloud_games_game_banner_upload_complete -> cloud_games_games_game_banner_upload_complete(game_id, upload_id) +> cloud_games_game_banner_upload_complete(game_id, upload_id) Completes an game banner image upload. Must be called after the file upload process completes. @@ -76,9 +76,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_game_banner_upload_prepare +## cloud_games_game_banner_upload_prepare -> crate::models::CloudGamesGameBannerUploadPrepareResponse cloud_games_games_game_banner_upload_prepare(game_id, cloud_games_game_banner_upload_prepare_request) +> crate::models::CloudGamesGameBannerUploadPrepareResponse cloud_games_game_banner_upload_prepare(game_id, cloud_games_game_banner_upload_prepare_request) Prepares a game banner image upload. @@ -107,9 +107,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_game_logo_upload_complete +## cloud_games_game_logo_upload_complete -> cloud_games_games_game_logo_upload_complete(game_id, upload_id) +> cloud_games_game_logo_upload_complete(game_id, upload_id) Completes a game logo image upload. Must be called after the file upload process completes. @@ -138,9 +138,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_game_logo_upload_prepare +## cloud_games_game_logo_upload_prepare -> crate::models::CloudGamesGameLogoUploadPrepareResponse cloud_games_games_game_logo_upload_prepare(game_id, cloud_games_game_logo_upload_prepare_request) +> crate::models::CloudGamesGameLogoUploadPrepareResponse cloud_games_game_logo_upload_prepare(game_id, cloud_games_game_logo_upload_prepare_request) Prepares a game logo image upload. @@ -169,9 +169,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_get_game_by_id +## cloud_games_get_game_by_id -> crate::models::CloudGamesGetGameByIdResponse cloud_games_games_get_game_by_id(game_id, watch_index) +> crate::models::CloudGamesGetGameByIdResponse cloud_games_get_game_by_id(game_id, watch_index) Returns a game by its game id. @@ -200,9 +200,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_get_games +## cloud_games_get_games -> crate::models::CloudGamesGetGamesResponse cloud_games_games_get_games(watch_index) +> crate::models::CloudGamesGetGamesResponse cloud_games_get_games(watch_index) Returns a list of games in which the current identity is a group member of its development team. @@ -230,9 +230,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## cloud_games_games_validate_game +## cloud_games_validate_game -> crate::models::CloudGamesValidateGameResponse cloud_games_games_validate_game(cloud_games_validate_game_request) +> crate::models::CloudGamesValidateGameResponse cloud_games_validate_game(cloud_games_validate_game_request) Validates information used to create a new game. diff --git a/sdks/full/rust/docs/CloudGamesValidateGameRequest.md b/sdks/full/rust/docs/CloudGamesValidateGameRequest.md index dda2b6e9be..06585ddd22 100644 --- a/sdks/full/rust/docs/CloudGamesValidateGameRequest.md +++ b/sdks/full/rust/docs/CloudGamesValidateGameRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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/CloudSvcPerf.md b/sdks/full/rust/docs/CloudSvcPerf.md index fb8968b23b..a207bd3d02 100644 --- a/sdks/full/rust/docs/CloudSvcPerf.md +++ b/sdks/full/rust/docs/CloudSvcPerf.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **req_id** | Option<[**uuid::Uuid**](uuid::Uuid.md)> | | [optional] **spans** | [**Vec**](CloudLogsPerfSpan.md) | A list of performance spans. | **svc_name** | **String** | The name of the service. | -**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/GroupJoinRequest.md b/sdks/full/rust/docs/GroupJoinRequest.md index 2afd50aa9e..9a0307703f 100644 --- a/sdks/full/rust/docs/GroupJoinRequest.md +++ b/sdks/full/rust/docs/GroupJoinRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **identity** | [**crate::models::IdentityHandle**](IdentityHandle.md) | | -**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/IdentityGlobalEvent.md b/sdks/full/rust/docs/IdentityGlobalEvent.md index ac5194ebf1..8c0ea2d415 100644 --- a/sdks/full/rust/docs/IdentityGlobalEvent.md +++ b/sdks/full/rust/docs/IdentityGlobalEvent.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **kind** | [**crate::models::IdentityGlobalEventKind**](IdentityGlobalEventKind.md) | | **notification** | Option<[**crate::models::IdentityGlobalEventNotification**](IdentityGlobalEventNotification.md)> | | [optional] -**ts** | **String** | | +**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/src/apis/cloud_games_games_api.rs b/sdks/full/rust/src/apis/cloud_games_api.rs similarity index 78% rename from sdks/full/rust-cli/src/apis/cloud_games_games_api.rs rename to sdks/full/rust/src/apis/cloud_games_api.rs index b2c3d3c5cf..b9a0a98e2b 100644 --- a/sdks/full/rust-cli/src/apis/cloud_games_games_api.rs +++ b/sdks/full/rust/src/apis/cloud_games_api.rs @@ -15,10 +15,10 @@ use crate::apis::ResponseContent; use super::{Error, configuration}; -/// struct for typed errors of method [`cloud_games_games_create_game`] +/// struct for typed errors of method [`cloud_games_create_game`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesCreateGameError { +pub enum CloudGamesCreateGameError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -28,10 +28,10 @@ pub enum CloudGamesGamesCreateGameError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_game_banner_upload_complete`] +/// struct for typed errors of method [`cloud_games_game_banner_upload_complete`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGameBannerUploadCompleteError { +pub enum CloudGamesGameBannerUploadCompleteError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -41,10 +41,10 @@ pub enum CloudGamesGamesGameBannerUploadCompleteError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_game_banner_upload_prepare`] +/// struct for typed errors of method [`cloud_games_game_banner_upload_prepare`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGameBannerUploadPrepareError { +pub enum CloudGamesGameBannerUploadPrepareError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -54,10 +54,10 @@ pub enum CloudGamesGamesGameBannerUploadPrepareError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_game_logo_upload_complete`] +/// struct for typed errors of method [`cloud_games_game_logo_upload_complete`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGameLogoUploadCompleteError { +pub enum CloudGamesGameLogoUploadCompleteError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -67,10 +67,10 @@ pub enum CloudGamesGamesGameLogoUploadCompleteError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_game_logo_upload_prepare`] +/// struct for typed errors of method [`cloud_games_game_logo_upload_prepare`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGameLogoUploadPrepareError { +pub enum CloudGamesGameLogoUploadPrepareError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -80,10 +80,10 @@ pub enum CloudGamesGamesGameLogoUploadPrepareError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_get_game_by_id`] +/// struct for typed errors of method [`cloud_games_get_game_by_id`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGetGameByIdError { +pub enum CloudGamesGetGameByIdError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -93,10 +93,10 @@ pub enum CloudGamesGamesGetGameByIdError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_get_games`] +/// struct for typed errors of method [`cloud_games_get_games`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesGetGamesError { +pub enum CloudGamesGetGamesError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -106,10 +106,10 @@ pub enum CloudGamesGamesGetGamesError { UnknownValue(serde_json::Value), } -/// struct for typed errors of method [`cloud_games_games_validate_game`] +/// struct for typed errors of method [`cloud_games_validate_game`] #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] -pub enum CloudGamesGamesValidateGameError { +pub enum CloudGamesValidateGameError { Status400(crate::models::ErrorBody), Status403(crate::models::ErrorBody), Status404(crate::models::ErrorBody), @@ -121,7 +121,7 @@ pub enum CloudGamesGamesValidateGameError { /// Creates a new game. -pub async fn cloud_games_games_create_game(configuration: &configuration::Configuration, cloud_games_create_game_request: crate::models::CloudGamesCreateGameRequest) -> Result> { +pub async fn cloud_games_create_game(configuration: &configuration::Configuration, cloud_games_create_game_request: crate::models::CloudGamesCreateGameRequest) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -146,14 +146,14 @@ pub async fn cloud_games_games_create_game(configuration: &configuration::Config 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_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)) } } /// Completes an game banner image upload. Must be called after the file upload process completes. -pub async fn cloud_games_games_game_banner_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { +pub async fn cloud_games_game_banner_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -177,14 +177,14 @@ pub async fn cloud_games_games_game_banner_upload_complete(configuration: &confi if !local_var_status.is_client_error() && !local_var_status.is_server_error() { Ok(()) } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + 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)) } } /// Prepares a game banner image upload. -pub async fn cloud_games_games_game_banner_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_banner_upload_prepare_request: crate::models::CloudGamesGameBannerUploadPrepareRequest) -> Result> { +pub async fn cloud_games_game_banner_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_banner_upload_prepare_request: crate::models::CloudGamesGameBannerUploadPrepareRequest) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -209,14 +209,14 @@ pub async fn cloud_games_games_game_banner_upload_prepare(configuration: &config 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_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)) } } /// Completes a game logo image upload. Must be called after the file upload process completes. -pub async fn cloud_games_games_game_logo_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { +pub async fn cloud_games_game_logo_upload_complete(configuration: &configuration::Configuration, game_id: &str, upload_id: &str) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -240,14 +240,14 @@ pub async fn cloud_games_games_game_logo_upload_complete(configuration: &configu if !local_var_status.is_client_error() && !local_var_status.is_server_error() { Ok(()) } else { - let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + 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)) } } /// Prepares a game logo image upload. -pub async fn cloud_games_games_game_logo_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_logo_upload_prepare_request: crate::models::CloudGamesGameLogoUploadPrepareRequest) -> Result> { +pub async fn cloud_games_game_logo_upload_prepare(configuration: &configuration::Configuration, game_id: &str, cloud_games_game_logo_upload_prepare_request: crate::models::CloudGamesGameLogoUploadPrepareRequest) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -272,14 +272,14 @@ pub async fn cloud_games_games_game_logo_upload_prepare(configuration: &configur 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_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)) } } /// Returns a game by its game id. -pub async fn cloud_games_games_get_game_by_id(configuration: &configuration::Configuration, game_id: &str, watch_index: Option<&str>) -> Result> { +pub async fn cloud_games_get_game_by_id(configuration: &configuration::Configuration, game_id: &str, watch_index: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -306,14 +306,14 @@ pub async fn cloud_games_games_get_game_by_id(configuration: &configuration::Con 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_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)) } } /// Returns a list of games in which the current identity is a group member of its development team. -pub async fn cloud_games_games_get_games(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { +pub async fn cloud_games_get_games(configuration: &configuration::Configuration, watch_index: Option<&str>) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -340,14 +340,14 @@ pub async fn cloud_games_games_get_games(configuration: &configuration::Configur 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_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)) } } /// Validates information used to create a new game. -pub async fn cloud_games_games_validate_game(configuration: &configuration::Configuration, cloud_games_validate_game_request: crate::models::CloudGamesValidateGameRequest) -> Result> { +pub async fn cloud_games_validate_game(configuration: &configuration::Configuration, cloud_games_validate_game_request: crate::models::CloudGamesValidateGameRequest) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -372,7 +372,7 @@ pub async fn cloud_games_games_validate_game(configuration: &configuration::Conf 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_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/apis/cloud_games_namespaces_logs_api.rs b/sdks/full/rust/src/apis/cloud_games_namespaces_logs_api.rs index ad0516e80f..43e8b17d20 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<&str>) -> Result> { +pub async fn cloud_games_namespaces_logs_list_namespace_lobbies(configuration: &configuration::Configuration, game_id: &str, namespace_id: &str, before_create_ts: Option) -> 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 f51157351a..112d34ab1b 100644 --- a/sdks/full/rust/src/apis/mod.rs +++ b/sdks/full/rust/src/apis/mod.rs @@ -99,10 +99,10 @@ pub mod auth_tokens_api; pub mod cloud_api; pub mod cloud_auth_api; pub mod cloud_devices_links_api; +pub mod cloud_games_api; pub mod cloud_games_avatars_api; pub mod cloud_games_builds_api; pub mod cloud_games_cdn_api; -pub mod cloud_games_games_api; pub mod cloud_games_matchmaker_api; pub mod cloud_games_namespaces_api; pub mod cloud_games_namespaces_analytics_api; diff --git a/sdks/full/rust/src/models/cloud_games_validate_game_request.rs b/sdks/full/rust/src/models/cloud_games_validate_game_request.rs index 22d8bc0ffb..30f7fb8d7b 100644 --- a/sdks/full/rust/src/models/cloud_games_validate_game_request.rs +++ b/sdks/full/rust/src/models/cloud_games_validate_game_request.rs @@ -16,7 +16,7 @@ pub struct CloudGamesValidateGameRequest { /// 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_svc_perf.rs b/sdks/full/rust/src/models/cloud_svc_perf.rs index 419c45346f..297dd08172 100644 --- a/sdks/full/rust/src/models/cloud_svc_perf.rs +++ b/sdks/full/rust/src/models/cloud_svc_perf.rs @@ -28,7 +28,7 @@ pub struct CloudSvcPerf { /// The name of the service. #[serde(rename = "svc_name")] pub svc_name: String, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ts")] pub ts: String, } diff --git a/sdks/full/rust/src/models/group_join_request.rs b/sdks/full/rust/src/models/group_join_request.rs index 2ccedd073a..64edb19238 100644 --- a/sdks/full/rust/src/models/group_join_request.rs +++ b/sdks/full/rust/src/models/group_join_request.rs @@ -16,7 +16,7 @@ pub struct GroupJoinRequest { #[serde(rename = "identity")] pub identity: Box, - /// RFC3339 timestamp. + /// RFC3339 timestamp #[serde(rename = "ts")] pub ts: String, } diff --git a/sdks/full/rust/src/models/identity_global_event.rs b/sdks/full/rust/src/models/identity_global_event.rs index f0395bf370..e3533a36a9 100644 --- a/sdks/full/rust/src/models/identity_global_event.rs +++ b/sdks/full/rust/src/models/identity_global_event.rs @@ -18,6 +18,7 @@ pub struct IdentityGlobalEvent { pub kind: Box, #[serde(rename = "notification", skip_serializing_if = "Option::is_none")] pub notification: Option>, + /// RFC3339 timestamp #[serde(rename = "ts")] pub ts: String, } diff --git a/sdks/full/typescript/.gitignore b/sdks/full/typescript/.gitignore deleted file mode 100644 index 169a00539f..0000000000 --- a/sdks/full/typescript/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -node_modules -.DS_Store -*.d.ts -dist/ -types/ - -# yarn berry -.pnp.* -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/sdks -!.yarn/versions diff --git a/sdks/full/typescript/.prettierrc.yml b/sdks/full/typescript/.prettierrc.yml deleted file mode 100644 index 0c06786bf5..0000000000 --- a/sdks/full/typescript/.prettierrc.yml +++ /dev/null @@ -1,2 +0,0 @@ -tabWidth: 4 -printWidth: 120 diff --git a/sdks/full/typescript/archive.tgz b/sdks/full/typescript/archive.tgz deleted file mode 100644 index 4f970e9f07..0000000000 --- a/sdks/full/typescript/archive.tgz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ecb7adccd7053ab1c33db6b63480cab804a768121b43ea2f0021bcacd53b663f -size 635864 diff --git a/sdks/full/typescript/build.js b/sdks/full/typescript/build.js deleted file mode 100644 index ea2d841bbe..0000000000 --- a/sdks/full/typescript/build.js +++ /dev/null @@ -1,62 +0,0 @@ -const { build } = require("esbuild"); - -void main(); - -async function main() { - await bundle({ - platform: "node", - target: "node14", - format: "cjs", - outdir: "node", - }); - await bundle({ - platform: "browser", - format: "esm", - outdir: "browser/esm", - }); - await bundle({ - platform: "browser", - format: "cjs", - outdir: "browser/cjs", - }); -} - -async function bundle({ platform, target, format, outdir }) { - await runEsbuild({ - platform, - target, - format, - entryPoint: "./src/index.ts", - outfile: `./dist/${outdir}/index.js`, - }); - await runEsbuild({ - platform, - target, - format, - entryPoint: "./src/core/index.ts", - outfile: `./dist/${outdir}/core.js`, - }); - await runEsbuild({ - platform, - target, - format, - entryPoint: "./src/serialization/index.ts", - outfile: `./dist/${outdir}/serialization.js`, - }); -} - -async function runEsbuild({ platform, target, format, entryPoint, outfile }) { - await build({ - platform, - target, - format, - entryPoints: [entryPoint], - outfile, - bundle: true, - alias: { - // matches up with tsconfig paths - "@rivet-gg/api": "./src", - }, - external: ['node-fetch'], - }).catch(() => process.exit(1)); -} diff --git a/sdks/full/typescript/package.json b/sdks/full/typescript/package.json deleted file mode 100644 index 3f1041d48d..0000000000 --- a/sdks/full/typescript/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "@rivet-gg/api-full", - "version": "0.0.1", - "private": false, - "repository": "https://github.com/rivet-gg/rivet/tree/main/sdks/full/typescript", - "publishConfig": { - "registry": "https://registry.npmjs.org/" - }, - "files": [ - "dist", - "types", - "core.d.ts", - "serialization.d.ts" - ], - "exports": { - ".": { - "node": "./dist/node/index.js", - "import": "./dist/browser/esm/index.js", - "require": "./dist/browser/cjs/index.js", - "default": "./dist/browser/cjs/index.js", - "types": "./types/index.d.ts" - }, - "./core": { - "node": "./dist/node/core.js", - "import": "./dist/browser/esm/core.js", - "require": "./dist/browser/cjs/core.js", - "default": "./dist/browser/cjs/core.js", - "types": "./types/core/index.d.ts" - }, - "./serialization": { - "node": "./dist/node/serialization.js", - "import": "./dist/browser/esm/serialization.js", - "require": "./dist/browser/cjs/serialization.js", - "default": "./dist/browser/cjs/serialization.js", - "types": "./types/serialization/index.d.ts" - } - }, - "types": "./types/index.d.ts", - "scripts": { - "format": "prettier --write 'src/**/*.ts'", - "compile": "tsc", - "bundle": "node build.js", - "build": "yarn compile && yarn bundle", - "prepack": "yarn run build" - }, - "dependencies": { - "form-data": "^4.0.0", - "js-base64": "^3.7.5", - "node-fetch": "2", - "qs": "^6.11.2", - "url-join": "^5.0.0" - }, - "devDependencies": { - "@types/node": "17.0.33", - "@types/qs": "6.9.8", - "@types/url-join": "4.0.1", - "esbuild": "^0.19.11", - "prettier": "2.7.1", - "typescript": "4.6.4" - } -} diff --git a/sdks/full/typescript/src/api/resources/admin/resources/cluster/types/GetServerIpsResponse.ts b/sdks/full/typescript/src/api/resources/admin/resources/cluster/types/GetServerIpsResponse.ts new file mode 100644 index 0000000000..559a329f13 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/admin/resources/cluster/types/GetServerIpsResponse.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GetServerIpsResponse { + ips: string[]; +} diff --git a/sdks/full/typescript/src/api/resources/admin/resources/cluster/types/index.ts b/sdks/full/typescript/src/api/resources/admin/resources/cluster/types/index.ts new file mode 100644 index 0000000000..b1e8cd1f20 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/admin/resources/cluster/types/index.ts @@ -0,0 +1 @@ +export * from "./GetServerIpsResponse"; diff --git a/sdks/full/typescript/src/api/resources/admin/resources/common/types/PoolType.ts b/sdks/full/typescript/src/api/resources/admin/resources/common/types/PoolType.ts new file mode 100644 index 0000000000..c949810089 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/admin/resources/common/types/PoolType.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PoolType = "job" | "gg" | "ats"; + +export const PoolType = { + Job: "job", + Gg: "gg", + Ats: "ats", +} as const; diff --git a/sdks/full/typescript/src/api/resources/admin/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/admin/resources/common/types/index.ts new file mode 100644 index 0000000000..a858434e56 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/admin/resources/common/types/index.ts @@ -0,0 +1 @@ +export * from "./PoolType"; diff --git a/sdks/full/typescript/src/api/resources/admin/types/LoginRequest.ts b/sdks/full/typescript/src/api/resources/admin/types/LoginRequest.ts new file mode 100644 index 0000000000..8f0df45015 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/admin/types/LoginRequest.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface LoginRequest { + name: string; +} diff --git a/sdks/full/typescript/src/api/resources/admin/types/LoginResponse.ts b/sdks/full/typescript/src/api/resources/admin/types/LoginResponse.ts new file mode 100644 index 0000000000..051aacd1b9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/admin/types/LoginResponse.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface LoginResponse { + url: string; +} diff --git a/sdks/full/typescript/src/api/resources/admin/types/index.ts b/sdks/full/typescript/src/api/resources/admin/types/index.ts new file mode 100644 index 0000000000..514bddae81 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/admin/types/index.ts @@ -0,0 +1,2 @@ +export * from "./LoginRequest"; +export * from "./LoginResponse"; diff --git a/sdks/full/typescript/src/api/resources/auth/resources/common/types/CompleteStatus.ts b/sdks/full/typescript/src/api/resources/auth/resources/common/types/CompleteStatus.ts new file mode 100644 index 0000000000..46b8491c8f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/common/types/CompleteStatus.ts @@ -0,0 +1,35 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Represents the state of an external account linking process. + */ +export type CompleteStatus = + /** + * The linking process succeeded and will now switch identities. */ + | "switch_identity" + /** + * The linking process succeeded and the new account is now added. */ + | "linked_account_added" + /** + * The current linking process has already completed. */ + | "already_complete" + /** + * The current linking process has expired. */ + | "expired" + /** + * The current linking process has been tried too many times. */ + | "too_many_attempts" + /** + * The code given to the current linking process is incorrect. */ + | "incorrect"; + +export const CompleteStatus = { + SwitchIdentity: "switch_identity", + LinkedAccountAdded: "linked_account_added", + AlreadyComplete: "already_complete", + Expired: "expired", + TooManyAttempts: "too_many_attempts", + Incorrect: "incorrect", +} as const; diff --git a/sdks/full/typescript/src/api/resources/auth/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/auth/resources/common/types/index.ts new file mode 100644 index 0000000000..1bee0a7444 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/common/types/index.ts @@ -0,0 +1 @@ +export * from "./CompleteStatus"; diff --git a/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/accessToken/types/CompleteAccessTokenVerificationRequest.ts b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/accessToken/types/CompleteAccessTokenVerificationRequest.ts new file mode 100644 index 0000000000..129cf7d65d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/accessToken/types/CompleteAccessTokenVerificationRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CompleteAccessTokenVerificationRequest { + accessToken: Rivet.Jwt; +} diff --git a/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/accessToken/types/index.ts b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/accessToken/types/index.ts new file mode 100644 index 0000000000..ce62828ff6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/accessToken/types/index.ts @@ -0,0 +1 @@ +export * from "./CompleteAccessTokenVerificationRequest"; diff --git a/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationRequest.ts b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationRequest.ts new file mode 100644 index 0000000000..7a3f639110 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CompleteEmailVerificationRequest { + verificationId: string; + /** The code sent to the requestee's email. */ + code: string; +} diff --git a/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationResponse.ts b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationResponse.ts new file mode 100644 index 0000000000..5e57557f7e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CompleteEmailVerificationResponse { + status: Rivet.auth.CompleteStatus; +} diff --git a/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/StartEmailVerificationRequest.ts b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/StartEmailVerificationRequest.ts new file mode 100644 index 0000000000..8275cc4954 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/StartEmailVerificationRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface StartEmailVerificationRequest { + email: string; + captcha?: Rivet.captcha.Config; + gameId?: string; +} diff --git a/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/StartEmailVerificationResponse.ts b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/StartEmailVerificationResponse.ts new file mode 100644 index 0000000000..9c87e3e5d9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/StartEmailVerificationResponse.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface StartEmailVerificationResponse { + verificationId: string; +} diff --git a/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/index.ts b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/index.ts new file mode 100644 index 0000000000..6db43a8e3b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/identity/resources/email/types/index.ts @@ -0,0 +1,4 @@ +export * from "./StartEmailVerificationRequest"; +export * from "./StartEmailVerificationResponse"; +export * from "./CompleteEmailVerificationRequest"; +export * from "./CompleteEmailVerificationResponse"; diff --git a/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/RefreshIdentityTokenRequest.ts b/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/RefreshIdentityTokenRequest.ts new file mode 100644 index 0000000000..d1c8bb4b6e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/RefreshIdentityTokenRequest.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface RefreshIdentityTokenRequest { + /** When `true`, the current identity for the provided cookie will be logged out and a new identity will be returned. */ + logout?: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/RefreshIdentityTokenResponse.ts b/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/RefreshIdentityTokenResponse.ts new file mode 100644 index 0000000000..a67fcf0552 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/RefreshIdentityTokenResponse.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface RefreshIdentityTokenResponse { + /** + * A JSON Web Token. + * Slightly modified to include a description prefix and use Protobufs of + * JSON. + */ + token: string; + /** Token expiration time (in milliseconds). */ + exp: string; + identityId: string; +} diff --git a/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/index.ts b/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/index.ts new file mode 100644 index 0000000000..2e82e57714 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/auth/resources/tokens/types/index.ts @@ -0,0 +1,2 @@ +export * from "./RefreshIdentityTokenRequest"; +export * from "./RefreshIdentityTokenResponse"; diff --git a/sdks/full/typescript/src/api/resources/captcha/resources/config/types/Config.ts b/sdks/full/typescript/src/api/resources/captcha/resources/config/types/Config.ts new file mode 100644 index 0000000000..ad2a83861d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/captcha/resources/config/types/Config.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * Methods to verify a captcha + */ +export interface Config { + hcaptcha?: Rivet.captcha.ConfigHcaptcha; + turnstile?: Rivet.captcha.ConfigTurnstile; +} diff --git a/sdks/full/typescript/src/api/resources/captcha/resources/config/types/ConfigHcaptcha.ts b/sdks/full/typescript/src/api/resources/captcha/resources/config/types/ConfigHcaptcha.ts new file mode 100644 index 0000000000..d0b57ca2f2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/captcha/resources/config/types/ConfigHcaptcha.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Captcha configuration. + */ +export interface ConfigHcaptcha { + clientResponse: string; +} diff --git a/sdks/full/typescript/src/api/resources/captcha/resources/config/types/ConfigTurnstile.ts b/sdks/full/typescript/src/api/resources/captcha/resources/config/types/ConfigTurnstile.ts new file mode 100644 index 0000000000..2a55d75c5d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/captcha/resources/config/types/ConfigTurnstile.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Captcha configuration. + */ +export interface ConfigTurnstile { + clientResponse: string; +} diff --git a/sdks/full/typescript/src/api/resources/captcha/resources/config/types/index.ts b/sdks/full/typescript/src/api/resources/captcha/resources/config/types/index.ts new file mode 100644 index 0000000000..e3d7f9330e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/captcha/resources/config/types/index.ts @@ -0,0 +1,3 @@ +export * from "./Config"; +export * from "./ConfigHcaptcha"; +export * from "./ConfigTurnstile"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/auth/types/InspectResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/auth/types/InspectResponse.ts new file mode 100644 index 0000000000..cd62ccadcb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/auth/types/InspectResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface InspectResponse { + agent: Rivet.cloud.AuthAgent; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/auth/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/auth/types/index.ts new file mode 100644 index 0000000000..5f6b317b1f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/auth/types/index.ts @@ -0,0 +1 @@ +export * from "./InspectResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgent.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgent.ts new file mode 100644 index 0000000000..b1c6b6cd6b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgent.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * The current authenticated agent. + */ +export interface AuthAgent { + identity?: Rivet.cloud.AuthAgentIdentity; + gameCloud?: Rivet.cloud.AuthAgentGameCloud; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgentGameCloud.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgentGameCloud.ts new file mode 100644 index 0000000000..a91ddf48fb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgentGameCloud.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The current authenticated game cloud. + */ +export interface AuthAgentGameCloud { + gameId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgentIdentity.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgentIdentity.ts new file mode 100644 index 0000000000..42298c5ec5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/AuthAgentIdentity.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The current authenticated identity. + */ +export interface AuthAgentIdentity { + identityId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/BuildSummary.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/BuildSummary.ts new file mode 100644 index 0000000000..1e23e8558b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/BuildSummary.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A build summary. + */ +export interface BuildSummary { + buildId: string; + uploadId: string; + displayName: Rivet.DisplayName; + createTs: Rivet.Timestamp; + /** Unsigned 64 bit integer. */ + contentLength: number; + /** Whether or not this build has completely been uploaded. */ + complete: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnAuthType.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnAuthType.ts new file mode 100644 index 0000000000..6874634ed4 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnAuthType.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A value denoting what type of authentication to use for a game namespace's CDN. + */ +export type CdnAuthType = "none" | "basic"; + +export const CdnAuthType = { + None: "none", + Basic: "basic", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceAuthUser.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceAuthUser.ts new file mode 100644 index 0000000000..ce3d54aa3a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceAuthUser.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * An authenticated CDN user for a given namespace. + */ +export interface CdnNamespaceAuthUser { + /** A user name. */ + user: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceConfig.ts new file mode 100644 index 0000000000..c692a67a19 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceConfig.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * CDN configuration for a given namespace. + */ +export interface CdnNamespaceConfig { + /** Whether or not to allow users to connect to the given namespace via domain name. */ + enableDomainPublicAuth: boolean; + /** A list of CDN domains for a given namespace. */ + domains: Rivet.cloud.CdnNamespaceDomain[]; + authType: Rivet.cloud.CdnAuthType; + /** A list of CDN authenticated users for a given namespace. */ + authUserList: Rivet.cloud.CdnNamespaceAuthUser[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomain.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomain.ts new file mode 100644 index 0000000000..dcc2292a7a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomain.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A CDN domain for a given namespace. + */ +export interface CdnNamespaceDomain { + /** A valid domain name (no protocol). */ + domain: string; + createTs: Rivet.Timestamp; + verificationStatus: Rivet.cloud.CdnNamespaceDomainVerificationStatus; + verificationMethod: Rivet.cloud.CdnNamespaceDomainVerificationMethod; + verificationErrors: string[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethod.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethod.ts new file mode 100644 index 0000000000..1567f74e94 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethod.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A union representing the verification method used for this CDN domain. + */ +export interface CdnNamespaceDomainVerificationMethod { + invalid?: Rivet.EmptyObject; + http?: Rivet.cloud.CdnNamespaceDomainVerificationMethodHttp; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethodHttp.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethodHttp.ts new file mode 100644 index 0000000000..0d45f8210f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethodHttp.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CdnNamespaceDomainVerificationMethodHttp { + cnameRecord: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationStatus.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationStatus.ts new file mode 100644 index 0000000000..724fae5dae --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationStatus.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A value denoting the status of a CDN domain's verification status. + */ +export type CdnNamespaceDomainVerificationStatus = "active" | "pending" | "failed"; + +export const CdnNamespaceDomainVerificationStatus = { + Active: "active", + Pending: "pending", + Failed: "failed", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnSiteSummary.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnSiteSummary.ts new file mode 100644 index 0000000000..a3dca9ec5e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CdnSiteSummary.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A CDN site summary. + */ +export interface CdnSiteSummary { + siteId: string; + uploadId: string; + displayName: Rivet.DisplayName; + createTs: Rivet.Timestamp; + /** Unsigned 64 bit integer. */ + contentLength: number; + /** Whether or not this site has completely been uploaded. */ + complete: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CustomAvatarSummary.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CustomAvatarSummary.ts new file mode 100644 index 0000000000..884718290d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/CustomAvatarSummary.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A custom avatar summary. + */ +export interface CustomAvatarSummary { + uploadId: string; + displayName: Rivet.DisplayName; + createTs: Rivet.Timestamp; + /** The URL of this custom avatar image. Only present if upload is complete. */ + url?: string; + /** Unsigned 64 bit integer. */ + contentLength: number; + /** Whether or not this custom avatar has completely been uploaded. */ + complete: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GameFull.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GameFull.ts new file mode 100644 index 0000000000..bfc374d49f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GameFull.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A full game. + */ +export interface GameFull { + gameId: string; + createTs: Rivet.Timestamp; + /** 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; + displayName: Rivet.DisplayName; + developerGroupId: string; + /** Unsigned 32 bit integer. */ + totalPlayerCount: number; + /** The URL of this game's logo image. */ + logoUrl?: string; + /** The URL of this game's banner image. */ + bannerUrl?: string; + /** A list of namespace summaries. */ + namespaces: Rivet.cloud.NamespaceSummary[]; + /** A list of version summaries. */ + versions: Rivet.cloud.version.Summary[]; + /** A list of region summaries. */ + availableRegions: Rivet.cloud.RegionSummary[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GameLobbyExpenses.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GameLobbyExpenses.ts new file mode 100644 index 0000000000..e029cf9492 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GameLobbyExpenses.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * Game lobby expenses. + */ +export interface GameLobbyExpenses { + game: Rivet.game.Handle; + /** A list of namespace summaries. */ + namespaces: Rivet.cloud.NamespaceSummary[]; + /** A list of multiple region tier expenses. */ + expenses: Rivet.cloud.RegionTierExpenses[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GroupBankSource.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GroupBankSource.ts new file mode 100644 index 0000000000..9c55648cc2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/GroupBankSource.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GroupBankSource { + /** The bank account number of this group's bank source. */ + accountNumber: string; + /** The bank routing number of this group's bank source. */ + routingNumber: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/IdentityNamespaceConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/IdentityNamespaceConfig.ts new file mode 100644 index 0000000000..5f52881d9a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/IdentityNamespaceConfig.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Identity configuration for a given namespace. + */ +export interface IdentityNamespaceConfig {} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/KvNamespaceConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/KvNamespaceConfig.ts new file mode 100644 index 0000000000..18ed06267c --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/KvNamespaceConfig.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * KV configuration for a given namespace. + */ +export interface KvNamespaceConfig {} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LobbySummaryAnalytics.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LobbySummaryAnalytics.ts new file mode 100644 index 0000000000..ca74e4752d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LobbySummaryAnalytics.ts @@ -0,0 +1,35 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * Analytical information about a lobby. + */ +export interface LobbySummaryAnalytics { + lobbyId: string; + lobbyGroupId: 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. */ + lobbyGroupNameId: string; + regionId: string; + createTs: Rivet.Timestamp; + /** Whether or not this lobby is ready. */ + isReady: boolean; + /** Whether or not this lobby is idle. */ + isIdle: boolean; + /** Whether or not this lobby is in a closed state. */ + isClosed: boolean; + /** Whether or not this lobby is outdated. */ + isOutdated: boolean; + /** Unsigned 32 bit integer. */ + maxPlayersNormal: number; + /** Unsigned 32 bit integer. */ + maxPlayersDirect: number; + /** Unsigned 32 bit integer. */ + maxPlayersParty: number; + /** Unsigned 32 bit integer. */ + totalPlayerCount: number; + /** Unsigned 32 bit integer. */ + registeredPlayerCount: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbyStatus.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbyStatus.ts new file mode 100644 index 0000000000..010c1f8f32 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbyStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A union representing the state of a lobby. + */ +export interface LogsLobbyStatus { + running: Rivet.EmptyObject; + stopped?: Rivet.cloud.LogsLobbyStatusStopped; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbyStatusStopped.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbyStatusStopped.ts new file mode 100644 index 0000000000..80c8e5cf2b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbyStatusStopped.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * The status of a stopped lobby. + */ +export interface LogsLobbyStatusStopped { + stopTs: Rivet.Timestamp; + /** Whether or not the lobby failed or stopped successfully. */ + failed: boolean; + /** The exit code returned by the lobby's main process when stopped. */ + exitCode: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbySummary.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbySummary.ts new file mode 100644 index 0000000000..ab5b649023 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsLobbySummary.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A logs summary for a lobby. + */ +export interface LogsLobbySummary { + lobbyId: string; + namespaceId: 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. */ + lobbyGroupNameId: string; + regionId: string; + createTs: Rivet.Timestamp; + startTs?: Rivet.Timestamp; + readyTs?: Rivet.Timestamp; + status: Rivet.cloud.LogsLobbyStatus; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsPerfMark.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsPerfMark.ts new file mode 100644 index 0000000000..83b6dfe0bc --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsPerfMark.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A performance mark. + */ +export interface LogsPerfMark { + /** The label given to this performance mark. */ + label: string; + ts: Rivet.Timestamp; + rayId?: string; + reqId?: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsPerfSpan.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsPerfSpan.ts new file mode 100644 index 0000000000..8ae3b023f8 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/LogsPerfSpan.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A performance span. + */ +export interface LogsPerfSpan { + /** The label given to this performance span. */ + label: string; + startTs: Rivet.Timestamp; + finishTs?: Rivet.Timestamp; + reqId?: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/MatchmakerDevelopmentPort.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/MatchmakerDevelopmentPort.ts new file mode 100644 index 0000000000..40ed218016 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/MatchmakerDevelopmentPort.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A port configuration used to create development tokens. + */ +export interface MatchmakerDevelopmentPort { + port?: number; + portRange?: Rivet.cloud.version.matchmaker.PortRange; + protocol: Rivet.cloud.version.matchmaker.PortProtocol; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/MatchmakerNamespaceConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/MatchmakerNamespaceConfig.ts new file mode 100644 index 0000000000..a62640c3ce --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/MatchmakerNamespaceConfig.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Matchmaker configuration for a given namespace. + */ +export interface MatchmakerNamespaceConfig { + /** Unsigned 32 bit integer. */ + lobbyCountMax: number; + /** Unsigned 32 bit integer. */ + maxPlayersPerClient: number; + /** Unsigned 32 bit integer. */ + maxPlayersPerClientVpn: number; + /** Unsigned 32 bit integer. */ + maxPlayersPerClientProxy: number; + /** Unsigned 32 bit integer. */ + maxPlayersPerClientTor: number; + /** Unsigned 32 bit integer. */ + maxPlayersPerClientHosting: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceConfig.ts new file mode 100644 index 0000000000..be4e70a859 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceConfig.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * Cloud configuration for a given namespace. + */ +export interface NamespaceConfig { + cdn: Rivet.cloud.CdnNamespaceConfig; + matchmaker: Rivet.cloud.MatchmakerNamespaceConfig; + kv: Rivet.cloud.KvNamespaceConfig; + identity: Rivet.cloud.IdentityNamespaceConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceFull.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceFull.ts new file mode 100644 index 0000000000..c7908be153 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceFull.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A full namespace. + */ +export interface NamespaceFull { + namespaceId: string; + createTs: Rivet.Timestamp; + displayName: Rivet.DisplayName; + versionId: 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. */ + nameId: string; + config: Rivet.cloud.NamespaceConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceSummary.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceSummary.ts new file mode 100644 index 0000000000..6f7060ba6d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceSummary.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A namespace summary. + */ +export interface NamespaceSummary { + namespaceId: string; + createTs: Rivet.Timestamp; + displayName: Rivet.DisplayName; + versionId: 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. */ + nameId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceVersion.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceVersion.ts new file mode 100644 index 0000000000..1a3b814b84 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/NamespaceVersion.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A previously deployed namespace version. + */ +export interface NamespaceVersion { + /** A universally unique identifier. */ + namespaceId: string; + /** A universally unique identifier. */ + versionId: string; + deployTs: Rivet.Timestamp; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionSummary.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionSummary.ts new file mode 100644 index 0000000000..7e8058f8f7 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionSummary.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A region summary. + */ +export interface RegionSummary { + regionId: 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. */ + regionNameId: string; + /** The server provider of this region. */ + provider: string; + providerDisplayName: Rivet.DisplayName; + regionDisplayName: Rivet.DisplayName; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionTier.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionTier.ts new file mode 100644 index 0000000000..f0a56ed30a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionTier.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A region server tier. + */ +export interface RegionTier { + /** 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. */ + tierNameId: string; + /** Together with the denominator, denotes the portion of the CPU a given server uses. */ + rivetCoresNumerator: number; + /** Together with the numerator, denotes the portion of the CPU a given server uses. */ + rivetCoresDenominator: number; + /** CPU frequency (MHz). */ + cpu: number; + /** Allocated memory (MB). */ + memory: number; + /** Allocated disk space (MB). */ + disk: number; + /** Internet bandwidth (MB). */ + bandwidth: number; + /** + * **Deprecated** + * Price billed for every second this server is running (in quadrillionth USD, 1,000,000,000,000 = $1.00). + */ + pricePerSecond: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionTierExpenses.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionTierExpenses.ts new file mode 100644 index 0000000000..7dc43011b7 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/RegionTierExpenses.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Region tier expenses. + */ +export interface RegionTierExpenses { + namespaceId: string; + regionId: 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. */ + tierNameId: 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. */ + lobbyGroupNameId: string; + /** How long a region tier has been active (in milliseconds). */ + uptime: number; + /** Amount of expenses for this region tier (in hundred-thousandths USD, 100,000 = $1.00). */ + expenses: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/SvcMetrics.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/SvcMetrics.ts new file mode 100644 index 0000000000..eb03fd557d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/SvcMetrics.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Metrics relating to a job service. + */ +export interface SvcMetrics { + /** The job name. */ + job: string; + /** CPU metrics. */ + cpu: number[]; + /** Memory metrics. */ + memory: number[]; + /** Total allocated memory (MB). */ + allocatedMemory?: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/SvcPerf.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/SvcPerf.ts new file mode 100644 index 0000000000..628c2992e9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/SvcPerf.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A service performance summary. + */ +export interface SvcPerf { + /** The name of the service. */ + svcName: string; + ts: Rivet.Timestamp; + /** Unsigned 64 bit integer. */ + duration: number; + reqId?: string; + /** A list of performance spans. */ + spans: Rivet.cloud.LogsPerfSpan[]; + /** A list of performance marks. */ + marks: Rivet.cloud.LogsPerfMark[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/index.ts new file mode 100644 index 0000000000..7aef2a4608 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/common/types/index.ts @@ -0,0 +1,35 @@ +export * from "./SvcPerf"; +export * from "./LogsPerfSpan"; +export * from "./LogsPerfMark"; +export * from "./LobbySummaryAnalytics"; +export * from "./LogsLobbySummary"; +export * from "./LogsLobbyStatus"; +export * from "./LogsLobbyStatusStopped"; +export * from "./SvcMetrics"; +export * from "./AuthAgent"; +export * from "./AuthAgentIdentity"; +export * from "./AuthAgentGameCloud"; +export * from "./CustomAvatarSummary"; +export * from "./BuildSummary"; +export * from "./CdnSiteSummary"; +export * from "./GameFull"; +export * from "./NamespaceSummary"; +export * from "./RegionSummary"; +export * from "./GameLobbyExpenses"; +export * from "./RegionTierExpenses"; +export * from "./GroupBankSource"; +export * from "./RegionTier"; +export * from "./NamespaceFull"; +export * from "./NamespaceConfig"; +export * from "./CdnNamespaceConfig"; +export * from "./MatchmakerNamespaceConfig"; +export * from "./KvNamespaceConfig"; +export * from "./IdentityNamespaceConfig"; +export * from "./CdnAuthType"; +export * from "./CdnNamespaceDomain"; +export * from "./CdnNamespaceDomainVerificationMethod"; +export * from "./CdnNamespaceDomainVerificationMethodHttp"; +export * from "./CdnNamespaceDomainVerificationStatus"; +export * from "./CdnNamespaceAuthUser"; +export * from "./MatchmakerDevelopmentPort"; +export * from "./NamespaceVersion"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/CompleteDeviceLinkRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/CompleteDeviceLinkRequest.ts new file mode 100644 index 0000000000..aa77367de9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/CompleteDeviceLinkRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CompleteDeviceLinkRequest { + deviceLinkToken: Rivet.Jwt; + gameId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/GetDeviceLinkResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/GetDeviceLinkResponse.ts new file mode 100644 index 0000000000..3bdc199f72 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/GetDeviceLinkResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface GetDeviceLinkResponse { + cloudToken?: string; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/PrepareDeviceLinkResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/PrepareDeviceLinkResponse.ts new file mode 100644 index 0000000000..61d18eb891 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/PrepareDeviceLinkResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface PrepareDeviceLinkResponse { + deviceLinkId: string; + deviceLinkToken: string; + deviceLinkUrl: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/index.ts new file mode 100644 index 0000000000..908200d8cc --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/devices/resources/links/types/index.ts @@ -0,0 +1,3 @@ +export * from "./PrepareDeviceLinkResponse"; +export * from "./GetDeviceLinkResponse"; +export * from "./CompleteDeviceLinkRequest"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/client/Client.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/client/Client.ts index 9b47d4fe4e..a162c2846e 100644 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/client/Client.ts +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/client/Client.ts @@ -4,11 +4,14 @@ import * as environments from "../../../../../../environments"; import * as core from "../../../../../../core"; +import * as Rivet from "../../../../.."; +import urlJoin from "url-join"; +import * as serializers from "../../../../../../serialization"; +import * as errors from "../../../../../../errors"; import { Namespaces } from "../resources/namespaces/client/Client"; import { Avatars } from "../resources/avatars/client/Client"; import { Builds } from "../resources/builds/client/Client"; import { Cdn } from "../resources/cdn/client/Client"; -import { Games as Games_ } from "../resources/games/client/Client"; import { Matchmaker } from "../resources/matchmaker/client/Client"; import { Tokens } from "../resources/tokens/client/Client"; import { Versions } from "../resources/versions/client/Client"; @@ -29,6 +32,993 @@ export declare namespace Games { export class Games { constructor(protected readonly _options: Games.Options = {}) {} + /** + * Returns a list of games in which the current identity is a group member of its development team. + * @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 getGames( + request: Rivet.cloud.games.GetGamesRequest = {}, + requestOptions?: Games.RequestOptions + ): Promise { + const { watchIndex } = request; + const _queryParams: Record = {}; + if (watchIndex != null) { + _queryParams["watch_index"] = watchIndex; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + "/cloud/games" + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + queryParameters: _queryParams, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.cloud.games.GetGamesResponse.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, + }); + } + } + + /** + * Creates a new game. + * @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 createGame( + request: Rivet.cloud.games.CreateGameRequest, + requestOptions?: Games.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + "/cloud/games" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + body: await serializers.cloud.games.CreateGameRequest.jsonOrThrow(request, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.cloud.games.CreateGameResponse.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, + }); + } + } + + /** + * Validates information used to create a new game. + * @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 validateGame( + request: Rivet.cloud.games.ValidateGameRequest, + requestOptions?: Games.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + "/cloud/games/validate" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + body: await serializers.cloud.games.ValidateGameRequest.jsonOrThrow(request, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.cloud.games.ValidateGameResponse.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, + }); + } + } + + /** + * Returns a game by its game id. + * @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 getGameById( + gameId: string, + request: Rivet.cloud.games.GetGameByIdRequest = {}, + requestOptions?: Games.RequestOptions + ): Promise { + const { watchIndex } = request; + const _queryParams: Record = {}; + if (watchIndex != null) { + _queryParams["watch_index"] = watchIndex; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + `/cloud/games/${gameId}` + ), + method: "GET", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + queryParameters: _queryParams, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.cloud.games.GetGameByIdResponse.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, + }); + } + } + + /** + * Prepares a game banner image upload. + * @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 gameBannerUploadPrepare( + gameId: string, + request: Rivet.cloud.games.GameBannerUploadPrepareRequest, + requestOptions?: Games.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + `/cloud/games/${gameId}/banner-upload/prepare` + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + body: await serializers.cloud.games.GameBannerUploadPrepareRequest.jsonOrThrow(request, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.cloud.games.GameBannerUploadPrepareResponse.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, + }); + } + } + + /** + * Completes an game banner image upload. Must be called after the file upload process completes. + * @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 gameBannerUploadComplete( + gameId: string, + uploadId: string, + requestOptions?: Games.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + `/cloud/games/${gameId}/banner-upload/${uploadId}/complete` + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return; + } + + 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, + }); + } + } + + /** + * Prepares a game logo image upload. + * @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 gameLogoUploadPrepare( + gameId: string, + request: Rivet.cloud.games.GameLogoUploadPrepareRequest, + requestOptions?: Games.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + `/cloud/games/${gameId}/logo-upload/prepare` + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + body: await serializers.cloud.games.GameLogoUploadPrepareRequest.jsonOrThrow(request, { + unrecognizedObjectKeys: "strip", + }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return await serializers.cloud.games.GameLogoUploadPrepareResponse.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, + }); + } + } + + /** + * Completes a game logo image upload. Must be called after the file upload process completes. + * @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 gameLogoUploadComplete( + gameId: string, + uploadId: string, + requestOptions?: Games.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, + `/cloud/games/${gameId}/logo-upload/${uploadId}/complete` + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + }, + contentType: "application/json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, + maxRetries: requestOptions?.maxRetries, + }); + if (_response.ok) { + return; + } + + 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 _namespaces: Namespaces | undefined; public get namespaces(): Namespaces { @@ -53,12 +1043,6 @@ export class Games { return (this._cdn ??= new Cdn(this._options)); } - protected _games: Games_ | undefined; - - public get games(): Games_ { - return (this._games ??= new Games_(this._options)); - } - protected _matchmaker: Matchmaker | undefined; public get matchmaker(): Matchmaker { @@ -76,4 +1060,13 @@ export class Games { public get versions(): Versions { return (this._versions ??= new Versions(this._options)); } + + 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/cloud/resources/games/client/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/client/index.ts index cb0ff5c3b5..415726b7fe 100644 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/client/index.ts +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/client/index.ts @@ -1 +1 @@ -export {}; +export * from "./requests"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/requests/GetGameByIdRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/client/requests/GetGameByIdRequest.ts similarity index 100% rename from sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/requests/GetGameByIdRequest.ts rename to sdks/full/typescript/src/api/resources/cloud/resources/games/client/requests/GetGameByIdRequest.ts diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/requests/GetGamesRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/client/requests/GetGamesRequest.ts similarity index 100% rename from sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/requests/GetGamesRequest.ts rename to sdks/full/typescript/src/api/resources/cloud/resources/games/client/requests/GetGamesRequest.ts diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/requests/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/client/requests/index.ts similarity index 100% rename from sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/requests/index.ts rename to sdks/full/typescript/src/api/resources/cloud/resources/games/client/requests/index.ts diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/index.ts index 4ce0f39077..a931b36375 100644 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/index.ts +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/index.ts @@ -1,2 +1,3 @@ +export * from "./types"; export * from "./resources"; export * from "./client"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/ListGameCustomAvatarsResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/ListGameCustomAvatarsResponse.ts new file mode 100644 index 0000000000..d5e5d7f147 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/ListGameCustomAvatarsResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ListGameCustomAvatarsResponse { + /** A list of custom avatar summaries. */ + customAvatars: Rivet.cloud.CustomAvatarSummary[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadRequest.ts new file mode 100644 index 0000000000..26ed987e43 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface PrepareCustomAvatarUploadRequest { + /** The path/filename of the custom avatar. */ + path: string; + /** The MIME type of the custom avatar. */ + mime?: string; + /** Unsigned 64 bit integer. */ + contentLength: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadResponse.ts new file mode 100644 index 0000000000..917b003d0a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface PrepareCustomAvatarUploadResponse { + uploadId: string; + presignedRequest: Rivet.upload.PresignedRequest; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/index.ts new file mode 100644 index 0000000000..a69f21b5fd --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/avatars/types/index.ts @@ -0,0 +1,3 @@ +export * from "./ListGameCustomAvatarsResponse"; +export * from "./PrepareCustomAvatarUploadRequest"; +export * from "./PrepareCustomAvatarUploadResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/BuildCompression.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/BuildCompression.ts new file mode 100644 index 0000000000..df210e01c1 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/BuildCompression.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type BuildCompression = + /** + * None compression. */ + | "none" + /** + * LZ4 compression. Use the minimum compression level. */ + | "lz4"; + +export const BuildCompression = { + None: "none", + Lz4: "lz4", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/BuildKind.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/BuildKind.ts new file mode 100644 index 0000000000..ffa3b3387e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/BuildKind.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type BuildKind = + /** + * Docker image archive generated by `docker save`. */ + | "docker_image" + /** + * OCI-compliant bundle. */ + | "oci_bundle"; + +export const BuildKind = { + DockerImage: "docker_image", + OciBundle: "oci_bundle", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/CreateGameBuildRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/CreateGameBuildRequest.ts new file mode 100644 index 0000000000..7236afa635 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/CreateGameBuildRequest.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CreateGameBuildRequest { + displayName: Rivet.DisplayName; + /** A tag given to the game build. */ + imageTag: string; + imageFile: Rivet.upload.PrepareFile; + multipartUpload?: boolean; + kind?: Rivet.cloud.games.BuildKind; + compression?: Rivet.cloud.games.BuildCompression; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/CreateGameBuildResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/CreateGameBuildResponse.ts new file mode 100644 index 0000000000..41657e5245 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/CreateGameBuildResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CreateGameBuildResponse { + buildId: string; + uploadId: string; + imagePresignedRequest?: Rivet.upload.PresignedRequest; + imagePresignedRequests?: Rivet.upload.PresignedRequest[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/ListGameBuildsResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/ListGameBuildsResponse.ts new file mode 100644 index 0000000000..b9e6a545ea --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/ListGameBuildsResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ListGameBuildsResponse { + /** A list of build summaries. */ + builds: Rivet.cloud.BuildSummary[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/index.ts new file mode 100644 index 0000000000..62026df1e5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/builds/types/index.ts @@ -0,0 +1,5 @@ +export * from "./ListGameBuildsResponse"; +export * from "./CreateGameBuildRequest"; +export * from "./CreateGameBuildResponse"; +export * from "./BuildKind"; +export * from "./BuildCompression"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteRequest.ts new file mode 100644 index 0000000000..452a13aad8 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CreateGameCdnSiteRequest { + displayName: Rivet.DisplayName; + /** A list of files preparing to upload. */ + files: Rivet.upload.PrepareFile[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteResponse.ts new file mode 100644 index 0000000000..a58517ab01 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CreateGameCdnSiteResponse { + siteId: string; + uploadId: string; + presignedRequests: Rivet.upload.PresignedRequest[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/ListGameCdnSitesResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/ListGameCdnSitesResponse.ts new file mode 100644 index 0000000000..40dda9a194 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/ListGameCdnSitesResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ListGameCdnSitesResponse { + /** A list of CDN site summaries. */ + sites: Rivet.cloud.CdnSiteSummary[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/index.ts new file mode 100644 index 0000000000..e6b92eb59c --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/cdn/types/index.ts @@ -0,0 +1,3 @@ +export * from "./ListGameCdnSitesResponse"; +export * from "./CreateGameCdnSiteRequest"; +export * from "./CreateGameCdnSiteResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/Client.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/Client.ts deleted file mode 100644 index 335b50eaa7..0000000000 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/Client.ts +++ /dev/null @@ -1,1023 +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 urlJoin from "url-join"; -import * as serializers from "../../../../../../../../serialization"; -import * as errors from "../../../../../../../../errors"; - -export declare namespace Games { - interface Options { - environment?: core.Supplier; - token?: core.Supplier; - fetcher?: core.FetchFunction; - } - - interface RequestOptions { - timeoutInSeconds?: number; - maxRetries?: number; - } -} - -export class Games { - constructor(protected readonly _options: Games.Options = {}) {} - - /** - * Returns a list of games in which the current identity is a group member of its development team. - * @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 getGames( - request: Rivet.cloud.games.GetGamesRequest = {}, - requestOptions?: Games.RequestOptions - ): Promise { - const { watchIndex } = request; - const _queryParams: Record = {}; - if (watchIndex != null) { - _queryParams["watch_index"] = watchIndex; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - "/cloud/games" - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.cloud.games.GetGamesResponse.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, - }); - } - } - - /** - * Creates a new game. - * @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 createGame( - request: Rivet.cloud.games.CreateGameRequest, - requestOptions?: Games.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - "/cloud/games" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - }, - contentType: "application/json", - body: await serializers.cloud.games.CreateGameRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.cloud.games.CreateGameResponse.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, - }); - } - } - - /** - * Validates information used to create a new game. - * @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 validateGame( - request: Rivet.cloud.games.ValidateGameRequest, - requestOptions?: Games.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - "/cloud/games/validate" - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - }, - contentType: "application/json", - body: await serializers.cloud.games.ValidateGameRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.cloud.games.ValidateGameResponse.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, - }); - } - } - - /** - * Returns a game by its game id. - * @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 getGameById( - gameId: string, - request: Rivet.cloud.games.GetGameByIdRequest = {}, - requestOptions?: Games.RequestOptions - ): Promise { - const { watchIndex } = request; - const _queryParams: Record = {}; - if (watchIndex != null) { - _queryParams["watch_index"] = watchIndex; - } - - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - `/cloud/games/${gameId}` - ), - method: "GET", - headers: { - Authorization: await this._getAuthorizationHeader(), - }, - contentType: "application/json", - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.cloud.games.GetGameByIdResponse.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, - }); - } - } - - /** - * Prepares a game banner image upload. - * @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 gameBannerUploadPrepare( - gameId: string, - request: Rivet.cloud.games.GameBannerUploadPrepareRequest, - requestOptions?: Games.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - `/cloud/games/${gameId}/banner-upload/prepare` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - }, - contentType: "application/json", - body: await serializers.cloud.games.GameBannerUploadPrepareRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.cloud.games.GameBannerUploadPrepareResponse.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, - }); - } - } - - /** - * Completes an game banner image upload. Must be called after the file upload process completes. - * @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 gameBannerUploadComplete( - gameId: string, - uploadId: string, - requestOptions?: Games.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - `/cloud/games/${gameId}/banner-upload/${uploadId}/complete` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return; - } - - 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, - }); - } - } - - /** - * Prepares a game logo image upload. - * @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 gameLogoUploadPrepare( - gameId: string, - request: Rivet.cloud.games.GameLogoUploadPrepareRequest, - requestOptions?: Games.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - `/cloud/games/${gameId}/logo-upload/prepare` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - }, - contentType: "application/json", - body: await serializers.cloud.games.GameLogoUploadPrepareRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "strip", - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return await serializers.cloud.games.GameLogoUploadPrepareResponse.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, - }); - } - } - - /** - * Completes a game logo image upload. Must be called after the file upload process completes. - * @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 gameLogoUploadComplete( - gameId: string, - uploadId: string, - requestOptions?: Games.RequestOptions - ): Promise { - const _response = await (this._options.fetcher ?? core.fetcher)({ - url: urlJoin( - (await core.Supplier.get(this._options.environment)) ?? environments.RivetEnvironment.Production, - `/cloud/games/${gameId}/logo-upload/${uploadId}/complete` - ), - method: "POST", - headers: { - Authorization: await this._getAuthorizationHeader(), - }, - contentType: "application/json", - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 180000, - maxRetries: requestOptions?.maxRetries, - }); - if (_response.ok) { - return; - } - - 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/cloud/resources/games/resources/games/client/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/index.ts deleted file mode 100644 index 415726b7fe..0000000000 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/index.ts deleted file mode 100644 index c9240f83b4..0000000000 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/games/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/index.ts index bc7a3852d6..62311efaaa 100644 --- a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/index.ts +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/index.ts @@ -5,13 +5,10 @@ export * as builds from "./builds"; export * from "./builds/types"; export * as cdn from "./cdn"; export * from "./cdn/types"; -export * as games from "./games"; -export * from "./games/types"; export * as matchmaker from "./matchmaker"; export * from "./matchmaker/types"; export * as tokens from "./tokens"; export * from "./tokens/types"; export * as versions from "./versions"; export * from "./versions/types"; -export * from "./games/client/requests"; export * from "./matchmaker/client/requests"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/DeleteMatchmakerLobbyResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/DeleteMatchmakerLobbyResponse.ts new file mode 100644 index 0000000000..d26f921ca5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/DeleteMatchmakerLobbyResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DeleteMatchmakerLobbyResponse { + /** Whether or not the lobby was successfully stopped. */ + didRemove: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsRequest.ts new file mode 100644 index 0000000000..65aa4c9439 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ExportLobbyLogsRequest { + stream: Rivet.cloud.games.LogStream; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsResponse.ts new file mode 100644 index 0000000000..32b47ed16a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ExportLobbyLogsResponse { + /** The URL to a CSV file for the given lobby history. */ + url: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryRequest.ts new file mode 100644 index 0000000000..c7669df6d6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ExportMatchmakerLobbyHistoryRequest { + /** Unsigned 64 bit integer. */ + queryStart: number; + /** Unsigned 64 bit integer. */ + queryEnd: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryResponse.ts new file mode 100644 index 0000000000..fb3aba2749 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ExportMatchmakerLobbyHistoryResponse { + /** The URL to a CSV file for the given lobby history. */ + url: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/GetLobbyLogsResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/GetLobbyLogsResponse.ts new file mode 100644 index 0000000000..84b4b61701 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/GetLobbyLogsResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface GetLobbyLogsResponse { + /** Sorted old to new. */ + lines: string[]; + /** Sorted old to new. */ + timestamps: string[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/LogStream.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/LogStream.ts new file mode 100644 index 0000000000..c8dd8fc0ad --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/LogStream.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LogStream = "std_out" | "std_err"; + +export const LogStream = { + StdOut: "std_out", + StdErr: "std_err", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/index.ts new file mode 100644 index 0000000000..bb788951aa --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/matchmaker/types/index.ts @@ -0,0 +1,7 @@ +export * from "./ExportMatchmakerLobbyHistoryRequest"; +export * from "./ExportMatchmakerLobbyHistoryResponse"; +export * from "./DeleteMatchmakerLobbyResponse"; +export * from "./GetLobbyLogsResponse"; +export * from "./ExportLobbyLogsRequest"; +export * from "./ExportLobbyLogsResponse"; +export * from "./LogStream"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/GetAnalyticsMatchmakerLiveResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/GetAnalyticsMatchmakerLiveResponse.ts new file mode 100644 index 0000000000..2d01be11f1 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/GetAnalyticsMatchmakerLiveResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +export interface GetAnalyticsMatchmakerLiveResponse { + /** A list of analytics lobby summaries. */ + lobbies: Rivet.cloud.LobbySummaryAnalytics[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/index.ts new file mode 100644 index 0000000000..d177fbed1a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/index.ts @@ -0,0 +1 @@ +export * from "./GetAnalyticsMatchmakerLiveResponse"; 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 02b92f341e..c59613c483 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; + _queryParams["before_create_ts"] = beforeCreateTs.toISOString(); } const _response = await (this._options.fetcher ?? core.fetcher)({ diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/GetNamespaceLobbyResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/GetNamespaceLobbyResponse.ts new file mode 100644 index 0000000000..d6a67314d9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/GetNamespaceLobbyResponse.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +export interface GetNamespaceLobbyResponse { + lobby: Rivet.cloud.LogsLobbySummary; + metrics?: Rivet.cloud.SvcMetrics; + /** + * **Deprecated** + * A list of URLs. + */ + stdoutPresignedUrls: string[]; + /** + * **Deprecated** + * A list of URLs. + */ + stderrPresignedUrls: string[]; + /** + * **Deprecated** + * A list of service performance summaries. + */ + perfLists: Rivet.cloud.SvcPerf[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/ListNamespaceLobbiesResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/ListNamespaceLobbiesResponse.ts new file mode 100644 index 0000000000..394b735352 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/ListNamespaceLobbiesResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +export interface ListNamespaceLobbiesResponse { + /** A list of lobby log summaries. */ + lobbies: Rivet.cloud.LogsLobbySummary[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/index.ts new file mode 100644 index 0000000000..1bcc1b77ac --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/resources/logs/types/index.ts @@ -0,0 +1,2 @@ +export * from "./ListNamespaceLobbiesResponse"; +export * from "./GetNamespaceLobbyResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/AddNamespaceDomainRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/AddNamespaceDomainRequest.ts new file mode 100644 index 0000000000..9f8e579664 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/AddNamespaceDomainRequest.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface AddNamespaceDomainRequest { + /** A valid domain name (no protocol). */ + domain: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceRequest.ts new file mode 100644 index 0000000000..c95c3c8bb5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CreateGameNamespaceRequest { + displayName: Rivet.DisplayName; + versionId: 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. */ + nameId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceResponse.ts new file mode 100644 index 0000000000..f1a9c1568e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceResponse.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateGameNamespaceResponse { + namespaceId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentRequest.ts new file mode 100644 index 0000000000..03c10d8987 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentRequest.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CreateGameNamespaceTokenDevelopmentRequest { + /** The hostname used for the token. */ + hostname: string; + ports?: Record; + /** + * **Deprecated** + * A list of docker ports. + */ + lobbyPorts?: Rivet.cloud.version.matchmaker.LobbyGroupRuntimeDockerPort[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentResponse.ts new file mode 100644 index 0000000000..1e3a4ec5c3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateGameNamespaceTokenDevelopmentResponse { + /** + * A JSON Web Token. + * Slightly modified to include a description prefix and use Protobufs of + * JSON. + */ + token: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenPublicResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenPublicResponse.ts new file mode 100644 index 0000000000..4674682c8a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenPublicResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateGameNamespaceTokenPublicResponse { + /** + * A JSON Web Token. + * Slightly modified to include a description prefix and use Protobufs of + * JSON. + */ + token: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceByIdResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceByIdResponse.ts new file mode 100644 index 0000000000..7b0e3809ce --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceByIdResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface GetGameNamespaceByIdResponse { + namespace: Rivet.cloud.NamespaceFull; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceVersionHistoryResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceVersionHistoryResponse.ts new file mode 100644 index 0000000000..57188a734c --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceVersionHistoryResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface GetGameNamespaceVersionHistoryResponse { + /** A list of previously deployed namespace versions. */ + versions: Rivet.cloud.NamespaceVersion[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/InspectResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/InspectResponse.ts new file mode 100644 index 0000000000..2b42f3aeb8 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/InspectResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface InspectResponse { + agent: Rivet.cloud.AuthAgent; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/SetNamespaceCdnAuthTypeRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/SetNamespaceCdnAuthTypeRequest.ts new file mode 100644 index 0000000000..f455caa7c3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/SetNamespaceCdnAuthTypeRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface SetNamespaceCdnAuthTypeRequest { + authType: Rivet.cloud.CdnAuthType; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ToggleNamespaceDomainPublicAuthRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ToggleNamespaceDomainPublicAuthRequest.ts new file mode 100644 index 0000000000..c55aba5d1d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ToggleNamespaceDomainPublicAuthRequest.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ToggleNamespaceDomainPublicAuthRequest { + /** Whether or not to enable authentication based on domain. */ + enabled: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceMatchmakerConfigRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceMatchmakerConfigRequest.ts new file mode 100644 index 0000000000..389579e055 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceMatchmakerConfigRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateGameNamespaceMatchmakerConfigRequest { + /** Unsigned 32 bit integer. */ + lobbyCountMax: number; + /** Unsigned 32 bit integer. */ + maxPlayers: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceVersionRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceVersionRequest.ts new file mode 100644 index 0000000000..197695abb3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceVersionRequest.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateGameNamespaceVersionRequest { + versionId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateNamespaceCdnAuthUserRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateNamespaceCdnAuthUserRequest.ts new file mode 100644 index 0000000000..d57bbe9233 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/UpdateNamespaceCdnAuthUserRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateNamespaceCdnAuthUserRequest { + /** A user name. */ + user: string; + /** A bcrypt encrypted password. An error is returned if the given string is not properly encrypted. */ + password: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigRequest.ts new file mode 100644 index 0000000000..ee1bf30c23 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ValidateGameNamespaceMatchmakerConfigRequest { + /** Unsigned 32 bit integer. */ + lobbyCountMax: number; + /** Unsigned 32 bit integer. */ + maxPlayers: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigResponse.ts new file mode 100644 index 0000000000..bca6616c65 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ValidateGameNamespaceMatchmakerConfigResponse { + /** A list of validation errors. */ + errors: Rivet.ValidationError[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceRequest.ts new file mode 100644 index 0000000000..77fd1a1428 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ValidateGameNamespaceRequest { + displayName: Rivet.DisplayName; + /** 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; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceResponse.ts new file mode 100644 index 0000000000..f67f7421c5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ValidateGameNamespaceResponse { + /** A list of validation errors. */ + errors: Rivet.ValidationError[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentRequest.ts new file mode 100644 index 0000000000..285601a5ca --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ValidateGameNamespaceTokenDevelopmentRequest { + hostname: string; + /** A list of docker ports. */ + lobbyPorts: Rivet.cloud.version.matchmaker.LobbyGroupRuntimeDockerPort[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentResponse.ts new file mode 100644 index 0000000000..f291f3503d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ValidateGameNamespaceTokenDevelopmentResponse { + /** A list of validation errors. */ + errors: Rivet.ValidationError[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/index.ts new file mode 100644 index 0000000000..7fa5c9329d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/namespaces/types/index.ts @@ -0,0 +1,20 @@ +export * from "./InspectResponse"; +export * from "./CreateGameNamespaceRequest"; +export * from "./CreateGameNamespaceResponse"; +export * from "./ValidateGameNamespaceRequest"; +export * from "./ValidateGameNamespaceResponse"; +export * from "./GetGameNamespaceByIdResponse"; +export * from "./UpdateNamespaceCdnAuthUserRequest"; +export * from "./SetNamespaceCdnAuthTypeRequest"; +export * from "./ToggleNamespaceDomainPublicAuthRequest"; +export * from "./AddNamespaceDomainRequest"; +export * from "./UpdateGameNamespaceMatchmakerConfigRequest"; +export * from "./GetGameNamespaceVersionHistoryResponse"; +export * from "./ValidateGameNamespaceMatchmakerConfigRequest"; +export * from "./ValidateGameNamespaceMatchmakerConfigResponse"; +export * from "./CreateGameNamespaceTokenDevelopmentRequest"; +export * from "./CreateGameNamespaceTokenDevelopmentResponse"; +export * from "./ValidateGameNamespaceTokenDevelopmentRequest"; +export * from "./ValidateGameNamespaceTokenDevelopmentResponse"; +export * from "./CreateGameNamespaceTokenPublicResponse"; +export * from "./UpdateGameNamespaceVersionRequest"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/tokens/types/CreateCloudTokenResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/tokens/types/CreateCloudTokenResponse.ts new file mode 100644 index 0000000000..a2e80446fb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/tokens/types/CreateCloudTokenResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateCloudTokenResponse { + /** + * A JSON Web Token. + * Slightly modified to include a description prefix and use Protobufs of + * JSON. + */ + token: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/tokens/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/tokens/types/index.ts new file mode 100644 index 0000000000..c6eb67fbbe --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/tokens/types/index.ts @@ -0,0 +1 @@ +export * from "./CreateCloudTokenResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/CreateGameVersionRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/CreateGameVersionRequest.ts new file mode 100644 index 0000000000..de8b72ec15 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/CreateGameVersionRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CreateGameVersionRequest { + displayName: Rivet.DisplayName; + config: Rivet.cloud.version.Config; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/CreateGameVersionResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/CreateGameVersionResponse.ts new file mode 100644 index 0000000000..e5062b35f9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/CreateGameVersionResponse.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateGameVersionResponse { + versionId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/GetGameVersionByIdResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/GetGameVersionByIdResponse.ts new file mode 100644 index 0000000000..b70bc3b0d2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/GetGameVersionByIdResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface GetGameVersionByIdResponse { + version: Rivet.cloud.version.Full; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ReserveVersionNameResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ReserveVersionNameResponse.ts new file mode 100644 index 0000000000..0140d3e11a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ReserveVersionNameResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ReserveVersionNameResponse { + versionDisplayName: Rivet.DisplayName; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionRequest.ts new file mode 100644 index 0000000000..88caa06e1d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ValidateGameVersionRequest { + displayName: Rivet.DisplayName; + config: Rivet.cloud.version.Config; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionResponse.ts new file mode 100644 index 0000000000..2f43a8f817 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface ValidateGameVersionResponse { + /** A list of validation errors. */ + errors: Rivet.ValidationError[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/index.ts new file mode 100644 index 0000000000..893aa27b04 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/resources/versions/types/index.ts @@ -0,0 +1,6 @@ +export * from "./CreateGameVersionRequest"; +export * from "./CreateGameVersionResponse"; +export * from "./ReserveVersionNameResponse"; +export * from "./ValidateGameVersionRequest"; +export * from "./ValidateGameVersionResponse"; +export * from "./GetGameVersionByIdResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/CreateGameRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/CreateGameRequest.ts new file mode 100644 index 0000000000..0221aa99e9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/CreateGameRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface CreateGameRequest { + /** **Deprecated** */ + nameId?: Rivet.Identifier; + displayName: Rivet.DisplayName; + developerGroupId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/CreateGameResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/CreateGameResponse.ts new file mode 100644 index 0000000000..58f87048cc --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/CreateGameResponse.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateGameResponse { + gameId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameBannerUploadPrepareRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameBannerUploadPrepareRequest.ts new file mode 100644 index 0000000000..c726e9626c --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameBannerUploadPrepareRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GameBannerUploadPrepareRequest { + /** The path/filename of the game banner. */ + path: string; + /** The MIME type of the game banner. */ + mime?: string; + /** Unsigned 64 bit integer. */ + contentLength: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameBannerUploadPrepareResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameBannerUploadPrepareResponse.ts new file mode 100644 index 0000000000..5943a0606f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameBannerUploadPrepareResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GameBannerUploadPrepareResponse { + uploadId: string; + presignedRequest: Rivet.upload.PresignedRequest; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameLogoUploadPrepareRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameLogoUploadPrepareRequest.ts new file mode 100644 index 0000000000..f98052effd --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameLogoUploadPrepareRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GameLogoUploadPrepareRequest { + /** The path/filename of the game logo. */ + path: string; + /** The MIME type of the game logo. */ + mime?: string; + /** Unsigned 64 bit integer. */ + contentLength: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameLogoUploadPrepareResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameLogoUploadPrepareResponse.ts new file mode 100644 index 0000000000..71a50da80a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GameLogoUploadPrepareResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GameLogoUploadPrepareResponse { + uploadId: string; + presignedRequest: Rivet.upload.PresignedRequest; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GetGameByIdResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GetGameByIdResponse.ts new file mode 100644 index 0000000000..e4b156dc25 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GetGameByIdResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetGameByIdResponse { + game: Rivet.cloud.GameFull; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GetGamesResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GetGamesResponse.ts new file mode 100644 index 0000000000..456289f59a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/GetGamesResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetGamesResponse { + /** A list of game summaries. */ + games: Rivet.game.Summary[]; + /** A list of group summaries. */ + groups: Rivet.group.Summary[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/ValidateGameRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/ValidateGameRequest.ts new file mode 100644 index 0000000000..85bcfc4356 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/ValidateGameRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface ValidateGameRequest { + displayName: Rivet.DisplayName; + /** **Deprecated** */ + nameId?: Rivet.Identifier; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/ValidateGameResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/ValidateGameResponse.ts new file mode 100644 index 0000000000..631cf1c026 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/ValidateGameResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface ValidateGameResponse { + /** A list of validation errors. */ + errors: Rivet.ValidationError[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/games/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/index.ts new file mode 100644 index 0000000000..4ee3f44932 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/games/types/index.ts @@ -0,0 +1,10 @@ +export * from "./GetGamesResponse"; +export * from "./CreateGameRequest"; +export * from "./CreateGameResponse"; +export * from "./ValidateGameRequest"; +export * from "./ValidateGameResponse"; +export * from "./GetGameByIdResponse"; +export * from "./GameBannerUploadPrepareRequest"; +export * from "./GameBannerUploadPrepareResponse"; +export * from "./GameLogoUploadPrepareRequest"; +export * from "./GameLogoUploadPrepareResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/ValidateGroupRequest.ts b/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/ValidateGroupRequest.ts new file mode 100644 index 0000000000..9c3bccf9c3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/ValidateGroupRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface ValidateGroupRequest { + displayName: Rivet.DisplayName; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/ValidateGroupResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/ValidateGroupResponse.ts new file mode 100644 index 0000000000..f36add7f48 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/ValidateGroupResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface ValidateGroupResponse { + /** A list of validation errors. */ + errors: Rivet.ValidationError[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/index.ts new file mode 100644 index 0000000000..4f4b12381a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/groups/types/index.ts @@ -0,0 +1,2 @@ +export * from "./ValidateGroupRequest"; +export * from "./ValidateGroupResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/logs/types/GetRayPerfLogsResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/logs/types/GetRayPerfLogsResponse.ts new file mode 100644 index 0000000000..a9e8307422 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/logs/types/GetRayPerfLogsResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetRayPerfLogsResponse { + /** A list of service performance summaries. */ + perfLists: Rivet.cloud.SvcPerf[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/logs/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/logs/types/index.ts new file mode 100644 index 0000000000..3e48b7404b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/logs/types/index.ts @@ -0,0 +1 @@ +export * from "./GetRayPerfLogsResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/tiers/types/GetRegionTiersResponse.ts b/sdks/full/typescript/src/api/resources/cloud/resources/tiers/types/GetRegionTiersResponse.ts new file mode 100644 index 0000000000..bf65e97066 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/tiers/types/GetRegionTiersResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetRegionTiersResponse { + /** A list of region server tiers. */ + tiers: Rivet.cloud.RegionTier[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/tiers/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/tiers/types/index.ts new file mode 100644 index 0000000000..93a8b71ceb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/tiers/types/index.ts @@ -0,0 +1 @@ +export * from "./GetRegionTiersResponse"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Config.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Config.ts new file mode 100644 index 0000000000..9eec984f2d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Config.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +/** + * CDN configuration for a given version. + */ +export interface Config { + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + buildCommand?: string; + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + buildOutput?: string; + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + buildEnv?: Record; + siteId?: string; + /** Multiple CDN version routes. */ + routes?: Rivet.cloud.version.cdn.Route[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/CustomHeadersMiddleware.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/CustomHeadersMiddleware.ts new file mode 100644 index 0000000000..6e7a17033a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/CustomHeadersMiddleware.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CustomHeadersMiddleware { + headers: Rivet.cloud.version.cdn.Header[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Header.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Header.ts new file mode 100644 index 0000000000..e169010984 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Header.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface Header { + name: string; + value: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Middleware.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Middleware.ts new file mode 100644 index 0000000000..96987f9b18 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Middleware.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface Middleware { + kind: Rivet.cloud.version.cdn.MiddlewareKind; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/MiddlewareKind.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/MiddlewareKind.ts new file mode 100644 index 0000000000..c82fc2c35d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/MiddlewareKind.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface MiddlewareKind { + customHeaders?: Rivet.cloud.version.cdn.CustomHeadersMiddleware; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Route.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Route.ts new file mode 100644 index 0000000000..13c87723d9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/Route.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface Route { + glob: string; + /** Unsigned 32 bit integer. */ + priority: number; + /** Multiple CDN version middleware. */ + middlewares: Rivet.cloud.version.cdn.Middleware[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/index.ts new file mode 100644 index 0000000000..dc7e5532f1 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/cdn/types/index.ts @@ -0,0 +1,6 @@ +export * from "./Config"; +export * from "./Route"; +export * from "./Middleware"; +export * from "./MiddlewareKind"; +export * from "./CustomHeadersMiddleware"; +export * from "./Header"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/custom/types/CustomConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/custom/types/CustomConfig.ts new file mode 100644 index 0000000000..46222e746e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/custom/types/CustomConfig.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CustomConfig {} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/custom/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/custom/types/index.ts new file mode 100644 index 0000000000..381f2b6981 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/custom/types/index.ts @@ -0,0 +1 @@ +export * from "./CustomConfig"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/godot/types/GodotConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/godot/types/GodotConfig.ts new file mode 100644 index 0000000000..deb1d0602a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/godot/types/GodotConfig.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GodotConfig {} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/godot/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/godot/types/index.ts new file mode 100644 index 0000000000..7cea9775b4 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/godot/types/index.ts @@ -0,0 +1 @@ +export * from "./GodotConfig"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/html5/types/Html5Config.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/html5/types/Html5Config.ts new file mode 100644 index 0000000000..870c76d038 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/html5/types/Html5Config.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface Html5Config {} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/html5/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/html5/types/index.ts new file mode 100644 index 0000000000..654a44c8f9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/html5/types/index.ts @@ -0,0 +1 @@ +export * from "./Html5Config"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unity/types/UnityConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unity/types/UnityConfig.ts new file mode 100644 index 0000000000..92376f8ba8 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unity/types/UnityConfig.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UnityConfig {} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unity/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unity/types/index.ts new file mode 100644 index 0000000000..1c90b32602 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unity/types/index.ts @@ -0,0 +1 @@ +export * from "./UnityConfig"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unreal/types/UnrealConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unreal/types/UnrealConfig.ts new file mode 100644 index 0000000000..d20aa709c6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unreal/types/UnrealConfig.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UnrealConfig { + /** + * Name of the Unreal module that holds the game code. + * This is usually the value of `$.Modules[0].Name` in the file `MyProject.unproject`. + * _Configures Rivet CLI behavior. Has no effect on server behavior._ + */ + gameModule: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unreal/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unreal/types/index.ts new file mode 100644 index 0000000000..3f35012393 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/resources/unreal/types/index.ts @@ -0,0 +1 @@ +export * from "./UnrealConfig"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/types/Config.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/types/Config.ts new file mode 100644 index 0000000000..5f1fc1155c --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/types/Config.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface Config { + unity?: Rivet.cloud.version.engine.UnityConfig; + unreal?: Rivet.cloud.version.engine.UnrealConfig; + godot?: Rivet.cloud.version.engine.GodotConfig; + html5?: Rivet.cloud.version.engine.Html5Config; + custom?: Rivet.cloud.version.engine.CustomConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/types/index.ts new file mode 100644 index 0000000000..f7ca0fcfbb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/engine/types/index.ts @@ -0,0 +1 @@ +export * from "./Config"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/Config.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/Config.ts new file mode 100644 index 0000000000..f17af8c825 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/Config.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +/** + * **Deprecated** + * Identity configuration for a given version. + */ +export interface Config { + /** **Deprecated** */ + displayNames?: string[]; + /** **Deprecated** */ + avatars?: string[]; + /** **Deprecated** */ + customDisplayNames?: Rivet.cloud.version.identity.CustomDisplayName[]; + /** **Deprecated** */ + customAvatars?: Rivet.cloud.version.identity.CustomAvatar[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/CustomAvatar.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/CustomAvatar.ts new file mode 100644 index 0000000000..19ed5ebab3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/CustomAvatar.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CustomAvatar { + uploadId: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/CustomDisplayName.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/CustomDisplayName.ts new file mode 100644 index 0000000000..644effd315 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/CustomDisplayName.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +export interface CustomDisplayName { + displayName: Rivet.DisplayName; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/index.ts new file mode 100644 index 0000000000..d076b4dda6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/identity/types/index.ts @@ -0,0 +1,3 @@ +export * from "./Config"; +export * from "./CustomDisplayName"; +export * from "./CustomAvatar"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/kv/types/Config.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/kv/types/Config.ts new file mode 100644 index 0000000000..36e66433b4 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/kv/types/Config.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * KV configuration for a given version. + */ +export interface Config {} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/kv/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/kv/types/index.ts new file mode 100644 index 0000000000..f7ca0fcfbb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/kv/types/index.ts @@ -0,0 +1 @@ +export * from "./Config"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/Captcha.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/Captcha.ts new file mode 100644 index 0000000000..15c486fc67 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/Captcha.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * Matchmaker captcha configuration. + */ +export interface Captcha { + /** Denotes how many requests a connection can make before it is required to reverify a captcha. */ + requestsBeforeReverify: number; + /** Denotes how long a connection can continue to reconnect without having to reverify a captcha (in milliseconds). */ + verificationTtl: number; + hcaptcha?: Rivet.cloud.version.matchmaker.CaptchaHcaptcha; + turnstile?: Rivet.cloud.version.matchmaker.CaptchaTurnstile; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptcha.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptcha.ts new file mode 100644 index 0000000000..736e3f868a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptcha.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * hCpatcha configuration. + */ +export interface CaptchaHcaptcha { + /** **Deprecated** */ + level?: Rivet.cloud.version.matchmaker.CaptchaHcaptchaLevel; + /** Site key for your hCaptcha application. Must be set. */ + siteKey?: string; + /** Secret key for your hCaptcha application. Must be set. */ + secretKey?: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptchaLevel.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptchaLevel.ts new file mode 100644 index 0000000000..2dac3fe4f3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptchaLevel.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * **Deprecated** + * How hard a captcha should be. + */ +export type CaptchaHcaptchaLevel = "easy" | "moderate" | "difficult" | "always_on"; + +export const CaptchaHcaptchaLevel = { + Easy: "easy", + Moderate: "moderate", + Difficult: "difficult", + AlwaysOn: "always_on", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaTurnstile.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaTurnstile.ts new file mode 100644 index 0000000000..3e0a735516 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaTurnstile.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Turnstile captcha configuration. + */ +export interface CaptchaTurnstile { + siteKey: string; + secretKey: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/NetworkMode.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/NetworkMode.ts new file mode 100644 index 0000000000..a3542dfc4e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/NetworkMode.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Configures how the container's network is isolated from the host. + * `bridge` (default) networking isolates the container's network from the host & other containers. + * `host` networking removes isolation between the container and the host. Only available in Rivet Open Source & Enterprise. + * Read more about bridge vs host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). + */ +export type NetworkMode = "bridge" | "host"; + +export const NetworkMode = { + Bridge: "bridge", + Host: "host", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortProtocol.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortProtocol.ts new file mode 100644 index 0000000000..965c74c6ed --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortProtocol.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Signifies the protocol of the port. + * Note that when proxying through GameGuard (via `ProxyKind`), the port number returned by `/find`, `/join`, and `/create` will not be the same as the port number configured in the config: + * + * - With HTTP, the port will always be 80. The hostname of the port correctly routes the incoming + * connection to the correct port being used by the game server. + * - With HTTPS, the port will always be 443. The hostname of the port correctly routes the incoming + * connection to the correct port being used by the game server. + * - Using TCP/UDP, the port will be a random number between 26000 and 31999. This gets automatically + * routed to the correct port being used by the game server. + * + * ### Related - cloud.version.matchmaker.GameModeRuntimeDockerPort - cloud.version.matchmaker.ProxyKind - /docs/dynamic-servers/concepts/game-guard - matchmaker.lobbies.find + */ +export type PortProtocol = "http" | "https" | "tcp" | "tcp_tls" | "udp"; + +export const PortProtocol = { + Http: "http", + Https: "https", + Tcp: "tcp", + TcpTls: "tcp_tls", + Udp: "udp", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortRange.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortRange.ts new file mode 100644 index 0000000000..3b2fe90d4c --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortRange.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Range of ports that can be connected to. + * If configured, `network_mode` must equal `host`. + * Port ranges may overlap between containers, it is the responsibility of the developer to ensure ports are available before using. + * Read more about host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). + * Only available on Rivet Open Source & Enterprise. + * + * ### Related + * + * - cloud.version.matchmaker.PortProtocol + * - cloud.version.matchmaker.ProxyKind + */ +export interface PortRange { + /** Unsigned 32 bit integer. */ + min: number; + /** Unsigned 32 bit integer. */ + max: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/ProxyKind.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/ProxyKind.ts new file mode 100644 index 0000000000..82f31a07cd --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/ProxyKind.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Range of ports that can be connected to. + * `game_guard` (default) proxies all traffic through [Game Guard](https://rivet.gg/docs/dynamic-servers/concepts/game-guard) to mitigate DDoS attacks and provide TLS termination. + * `none` sends traffic directly to the game server. If configured, `network_mode` must equal `host`. Read more about host networking [here](https://rivet.gg/docs/dynamic-servers/concepts/host-bridge-networking). Only available on Rivet Open Source & Enterprise. + * + * ### Related - /docs/dynamic-servers/concepts/game-guard - cloud.version.matchmaker.PortProtocol + */ +export type ProxyKind = "none" | "game_guard"; + +export const ProxyKind = { + None: "none", + GameGuard: "game_guard", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/index.ts new file mode 100644 index 0000000000..de5db03527 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/common/types/index.ts @@ -0,0 +1,8 @@ +export * from "./PortRange"; +export * from "./PortProtocol"; +export * from "./ProxyKind"; +export * from "./Captcha"; +export * from "./CaptchaHcaptcha"; +export * from "./CaptchaHcaptchaLevel"; +export * from "./CaptchaTurnstile"; +export * from "./NetworkMode"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameMode.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameMode.ts new file mode 100644 index 0000000000..8b91b9071a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameMode.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * A game mode. + */ +export interface GameMode { + regions?: Record; + maxPlayers?: number; + maxPlayersDirect?: number; + maxPlayersParty?: number; + docker?: Rivet.cloud.version.matchmaker.GameModeRuntimeDocker; + listable?: boolean; + taggable?: boolean; + allowDynamicMaxPlayers?: boolean; + actions?: Rivet.cloud.version.matchmaker.GameModeActions; + tier?: string; + idleLobbies?: Rivet.cloud.version.matchmaker.GameModeIdleLobbiesConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeActions.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeActions.ts new file mode 100644 index 0000000000..4e945fdfe6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeActions.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * Configuration for the connection types allowed for a game mode. + */ +export interface GameModeActions { + find?: Rivet.cloud.version.matchmaker.GameModeFindConfig; + join?: Rivet.cloud.version.matchmaker.GameModeJoinConfig; + create?: Rivet.cloud.version.matchmaker.GameModeCreateConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeCreateConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeCreateConfig.ts new file mode 100644 index 0000000000..48d83fa523 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeCreateConfig.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * Configures the requirements and authentication for the /create endpoint. If this value is not set in the config, the /create endpoint is NOT enabled. + */ +export interface GameModeCreateConfig { + /** Sets whether or not the /create endpoint is enabled. */ + enabled: boolean; + identityRequirement?: Rivet.cloud.version.matchmaker.GameModeIdentityRequirement; + verification?: Rivet.cloud.version.matchmaker.GameModeVerificationConfig; + /** Defaults to false when unset. */ + enablePublic?: boolean; + /** Defaults to true when unset. */ + enablePrivate?: boolean; + /** **Deprecated** */ + maxLobbiesPerIdentity?: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeFindConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeFindConfig.ts new file mode 100644 index 0000000000..31f08f04e3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeFindConfig.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * Configures the requirements and authentication for the /find endpoint. If this value is not set in the config, the /find endpoint is still enabled. + */ +export interface GameModeFindConfig { + /** Sets whether or not the /find endpoint is enabled. */ + enabled: boolean; + identityRequirement?: Rivet.cloud.version.matchmaker.GameModeIdentityRequirement; + verification?: Rivet.cloud.version.matchmaker.GameModeVerificationConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdentityRequirement.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdentityRequirement.ts new file mode 100644 index 0000000000..7b006ad9b3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdentityRequirement.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * **Deprecated** + * The registration requirement for a user when joining/finding/creating a lobby. "None" allows for connections without an identity. + */ +export type GameModeIdentityRequirement = "none" | "guest" | "registered"; + +export const GameModeIdentityRequirement = { + None: "none", + Guest: "guest", + Registered: "registered", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdleLobbiesConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdleLobbiesConfig.ts new file mode 100644 index 0000000000..3b867de8f9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdleLobbiesConfig.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Configuration for how many idle lobbies a game version should have. + */ +export interface GameModeIdleLobbiesConfig { + min: number; + max: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeJoinConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeJoinConfig.ts new file mode 100644 index 0000000000..6fdff21817 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeJoinConfig.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * Configures the requirements and authentication for the /join endpoint. If this value is not set in the config, the /join endpoint is still enabled. + */ +export interface GameModeJoinConfig { + /** Sets whether or not the /join endpoint is enabled. */ + enabled: boolean; + identityRequirement?: Rivet.cloud.version.matchmaker.GameModeIdentityRequirement; + verification?: Rivet.cloud.version.matchmaker.GameModeVerificationConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRegion.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRegion.ts new file mode 100644 index 0000000000..38f99ece0a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRegion.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * A game mode region. + */ +export interface GameModeRegion { + tier?: string; + idleLobbies?: Rivet.cloud.version.matchmaker.GameModeIdleLobbiesConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDocker.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDocker.ts new file mode 100644 index 0000000000..3fea69eaec --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDocker.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * A game mode runtime running through Docker. + */ +export interface GameModeRuntimeDocker { + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + dockerfile?: string; + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + buildArgs?: Record; + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + image?: string; + imageId?: string; + args?: string[]; + env?: Record; + networkMode?: Rivet.cloud.version.matchmaker.NetworkMode; + ports?: Record; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDockerPort.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDockerPort.ts new file mode 100644 index 0000000000..6aeec8fcd1 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDockerPort.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * Port config for a docker build. + */ +export interface GameModeRuntimeDockerPort { + /** + * The port number to connect to. + * + * ### Related - cloud.version.matchmaker.PortProtocol - cloud.version.matchmaker.ProxyKind + */ + port?: number; + portRange?: Rivet.cloud.version.matchmaker.PortRange; + protocol?: Rivet.cloud.version.matchmaker.PortProtocol; + /** How this port should be proxied. Defaults to 'game-guard`. */ + proxy?: Rivet.cloud.version.matchmaker.ProxyKind; + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + devPort?: number; + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + devPortRange?: Rivet.cloud.version.matchmaker.PortRange; + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + devProtocol?: Rivet.cloud.version.matchmaker.PortProtocol; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeVerificationConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeVerificationConfig.ts new file mode 100644 index 0000000000..3407b1a1a6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeVerificationConfig.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Configuration that tells Rivet where to send validation requests and with what headers. When set, Rivet will send the `verification_data` property (given by the user in the find/join/create endpoint) to the given url along with the headers provided and some information about the requested lobby. The response of this request will determine if the user can join that lobby or not. + */ +export interface GameModeVerificationConfig { + url: string; + headers: Record; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/index.ts new file mode 100644 index 0000000000..724ddf9090 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/index.ts @@ -0,0 +1,11 @@ +export * from "./GameMode"; +export * from "./GameModeRegion"; +export * from "./GameModeRuntimeDocker"; +export * from "./GameModeRuntimeDockerPort"; +export * from "./GameModeIdleLobbiesConfig"; +export * from "./GameModeActions"; +export * from "./GameModeIdentityRequirement"; +export * from "./GameModeVerificationConfig"; +export * from "./GameModeFindConfig"; +export * from "./GameModeJoinConfig"; +export * from "./GameModeCreateConfig"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroup.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroup.ts new file mode 100644 index 0000000000..5e45fed292 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroup.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * A game mode. + */ +export interface LobbyGroup { + /** + * **Deprecated: use GameMode instead** + * 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; + /** A list of game mode regions. */ + regions: Rivet.cloud.version.matchmaker.LobbyGroupRegion[]; + /** Unsigned 32 bit integer. */ + maxPlayersNormal: number; + /** Unsigned 32 bit integer. */ + maxPlayersDirect: number; + /** Unsigned 32 bit integer. */ + maxPlayersParty: number; + runtime: Rivet.cloud.version.matchmaker.LobbyGroupRuntime; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupIdleLobbiesConfig.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupIdleLobbiesConfig.ts new file mode 100644 index 0000000000..364fb464a6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupIdleLobbiesConfig.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * **Deprecated: use GameMode instead** + * Configuration for how many idle lobbies a game version should have. + */ +export interface LobbyGroupIdleLobbiesConfig { + /** Unsigned 32 bit integer. */ + minIdleLobbies: number; + /** Unsigned 32 bit integer. */ + maxIdleLobbies: number; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRegion.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRegion.ts new file mode 100644 index 0000000000..f9158e77c3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRegion.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * **Deprecated: use GameMode instead** + * A game mode region. + */ +export interface LobbyGroupRegion { + regionId: 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. */ + tierNameId: string; + idleLobbies?: Rivet.cloud.version.matchmaker.LobbyGroupIdleLobbiesConfig; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntime.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntime.ts new file mode 100644 index 0000000000..d9b930b1ec --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntime.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * **Deprecated: use GameMode instead** + * A union representing the runtime a game mode runs on. + */ +export interface LobbyGroupRuntime { + docker?: Rivet.cloud.version.matchmaker.LobbyGroupRuntimeDocker; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDocker.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDocker.ts new file mode 100644 index 0000000000..b118b39bd3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDocker.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * **Deprecated: use GameMode instead** + * A game mode runtime running through Docker. + */ +export interface LobbyGroupRuntimeDocker { + buildId?: string; + args: string[]; + envVars: Rivet.cloud.version.matchmaker.LobbyGroupRuntimeDockerEnvVar[]; + networkMode?: Rivet.cloud.version.matchmaker.NetworkMode; + ports: Rivet.cloud.version.matchmaker.LobbyGroupRuntimeDockerPort[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerEnvVar.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerEnvVar.ts new file mode 100644 index 0000000000..43613ddebe --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerEnvVar.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * **Deprecated: use GameMode instead** + * A docker environment variable. + */ +export interface LobbyGroupRuntimeDockerEnvVar { + key: string; + value: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerPort.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerPort.ts new file mode 100644 index 0000000000..48a4ccc550 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerPort.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../../../.."; + +/** + * **Deprecated: use GameMode instead** + * A docker port. + */ +export interface LobbyGroupRuntimeDockerPort { + /** The label of this docker port. */ + label: string; + /** The port number to connect to. */ + targetPort?: number; + portRange?: Rivet.cloud.version.matchmaker.PortRange; + proxyProtocol: Rivet.cloud.version.matchmaker.PortProtocol; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/index.ts new file mode 100644 index 0000000000..ced14a2af5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/index.ts @@ -0,0 +1,7 @@ +export * from "./LobbyGroup"; +export * from "./LobbyGroupRuntime"; +export * from "./LobbyGroupRegion"; +export * from "./LobbyGroupRuntimeDocker"; +export * from "./LobbyGroupRuntimeDockerEnvVar"; +export * from "./LobbyGroupRuntimeDockerPort"; +export * from "./LobbyGroupIdleLobbiesConfig"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/types/Config.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/types/Config.ts new file mode 100644 index 0000000000..ffeb6ebdfa --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/types/Config.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../../../.."; + +/** + * Matchmaker configuration for a given version. + */ +export interface Config { + /** A list of game modes. */ + gameModes?: Record; + captcha?: Rivet.cloud.version.matchmaker.Captcha; + /** _Configures Rivet CLI behavior. Has no effect on server behavior._ */ + devHostname?: string; + regions?: Record; + maxPlayers?: number; + maxPlayersDirect?: number; + maxPlayersParty?: number; + docker?: Rivet.cloud.version.matchmaker.GameModeRuntimeDocker; + tier?: string; + idleLobbies?: Rivet.cloud.version.matchmaker.GameModeIdleLobbiesConfig; + /** + * **Deprecated: use `game_modes` instead** + * A list of game modes. + */ + lobbyGroups?: Rivet.cloud.version.matchmaker.LobbyGroup[]; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/types/index.ts new file mode 100644 index 0000000000..f7ca0fcfbb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/resources/matchmaker/types/index.ts @@ -0,0 +1 @@ +export * from "./Config"; diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Config.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Config.ts new file mode 100644 index 0000000000..dfafb52316 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Config.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * Cloud configuration for a given version. + */ +export interface Config { + scripts?: Record; + engine?: Rivet.cloud.version.engine.Config; + cdn?: Rivet.cloud.version.cdn.Config; + matchmaker?: Rivet.cloud.version.matchmaker.Config; + kv?: Rivet.cloud.version.kv.Config; + identity?: Rivet.cloud.version.identity.Config; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Full.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Full.ts new file mode 100644 index 0000000000..729cf8d3f7 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Full.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A full version. + */ +export interface Full { + versionId: string; + createTs: Rivet.Timestamp; + displayName: Rivet.DisplayName; + config: Rivet.cloud.version.Config; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Summary.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Summary.ts new file mode 100644 index 0000000000..bc634311c0 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/types/Summary.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A version summary. + */ +export interface Summary { + versionId: string; + createTs: Rivet.Timestamp; + displayName: Rivet.DisplayName; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/resources/version/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/resources/version/types/index.ts new file mode 100644 index 0000000000..ab57cdad09 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/resources/version/types/index.ts @@ -0,0 +1,3 @@ +export * from "./Config"; +export * from "./Full"; +export * from "./Summary"; diff --git a/sdks/full/typescript/src/api/resources/cloud/types/BootstrapAccess.ts b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapAccess.ts new file mode 100644 index 0000000000..1a89fa482e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapAccess.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type BootstrapAccess = "public" | "private"; + +export const BootstrapAccess = { + Public: "public", + Private: "private", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCaptcha.ts b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCaptcha.ts new file mode 100644 index 0000000000..7714ac9ca0 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCaptcha.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface BootstrapCaptcha { + turnstile?: Rivet.cloud.BootstrapCaptchaTurnstile; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCaptchaTurnstile.ts b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCaptchaTurnstile.ts new file mode 100644 index 0000000000..14682dcb2f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCaptchaTurnstile.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BootstrapCaptchaTurnstile { + siteKey: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCluster.ts b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCluster.ts new file mode 100644 index 0000000000..07d449e737 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapCluster.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The type of cluster that the backend is currently running. + */ +export type BootstrapCluster = "enterprise" | "oss"; + +export const BootstrapCluster = { + Enterprise: "enterprise", + Oss: "oss", +} as const; diff --git a/sdks/full/typescript/src/api/resources/cloud/types/BootstrapDomains.ts b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapDomains.ts new file mode 100644 index 0000000000..81aabd7580 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapDomains.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Domains that host parts of Rivet + */ +export interface BootstrapDomains { + main: string; + cdn: string; + job: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/types/BootstrapLoginMethods.ts b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapLoginMethods.ts new file mode 100644 index 0000000000..a1a663075e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapLoginMethods.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface BootstrapLoginMethods { + accessToken: boolean; + email: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/types/BootstrapOrigins.ts b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapOrigins.ts new file mode 100644 index 0000000000..70b960d42a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapOrigins.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Origins used to build URLs from + */ +export interface BootstrapOrigins { + hub: string; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/types/BootstrapResponse.ts b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapResponse.ts new file mode 100644 index 0000000000..e2ebca964a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/BootstrapResponse.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface BootstrapResponse { + cluster: Rivet.cloud.BootstrapCluster; + access: Rivet.cloud.BootstrapAccess; + domains?: Rivet.cloud.BootstrapDomains; + origins: Rivet.cloud.BootstrapOrigins; + captcha: Rivet.cloud.BootstrapCaptcha; + loginMethods: Rivet.cloud.BootstrapLoginMethods; +} diff --git a/sdks/full/typescript/src/api/resources/cloud/types/index.ts b/sdks/full/typescript/src/api/resources/cloud/types/index.ts new file mode 100644 index 0000000000..73c144b622 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/cloud/types/index.ts @@ -0,0 +1,8 @@ +export * from "./BootstrapResponse"; +export * from "./BootstrapCluster"; +export * from "./BootstrapAccess"; +export * from "./BootstrapDomains"; +export * from "./BootstrapOrigins"; +export * from "./BootstrapCaptcha"; +export * from "./BootstrapCaptchaTurnstile"; +export * from "./BootstrapLoginMethods"; diff --git a/sdks/full/typescript/src/api/resources/common/types/AccountNumber.ts b/sdks/full/typescript/src/api/resources/common/types/AccountNumber.ts new file mode 100644 index 0000000000..d2d1f255b5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/AccountNumber.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AccountNumber = number; diff --git a/sdks/full/typescript/src/api/resources/common/types/Bio.ts b/sdks/full/typescript/src/api/resources/common/types/Bio.ts new file mode 100644 index 0000000000..06a38f872e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/Bio.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Follows regex ^(?:[^\n\r]+\n?|\n){1,5}$ + */ +export type Bio = string; diff --git a/sdks/full/typescript/src/api/resources/common/types/DisplayName.ts b/sdks/full/typescript/src/api/resources/common/types/DisplayName.ts new file mode 100644 index 0000000000..1baa23f256 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/DisplayName.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Represent a resource's readable display name. + */ +export type DisplayName = string; diff --git a/sdks/full/typescript/src/api/resources/common/types/Email.ts b/sdks/full/typescript/src/api/resources/common/types/Email.ts new file mode 100644 index 0000000000..a8de243f34 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/Email.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A valid email address + */ +export type Email = string; diff --git a/sdks/full/typescript/src/api/resources/common/types/EmptyObject.ts b/sdks/full/typescript/src/api/resources/common/types/EmptyObject.ts new file mode 100644 index 0000000000..f2cffa648e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/EmptyObject.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface EmptyObject {} diff --git a/sdks/full/typescript/src/api/resources/common/types/ErrorBody.ts b/sdks/full/typescript/src/api/resources/common/types/ErrorBody.ts new file mode 100644 index 0000000000..8e7c2514d4 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/ErrorBody.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ErrorBody { + code: string; + message: string; + documentation?: string; + metadata?: Rivet.ErrorMetadata | undefined; +} diff --git a/sdks/full/typescript/src/api/resources/common/types/ErrorMetadata.ts b/sdks/full/typescript/src/api/resources/common/types/ErrorMetadata.ts new file mode 100644 index 0000000000..d236d1f19d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/ErrorMetadata.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Unstructured metadata relating to an error. Must be manually parsed. + */ +export type ErrorMetadata = unknown; diff --git a/sdks/full/typescript/src/api/resources/common/types/GlobalEventNotification.ts b/sdks/full/typescript/src/api/resources/common/types/GlobalEventNotification.ts new file mode 100644 index 0000000000..d598c4612b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/GlobalEventNotification.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GlobalEventNotification { + title: string; + description: string; + thumbnailUrl: string; + url: string; +} diff --git a/sdks/full/typescript/src/api/resources/common/types/Identifier.ts b/sdks/full/typescript/src/api/resources/common/types/Identifier.ts new file mode 100644 index 0000000000..616b2523d0 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/Identifier.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * 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. + */ +export type Identifier = string; diff --git a/sdks/full/typescript/src/api/resources/common/types/Jwt.ts b/sdks/full/typescript/src/api/resources/common/types/Jwt.ts new file mode 100644 index 0000000000..f2ef4c535d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/Jwt.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Documentation at https://jwt.io/ + */ +export type Jwt = string; diff --git a/sdks/full/typescript/src/api/resources/common/types/Timestamp.ts b/sdks/full/typescript/src/api/resources/common/types/Timestamp.ts new file mode 100644 index 0000000000..44f4eb6858 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/Timestamp.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * RFC3339 timestamp + */ +export type Timestamp = Date; diff --git a/sdks/full/typescript/src/api/resources/common/types/ValidationError.ts b/sdks/full/typescript/src/api/resources/common/types/ValidationError.ts new file mode 100644 index 0000000000..a63ada56f0 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/ValidationError.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * An error given by failed content validation. + */ +export interface ValidationError { + /** A list of strings denoting the origin of a validation error. */ + path: string[]; +} diff --git a/sdks/full/typescript/src/api/resources/common/types/WatchQuery.ts b/sdks/full/typescript/src/api/resources/common/types/WatchQuery.ts new file mode 100644 index 0000000000..bc04c4b7ed --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/WatchQuery.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A query parameter denoting the requests watch index. + */ +export type WatchQuery = string | undefined; diff --git a/sdks/full/typescript/src/api/resources/common/types/WatchResponse.ts b/sdks/full/typescript/src/api/resources/common/types/WatchResponse.ts new file mode 100644 index 0000000000..9b74a009b3 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/WatchResponse.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Provided by watchable endpoints used in blocking loops. + */ +export interface WatchResponse { + /** + * Index indicating the version of the data responded. + * Pass this to `WatchQuery` to block and wait for the next response. + */ + index: string; +} diff --git a/sdks/full/typescript/src/api/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/common/types/index.ts new file mode 100644 index 0000000000..2247fadcf1 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/common/types/index.ts @@ -0,0 +1,14 @@ +export * from "./Identifier"; +export * from "./Bio"; +export * from "./Email"; +export * from "./Jwt"; +export * from "./WatchQuery"; +export * from "./WatchResponse"; +export * from "./DisplayName"; +export * from "./AccountNumber"; +export * from "./Timestamp"; +export * from "./GlobalEventNotification"; +export * from "./ValidationError"; +export * from "./EmptyObject"; +export * from "./ErrorMetadata"; +export * from "./ErrorBody"; diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/Handle.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/Handle.ts new file mode 100644 index 0000000000..fe3d265a00 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/Handle.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface Handle { + gameId: string; + nameId: Rivet.Identifier; + displayName: Rivet.DisplayName; + /** The URL of this game's logo image. */ + logoUrl?: string; + /** The URL of this game's banner image. */ + bannerUrl?: string; +} diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/LeaderboardCategory.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/LeaderboardCategory.ts new file mode 100644 index 0000000000..0465bef6fe --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/LeaderboardCategory.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A game leaderboard category. + */ +export interface LeaderboardCategory { + displayName: Rivet.DisplayName; +} diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/PlatformLink.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/PlatformLink.ts new file mode 100644 index 0000000000..60f1ef08a2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/PlatformLink.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A platform link denoting a supported platform. + */ +export interface PlatformLink { + displayName: Rivet.DisplayName; + /** The URL to the given game's method of distribution on this platform. */ + url: string; +} diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/Profile.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/Profile.ts new file mode 100644 index 0000000000..9f24782a44 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/Profile.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A game profile. + */ +export interface Profile { + gameId: 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. */ + nameId: string; + displayName: Rivet.DisplayName; + /** The URL of this game's logo image. */ + logoUrl?: string; + /** The URL of this game's banner image. */ + bannerUrl?: string; + /** The URL to this game's website. */ + url: string; + developer: Rivet.group.Summary; + /** A list of game tags. */ + tags: string[]; + /** A description of the given game. */ + description: string; + /** A list of platform links. */ + platforms: Rivet.game.PlatformLink[]; + /** A list of group summaries. */ + recommendedGroups: Rivet.group.Summary[]; + /** A list of game leaderboard categories. */ + identityLeaderboardCategories: Rivet.game.LeaderboardCategory[]; + /** A list of game leaderboard categories. */ + groupLeaderboardCategories: Rivet.game.LeaderboardCategory[]; +} diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/Stat.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/Stat.ts new file mode 100644 index 0000000000..6397d9c8bb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/Stat.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A game statistic. + */ +export interface Stat { + config: Rivet.game.StatConfig; + /** A single overall value of the given statistic. */ + overallValue: number; +} diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/StatAggregationMethod.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatAggregationMethod.ts new file mode 100644 index 0000000000..32d322d617 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatAggregationMethod.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A value denoting the aggregation method of a game statistic. + */ +export type StatAggregationMethod = + /** + * Summation aggregation. */ + | "sum" + /** + * Average aggregation. */ + | "average" + /** + * Minimum value aggregation. */ + | "min" + /** + * Maximum value aggregation. */ + | "max"; + +export const StatAggregationMethod = { + Sum: "sum", + Average: "average", + Min: "min", + Max: "max", +} as const; diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/StatConfig.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatConfig.ts new file mode 100644 index 0000000000..777387f574 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatConfig.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A game statistic config. + */ +export interface StatConfig { + recordId: string; + iconId: string; + format: Rivet.game.StatFormatMethod; + aggregation: Rivet.game.StatAggregationMethod; + sorting: Rivet.game.StatSortingMethod; + priority: number; + displayName: Rivet.DisplayName; + /** A string appended to the end of a singular game statistic's value. Example: 1 **dollar**. */ + postfixSingular?: string; + /** A string appended to the end of a game statistic's value that is not exactly 1. Example: 45 **dollars**. */ + postfixPlural?: string; + /** A string appended to the beginning of a singular game statistic's value. Example: **value** 1. */ + prefixSingular?: string; + /** A string prepended to the beginning of a game statistic's value that is not exactly 1. Example: **values** 45. */ + prefixPlural?: string; +} diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/StatFormatMethod.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatFormatMethod.ts new file mode 100644 index 0000000000..db7dbb6587 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatFormatMethod.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A value denoting the format method of a game statistic. + */ +export type StatFormatMethod = + /** + * An integer with no decimals (1,234). */ + | "integer" + /** + * A float with 1 decimal (1,234.5). */ + | "float_1" + /** + * A float with 2 decimals (1,234.56). */ + | "float_2" + /** + * A float with 3 decimals (1,234.567). */ + | "float_3" + /** + * A duration with minute precision (1d 2h 45m). */ + | "duration_minute" + /** + * A duration with second precision (1d 2h 45m 21s). */ + | "duration_second" + /** + * A duration with hundredth-second precision (1d 2h 45m 21.46s). It is important to notice that this custom format is not a standard way to define Enums in OpenAPI and it will be not understood by the majority of tools that parse OpenAPI files. It is important to check with the tools or libraries that you are using to make sure they support this custom format. */ + | "duration_hundredth_second"; + +export const StatFormatMethod = { + Integer: "integer", + Float1: "float_1", + Float2: "float_2", + Float3: "float_3", + DurationMinute: "duration_minute", + DurationSecond: "duration_second", + DurationHundredthSecond: "duration_hundredth_second", +} as const; diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/StatSortingMethod.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatSortingMethod.ts new file mode 100644 index 0000000000..98627ab83b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatSortingMethod.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A value denoting the sorting method of a game statistic. + */ +export type StatSortingMethod = + /** + * Descending sorting. */ + | "desc" + /** + * Ascending sorting. */ + | "asc"; + +export const StatSortingMethod = { + Desc: "desc", + Asc: "asc", +} as const; diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/StatSummary.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatSummary.ts new file mode 100644 index 0000000000..4595ea101c --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/StatSummary.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A game statistic summary. + */ +export interface StatSummary { + game: Rivet.game.Handle; + stats: Rivet.game.Stat[]; +} diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/Summary.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/Summary.ts new file mode 100644 index 0000000000..92c1d6f0b2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/Summary.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface Summary { + gameId: string; + nameId: Rivet.Identifier; + displayName: Rivet.DisplayName; + /** The URL of this game's logo image. */ + logoUrl?: string; + /** The URL of this game's banner image. */ + bannerUrl?: string; + url: string; + developer: Rivet.group.Handle; + /** Unsigned 32 bit integer. */ + totalPlayerCount: number; +} diff --git a/sdks/full/typescript/src/api/resources/game/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/game/resources/common/types/index.ts new file mode 100644 index 0000000000..743ab2ad86 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/game/resources/common/types/index.ts @@ -0,0 +1,11 @@ +export * from "./Handle"; +export * from "./Summary"; +export * from "./Profile"; +export * from "./PlatformLink"; +export * from "./LeaderboardCategory"; +export * from "./StatSummary"; +export * from "./Stat"; +export * from "./StatConfig"; +export * from "./StatFormatMethod"; +export * from "./StatAggregationMethod"; +export * from "./StatSortingMethod"; diff --git a/sdks/full/typescript/src/api/resources/geo/resources/common/types/Coord.ts b/sdks/full/typescript/src/api/resources/geo/resources/common/types/Coord.ts new file mode 100644 index 0000000000..30efaf6eb9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/geo/resources/common/types/Coord.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Geographical coordinates for a location on Planet Earth. + */ +export interface Coord { + latitude: number; + longitude: number; +} diff --git a/sdks/full/typescript/src/api/resources/geo/resources/common/types/Distance.ts b/sdks/full/typescript/src/api/resources/geo/resources/common/types/Distance.ts new file mode 100644 index 0000000000..2775c9cc42 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/geo/resources/common/types/Distance.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Distance available in multiple units. + */ +export interface Distance { + kilometers: number; + miles: number; +} diff --git a/sdks/full/typescript/src/api/resources/geo/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/geo/resources/common/types/index.ts new file mode 100644 index 0000000000..9bedc827df --- /dev/null +++ b/sdks/full/typescript/src/api/resources/geo/resources/common/types/index.ts @@ -0,0 +1,2 @@ +export * from "./Coord"; +export * from "./Distance"; diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/BannedIdentity.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/BannedIdentity.ts new file mode 100644 index 0000000000..f7e18ae89f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/BannedIdentity.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A banned identity. + */ +export interface BannedIdentity { + identity: Rivet.identity.Handle; + banTs: Rivet.Timestamp; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/ExternalLinks.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/ExternalLinks.ts new file mode 100644 index 0000000000..77aab4b39d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/ExternalLinks.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * External links for this group. + */ +export interface ExternalLinks { + /** A link to this group's profile page. */ + profile: string; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/Handle.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/Handle.ts new file mode 100644 index 0000000000..3d109dadb5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/Handle.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A group handle. + */ +export interface Handle { + groupId: string; + displayName: Rivet.DisplayName; + /** The URL of this group's avatar image */ + avatarUrl?: string; + external: Rivet.group.ExternalLinks; + /** Whether or not this group is a developer group. */ + isDeveloper?: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/JoinRequest.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/JoinRequest.ts new file mode 100644 index 0000000000..01997da1dc --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/JoinRequest.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A group join request. + */ +export interface JoinRequest { + identity: Rivet.identity.Handle; + ts: Rivet.Timestamp; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/Member.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/Member.ts new file mode 100644 index 0000000000..653b061d12 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/Member.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A group member. + */ +export interface Member { + identity: Rivet.identity.Handle; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/Profile.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/Profile.ts new file mode 100644 index 0000000000..79b7e28221 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/Profile.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A list of group profiles. + */ +export interface Profile { + groupId: string; + displayName: Rivet.DisplayName; + /** The URL of this group's avatar image. */ + avatarUrl?: string; + external: Rivet.group.ExternalLinks; + /** Whether or not this group is a developer. */ + isDeveloper?: boolean; + /** Detailed information about a profile. */ + bio: string; + /** Whether or not the current identity is a member of this group. */ + isCurrentIdentityMember?: boolean; + publicity: Rivet.group.Publicity; + /** Unsigned 32 bit integer. */ + memberCount?: number; + /** A list of group members. */ + members: Rivet.group.Member[]; + /** A list of group join requests. */ + joinRequests: Rivet.group.JoinRequest[]; + /** Whether or not the current identity is currently requesting to join this group. */ + isCurrentIdentityRequestingJoin?: boolean; + ownerIdentityId: string; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/Publicity.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/Publicity.ts new file mode 100644 index 0000000000..d218ed823b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/Publicity.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The current publicity value for the given group. + */ +export type Publicity = "open" | "closed"; + +export const Publicity = { + Open: "open", + Closed: "closed", +} as const; diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/Summary.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/Summary.ts new file mode 100644 index 0000000000..2ed1454386 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/Summary.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface Summary { + groupId: string; + displayName: Rivet.DisplayName; + /** The URL of this group's avatar image. */ + avatarUrl?: string; + external: Rivet.group.ExternalLinks; + /** + * **Deprecated** + * Whether or not this group is a developer. + */ + isDeveloper: boolean; + bio: Rivet.Bio; + /** Whether or not the current identity is a member of this group. */ + isCurrentIdentityMember: boolean; + publicity: Rivet.group.Publicity; + memberCount: number; + ownerIdentityId: string; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/group/resources/common/types/index.ts new file mode 100644 index 0000000000..970136991f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/common/types/index.ts @@ -0,0 +1,8 @@ +export * from "./Summary"; +export * from "./Publicity"; +export * from "./Handle"; +export * from "./ExternalLinks"; +export * from "./JoinRequest"; +export * from "./Member"; +export * from "./Profile"; +export * from "./BannedIdentity"; diff --git a/sdks/full/typescript/src/api/resources/group/resources/invites/types/ConsumeInviteResponse.ts b/sdks/full/typescript/src/api/resources/group/resources/invites/types/ConsumeInviteResponse.ts new file mode 100644 index 0000000000..c1b91c79f2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/invites/types/ConsumeInviteResponse.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConsumeInviteResponse { + groupId?: string; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/invites/types/CreateInviteRequest.ts b/sdks/full/typescript/src/api/resources/group/resources/invites/types/CreateInviteRequest.ts new file mode 100644 index 0000000000..ac016726d5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/invites/types/CreateInviteRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateInviteRequest { + /** How long until the group invite expires (in milliseconds). */ + ttl?: number; + /** How many times the group invite can be used. */ + useCount?: number; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/invites/types/CreateInviteResponse.ts b/sdks/full/typescript/src/api/resources/group/resources/invites/types/CreateInviteResponse.ts new file mode 100644 index 0000000000..24d74c310b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/invites/types/CreateInviteResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateInviteResponse { + /** The code that will be passed to `rivet.api.group#ConsumeInvite` to join a group. */ + code: string; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/invites/types/GetInviteResponse.ts b/sdks/full/typescript/src/api/resources/group/resources/invites/types/GetInviteResponse.ts new file mode 100644 index 0000000000..68f58923c8 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/invites/types/GetInviteResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetInviteResponse { + group: Rivet.group.Handle; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/invites/types/index.ts b/sdks/full/typescript/src/api/resources/group/resources/invites/types/index.ts new file mode 100644 index 0000000000..f8a24bc37f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/invites/types/index.ts @@ -0,0 +1,4 @@ +export * from "./GetInviteResponse"; +export * from "./ConsumeInviteResponse"; +export * from "./CreateInviteRequest"; +export * from "./CreateInviteResponse"; diff --git a/sdks/full/typescript/src/api/resources/group/resources/joinRequests/types/ResolveJoinRequestRequest.ts b/sdks/full/typescript/src/api/resources/group/resources/joinRequests/types/ResolveJoinRequestRequest.ts new file mode 100644 index 0000000000..c9ce9e72fa --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/joinRequests/types/ResolveJoinRequestRequest.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ResolveJoinRequestRequest { + resolution?: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/group/resources/joinRequests/types/index.ts b/sdks/full/typescript/src/api/resources/group/resources/joinRequests/types/index.ts new file mode 100644 index 0000000000..1bb524e650 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/resources/joinRequests/types/index.ts @@ -0,0 +1 @@ +export * from "./ResolveJoinRequestRequest"; diff --git a/sdks/full/typescript/src/api/resources/group/types/CreateRequest.ts b/sdks/full/typescript/src/api/resources/group/types/CreateRequest.ts new file mode 100644 index 0000000000..2030be77ec --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/CreateRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface CreateRequest { + displayName: Rivet.DisplayName; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/CreateResponse.ts b/sdks/full/typescript/src/api/resources/group/types/CreateResponse.ts new file mode 100644 index 0000000000..f6347a548e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/CreateResponse.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateResponse { + groupId: string; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/GetBansResponse.ts b/sdks/full/typescript/src/api/resources/group/types/GetBansResponse.ts new file mode 100644 index 0000000000..3de1c9f33f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/GetBansResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetBansResponse { + /** A list of banned group members. */ + bannedIdentities: Rivet.group.BannedIdentity[]; + /** The pagination anchor. */ + anchor?: string; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/GetJoinRequestsResponse.ts b/sdks/full/typescript/src/api/resources/group/types/GetJoinRequestsResponse.ts new file mode 100644 index 0000000000..0aae923311 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/GetJoinRequestsResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetJoinRequestsResponse { + /** A list of group join requests. */ + joinRequests: Rivet.group.JoinRequest[]; + /** The pagination anchor. */ + anchor?: string; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/GetMembersResponse.ts b/sdks/full/typescript/src/api/resources/group/types/GetMembersResponse.ts new file mode 100644 index 0000000000..f5700f5abb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/GetMembersResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetMembersResponse { + /** A list of group members. */ + members: Rivet.group.Member[]; + /** The pagination anchor. */ + anchor?: string; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/GetProfileResponse.ts b/sdks/full/typescript/src/api/resources/group/types/GetProfileResponse.ts new file mode 100644 index 0000000000..a6c51dffd9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/GetProfileResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetProfileResponse { + group: Rivet.group.Profile; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/GetSummaryResponse.ts b/sdks/full/typescript/src/api/resources/group/types/GetSummaryResponse.ts new file mode 100644 index 0000000000..f24ea14ac5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/GetSummaryResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetSummaryResponse { + group: Rivet.group.Summary; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/ListSuggestedResponse.ts b/sdks/full/typescript/src/api/resources/group/types/ListSuggestedResponse.ts new file mode 100644 index 0000000000..4815860dfd --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/ListSuggestedResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ListSuggestedResponse { + /** A list of group summaries. */ + groups: Rivet.group.Summary[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/PrepareAvatarUploadRequest.ts b/sdks/full/typescript/src/api/resources/group/types/PrepareAvatarUploadRequest.ts new file mode 100644 index 0000000000..b54a6bf5fb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/PrepareAvatarUploadRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface PrepareAvatarUploadRequest { + /** The path/filename of the group avatar. */ + path: string; + /** The MIME type of the group avatar. */ + mime?: string; + /** Unsigned 64 bit integer. */ + contentLength: number; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/PrepareAvatarUploadResponse.ts b/sdks/full/typescript/src/api/resources/group/types/PrepareAvatarUploadResponse.ts new file mode 100644 index 0000000000..ebc92cf1dc --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/PrepareAvatarUploadResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface PrepareAvatarUploadResponse { + uploadId: string; + presignedRequest: Rivet.upload.PresignedRequest; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/SearchResponse.ts b/sdks/full/typescript/src/api/resources/group/types/SearchResponse.ts new file mode 100644 index 0000000000..f6d0a999e2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/SearchResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface SearchResponse { + /** A list of group handles. */ + groups: Rivet.group.Handle[]; + anchor?: string; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/TransferOwnershipRequest.ts b/sdks/full/typescript/src/api/resources/group/types/TransferOwnershipRequest.ts new file mode 100644 index 0000000000..15a5e1b744 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/TransferOwnershipRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface TransferOwnershipRequest { + /** + * Identity to transfer the group to. + * Must be a member of the group. + */ + newOwnerIdentityId: string; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/UpdateProfileRequest.ts b/sdks/full/typescript/src/api/resources/group/types/UpdateProfileRequest.ts new file mode 100644 index 0000000000..b6b2d8fc88 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/UpdateProfileRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface UpdateProfileRequest { + displayName?: Rivet.DisplayName; + /** Detailed information about a profile. */ + bio?: string; + publicity?: Rivet.group.Publicity; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/ValidateProfileRequest.ts b/sdks/full/typescript/src/api/resources/group/types/ValidateProfileRequest.ts new file mode 100644 index 0000000000..16b8d0f75e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/ValidateProfileRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ValidateProfileRequest { + displayName?: Rivet.DisplayName; + bio?: Rivet.DisplayName; + publicity?: Rivet.group.Publicity; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/ValidateProfileResponse.ts b/sdks/full/typescript/src/api/resources/group/types/ValidateProfileResponse.ts new file mode 100644 index 0000000000..01a02dd53d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/ValidateProfileResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ValidateProfileResponse { + /** A list of validation errors. */ + errors: Rivet.ValidationError[]; +} diff --git a/sdks/full/typescript/src/api/resources/group/types/index.ts b/sdks/full/typescript/src/api/resources/group/types/index.ts new file mode 100644 index 0000000000..1c7da6f7f8 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/group/types/index.ts @@ -0,0 +1,15 @@ +export * from "./ListSuggestedResponse"; +export * from "./CreateRequest"; +export * from "./CreateResponse"; +export * from "./PrepareAvatarUploadRequest"; +export * from "./PrepareAvatarUploadResponse"; +export * from "./ValidateProfileRequest"; +export * from "./ValidateProfileResponse"; +export * from "./SearchResponse"; +export * from "./GetBansResponse"; +export * from "./GetJoinRequestsResponse"; +export * from "./GetMembersResponse"; +export * from "./GetProfileResponse"; +export * from "./UpdateProfileRequest"; +export * from "./GetSummaryResponse"; +export * from "./TransferOwnershipRequest"; diff --git a/sdks/full/typescript/src/api/resources/identity/resources/activities/types/ListActivitiesResponse.ts b/sdks/full/typescript/src/api/resources/identity/resources/activities/types/ListActivitiesResponse.ts new file mode 100644 index 0000000000..3907617bff --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/activities/types/ListActivitiesResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface ListActivitiesResponse { + identities: Rivet.identity.Handle[]; + games: Rivet.game.Summary[]; + suggestedGroups: Rivet.group.Summary[]; + suggestedPlayers: Rivet.identity.Handle[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/activities/types/index.ts b/sdks/full/typescript/src/api/resources/identity/resources/activities/types/index.ts new file mode 100644 index 0000000000..9f3dd3a19e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/activities/types/index.ts @@ -0,0 +1 @@ +export * from "./ListActivitiesResponse"; diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/AccessTokenLinkedAccount.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/AccessTokenLinkedAccount.ts new file mode 100644 index 0000000000..279c1bbd1e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/AccessTokenLinkedAccount.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * An identity's access token identity. + */ +export interface AccessTokenLinkedAccount { + name: string; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/DevState.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/DevState.ts new file mode 100644 index 0000000000..a0fb9c554b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/DevState.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The state of the given identity's developer status. + */ +export type DevState = "inactive" | "pending" | "accepted"; + +export const DevState = { + Inactive: "inactive", + Pending: "pending", + Accepted: "accepted", +} as const; diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/EmailLinkedAccount.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/EmailLinkedAccount.ts new file mode 100644 index 0000000000..4fb3651745 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/EmailLinkedAccount.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * An identity's linked email. + */ +export interface EmailLinkedAccount { + email: Rivet.Email; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/ExternalLinks.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/ExternalLinks.ts new file mode 100644 index 0000000000..323bd826b8 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/ExternalLinks.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * External links for an identity. + */ +export interface ExternalLinks { + /** A link to this identity's profile page. */ + profile: string; + /** A link to the Rivet settings page. */ + settings?: string; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/GameActivity.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GameActivity.ts new file mode 100644 index 0000000000..21500e5420 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GameActivity.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * The game an identity is currently participating in. + */ +export interface GameActivity { + game: Rivet.game.Handle; + /** A short activity message about the current game activity. */ + message: string; + /** JSON data seen by anyone. */ + publicMetadata?: unknown; + /** JSON data seen only by the given identity and their mutual followers. */ + mutualMetadata?: unknown; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/GameLinkStatus.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GameLinkStatus.ts new file mode 100644 index 0000000000..82e1a97216 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GameLinkStatus.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GameLinkStatus = "incomplete" | "complete" | "cancelled"; + +export const GameLinkStatus = { + Incomplete: "incomplete", + Complete: "complete", + Cancelled: "cancelled", +} as const; diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEvent.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEvent.ts new file mode 100644 index 0000000000..653fa4ab2f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEvent.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * An event relevant to the current identity. + */ +export interface GlobalEvent { + ts: Rivet.Timestamp; + kind: Rivet.identity.GlobalEventKind; + notification?: Rivet.identity.GlobalEventNotification; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventIdentityUpdate.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventIdentityUpdate.ts new file mode 100644 index 0000000000..82fe878172 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventIdentityUpdate.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GlobalEventIdentityUpdate { + identity: Rivet.identity.Profile; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventKind.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventKind.ts new file mode 100644 index 0000000000..7f6aef651d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventKind.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GlobalEventKind { + identityUpdate?: Rivet.identity.GlobalEventIdentityUpdate; + matchmakerLobbyJoin?: Rivet.identity.GlobalEventMatchmakerLobbyJoin; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventMatchmakerLobbyJoin.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventMatchmakerLobbyJoin.ts new file mode 100644 index 0000000000..4e3d781e36 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventMatchmakerLobbyJoin.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GlobalEventMatchmakerLobbyJoin { + lobby: Rivet.matchmaker.JoinLobby; + ports: Record; + player: Rivet.matchmaker.JoinPlayer; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventNotification.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventNotification.ts new file mode 100644 index 0000000000..ef46168e77 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/GlobalEventNotification.ts @@ -0,0 +1,35 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Notifications represent information that should be presented to the user + * immediately. + * At the moment, only chat message events have associated notifications. + * + * # Display + * + * Notifications should be displayed in an unobtrusive manner throughout the + * entire game. Notifications should disappear after a few seconds if not + * interacted with. + * + * # Interactions + * + * If your platform supports it, notifications should be able to be clicked or + * tapped in order to open the relevant context for the event. + * For a simple implementation of notification interactions, open `url` in a + * web browser to present the relevant context. For example, a chat message + * notification will open the thread the chat message was sent in. + * For advanced implementations that implement a custom chat UI, use + * `GlobalEvent.kind` to determine what action to take when the notification is interacted with. + * For example, if the global event kind is `GlobalEventChatMessage`, then open + * the chat UI for the given thread. + */ +export interface GlobalEventNotification { + title: string; + description: string; + /** URL to an image thumbnail that should be shown for this notification. */ + thumbnailUrl: string; + /** Rivet Hub URL that holds the relevant context for this notification. */ + url: string; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/Group.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Group.ts new file mode 100644 index 0000000000..9447376047 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Group.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A group that the given identity. + */ +export interface Group { + group: Rivet.group.Handle; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/Handle.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Handle.ts new file mode 100644 index 0000000000..c2ef9a7223 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Handle.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * An identity handle. + */ +export interface Handle { + identityId: string; + displayName: Rivet.DisplayName; + accountNumber: Rivet.AccountNumber; + /** The URL of this identity's avatar image. */ + avatarUrl: string; + presence?: Rivet.identity.Presence; + /** Whether or not this identity is registered with a linked account. */ + isRegistered: boolean; + external: Rivet.identity.ExternalLinks; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/LinkedAccount.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/LinkedAccount.ts new file mode 100644 index 0000000000..5bc5a1c60a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/LinkedAccount.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A union representing an identity's linked accounts. + */ +export interface LinkedAccount { + email?: Rivet.identity.EmailLinkedAccount; + accessToken?: Rivet.identity.AccessTokenLinkedAccount; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/Presence.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Presence.ts new file mode 100644 index 0000000000..b5894062df --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Presence.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * Information about the identity's current status, party, and active game. + */ +export interface Presence { + updateTs: Rivet.Timestamp; + status: Rivet.identity.Status; + gameActivity?: Rivet.identity.GameActivity; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/Profile.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Profile.ts new file mode 100644 index 0000000000..2e62e9a52b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Profile.ts @@ -0,0 +1,43 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * An identity profile. + */ +export interface Profile { + identityId: string; + displayName: Rivet.DisplayName; + accountNumber: Rivet.AccountNumber; + /** The URL of this identity's avatar image. */ + avatarUrl: string; + presence?: Rivet.identity.Presence; + /** Whether or not this identity is registered with a linked account. */ + isRegistered: boolean; + external: Rivet.identity.ExternalLinks; + /** Whether or not this identity is an admin. */ + isAdmin: boolean; + /** Whether or not this game user has been linked through the Rivet dashboard. */ + isGameLinked?: boolean; + /** **Deprecated** */ + devState?: Rivet.identity.DevState; + followerCount: number; + followingCount: number; + /** Whether or not the requestee's identity is following this identity. */ + following: boolean; + /** Whether or not this identity is both following and is followed by the requestee's identity. */ + isFollowingMe: boolean; + isMutualFollowing: boolean; + joinTs: Rivet.Timestamp; + bio: Rivet.Bio; + linkedAccounts: Rivet.identity.LinkedAccount[]; + groups: Rivet.identity.Group[]; + games: Rivet.game.StatSummary[]; + /** + * Whether or not this identity is awaiting account deletion. Only visible to when the requestee is + * this identity. + */ + awaitingDeletion?: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/Status.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Status.ts new file mode 100644 index 0000000000..f14d664d42 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Status.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The current status of an identity. This helps players understand if another player is currently playing or has their game in the background. + */ +export type Status = "online" | "away" | "offline"; + +export const Status = { + Online: "online", + Away: "away", + Offline: "offline", +} as const; diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/Summary.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Summary.ts new file mode 100644 index 0000000000..89f7b3e0cd --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/Summary.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * An identity summary. + */ +export interface Summary { + identityId: string; + displayName: Rivet.DisplayName; + accountNumber: Rivet.AccountNumber; + /** The URL of this identity's avatar image. */ + avatarUrl: string; + presence?: Rivet.identity.Presence; + /** Whether or not this identity is registered with a linked account. */ + isRegistered: boolean; + external: Rivet.identity.ExternalLinks; + /** Whether or not the requestee's identity is following this identity. */ + following: boolean; + /** Whether or not this identity is both following and is followed by the requestee's identity. */ + isFollowingMe: boolean; + isMutualFollowing: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/UpdateGameActivity.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/UpdateGameActivity.ts new file mode 100644 index 0000000000..5b099bc820 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/UpdateGameActivity.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Information about the identity's current game. This is information that all other identities can see about what the current identity is doing. + */ +export interface UpdateGameActivity { + /** A short message about the current game activity. */ + message?: string; + /** JSON data seen by anyone. */ + publicMetadata?: unknown; + /** JSON data seen only by the given identity and their mutual followers. */ + mutualMetadata?: unknown; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/identity/resources/common/types/index.ts new file mode 100644 index 0000000000..699a6353eb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/common/types/index.ts @@ -0,0 +1,19 @@ +export * from "./GlobalEvent"; +export * from "./GlobalEventKind"; +export * from "./GlobalEventNotification"; +export * from "./GlobalEventIdentityUpdate"; +export * from "./GlobalEventMatchmakerLobbyJoin"; +export * from "./UpdateGameActivity"; +export * from "./Handle"; +export * from "./Summary"; +export * from "./Profile"; +export * from "./ExternalLinks"; +export * from "./Presence"; +export * from "./Status"; +export * from "./GameActivity"; +export * from "./Group"; +export * from "./LinkedAccount"; +export * from "./EmailLinkedAccount"; +export * from "./AccessTokenLinkedAccount"; +export * from "./DevState"; +export * from "./GameLinkStatus"; diff --git a/sdks/full/typescript/src/api/resources/identity/resources/events/types/WatchEventsResponse.ts b/sdks/full/typescript/src/api/resources/identity/resources/events/types/WatchEventsResponse.ts new file mode 100644 index 0000000000..3fbba6da64 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/events/types/WatchEventsResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface WatchEventsResponse { + events: Rivet.identity.GlobalEvent[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/events/types/index.ts b/sdks/full/typescript/src/api/resources/identity/resources/events/types/index.ts new file mode 100644 index 0000000000..85124e8f72 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/events/types/index.ts @@ -0,0 +1 @@ +export * from "./WatchEventsResponse"; diff --git a/sdks/full/typescript/src/api/resources/identity/resources/links/types/CancelGameLinkRequest.ts b/sdks/full/typescript/src/api/resources/identity/resources/links/types/CancelGameLinkRequest.ts new file mode 100644 index 0000000000..47ad233356 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/links/types/CancelGameLinkRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface CancelGameLinkRequest { + identityLinkToken: Rivet.Jwt; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/links/types/CompleteGameLinkRequest.ts b/sdks/full/typescript/src/api/resources/identity/resources/links/types/CompleteGameLinkRequest.ts new file mode 100644 index 0000000000..2469a6b420 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/links/types/CompleteGameLinkRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface CompleteGameLinkRequest { + identityLinkToken: Rivet.Jwt; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/links/types/GetGameLinkNewIdentity.ts b/sdks/full/typescript/src/api/resources/identity/resources/links/types/GetGameLinkNewIdentity.ts new file mode 100644 index 0000000000..f0b5a542b1 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/links/types/GetGameLinkNewIdentity.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetGameLinkNewIdentity { + identityToken: Rivet.Jwt; + identityTokenExpireTs: Rivet.Timestamp; + identity: Rivet.identity.Profile; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/links/types/GetGameLinkResponse.ts b/sdks/full/typescript/src/api/resources/identity/resources/links/types/GetGameLinkResponse.ts new file mode 100644 index 0000000000..55de7c6af7 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/links/types/GetGameLinkResponse.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetGameLinkResponse { + status: Rivet.identity.GameLinkStatus; + game: Rivet.game.Handle; + currentIdentity: Rivet.identity.Handle; + newIdentity?: Rivet.identity.GetGameLinkNewIdentity; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/links/types/PrepareGameLinkResponse.ts b/sdks/full/typescript/src/api/resources/identity/resources/links/types/PrepareGameLinkResponse.ts new file mode 100644 index 0000000000..7a4af360af --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/links/types/PrepareGameLinkResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface PrepareGameLinkResponse { + /** Pass this to `GetGameLink` to get the linking status. Valid for 15 minutes. */ + identityLinkToken: string; + identityLinkUrl: string; + expireTs: Rivet.Timestamp; +} diff --git a/sdks/full/typescript/src/api/resources/identity/resources/links/types/index.ts b/sdks/full/typescript/src/api/resources/identity/resources/links/types/index.ts new file mode 100644 index 0000000000..675bb866ca --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/resources/links/types/index.ts @@ -0,0 +1,5 @@ +export * from "./PrepareGameLinkResponse"; +export * from "./GetGameLinkResponse"; +export * from "./GetGameLinkNewIdentity"; +export * from "./CompleteGameLinkRequest"; +export * from "./CancelGameLinkRequest"; diff --git a/sdks/full/typescript/src/api/resources/identity/types/GetHandlesResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/GetHandlesResponse.ts new file mode 100644 index 0000000000..205dd46263 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/GetHandlesResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetHandlesResponse { + identities: Rivet.identity.Handle[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/GetProfileResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/GetProfileResponse.ts new file mode 100644 index 0000000000..4571898a0e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/GetProfileResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetProfileResponse { + identity: Rivet.identity.Profile; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/GetSummariesResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/GetSummariesResponse.ts new file mode 100644 index 0000000000..1d0a0790bc --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/GetSummariesResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetSummariesResponse { + identities: Rivet.identity.Summary[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/ListFollowersResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/ListFollowersResponse.ts new file mode 100644 index 0000000000..1f283b3e3d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/ListFollowersResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ListFollowersResponse { + identities: Rivet.identity.Handle[]; + anchor?: string; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/ListFollowingResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/ListFollowingResponse.ts new file mode 100644 index 0000000000..9a1bb4fb61 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/ListFollowingResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ListFollowingResponse { + identities: Rivet.identity.Handle[]; + anchor?: string; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/ListFriendsResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/ListFriendsResponse.ts new file mode 100644 index 0000000000..ef3c03efb6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/ListFriendsResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ListFriendsResponse { + identities: Rivet.identity.Handle[]; + anchor?: string; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/ListMutualFriendsResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/ListMutualFriendsResponse.ts new file mode 100644 index 0000000000..2eeec9936f --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/ListMutualFriendsResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ListMutualFriendsResponse { + identities: Rivet.identity.Handle[]; + anchor?: string; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/ListRecentFollowersResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/ListRecentFollowersResponse.ts new file mode 100644 index 0000000000..35e8fb3e77 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/ListRecentFollowersResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ListRecentFollowersResponse { + identities: Rivet.identity.Handle[]; + anchor?: string; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/PrepareAvatarUploadResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/PrepareAvatarUploadResponse.ts new file mode 100644 index 0000000000..ebc92cf1dc --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/PrepareAvatarUploadResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface PrepareAvatarUploadResponse { + uploadId: string; + presignedRequest: Rivet.upload.PresignedRequest; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/SearchResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/SearchResponse.ts new file mode 100644 index 0000000000..a40911d739 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/SearchResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface SearchResponse { + identities: Rivet.identity.Handle[]; + /** The pagination anchor. */ + anchor?: string; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/SetupResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/SetupResponse.ts new file mode 100644 index 0000000000..0be6503e19 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/SetupResponse.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface SetupResponse { + /** + * Token used to authenticate the identity. + * Should be stored somewhere permanent. + * Pass this to `rivet.api.identity#Setup$existing_identity_token` next time `rivet.api.identity#Setup` is called. + * Token has a 90 day TTL. + * This means that if `rivet.api.identity#Setup` is not called again within 90 days, the token will no longer be valid. + * 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: Rivet.Jwt; + identityTokenExpireTs: Rivet.Timestamp; + /** Information about the identity that was just authenticated. */ + identity: Rivet.identity.Profile; + gameId: string; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/ValidateProfileResponse.ts b/sdks/full/typescript/src/api/resources/identity/types/ValidateProfileResponse.ts new file mode 100644 index 0000000000..21c12c00b9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/ValidateProfileResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ValidateProfileResponse { + errors: Rivet.ValidationError[]; +} diff --git a/sdks/full/typescript/src/api/resources/identity/types/index.ts b/sdks/full/typescript/src/api/resources/identity/types/index.ts new file mode 100644 index 0000000000..fc0e4d976d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/identity/types/index.ts @@ -0,0 +1,12 @@ +export * from "./SetupResponse"; +export * from "./GetProfileResponse"; +export * from "./GetHandlesResponse"; +export * from "./GetSummariesResponse"; +export * from "./ValidateProfileResponse"; +export * from "./SearchResponse"; +export * from "./PrepareAvatarUploadResponse"; +export * from "./ListFollowersResponse"; +export * from "./ListFollowingResponse"; +export * from "./ListRecentFollowersResponse"; +export * from "./ListFriendsResponse"; +export * from "./ListMutualFriendsResponse"; diff --git a/sdks/full/typescript/src/api/resources/kv/resources/common/types/Directory.ts b/sdks/full/typescript/src/api/resources/kv/resources/common/types/Directory.ts new file mode 100644 index 0000000000..d556fdf0dd --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/resources/common/types/Directory.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type Directory = string; diff --git a/sdks/full/typescript/src/api/resources/kv/resources/common/types/Entry.ts b/sdks/full/typescript/src/api/resources/kv/resources/common/types/Entry.ts new file mode 100644 index 0000000000..9a8b949d2b --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/resources/common/types/Entry.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A key-value entry. + */ +export interface Entry { + key: Rivet.kv.Key; + value?: Rivet.kv.Value; + deleted?: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/kv/resources/common/types/Key.ts b/sdks/full/typescript/src/api/resources/kv/resources/common/types/Key.ts new file mode 100644 index 0000000000..362cc5df58 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/resources/common/types/Key.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A string representing a key in the key-value database. + * Maximum length of 512 characters. + * _Recommended Key Path Format_ + * Key path components are split by a slash (e.g. `a/b/c` has the path components `["a", "b", "c"]`). Slashes can be escaped by using a backslash (e.g. `a/b\/c/d` has the path components `["a", "b/c", "d"]`). + * This format is not enforced by Rivet, but the tools built around Rivet KV work better if this format is used. + */ +export type Key = string; diff --git a/sdks/full/typescript/src/api/resources/kv/resources/common/types/PutEntry.ts b/sdks/full/typescript/src/api/resources/kv/resources/common/types/PutEntry.ts new file mode 100644 index 0000000000..147aa69584 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/resources/common/types/PutEntry.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A new entry to insert into the key-value database. + */ +export interface PutEntry { + key: Rivet.kv.Key; + value?: Rivet.kv.Value; +} diff --git a/sdks/full/typescript/src/api/resources/kv/resources/common/types/Value.ts b/sdks/full/typescript/src/api/resources/kv/resources/common/types/Value.ts new file mode 100644 index 0000000000..4f1f92d335 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/resources/common/types/Value.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A JSON object stored in the KV database. + * A `null` value indicates the entry is deleted. + * Maximum length of 262,144 bytes when encoded. + */ +export type Value = unknown; diff --git a/sdks/full/typescript/src/api/resources/kv/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/kv/resources/common/types/index.ts new file mode 100644 index 0000000000..f88e3ccae9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/resources/common/types/index.ts @@ -0,0 +1,5 @@ +export * from "./Key"; +export * from "./Directory"; +export * from "./Value"; +export * from "./Entry"; +export * from "./PutEntry"; diff --git a/sdks/full/typescript/src/api/resources/kv/types/GetBatchResponse.ts b/sdks/full/typescript/src/api/resources/kv/types/GetBatchResponse.ts new file mode 100644 index 0000000000..33d7ab924e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/types/GetBatchResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetBatchResponse { + entries: Rivet.kv.Entry[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/kv/types/GetResponse.ts b/sdks/full/typescript/src/api/resources/kv/types/GetResponse.ts new file mode 100644 index 0000000000..4042b12f97 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/types/GetResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface GetResponse { + value?: Rivet.kv.Value; + /** Whether or not the entry has been deleted. Only set when watching this endpoint. */ + deleted?: boolean; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/kv/types/ListResponse.ts b/sdks/full/typescript/src/api/resources/kv/types/ListResponse.ts new file mode 100644 index 0000000000..b8e4f8b637 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/types/ListResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface ListResponse { + entries: Rivet.kv.Entry[]; +} diff --git a/sdks/full/typescript/src/api/resources/kv/types/PutBatchRequest.ts b/sdks/full/typescript/src/api/resources/kv/types/PutBatchRequest.ts new file mode 100644 index 0000000000..d67cf356d0 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/types/PutBatchRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface PutBatchRequest { + namespaceId?: string; + entries: Rivet.kv.PutEntry[]; +} diff --git a/sdks/full/typescript/src/api/resources/kv/types/PutRequest.ts b/sdks/full/typescript/src/api/resources/kv/types/PutRequest.ts new file mode 100644 index 0000000000..bfe06966cb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/types/PutRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../.."; + +export interface PutRequest { + namespaceId?: string; + key: Rivet.kv.Key; + value?: Rivet.kv.Value; +} diff --git a/sdks/full/typescript/src/api/resources/kv/types/index.ts b/sdks/full/typescript/src/api/resources/kv/types/index.ts new file mode 100644 index 0000000000..e4596df6de --- /dev/null +++ b/sdks/full/typescript/src/api/resources/kv/types/index.ts @@ -0,0 +1,5 @@ +export * from "./GetResponse"; +export * from "./PutRequest"; +export * from "./ListResponse"; +export * from "./GetBatchResponse"; +export * from "./PutBatchRequest"; diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/CustomLobbyPublicity.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/CustomLobbyPublicity.ts new file mode 100644 index 0000000000..bc4b6f7af0 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/CustomLobbyPublicity.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CustomLobbyPublicity = "public" | "private"; + +export const CustomLobbyPublicity = { + Public: "public", + Private: "private", +} as const; diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/GameModeInfo.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/GameModeInfo.ts new file mode 100644 index 0000000000..f28cd48373 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/GameModeInfo.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A game mode that the player can join. + */ +export interface GameModeInfo { + gameModeId: Rivet.Identifier; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinLobby.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinLobby.ts new file mode 100644 index 0000000000..eae328d5af --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinLobby.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A matchmaker lobby. + */ +export interface JoinLobby { + lobbyId: string; + region: Rivet.matchmaker.JoinRegion; + /** **Deprecated** */ + ports: Record; + /** **Deprecated** */ + player: Rivet.matchmaker.JoinPlayer; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPlayer.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPlayer.ts new file mode 100644 index 0000000000..07797eaffa --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPlayer.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A matchmaker lobby player. + */ +export interface JoinPlayer { + /** Pass this token through the socket to the lobby server. The lobby server will validate this token with `PlayerConnected.player_token` */ + token: Rivet.Jwt; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPort.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPort.ts new file mode 100644 index 0000000000..92a05b6beb --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPort.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface JoinPort { + /** The host for the given port. Will be null if using a port range. */ + host?: string; + hostname: string; + /** The port number for this lobby. Will be null if using a port range. */ + port?: number; + portRange?: Rivet.matchmaker.JoinPortRange; + /** Whether or not this lobby port uses TLS. You cannot mix a non-TLS and TLS ports. */ + isTls: boolean; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPortRange.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPortRange.ts new file mode 100644 index 0000000000..ecb7e81ba2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinPortRange.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Inclusive range of ports that can be connected to. + */ +export interface JoinPortRange { + /** Minimum port that can be connected to. Inclusive range. */ + min: number; + /** Maximum port that can be connected to. Inclusive range. */ + max: number; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinRegion.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinRegion.ts new file mode 100644 index 0000000000..2995a7a5da --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/JoinRegion.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A matchmaker lobby region. + */ +export interface JoinRegion { + regionId: Rivet.Identifier; + displayName: Rivet.DisplayName; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/LobbyInfo.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/LobbyInfo.ts new file mode 100644 index 0000000000..31018c92d8 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/LobbyInfo.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A public lobby in the lobby list. + */ +export interface LobbyInfo { + regionId: string; + gameModeId: string; + lobbyId: string; + maxPlayersNormal: number; + maxPlayersDirect: number; + maxPlayersParty: number; + totalPlayerCount: number; + state?: unknown; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/RegionInfo.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/RegionInfo.ts new file mode 100644 index 0000000000..666d7892d4 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/RegionInfo.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +/** + * A region that the player can connect to. + */ +export interface RegionInfo { + regionId: Rivet.Identifier; + providerDisplayName: Rivet.DisplayName; + regionDisplayName: Rivet.DisplayName; + datacenterCoord: Rivet.geo.Coord; + datacenterDistanceFromClient: Rivet.geo.Distance; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/index.ts new file mode 100644 index 0000000000..5519ce0ef7 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/common/types/index.ts @@ -0,0 +1,9 @@ +export * from "./LobbyInfo"; +export * from "./GameModeInfo"; +export * from "./RegionInfo"; +export * from "./JoinLobby"; +export * from "./JoinRegion"; +export * from "./JoinPort"; +export * from "./JoinPortRange"; +export * from "./JoinPlayer"; +export * from "./CustomLobbyPublicity"; diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/CreateLobbyResponse.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/CreateLobbyResponse.ts new file mode 100644 index 0000000000..b28272cde9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/CreateLobbyResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface CreateLobbyResponse { + lobby: Rivet.matchmaker.JoinLobby; + ports: Record; + player: Rivet.matchmaker.JoinPlayer; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/FindLobbyResponse.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/FindLobbyResponse.ts new file mode 100644 index 0000000000..67f8f31f33 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/FindLobbyResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface FindLobbyResponse { + lobby: Rivet.matchmaker.JoinLobby; + ports: Record; + player: Rivet.matchmaker.JoinPlayer; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/JoinLobbyResponse.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/JoinLobbyResponse.ts new file mode 100644 index 0000000000..526d94df42 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/JoinLobbyResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface JoinLobbyResponse { + lobby: Rivet.matchmaker.JoinLobby; + ports: Record; + player: Rivet.matchmaker.JoinPlayer; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/ListLobbiesResponse.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/ListLobbiesResponse.ts new file mode 100644 index 0000000000..f0fe668fd0 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/ListLobbiesResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface ListLobbiesResponse { + gameModes: Rivet.matchmaker.GameModeInfo[]; + regions: Rivet.matchmaker.RegionInfo[]; + lobbies: Rivet.matchmaker.LobbyInfo[]; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/index.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/index.ts new file mode 100644 index 0000000000..13491dd556 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/lobbies/types/index.ts @@ -0,0 +1,4 @@ +export * from "./FindLobbyResponse"; +export * from "./JoinLobbyResponse"; +export * from "./CreateLobbyResponse"; +export * from "./ListLobbiesResponse"; diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/GameModeStatistics.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/GameModeStatistics.ts new file mode 100644 index 0000000000..432caa5ae6 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/GameModeStatistics.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GameModeStatistics { + playerCount: number; + regions: Record; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/GetStatisticsResponse.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/GetStatisticsResponse.ts new file mode 100644 index 0000000000..d67b3dbab2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/GetStatisticsResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetStatisticsResponse { + playerCount: number; + gameModes: Record; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/RegionStatistics.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/RegionStatistics.ts new file mode 100644 index 0000000000..bf547e60c4 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/RegionStatistics.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface RegionStatistics { + playerCount: number; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/index.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/index.ts new file mode 100644 index 0000000000..e6a2666580 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/players/types/index.ts @@ -0,0 +1,3 @@ +export * from "./GetStatisticsResponse"; +export * from "./GameModeStatistics"; +export * from "./RegionStatistics"; diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/regions/types/ListRegionsResponse.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/regions/types/ListRegionsResponse.ts new file mode 100644 index 0000000000..655fa4f9dd --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/regions/types/ListRegionsResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface ListRegionsResponse { + regions: Rivet.matchmaker.RegionInfo[]; +} diff --git a/sdks/full/typescript/src/api/resources/matchmaker/resources/regions/types/index.ts b/sdks/full/typescript/src/api/resources/matchmaker/resources/regions/types/index.ts new file mode 100644 index 0000000000..dd60cc81be --- /dev/null +++ b/sdks/full/typescript/src/api/resources/matchmaker/resources/regions/types/index.ts @@ -0,0 +1 @@ +export * from "./ListRegionsResponse"; diff --git a/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationRegisterFirebaseService.ts b/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationRegisterFirebaseService.ts new file mode 100644 index 0000000000..244f239215 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationRegisterFirebaseService.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface NotificationRegisterFirebaseService { + accessKey: string; +} diff --git a/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationRegisterService.ts b/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationRegisterService.ts new file mode 100644 index 0000000000..cd3dadb11d --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationRegisterService.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface NotificationRegisterService { + firebase?: Rivet.portal.NotificationRegisterFirebaseService; +} diff --git a/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationUnregisterService.ts b/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationUnregisterService.ts new file mode 100644 index 0000000000..844ac8ad41 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/common/types/NotificationUnregisterService.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type NotificationUnregisterService = "firebase"; + +export const NotificationUnregisterService = { + Firebase: "firebase", +} as const; diff --git a/sdks/full/typescript/src/api/resources/portal/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/portal/resources/common/types/index.ts new file mode 100644 index 0000000000..af64098ef7 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/common/types/index.ts @@ -0,0 +1,3 @@ +export * from "./NotificationRegisterService"; +export * from "./NotificationRegisterFirebaseService"; +export * from "./NotificationUnregisterService"; diff --git a/sdks/full/typescript/src/api/resources/portal/resources/games/types/GetGameProfileResponse.ts b/sdks/full/typescript/src/api/resources/portal/resources/games/types/GetGameProfileResponse.ts new file mode 100644 index 0000000000..81f04a8f9c --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/games/types/GetGameProfileResponse.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetGameProfileResponse { + game: Rivet.game.Profile; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/portal/resources/games/types/GetSuggestedGamesResponse.ts b/sdks/full/typescript/src/api/resources/portal/resources/games/types/GetSuggestedGamesResponse.ts new file mode 100644 index 0000000000..3cc99ea032 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/games/types/GetSuggestedGamesResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface GetSuggestedGamesResponse { + /** A list of game summaries. */ + games: Rivet.game.Summary[]; + watch: Rivet.WatchResponse; +} diff --git a/sdks/full/typescript/src/api/resources/portal/resources/games/types/index.ts b/sdks/full/typescript/src/api/resources/portal/resources/games/types/index.ts new file mode 100644 index 0000000000..ffac3322f5 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/games/types/index.ts @@ -0,0 +1,2 @@ +export * from "./GetSuggestedGamesResponse"; +export * from "./GetGameProfileResponse"; diff --git a/sdks/full/typescript/src/api/resources/portal/resources/notifications/types/RegisterNotificationsRequest.ts b/sdks/full/typescript/src/api/resources/portal/resources/notifications/types/RegisterNotificationsRequest.ts new file mode 100644 index 0000000000..c5f1e2a123 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/notifications/types/RegisterNotificationsRequest.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Rivet from "../../../../.."; + +export interface RegisterNotificationsRequest { + service: Rivet.portal.NotificationRegisterService; +} diff --git a/sdks/full/typescript/src/api/resources/portal/resources/notifications/types/index.ts b/sdks/full/typescript/src/api/resources/portal/resources/notifications/types/index.ts new file mode 100644 index 0000000000..b8870104ec --- /dev/null +++ b/sdks/full/typescript/src/api/resources/portal/resources/notifications/types/index.ts @@ -0,0 +1 @@ +export * from "./RegisterNotificationsRequest"; diff --git a/sdks/full/typescript/src/api/resources/provision/resources/datacenters/types/GetTlsResponse.ts b/sdks/full/typescript/src/api/resources/provision/resources/datacenters/types/GetTlsResponse.ts new file mode 100644 index 0000000000..17095e5ba9 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/provision/resources/datacenters/types/GetTlsResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GetTlsResponse { + jobCertPem: string; + jobPrivateKeyPem: string; +} diff --git a/sdks/full/typescript/src/api/resources/provision/resources/datacenters/types/index.ts b/sdks/full/typescript/src/api/resources/provision/resources/datacenters/types/index.ts new file mode 100644 index 0000000000..19c6f682d2 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/provision/resources/datacenters/types/index.ts @@ -0,0 +1 @@ +export * from "./GetTlsResponse"; diff --git a/sdks/full/typescript/src/api/resources/provision/resources/servers/types/GetInfoResponse.ts b/sdks/full/typescript/src/api/resources/provision/resources/servers/types/GetInfoResponse.ts new file mode 100644 index 0000000000..faf639cf2a --- /dev/null +++ b/sdks/full/typescript/src/api/resources/provision/resources/servers/types/GetInfoResponse.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface GetInfoResponse { + name: string; + serverId: string; + datacenterId: string; + clusterId: string; + vlanIp: string; +} diff --git a/sdks/full/typescript/src/api/resources/provision/resources/servers/types/index.ts b/sdks/full/typescript/src/api/resources/provision/resources/servers/types/index.ts new file mode 100644 index 0000000000..f9b6ce198e --- /dev/null +++ b/sdks/full/typescript/src/api/resources/provision/resources/servers/types/index.ts @@ -0,0 +1 @@ +export * from "./GetInfoResponse"; diff --git a/sdks/full/typescript/src/api/resources/upload/resources/common/types/PrepareFile.ts b/sdks/full/typescript/src/api/resources/upload/resources/common/types/PrepareFile.ts new file mode 100644 index 0000000000..8e048600ee --- /dev/null +++ b/sdks/full/typescript/src/api/resources/upload/resources/common/types/PrepareFile.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A file being prepared to upload. + */ +export interface PrepareFile { + /** The path/filename of the file. */ + path: string; + /** The MIME type of the file. */ + contentType?: string; + /** Unsigned 64 bit integer. */ + contentLength: number; +} diff --git a/sdks/full/typescript/src/api/resources/upload/resources/common/types/PresignedRequest.ts b/sdks/full/typescript/src/api/resources/upload/resources/common/types/PresignedRequest.ts new file mode 100644 index 0000000000..542bc3c5a4 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/upload/resources/common/types/PresignedRequest.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A presigned request used to upload files. Upload your file to the given URL via a PUT request. + */ +export interface PresignedRequest { + /** The name of the file to upload. This is the same as the one given in the upload prepare file. */ + path: string; + /** The URL of the presigned request for which to upload your file to. */ + url: string; + /** The byte offset for this multipart chunk. Always 0 if not a multipart upload. */ + byteOffset: number; + /** Expected size of this upload. */ + contentLength: number; +} diff --git a/sdks/full/typescript/src/api/resources/upload/resources/common/types/index.ts b/sdks/full/typescript/src/api/resources/upload/resources/common/types/index.ts new file mode 100644 index 0000000000..c950bbac53 --- /dev/null +++ b/sdks/full/typescript/src/api/resources/upload/resources/common/types/index.ts @@ -0,0 +1,2 @@ +export * from "./PresignedRequest"; +export * from "./PrepareFile"; diff --git a/sdks/full/typescript/src/serialization/resources/admin/resources/cluster/types/GetServerIpsResponse.ts b/sdks/full/typescript/src/serialization/resources/admin/resources/cluster/types/GetServerIpsResponse.ts new file mode 100644 index 0000000000..97fe55f610 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/admin/resources/cluster/types/GetServerIpsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 GetServerIpsResponse: core.serialization.ObjectSchema< + serializers.admin.cluster.GetServerIpsResponse.Raw, + Rivet.admin.cluster.GetServerIpsResponse +> = core.serialization.object({ + ips: core.serialization.list(core.serialization.string()), +}); + +export declare namespace GetServerIpsResponse { + interface Raw { + ips: string[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/admin/resources/cluster/types/index.ts b/sdks/full/typescript/src/serialization/resources/admin/resources/cluster/types/index.ts new file mode 100644 index 0000000000..b1e8cd1f20 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/admin/resources/cluster/types/index.ts @@ -0,0 +1 @@ +export * from "./GetServerIpsResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/admin/resources/common/types/PoolType.ts b/sdks/full/typescript/src/serialization/resources/admin/resources/common/types/PoolType.ts new file mode 100644 index 0000000000..ffe4776dc1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/admin/resources/common/types/PoolType.ts @@ -0,0 +1,14 @@ +/** + * 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 PoolType: core.serialization.Schema = + core.serialization.enum_(["job", "gg", "ats"]); + +export declare namespace PoolType { + type Raw = "job" | "gg" | "ats"; +} diff --git a/sdks/full/typescript/src/serialization/resources/admin/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/admin/resources/common/types/index.ts new file mode 100644 index 0000000000..a858434e56 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/admin/resources/common/types/index.ts @@ -0,0 +1 @@ +export * from "./PoolType"; diff --git a/sdks/full/typescript/src/serialization/resources/admin/types/LoginRequest.ts b/sdks/full/typescript/src/serialization/resources/admin/types/LoginRequest.ts new file mode 100644 index 0000000000..04a1895c07 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/admin/types/LoginRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 LoginRequest: core.serialization.ObjectSchema< + serializers.admin.LoginRequest.Raw, + Rivet.admin.LoginRequest +> = core.serialization.object({ + name: core.serialization.string(), +}); + +export declare namespace LoginRequest { + interface Raw { + name: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/admin/types/LoginResponse.ts b/sdks/full/typescript/src/serialization/resources/admin/types/LoginResponse.ts new file mode 100644 index 0000000000..57b99f2a7e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/admin/types/LoginResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 LoginResponse: core.serialization.ObjectSchema< + serializers.admin.LoginResponse.Raw, + Rivet.admin.LoginResponse +> = core.serialization.object({ + url: core.serialization.string(), +}); + +export declare namespace LoginResponse { + interface Raw { + url: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/admin/types/index.ts b/sdks/full/typescript/src/serialization/resources/admin/types/index.ts new file mode 100644 index 0000000000..514bddae81 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/admin/types/index.ts @@ -0,0 +1,2 @@ +export * from "./LoginRequest"; +export * from "./LoginResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/common/types/CompleteStatus.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/common/types/CompleteStatus.ts new file mode 100644 index 0000000000..368aa88318 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/common/types/CompleteStatus.ts @@ -0,0 +1,27 @@ +/** + * 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 CompleteStatus: core.serialization.Schema = + core.serialization.enum_([ + "switch_identity", + "linked_account_added", + "already_complete", + "expired", + "too_many_attempts", + "incorrect", + ]); + +export declare namespace CompleteStatus { + type Raw = + | "switch_identity" + | "linked_account_added" + | "already_complete" + | "expired" + | "too_many_attempts" + | "incorrect"; +} diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/common/types/index.ts new file mode 100644 index 0000000000..1bee0a7444 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/common/types/index.ts @@ -0,0 +1 @@ +export * from "./CompleteStatus"; diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/accessToken/types/CompleteAccessTokenVerificationRequest.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/accessToken/types/CompleteAccessTokenVerificationRequest.ts new file mode 100644 index 0000000000..a04542ca6e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/accessToken/types/CompleteAccessTokenVerificationRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 CompleteAccessTokenVerificationRequest: core.serialization.ObjectSchema< + serializers.auth.identity.CompleteAccessTokenVerificationRequest.Raw, + Rivet.auth.identity.CompleteAccessTokenVerificationRequest +> = core.serialization.object({ + accessToken: core.serialization.property( + "access_token", + core.serialization.lazy(async () => (await import("../../../../../../..")).Jwt) + ), +}); + +export declare namespace CompleteAccessTokenVerificationRequest { + interface Raw { + access_token: serializers.Jwt.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/accessToken/types/index.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/accessToken/types/index.ts new file mode 100644 index 0000000000..ce62828ff6 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/accessToken/types/index.ts @@ -0,0 +1 @@ +export * from "./CompleteAccessTokenVerificationRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationRequest.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationRequest.ts new file mode 100644 index 0000000000..3b627285f2 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 CompleteEmailVerificationRequest: core.serialization.ObjectSchema< + serializers.auth.identity.CompleteEmailVerificationRequest.Raw, + Rivet.auth.identity.CompleteEmailVerificationRequest +> = core.serialization.object({ + verificationId: core.serialization.property("verification_id", core.serialization.string()), + code: core.serialization.string(), +}); + +export declare namespace CompleteEmailVerificationRequest { + interface Raw { + verification_id: string; + code: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationResponse.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationResponse.ts new file mode 100644 index 0000000000..7db894ccf5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/CompleteEmailVerificationResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CompleteEmailVerificationResponse: core.serialization.ObjectSchema< + serializers.auth.identity.CompleteEmailVerificationResponse.Raw, + Rivet.auth.identity.CompleteEmailVerificationResponse +> = core.serialization.object({ + status: core.serialization.lazy(async () => (await import("../../../../../../..")).auth.CompleteStatus), +}); + +export declare namespace CompleteEmailVerificationResponse { + interface Raw { + status: serializers.auth.CompleteStatus.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/StartEmailVerificationRequest.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/StartEmailVerificationRequest.ts new file mode 100644 index 0000000000..1d0a567653 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/StartEmailVerificationRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 StartEmailVerificationRequest: core.serialization.ObjectSchema< + serializers.auth.identity.StartEmailVerificationRequest.Raw, + Rivet.auth.identity.StartEmailVerificationRequest +> = core.serialization.object({ + email: core.serialization.string(), + captcha: core.serialization + .lazyObject(async () => (await import("../../../../../../..")).captcha.Config) + .optional(), + gameId: core.serialization.property("game_id", core.serialization.string().optional()), +}); + +export declare namespace StartEmailVerificationRequest { + interface Raw { + email: string; + captcha?: serializers.captcha.Config.Raw | null; + game_id?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/StartEmailVerificationResponse.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/StartEmailVerificationResponse.ts new file mode 100644 index 0000000000..07d830c02c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/StartEmailVerificationResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 StartEmailVerificationResponse: core.serialization.ObjectSchema< + serializers.auth.identity.StartEmailVerificationResponse.Raw, + Rivet.auth.identity.StartEmailVerificationResponse +> = core.serialization.object({ + verificationId: core.serialization.property("verification_id", core.serialization.string()), +}); + +export declare namespace StartEmailVerificationResponse { + interface Raw { + verification_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/index.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/index.ts new file mode 100644 index 0000000000..6db43a8e3b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/identity/resources/email/types/index.ts @@ -0,0 +1,4 @@ +export * from "./StartEmailVerificationRequest"; +export * from "./StartEmailVerificationResponse"; +export * from "./CompleteEmailVerificationRequest"; +export * from "./CompleteEmailVerificationResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/RefreshIdentityTokenRequest.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/RefreshIdentityTokenRequest.ts new file mode 100644 index 0000000000..376de3b735 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/RefreshIdentityTokenRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 RefreshIdentityTokenRequest: core.serialization.ObjectSchema< + serializers.auth.RefreshIdentityTokenRequest.Raw, + Rivet.auth.RefreshIdentityTokenRequest +> = core.serialization.object({ + logout: core.serialization.boolean().optional(), +}); + +export declare namespace RefreshIdentityTokenRequest { + interface Raw { + logout?: boolean | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/RefreshIdentityTokenResponse.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/RefreshIdentityTokenResponse.ts new file mode 100644 index 0000000000..8745c81ceb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/RefreshIdentityTokenResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 RefreshIdentityTokenResponse: core.serialization.ObjectSchema< + serializers.auth.RefreshIdentityTokenResponse.Raw, + Rivet.auth.RefreshIdentityTokenResponse +> = core.serialization.object({ + token: core.serialization.string(), + exp: core.serialization.string(), + identityId: core.serialization.property("identity_id", core.serialization.string()), +}); + +export declare namespace RefreshIdentityTokenResponse { + interface Raw { + token: string; + exp: string; + identity_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/index.ts b/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/index.ts new file mode 100644 index 0000000000..2e82e57714 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/auth/resources/tokens/types/index.ts @@ -0,0 +1,2 @@ +export * from "./RefreshIdentityTokenRequest"; +export * from "./RefreshIdentityTokenResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/Config.ts b/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/Config.ts new file mode 100644 index 0000000000..8497e68361 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/Config.ts @@ -0,0 +1,24 @@ +/** + * 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 Config: core.serialization.ObjectSchema = + core.serialization.object({ + hcaptcha: core.serialization + .lazyObject(async () => (await import("../../../../..")).captcha.ConfigHcaptcha) + .optional(), + turnstile: core.serialization + .lazyObject(async () => (await import("../../../../..")).captcha.ConfigTurnstile) + .optional(), + }); + +export declare namespace Config { + interface Raw { + hcaptcha?: serializers.captcha.ConfigHcaptcha.Raw | null; + turnstile?: serializers.captcha.ConfigTurnstile.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/ConfigHcaptcha.ts b/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/ConfigHcaptcha.ts new file mode 100644 index 0000000000..7c60ba5bfa --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/ConfigHcaptcha.ts @@ -0,0 +1,20 @@ +/** + * 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 ConfigHcaptcha: core.serialization.ObjectSchema< + serializers.captcha.ConfigHcaptcha.Raw, + Rivet.captcha.ConfigHcaptcha +> = core.serialization.object({ + clientResponse: core.serialization.property("client_response", core.serialization.string()), +}); + +export declare namespace ConfigHcaptcha { + interface Raw { + client_response: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/ConfigTurnstile.ts b/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/ConfigTurnstile.ts new file mode 100644 index 0000000000..b7614ac985 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/ConfigTurnstile.ts @@ -0,0 +1,20 @@ +/** + * 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 ConfigTurnstile: core.serialization.ObjectSchema< + serializers.captcha.ConfigTurnstile.Raw, + Rivet.captcha.ConfigTurnstile +> = core.serialization.object({ + clientResponse: core.serialization.property("client_response", core.serialization.string()), +}); + +export declare namespace ConfigTurnstile { + interface Raw { + client_response: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/index.ts b/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/index.ts new file mode 100644 index 0000000000..e3d7f9330e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/captcha/resources/config/types/index.ts @@ -0,0 +1,3 @@ +export * from "./Config"; +export * from "./ConfigHcaptcha"; +export * from "./ConfigTurnstile"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/auth/types/InspectResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/auth/types/InspectResponse.ts new file mode 100644 index 0000000000..88819b5b4b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/auth/types/InspectResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 InspectResponse: core.serialization.ObjectSchema< + serializers.cloud.InspectResponse.Raw, + Rivet.cloud.InspectResponse +> = core.serialization.object({ + agent: core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.AuthAgent), +}); + +export declare namespace InspectResponse { + interface Raw { + agent: serializers.cloud.AuthAgent.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/auth/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/auth/types/index.ts new file mode 100644 index 0000000000..5f6b317b1f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/auth/types/index.ts @@ -0,0 +1 @@ +export * from "./InspectResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgent.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgent.ts new file mode 100644 index 0000000000..9583551fac --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgent.ts @@ -0,0 +1,27 @@ +/** + * 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 AuthAgent: core.serialization.ObjectSchema = + core.serialization.object({ + identity: core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.AuthAgentIdentity) + .optional(), + gameCloud: core.serialization.property( + "game_cloud", + core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.AuthAgentGameCloud) + .optional() + ), + }); + +export declare namespace AuthAgent { + interface Raw { + identity?: serializers.cloud.AuthAgentIdentity.Raw | null; + game_cloud?: serializers.cloud.AuthAgentGameCloud.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgentGameCloud.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgentGameCloud.ts new file mode 100644 index 0000000000..897ee731da --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgentGameCloud.ts @@ -0,0 +1,20 @@ +/** + * 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 AuthAgentGameCloud: core.serialization.ObjectSchema< + serializers.cloud.AuthAgentGameCloud.Raw, + Rivet.cloud.AuthAgentGameCloud +> = core.serialization.object({ + gameId: core.serialization.property("game_id", core.serialization.string()), +}); + +export declare namespace AuthAgentGameCloud { + interface Raw { + game_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgentIdentity.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgentIdentity.ts new file mode 100644 index 0000000000..51d2a34408 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/AuthAgentIdentity.ts @@ -0,0 +1,20 @@ +/** + * 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 AuthAgentIdentity: core.serialization.ObjectSchema< + serializers.cloud.AuthAgentIdentity.Raw, + Rivet.cloud.AuthAgentIdentity +> = core.serialization.object({ + identityId: core.serialization.property("identity_id", core.serialization.string()), +}); + +export declare namespace AuthAgentIdentity { + interface Raw { + identity_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/BuildSummary.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/BuildSummary.ts new file mode 100644 index 0000000000..9c022b5bb4 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/BuildSummary.ts @@ -0,0 +1,36 @@ +/** + * 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 BuildSummary: core.serialization.ObjectSchema< + serializers.cloud.BuildSummary.Raw, + Rivet.cloud.BuildSummary +> = core.serialization.object({ + buildId: core.serialization.property("build_id", core.serialization.string()), + uploadId: core.serialization.property("upload_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + contentLength: core.serialization.property("content_length", core.serialization.number()), + complete: core.serialization.boolean(), +}); + +export declare namespace BuildSummary { + interface Raw { + build_id: string; + upload_id: string; + display_name: serializers.DisplayName.Raw; + create_ts: serializers.Timestamp.Raw; + content_length: number; + complete: boolean; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnAuthType.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnAuthType.ts new file mode 100644 index 0000000000..2bcd88fae1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnAuthType.ts @@ -0,0 +1,14 @@ +/** + * 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 CdnAuthType: core.serialization.Schema = + core.serialization.enum_(["none", "basic"]); + +export declare namespace CdnAuthType { + type Raw = "none" | "basic"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceAuthUser.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceAuthUser.ts new file mode 100644 index 0000000000..0637e8398d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceAuthUser.ts @@ -0,0 +1,20 @@ +/** + * 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 CdnNamespaceAuthUser: core.serialization.ObjectSchema< + serializers.cloud.CdnNamespaceAuthUser.Raw, + Rivet.cloud.CdnNamespaceAuthUser +> = core.serialization.object({ + user: core.serialization.string(), +}); + +export declare namespace CdnNamespaceAuthUser { + interface Raw { + user: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceConfig.ts new file mode 100644 index 0000000000..cde92d87a2 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceConfig.ts @@ -0,0 +1,36 @@ +/** + * 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 CdnNamespaceConfig: core.serialization.ObjectSchema< + serializers.cloud.CdnNamespaceConfig.Raw, + Rivet.cloud.CdnNamespaceConfig +> = core.serialization.object({ + enableDomainPublicAuth: core.serialization.property("enable_domain_public_auth", core.serialization.boolean()), + domains: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.CdnNamespaceDomain) + ), + authType: core.serialization.property( + "auth_type", + core.serialization.lazy(async () => (await import("../../../../..")).cloud.CdnAuthType) + ), + authUserList: core.serialization.property( + "auth_user_list", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.CdnNamespaceAuthUser) + ) + ), +}); + +export declare namespace CdnNamespaceConfig { + interface Raw { + enable_domain_public_auth: boolean; + domains: serializers.cloud.CdnNamespaceDomain.Raw[]; + auth_type: serializers.cloud.CdnAuthType.Raw; + auth_user_list: serializers.cloud.CdnNamespaceAuthUser.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomain.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomain.ts new file mode 100644 index 0000000000..0453b6bdb9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomain.ts @@ -0,0 +1,42 @@ +/** + * 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 CdnNamespaceDomain: core.serialization.ObjectSchema< + serializers.cloud.CdnNamespaceDomain.Raw, + Rivet.cloud.CdnNamespaceDomain +> = core.serialization.object({ + domain: core.serialization.string(), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + verificationStatus: core.serialization.property( + "verification_status", + core.serialization.lazy(async () => (await import("../../../../..")).cloud.CdnNamespaceDomainVerificationStatus) + ), + verificationMethod: core.serialization.property( + "verification_method", + core.serialization.lazyObject( + async () => (await import("../../../../..")).cloud.CdnNamespaceDomainVerificationMethod + ) + ), + verificationErrors: core.serialization.property( + "verification_errors", + core.serialization.list(core.serialization.string()) + ), +}); + +export declare namespace CdnNamespaceDomain { + interface Raw { + domain: string; + create_ts: serializers.Timestamp.Raw; + verification_status: serializers.cloud.CdnNamespaceDomainVerificationStatus.Raw; + verification_method: serializers.cloud.CdnNamespaceDomainVerificationMethod.Raw; + verification_errors: string[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethod.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethod.ts new file mode 100644 index 0000000000..f684ebfd43 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethod.ts @@ -0,0 +1,24 @@ +/** + * 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 CdnNamespaceDomainVerificationMethod: core.serialization.ObjectSchema< + serializers.cloud.CdnNamespaceDomainVerificationMethod.Raw, + Rivet.cloud.CdnNamespaceDomainVerificationMethod +> = core.serialization.object({ + invalid: core.serialization.lazyObject(async () => (await import("../../../../..")).EmptyObject).optional(), + http: core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.CdnNamespaceDomainVerificationMethodHttp) + .optional(), +}); + +export declare namespace CdnNamespaceDomainVerificationMethod { + interface Raw { + invalid?: serializers.EmptyObject.Raw | null; + http?: serializers.cloud.CdnNamespaceDomainVerificationMethodHttp.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethodHttp.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethodHttp.ts new file mode 100644 index 0000000000..eb40e78e27 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationMethodHttp.ts @@ -0,0 +1,20 @@ +/** + * 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 CdnNamespaceDomainVerificationMethodHttp: core.serialization.ObjectSchema< + serializers.cloud.CdnNamespaceDomainVerificationMethodHttp.Raw, + Rivet.cloud.CdnNamespaceDomainVerificationMethodHttp +> = core.serialization.object({ + cnameRecord: core.serialization.property("cname_record", core.serialization.string()), +}); + +export declare namespace CdnNamespaceDomainVerificationMethodHttp { + interface Raw { + cname_record: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationStatus.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationStatus.ts new file mode 100644 index 0000000000..8856ceb22b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnNamespaceDomainVerificationStatus.ts @@ -0,0 +1,16 @@ +/** + * 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 CdnNamespaceDomainVerificationStatus: core.serialization.Schema< + serializers.cloud.CdnNamespaceDomainVerificationStatus.Raw, + Rivet.cloud.CdnNamespaceDomainVerificationStatus +> = core.serialization.enum_(["active", "pending", "failed"]); + +export declare namespace CdnNamespaceDomainVerificationStatus { + type Raw = "active" | "pending" | "failed"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnSiteSummary.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnSiteSummary.ts new file mode 100644 index 0000000000..f40917a082 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CdnSiteSummary.ts @@ -0,0 +1,36 @@ +/** + * 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 CdnSiteSummary: core.serialization.ObjectSchema< + serializers.cloud.CdnSiteSummary.Raw, + Rivet.cloud.CdnSiteSummary +> = core.serialization.object({ + siteId: core.serialization.property("site_id", core.serialization.string()), + uploadId: core.serialization.property("upload_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + contentLength: core.serialization.property("content_length", core.serialization.number()), + complete: core.serialization.boolean(), +}); + +export declare namespace CdnSiteSummary { + interface Raw { + site_id: string; + upload_id: string; + display_name: serializers.DisplayName.Raw; + create_ts: serializers.Timestamp.Raw; + content_length: number; + complete: boolean; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CustomAvatarSummary.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CustomAvatarSummary.ts new file mode 100644 index 0000000000..b82ed96b82 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/CustomAvatarSummary.ts @@ -0,0 +1,36 @@ +/** + * 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 CustomAvatarSummary: core.serialization.ObjectSchema< + serializers.cloud.CustomAvatarSummary.Raw, + Rivet.cloud.CustomAvatarSummary +> = core.serialization.object({ + uploadId: core.serialization.property("upload_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + url: core.serialization.string().optional(), + contentLength: core.serialization.property("content_length", core.serialization.number()), + complete: core.serialization.boolean(), +}); + +export declare namespace CustomAvatarSummary { + interface Raw { + upload_id: string; + display_name: serializers.DisplayName.Raw; + create_ts: serializers.Timestamp.Raw; + url?: string | null; + content_length: number; + complete: boolean; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GameFull.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GameFull.ts new file mode 100644 index 0000000000..83ad52e4ea --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GameFull.ts @@ -0,0 +1,53 @@ +/** + * 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 GameFull: core.serialization.ObjectSchema = + core.serialization.object({ + gameId: core.serialization.property("game_id", core.serialization.string()), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + nameId: core.serialization.property("name_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + developerGroupId: core.serialization.property("developer_group_id", core.serialization.string()), + totalPlayerCount: core.serialization.property("total_player_count", core.serialization.number()), + logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()), + bannerUrl: core.serialization.property("banner_url", core.serialization.string().optional()), + namespaces: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.NamespaceSummary) + ), + versions: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.version.Summary) + ), + availableRegions: core.serialization.property( + "available_regions", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.RegionSummary) + ) + ), + }); + +export declare namespace GameFull { + interface Raw { + game_id: string; + create_ts: serializers.Timestamp.Raw; + name_id: string; + display_name: serializers.DisplayName.Raw; + developer_group_id: string; + total_player_count: number; + logo_url?: string | null; + banner_url?: string | null; + namespaces: serializers.cloud.NamespaceSummary.Raw[]; + versions: serializers.cloud.version.Summary.Raw[]; + available_regions: serializers.cloud.RegionSummary.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GameLobbyExpenses.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GameLobbyExpenses.ts new file mode 100644 index 0000000000..e146383d1c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GameLobbyExpenses.ts @@ -0,0 +1,28 @@ +/** + * 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 GameLobbyExpenses: core.serialization.ObjectSchema< + serializers.cloud.GameLobbyExpenses.Raw, + Rivet.cloud.GameLobbyExpenses +> = core.serialization.object({ + game: core.serialization.lazyObject(async () => (await import("../../../../..")).game.Handle), + namespaces: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.NamespaceSummary) + ), + expenses: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.RegionTierExpenses) + ), +}); + +export declare namespace GameLobbyExpenses { + interface Raw { + game: serializers.game.Handle.Raw; + namespaces: serializers.cloud.NamespaceSummary.Raw[]; + expenses: serializers.cloud.RegionTierExpenses.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GroupBankSource.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GroupBankSource.ts new file mode 100644 index 0000000000..eb9605ce46 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/GroupBankSource.ts @@ -0,0 +1,22 @@ +/** + * 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 GroupBankSource: core.serialization.ObjectSchema< + serializers.cloud.GroupBankSource.Raw, + Rivet.cloud.GroupBankSource +> = core.serialization.object({ + accountNumber: core.serialization.property("account_number", core.serialization.string()), + routingNumber: core.serialization.property("routing_number", core.serialization.string()), +}); + +export declare namespace GroupBankSource { + interface Raw { + account_number: string; + routing_number: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/IdentityNamespaceConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/IdentityNamespaceConfig.ts new file mode 100644 index 0000000000..fd0b9ff1a3 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/IdentityNamespaceConfig.ts @@ -0,0 +1,16 @@ +/** + * 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 IdentityNamespaceConfig: core.serialization.ObjectSchema< + serializers.cloud.IdentityNamespaceConfig.Raw, + Rivet.cloud.IdentityNamespaceConfig +> = core.serialization.object({}); + +export declare namespace IdentityNamespaceConfig { + interface Raw {} +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/KvNamespaceConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/KvNamespaceConfig.ts new file mode 100644 index 0000000000..320fd81e54 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/KvNamespaceConfig.ts @@ -0,0 +1,16 @@ +/** + * 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 KvNamespaceConfig: core.serialization.ObjectSchema< + serializers.cloud.KvNamespaceConfig.Raw, + Rivet.cloud.KvNamespaceConfig +> = core.serialization.object({}); + +export declare namespace KvNamespaceConfig { + interface Raw {} +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LobbySummaryAnalytics.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LobbySummaryAnalytics.ts new file mode 100644 index 0000000000..f204f5005b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LobbySummaryAnalytics.ts @@ -0,0 +1,49 @@ +/** + * 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 LobbySummaryAnalytics: core.serialization.ObjectSchema< + serializers.cloud.LobbySummaryAnalytics.Raw, + Rivet.cloud.LobbySummaryAnalytics +> = core.serialization.object({ + lobbyId: core.serialization.property("lobby_id", core.serialization.string()), + lobbyGroupId: core.serialization.property("lobby_group_id", core.serialization.string()), + lobbyGroupNameId: core.serialization.property("lobby_group_name_id", core.serialization.string()), + regionId: core.serialization.property("region_id", core.serialization.string()), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + isReady: core.serialization.property("is_ready", core.serialization.boolean()), + isIdle: core.serialization.property("is_idle", core.serialization.boolean()), + isClosed: core.serialization.property("is_closed", core.serialization.boolean()), + isOutdated: core.serialization.property("is_outdated", core.serialization.boolean()), + maxPlayersNormal: core.serialization.property("max_players_normal", core.serialization.number()), + maxPlayersDirect: core.serialization.property("max_players_direct", core.serialization.number()), + maxPlayersParty: core.serialization.property("max_players_party", core.serialization.number()), + totalPlayerCount: core.serialization.property("total_player_count", core.serialization.number()), + registeredPlayerCount: core.serialization.property("registered_player_count", core.serialization.number()), +}); + +export declare namespace LobbySummaryAnalytics { + interface Raw { + lobby_id: string; + lobby_group_id: string; + lobby_group_name_id: string; + region_id: string; + create_ts: serializers.Timestamp.Raw; + is_ready: boolean; + is_idle: boolean; + is_closed: boolean; + is_outdated: boolean; + max_players_normal: number; + max_players_direct: number; + max_players_party: number; + total_player_count: number; + registered_player_count: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbyStatus.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbyStatus.ts new file mode 100644 index 0000000000..6765211c23 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbyStatus.ts @@ -0,0 +1,24 @@ +/** + * 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 LogsLobbyStatus: core.serialization.ObjectSchema< + serializers.cloud.LogsLobbyStatus.Raw, + Rivet.cloud.LogsLobbyStatus +> = core.serialization.object({ + running: core.serialization.lazyObject(async () => (await import("../../../../..")).EmptyObject), + stopped: core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.LogsLobbyStatusStopped) + .optional(), +}); + +export declare namespace LogsLobbyStatus { + interface Raw { + running: serializers.EmptyObject.Raw; + stopped?: serializers.cloud.LogsLobbyStatusStopped.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbyStatusStopped.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbyStatusStopped.ts new file mode 100644 index 0000000000..7580a406e0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbyStatusStopped.ts @@ -0,0 +1,27 @@ +/** + * 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 LogsLobbyStatusStopped: core.serialization.ObjectSchema< + serializers.cloud.LogsLobbyStatusStopped.Raw, + Rivet.cloud.LogsLobbyStatusStopped +> = core.serialization.object({ + stopTs: core.serialization.property( + "stop_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + failed: core.serialization.boolean(), + exitCode: core.serialization.property("exit_code", core.serialization.number()), +}); + +export declare namespace LogsLobbyStatusStopped { + interface Raw { + stop_ts: serializers.Timestamp.Raw; + failed: boolean; + exit_code: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbySummary.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbySummary.ts new file mode 100644 index 0000000000..b5eea68abb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsLobbySummary.ts @@ -0,0 +1,43 @@ +/** + * 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 LogsLobbySummary: core.serialization.ObjectSchema< + serializers.cloud.LogsLobbySummary.Raw, + Rivet.cloud.LogsLobbySummary +> = core.serialization.object({ + lobbyId: core.serialization.property("lobby_id", core.serialization.string()), + namespaceId: core.serialization.property("namespace_id", core.serialization.string()), + lobbyGroupNameId: core.serialization.property("lobby_group_name_id", core.serialization.string()), + regionId: core.serialization.property("region_id", core.serialization.string()), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + startTs: core.serialization.property( + "start_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp).optional() + ), + readyTs: core.serialization.property( + "ready_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp).optional() + ), + status: core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.LogsLobbyStatus), +}); + +export declare namespace LogsLobbySummary { + interface Raw { + lobby_id: string; + namespace_id: string; + lobby_group_name_id: string; + region_id: string; + create_ts: serializers.Timestamp.Raw; + start_ts?: serializers.Timestamp.Raw | null; + ready_ts?: serializers.Timestamp.Raw | null; + status: serializers.cloud.LogsLobbyStatus.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsPerfMark.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsPerfMark.ts new file mode 100644 index 0000000000..16451e34eb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsPerfMark.ts @@ -0,0 +1,26 @@ +/** + * 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 LogsPerfMark: core.serialization.ObjectSchema< + serializers.cloud.LogsPerfMark.Raw, + Rivet.cloud.LogsPerfMark +> = core.serialization.object({ + label: core.serialization.string(), + ts: core.serialization.lazy(async () => (await import("../../../../..")).Timestamp), + rayId: core.serialization.property("ray_id", core.serialization.string().optional()), + reqId: core.serialization.property("req_id", core.serialization.string().optional()), +}); + +export declare namespace LogsPerfMark { + interface Raw { + label: string; + ts: serializers.Timestamp.Raw; + ray_id?: string | null; + req_id?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsPerfSpan.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsPerfSpan.ts new file mode 100644 index 0000000000..d23bfc65fb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/LogsPerfSpan.ts @@ -0,0 +1,32 @@ +/** + * 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 LogsPerfSpan: core.serialization.ObjectSchema< + serializers.cloud.LogsPerfSpan.Raw, + Rivet.cloud.LogsPerfSpan +> = core.serialization.object({ + label: core.serialization.string(), + startTs: core.serialization.property( + "start_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + finishTs: core.serialization.property( + "finish_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp).optional() + ), + reqId: core.serialization.property("req_id", core.serialization.string().optional()), +}); + +export declare namespace LogsPerfSpan { + interface Raw { + label: string; + start_ts: serializers.Timestamp.Raw; + finish_ts?: serializers.Timestamp.Raw | null; + req_id?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/MatchmakerDevelopmentPort.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/MatchmakerDevelopmentPort.ts new file mode 100644 index 0000000000..07d2d9613d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/MatchmakerDevelopmentPort.ts @@ -0,0 +1,31 @@ +/** + * 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 MatchmakerDevelopmentPort: core.serialization.ObjectSchema< + serializers.cloud.MatchmakerDevelopmentPort.Raw, + Rivet.cloud.MatchmakerDevelopmentPort +> = core.serialization.object({ + port: core.serialization.number().optional(), + portRange: core.serialization.property( + "port_range", + core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.version.matchmaker.PortRange) + .optional() + ), + protocol: core.serialization.lazy( + async () => (await import("../../../../..")).cloud.version.matchmaker.PortProtocol + ), +}); + +export declare namespace MatchmakerDevelopmentPort { + interface Raw { + port?: number | null; + port_range?: serializers.cloud.version.matchmaker.PortRange.Raw | null; + protocol: serializers.cloud.version.matchmaker.PortProtocol.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/MatchmakerNamespaceConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/MatchmakerNamespaceConfig.ts new file mode 100644 index 0000000000..fb533def2f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/MatchmakerNamespaceConfig.ts @@ -0,0 +1,33 @@ +/** + * 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 MatchmakerNamespaceConfig: core.serialization.ObjectSchema< + serializers.cloud.MatchmakerNamespaceConfig.Raw, + Rivet.cloud.MatchmakerNamespaceConfig +> = core.serialization.object({ + lobbyCountMax: core.serialization.property("lobby_count_max", core.serialization.number()), + maxPlayersPerClient: core.serialization.property("max_players_per_client", core.serialization.number()), + maxPlayersPerClientVpn: core.serialization.property("max_players_per_client_vpn", core.serialization.number()), + maxPlayersPerClientProxy: core.serialization.property("max_players_per_client_proxy", core.serialization.number()), + maxPlayersPerClientTor: core.serialization.property("max_players_per_client_tor", core.serialization.number()), + maxPlayersPerClientHosting: core.serialization.property( + "max_players_per_client_hosting", + core.serialization.number() + ), +}); + +export declare namespace MatchmakerNamespaceConfig { + interface Raw { + lobby_count_max: number; + max_players_per_client: number; + max_players_per_client_vpn: number; + max_players_per_client_proxy: number; + max_players_per_client_tor: number; + max_players_per_client_hosting: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceConfig.ts new file mode 100644 index 0000000000..c7e3874126 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceConfig.ts @@ -0,0 +1,28 @@ +/** + * 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 NamespaceConfig: core.serialization.ObjectSchema< + serializers.cloud.NamespaceConfig.Raw, + Rivet.cloud.NamespaceConfig +> = core.serialization.object({ + cdn: core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.CdnNamespaceConfig), + matchmaker: core.serialization.lazyObject( + async () => (await import("../../../../..")).cloud.MatchmakerNamespaceConfig + ), + kv: core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.KvNamespaceConfig), + identity: core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.IdentityNamespaceConfig), +}); + +export declare namespace NamespaceConfig { + interface Raw { + cdn: serializers.cloud.CdnNamespaceConfig.Raw; + matchmaker: serializers.cloud.MatchmakerNamespaceConfig.Raw; + kv: serializers.cloud.KvNamespaceConfig.Raw; + identity: serializers.cloud.IdentityNamespaceConfig.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceFull.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceFull.ts new file mode 100644 index 0000000000..046098490b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceFull.ts @@ -0,0 +1,36 @@ +/** + * 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 NamespaceFull: core.serialization.ObjectSchema< + serializers.cloud.NamespaceFull.Raw, + Rivet.cloud.NamespaceFull +> = core.serialization.object({ + namespaceId: core.serialization.property("namespace_id", core.serialization.string()), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + versionId: core.serialization.property("version_id", core.serialization.string()), + nameId: core.serialization.property("name_id", core.serialization.string()), + config: core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.NamespaceConfig), +}); + +export declare namespace NamespaceFull { + interface Raw { + namespace_id: string; + create_ts: serializers.Timestamp.Raw; + display_name: serializers.DisplayName.Raw; + version_id: string; + name_id: string; + config: serializers.cloud.NamespaceConfig.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceSummary.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceSummary.ts new file mode 100644 index 0000000000..99613cf9e5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceSummary.ts @@ -0,0 +1,34 @@ +/** + * 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 NamespaceSummary: core.serialization.ObjectSchema< + serializers.cloud.NamespaceSummary.Raw, + Rivet.cloud.NamespaceSummary +> = core.serialization.object({ + namespaceId: core.serialization.property("namespace_id", core.serialization.string()), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + versionId: core.serialization.property("version_id", core.serialization.string()), + nameId: core.serialization.property("name_id", core.serialization.string()), +}); + +export declare namespace NamespaceSummary { + interface Raw { + namespace_id: string; + create_ts: serializers.Timestamp.Raw; + display_name: serializers.DisplayName.Raw; + version_id: string; + name_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceVersion.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceVersion.ts new file mode 100644 index 0000000000..c79f958093 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/NamespaceVersion.ts @@ -0,0 +1,27 @@ +/** + * 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 NamespaceVersion: core.serialization.ObjectSchema< + serializers.cloud.NamespaceVersion.Raw, + Rivet.cloud.NamespaceVersion +> = core.serialization.object({ + namespaceId: core.serialization.property("namespace_id", core.serialization.string()), + versionId: core.serialization.property("version_id", core.serialization.string()), + deployTs: core.serialization.property( + "deploy_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), +}); + +export declare namespace NamespaceVersion { + interface Raw { + namespace_id: string; + version_id: string; + deploy_ts: serializers.Timestamp.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionSummary.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionSummary.ts new file mode 100644 index 0000000000..7e6629efb6 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionSummary.ts @@ -0,0 +1,34 @@ +/** + * 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 RegionSummary: core.serialization.ObjectSchema< + serializers.cloud.RegionSummary.Raw, + Rivet.cloud.RegionSummary +> = core.serialization.object({ + regionId: core.serialization.property("region_id", core.serialization.string()), + regionNameId: core.serialization.property("region_name_id", core.serialization.string()), + provider: core.serialization.string(), + providerDisplayName: core.serialization.property( + "provider_display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + regionDisplayName: core.serialization.property( + "region_display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), +}); + +export declare namespace RegionSummary { + interface Raw { + region_id: string; + region_name_id: string; + provider: string; + provider_display_name: serializers.DisplayName.Raw; + region_display_name: serializers.DisplayName.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionTier.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionTier.ts new file mode 100644 index 0000000000..909a973775 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionTier.ts @@ -0,0 +1,32 @@ +/** + * 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 RegionTier: core.serialization.ObjectSchema = + core.serialization.object({ + tierNameId: core.serialization.property("tier_name_id", core.serialization.string()), + rivetCoresNumerator: core.serialization.property("rivet_cores_numerator", core.serialization.number()), + rivetCoresDenominator: core.serialization.property("rivet_cores_denominator", core.serialization.number()), + cpu: core.serialization.number(), + memory: core.serialization.number(), + disk: core.serialization.number(), + bandwidth: core.serialization.number(), + pricePerSecond: core.serialization.property("price_per_second", core.serialization.number()), + }); + +export declare namespace RegionTier { + interface Raw { + tier_name_id: string; + rivet_cores_numerator: number; + rivet_cores_denominator: number; + cpu: number; + memory: number; + disk: number; + bandwidth: number; + price_per_second: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionTierExpenses.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionTierExpenses.ts new file mode 100644 index 0000000000..5e311e580c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/RegionTierExpenses.ts @@ -0,0 +1,30 @@ +/** + * 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 RegionTierExpenses: core.serialization.ObjectSchema< + serializers.cloud.RegionTierExpenses.Raw, + Rivet.cloud.RegionTierExpenses +> = core.serialization.object({ + namespaceId: core.serialization.property("namespace_id", core.serialization.string()), + regionId: core.serialization.property("region_id", core.serialization.string()), + tierNameId: core.serialization.property("tier_name_id", core.serialization.string()), + lobbyGroupNameId: core.serialization.property("lobby_group_name_id", core.serialization.string()), + uptime: core.serialization.number(), + expenses: core.serialization.number(), +}); + +export declare namespace RegionTierExpenses { + interface Raw { + namespace_id: string; + region_id: string; + tier_name_id: string; + lobby_group_name_id: string; + uptime: number; + expenses: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/SvcMetrics.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/SvcMetrics.ts new file mode 100644 index 0000000000..38106ef110 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/SvcMetrics.ts @@ -0,0 +1,24 @@ +/** + * 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 SvcMetrics: core.serialization.ObjectSchema = + core.serialization.object({ + job: core.serialization.string(), + cpu: core.serialization.list(core.serialization.number()), + memory: core.serialization.list(core.serialization.number()), + allocatedMemory: core.serialization.property("allocated_memory", core.serialization.number().optional()), + }); + +export declare namespace SvcMetrics { + interface Raw { + job: string; + cpu: number[]; + memory: number[]; + allocated_memory?: number | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/SvcPerf.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/SvcPerf.ts new file mode 100644 index 0000000000..a02877ff1a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/SvcPerf.ts @@ -0,0 +1,32 @@ +/** + * 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 SvcPerf: core.serialization.ObjectSchema = + core.serialization.object({ + svcName: core.serialization.property("svc_name", core.serialization.string()), + ts: core.serialization.lazy(async () => (await import("../../../../..")).Timestamp), + duration: core.serialization.number(), + reqId: core.serialization.property("req_id", core.serialization.string().optional()), + spans: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.LogsPerfSpan) + ), + marks: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.LogsPerfMark) + ), + }); + +export declare namespace SvcPerf { + interface Raw { + svc_name: string; + ts: serializers.Timestamp.Raw; + duration: number; + req_id?: string | null; + spans: serializers.cloud.LogsPerfSpan.Raw[]; + marks: serializers.cloud.LogsPerfMark.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/index.ts new file mode 100644 index 0000000000..7aef2a4608 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/common/types/index.ts @@ -0,0 +1,35 @@ +export * from "./SvcPerf"; +export * from "./LogsPerfSpan"; +export * from "./LogsPerfMark"; +export * from "./LobbySummaryAnalytics"; +export * from "./LogsLobbySummary"; +export * from "./LogsLobbyStatus"; +export * from "./LogsLobbyStatusStopped"; +export * from "./SvcMetrics"; +export * from "./AuthAgent"; +export * from "./AuthAgentIdentity"; +export * from "./AuthAgentGameCloud"; +export * from "./CustomAvatarSummary"; +export * from "./BuildSummary"; +export * from "./CdnSiteSummary"; +export * from "./GameFull"; +export * from "./NamespaceSummary"; +export * from "./RegionSummary"; +export * from "./GameLobbyExpenses"; +export * from "./RegionTierExpenses"; +export * from "./GroupBankSource"; +export * from "./RegionTier"; +export * from "./NamespaceFull"; +export * from "./NamespaceConfig"; +export * from "./CdnNamespaceConfig"; +export * from "./MatchmakerNamespaceConfig"; +export * from "./KvNamespaceConfig"; +export * from "./IdentityNamespaceConfig"; +export * from "./CdnAuthType"; +export * from "./CdnNamespaceDomain"; +export * from "./CdnNamespaceDomainVerificationMethod"; +export * from "./CdnNamespaceDomainVerificationMethodHttp"; +export * from "./CdnNamespaceDomainVerificationStatus"; +export * from "./CdnNamespaceAuthUser"; +export * from "./MatchmakerDevelopmentPort"; +export * from "./NamespaceVersion"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/CompleteDeviceLinkRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/CompleteDeviceLinkRequest.ts new file mode 100644 index 0000000000..64f8a6e64c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/CompleteDeviceLinkRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 CompleteDeviceLinkRequest: core.serialization.ObjectSchema< + serializers.cloud.devices.CompleteDeviceLinkRequest.Raw, + Rivet.cloud.devices.CompleteDeviceLinkRequest +> = core.serialization.object({ + deviceLinkToken: core.serialization.property( + "device_link_token", + core.serialization.lazy(async () => (await import("../../../../../../..")).Jwt) + ), + gameId: core.serialization.property("game_id", core.serialization.string()), +}); + +export declare namespace CompleteDeviceLinkRequest { + interface Raw { + device_link_token: serializers.Jwt.Raw; + game_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/GetDeviceLinkResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/GetDeviceLinkResponse.ts new file mode 100644 index 0000000000..bd3e1b4992 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/GetDeviceLinkResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetDeviceLinkResponse: core.serialization.ObjectSchema< + serializers.cloud.devices.GetDeviceLinkResponse.Raw, + Rivet.cloud.devices.GetDeviceLinkResponse +> = core.serialization.object({ + cloudToken: core.serialization.property("cloud_token", core.serialization.string().optional()), + watch: core.serialization.lazyObject(async () => (await import("../../../../../../..")).WatchResponse), +}); + +export declare namespace GetDeviceLinkResponse { + interface Raw { + cloud_token?: string | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/PrepareDeviceLinkResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/PrepareDeviceLinkResponse.ts new file mode 100644 index 0000000000..e0604c8f20 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/PrepareDeviceLinkResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 PrepareDeviceLinkResponse: core.serialization.ObjectSchema< + serializers.cloud.devices.PrepareDeviceLinkResponse.Raw, + Rivet.cloud.devices.PrepareDeviceLinkResponse +> = core.serialization.object({ + deviceLinkId: core.serialization.property("device_link_id", core.serialization.string()), + deviceLinkToken: core.serialization.property("device_link_token", core.serialization.string()), + deviceLinkUrl: core.serialization.property("device_link_url", core.serialization.string()), +}); + +export declare namespace PrepareDeviceLinkResponse { + interface Raw { + device_link_id: string; + device_link_token: string; + device_link_url: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/index.ts new file mode 100644 index 0000000000..908200d8cc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/devices/resources/links/types/index.ts @@ -0,0 +1,3 @@ +export * from "./PrepareDeviceLinkResponse"; +export * from "./GetDeviceLinkResponse"; +export * from "./CompleteDeviceLinkRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/index.ts index 3e5335fe42..3ce0a3e38e 100644 --- a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/index.ts +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/index.ts @@ -1 +1,2 @@ +export * from "./types"; export * from "./resources"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/ListGameCustomAvatarsResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/ListGameCustomAvatarsResponse.ts new file mode 100644 index 0000000000..5215efbc2b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/ListGameCustomAvatarsResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 ListGameCustomAvatarsResponse: core.serialization.ObjectSchema< + serializers.cloud.games.ListGameCustomAvatarsResponse.Raw, + Rivet.cloud.games.ListGameCustomAvatarsResponse +> = core.serialization.object({ + customAvatars: core.serialization.property( + "custom_avatars", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.CustomAvatarSummary) + ) + ), +}); + +export declare namespace ListGameCustomAvatarsResponse { + interface Raw { + custom_avatars: serializers.cloud.CustomAvatarSummary.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadRequest.ts new file mode 100644 index 0000000000..c538058cae --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 PrepareCustomAvatarUploadRequest: core.serialization.ObjectSchema< + serializers.cloud.games.PrepareCustomAvatarUploadRequest.Raw, + Rivet.cloud.games.PrepareCustomAvatarUploadRequest +> = core.serialization.object({ + path: core.serialization.string(), + mime: core.serialization.string().optional(), + contentLength: core.serialization.property("content_length", core.serialization.number()), +}); + +export declare namespace PrepareCustomAvatarUploadRequest { + interface Raw { + path: string; + mime?: string | null; + content_length: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadResponse.ts new file mode 100644 index 0000000000..3a7cca512c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/PrepareCustomAvatarUploadResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 PrepareCustomAvatarUploadResponse: core.serialization.ObjectSchema< + serializers.cloud.games.PrepareCustomAvatarUploadResponse.Raw, + Rivet.cloud.games.PrepareCustomAvatarUploadResponse +> = core.serialization.object({ + uploadId: core.serialization.property("upload_id", core.serialization.string()), + presignedRequest: core.serialization.property( + "presigned_request", + core.serialization.lazyObject(async () => (await import("../../../../../../..")).upload.PresignedRequest) + ), +}); + +export declare namespace PrepareCustomAvatarUploadResponse { + interface Raw { + upload_id: string; + presigned_request: serializers.upload.PresignedRequest.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/index.ts new file mode 100644 index 0000000000..a69f21b5fd --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/avatars/types/index.ts @@ -0,0 +1,3 @@ +export * from "./ListGameCustomAvatarsResponse"; +export * from "./PrepareCustomAvatarUploadRequest"; +export * from "./PrepareCustomAvatarUploadResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/BuildCompression.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/BuildCompression.ts new file mode 100644 index 0000000000..cd26857762 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/BuildCompression.ts @@ -0,0 +1,16 @@ +/** + * 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 BuildCompression: core.serialization.Schema< + serializers.cloud.games.BuildCompression.Raw, + Rivet.cloud.games.BuildCompression +> = core.serialization.enum_(["none", "lz4"]); + +export declare namespace BuildCompression { + type Raw = "none" | "lz4"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/BuildKind.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/BuildKind.ts new file mode 100644 index 0000000000..8fe35dac33 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/BuildKind.ts @@ -0,0 +1,14 @@ +/** + * 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 BuildKind: core.serialization.Schema = + core.serialization.enum_(["docker_image", "oci_bundle"]); + +export declare namespace BuildKind { + type Raw = "docker_image" | "oci_bundle"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/CreateGameBuildRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/CreateGameBuildRequest.ts new file mode 100644 index 0000000000..1bfa4b3c58 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/CreateGameBuildRequest.ts @@ -0,0 +1,38 @@ +/** + * 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 CreateGameBuildRequest: core.serialization.ObjectSchema< + serializers.cloud.games.CreateGameBuildRequest.Raw, + Rivet.cloud.games.CreateGameBuildRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../../../..")).DisplayName) + ), + imageTag: core.serialization.property("image_tag", core.serialization.string()), + imageFile: core.serialization.property( + "image_file", + core.serialization.lazyObject(async () => (await import("../../../../../../..")).upload.PrepareFile) + ), + multipartUpload: core.serialization.property("multipart_upload", core.serialization.boolean().optional()), + kind: core.serialization.lazy(async () => (await import("../../../../../../..")).cloud.games.BuildKind).optional(), + compression: core.serialization + .lazy(async () => (await import("../../../../../../..")).cloud.games.BuildCompression) + .optional(), +}); + +export declare namespace CreateGameBuildRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + image_tag: string; + image_file: serializers.upload.PrepareFile.Raw; + multipart_upload?: boolean | null; + kind?: serializers.cloud.games.BuildKind.Raw | null; + compression?: serializers.cloud.games.BuildCompression.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/CreateGameBuildResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/CreateGameBuildResponse.ts new file mode 100644 index 0000000000..99cb746dcc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/CreateGameBuildResponse.ts @@ -0,0 +1,40 @@ +/** + * 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 CreateGameBuildResponse: core.serialization.ObjectSchema< + serializers.cloud.games.CreateGameBuildResponse.Raw, + Rivet.cloud.games.CreateGameBuildResponse +> = core.serialization.object({ + buildId: core.serialization.property("build_id", core.serialization.string()), + uploadId: core.serialization.property("upload_id", core.serialization.string()), + imagePresignedRequest: core.serialization.property( + "image_presigned_request", + core.serialization + .lazyObject(async () => (await import("../../../../../../..")).upload.PresignedRequest) + .optional() + ), + imagePresignedRequests: core.serialization.property( + "image_presigned_requests", + core.serialization + .list( + core.serialization.lazyObject( + async () => (await import("../../../../../../..")).upload.PresignedRequest + ) + ) + .optional() + ), +}); + +export declare namespace CreateGameBuildResponse { + interface Raw { + build_id: string; + upload_id: string; + image_presigned_request?: serializers.upload.PresignedRequest.Raw | null; + image_presigned_requests?: serializers.upload.PresignedRequest.Raw[] | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/ListGameBuildsResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/ListGameBuildsResponse.ts new file mode 100644 index 0000000000..97f852793b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/ListGameBuildsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ListGameBuildsResponse: core.serialization.ObjectSchema< + serializers.cloud.games.ListGameBuildsResponse.Raw, + Rivet.cloud.games.ListGameBuildsResponse +> = core.serialization.object({ + builds: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.BuildSummary) + ), +}); + +export declare namespace ListGameBuildsResponse { + interface Raw { + builds: serializers.cloud.BuildSummary.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/index.ts new file mode 100644 index 0000000000..62026df1e5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/builds/types/index.ts @@ -0,0 +1,5 @@ +export * from "./ListGameBuildsResponse"; +export * from "./CreateGameBuildRequest"; +export * from "./CreateGameBuildResponse"; +export * from "./BuildKind"; +export * from "./BuildCompression"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteRequest.ts new file mode 100644 index 0000000000..3c9bc38ed3 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 CreateGameCdnSiteRequest: core.serialization.ObjectSchema< + serializers.cloud.games.CreateGameCdnSiteRequest.Raw, + Rivet.cloud.games.CreateGameCdnSiteRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../../../..")).DisplayName) + ), + files: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).upload.PrepareFile) + ), +}); + +export declare namespace CreateGameCdnSiteRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + files: serializers.upload.PrepareFile.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteResponse.ts new file mode 100644 index 0000000000..4244297053 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/CreateGameCdnSiteResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 CreateGameCdnSiteResponse: core.serialization.ObjectSchema< + serializers.cloud.games.CreateGameCdnSiteResponse.Raw, + Rivet.cloud.games.CreateGameCdnSiteResponse +> = core.serialization.object({ + siteId: core.serialization.property("site_id", core.serialization.string()), + uploadId: core.serialization.property("upload_id", core.serialization.string()), + presignedRequests: core.serialization.property( + "presigned_requests", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).upload.PresignedRequest) + ) + ), +}); + +export declare namespace CreateGameCdnSiteResponse { + interface Raw { + site_id: string; + upload_id: string; + presigned_requests: serializers.upload.PresignedRequest.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/ListGameCdnSitesResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/ListGameCdnSitesResponse.ts new file mode 100644 index 0000000000..0ad87c0579 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/ListGameCdnSitesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ListGameCdnSitesResponse: core.serialization.ObjectSchema< + serializers.cloud.games.ListGameCdnSitesResponse.Raw, + Rivet.cloud.games.ListGameCdnSitesResponse +> = core.serialization.object({ + sites: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.CdnSiteSummary) + ), +}); + +export declare namespace ListGameCdnSitesResponse { + interface Raw { + sites: serializers.cloud.CdnSiteSummary.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/index.ts new file mode 100644 index 0000000000..e6b92eb59c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/cdn/types/index.ts @@ -0,0 +1,3 @@ +export * from "./ListGameCdnSitesResponse"; +export * from "./CreateGameCdnSiteRequest"; +export * from "./CreateGameCdnSiteResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/games/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/games/index.ts deleted file mode 100644 index eea524d655..0000000000 --- a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/games/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/index.ts index 7e512c03dd..7a0773f98e 100644 --- a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/index.ts +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/index.ts @@ -5,8 +5,6 @@ export * as builds from "./builds"; export * from "./builds/types"; export * as cdn from "./cdn"; export * from "./cdn/types"; -export * as games from "./games"; -export * from "./games/types"; export * as matchmaker from "./matchmaker"; export * from "./matchmaker/types"; export * as tokens from "./tokens"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/DeleteMatchmakerLobbyResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/DeleteMatchmakerLobbyResponse.ts new file mode 100644 index 0000000000..ea3fa56f21 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/DeleteMatchmakerLobbyResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 DeleteMatchmakerLobbyResponse: core.serialization.ObjectSchema< + serializers.cloud.games.DeleteMatchmakerLobbyResponse.Raw, + Rivet.cloud.games.DeleteMatchmakerLobbyResponse +> = core.serialization.object({ + didRemove: core.serialization.property("did_remove", core.serialization.boolean()), +}); + +export declare namespace DeleteMatchmakerLobbyResponse { + interface Raw { + did_remove: boolean; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsRequest.ts new file mode 100644 index 0000000000..fc5ace6df8 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 ExportLobbyLogsRequest: core.serialization.ObjectSchema< + serializers.cloud.games.ExportLobbyLogsRequest.Raw, + Rivet.cloud.games.ExportLobbyLogsRequest +> = core.serialization.object({ + stream: core.serialization.lazy(async () => (await import("../../../../../../..")).cloud.games.LogStream), +}); + +export declare namespace ExportLobbyLogsRequest { + interface Raw { + stream: serializers.cloud.games.LogStream.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsResponse.ts new file mode 100644 index 0000000000..6126b77878 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportLobbyLogsResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 ExportLobbyLogsResponse: core.serialization.ObjectSchema< + serializers.cloud.games.ExportLobbyLogsResponse.Raw, + Rivet.cloud.games.ExportLobbyLogsResponse +> = core.serialization.object({ + url: core.serialization.string(), +}); + +export declare namespace ExportLobbyLogsResponse { + interface Raw { + url: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryRequest.ts new file mode 100644 index 0000000000..ddf2059e71 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 ExportMatchmakerLobbyHistoryRequest: core.serialization.ObjectSchema< + serializers.cloud.games.ExportMatchmakerLobbyHistoryRequest.Raw, + Rivet.cloud.games.ExportMatchmakerLobbyHistoryRequest +> = core.serialization.object({ + queryStart: core.serialization.property("query_start", core.serialization.number()), + queryEnd: core.serialization.property("query_end", core.serialization.number()), +}); + +export declare namespace ExportMatchmakerLobbyHistoryRequest { + interface Raw { + query_start: number; + query_end: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryResponse.ts new file mode 100644 index 0000000000..8dfa74ef40 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/ExportMatchmakerLobbyHistoryResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 ExportMatchmakerLobbyHistoryResponse: core.serialization.ObjectSchema< + serializers.cloud.games.ExportMatchmakerLobbyHistoryResponse.Raw, + Rivet.cloud.games.ExportMatchmakerLobbyHistoryResponse +> = core.serialization.object({ + url: core.serialization.string(), +}); + +export declare namespace ExportMatchmakerLobbyHistoryResponse { + interface Raw { + url: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/GetLobbyLogsResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/GetLobbyLogsResponse.ts new file mode 100644 index 0000000000..291d2a0542 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/GetLobbyLogsResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 GetLobbyLogsResponse: core.serialization.ObjectSchema< + serializers.cloud.games.GetLobbyLogsResponse.Raw, + Rivet.cloud.games.GetLobbyLogsResponse +> = core.serialization.object({ + lines: core.serialization.list(core.serialization.string()), + timestamps: core.serialization.list(core.serialization.string()), + watch: core.serialization.lazyObject(async () => (await import("../../../../../../..")).WatchResponse), +}); + +export declare namespace GetLobbyLogsResponse { + interface Raw { + lines: string[]; + timestamps: string[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/LogStream.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/LogStream.ts new file mode 100644 index 0000000000..c1b7bb1b31 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/LogStream.ts @@ -0,0 +1,14 @@ +/** + * 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 LogStream: core.serialization.Schema = + core.serialization.enum_(["std_out", "std_err"]); + +export declare namespace LogStream { + type Raw = "std_out" | "std_err"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/index.ts new file mode 100644 index 0000000000..bb788951aa --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/matchmaker/types/index.ts @@ -0,0 +1,7 @@ +export * from "./ExportMatchmakerLobbyHistoryRequest"; +export * from "./ExportMatchmakerLobbyHistoryResponse"; +export * from "./DeleteMatchmakerLobbyResponse"; +export * from "./GetLobbyLogsResponse"; +export * from "./ExportLobbyLogsRequest"; +export * from "./ExportLobbyLogsResponse"; +export * from "./LogStream"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/GetAnalyticsMatchmakerLiveResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/GetAnalyticsMatchmakerLiveResponse.ts new file mode 100644 index 0000000000..bc5be2206a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/GetAnalyticsMatchmakerLiveResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 GetAnalyticsMatchmakerLiveResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.GetAnalyticsMatchmakerLiveResponse.Raw, + Rivet.cloud.games.namespaces.GetAnalyticsMatchmakerLiveResponse +> = core.serialization.object({ + lobbies: core.serialization.list( + core.serialization.lazyObject( + async () => (await import("../../../../../../../../..")).cloud.LobbySummaryAnalytics + ) + ), +}); + +export declare namespace GetAnalyticsMatchmakerLiveResponse { + interface Raw { + lobbies: serializers.cloud.LobbySummaryAnalytics.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/index.ts new file mode 100644 index 0000000000..d177fbed1a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/analytics/types/index.ts @@ -0,0 +1 @@ +export * from "./GetAnalyticsMatchmakerLiveResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/GetNamespaceLobbyResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/GetNamespaceLobbyResponse.ts new file mode 100644 index 0000000000..8010e13911 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/GetNamespaceLobbyResponse.ts @@ -0,0 +1,43 @@ +/** + * 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 GetNamespaceLobbyResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.GetNamespaceLobbyResponse.Raw, + Rivet.cloud.games.namespaces.GetNamespaceLobbyResponse +> = core.serialization.object({ + lobby: core.serialization.lazyObject( + async () => (await import("../../../../../../../../..")).cloud.LogsLobbySummary + ), + metrics: core.serialization + .lazyObject(async () => (await import("../../../../../../../../..")).cloud.SvcMetrics) + .optional(), + stdoutPresignedUrls: core.serialization.property( + "stdout_presigned_urls", + core.serialization.list(core.serialization.string()) + ), + stderrPresignedUrls: core.serialization.property( + "stderr_presigned_urls", + core.serialization.list(core.serialization.string()) + ), + perfLists: core.serialization.property( + "perf_lists", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../../../..")).cloud.SvcPerf) + ) + ), +}); + +export declare namespace GetNamespaceLobbyResponse { + interface Raw { + lobby: serializers.cloud.LogsLobbySummary.Raw; + metrics?: serializers.cloud.SvcMetrics.Raw | null; + stdout_presigned_urls: string[]; + stderr_presigned_urls: string[]; + perf_lists: serializers.cloud.SvcPerf.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/ListNamespaceLobbiesResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/ListNamespaceLobbiesResponse.ts new file mode 100644 index 0000000000..fe1376ea41 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/ListNamespaceLobbiesResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ListNamespaceLobbiesResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.ListNamespaceLobbiesResponse.Raw, + Rivet.cloud.games.namespaces.ListNamespaceLobbiesResponse +> = core.serialization.object({ + lobbies: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../../../..")).cloud.LogsLobbySummary) + ), +}); + +export declare namespace ListNamespaceLobbiesResponse { + interface Raw { + lobbies: serializers.cloud.LogsLobbySummary.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/index.ts new file mode 100644 index 0000000000..1bcc1b77ac --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/resources/logs/types/index.ts @@ -0,0 +1,2 @@ +export * from "./ListNamespaceLobbiesResponse"; +export * from "./GetNamespaceLobbyResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/AddNamespaceDomainRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/AddNamespaceDomainRequest.ts new file mode 100644 index 0000000000..3a1d42b4dd --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/AddNamespaceDomainRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 AddNamespaceDomainRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.AddNamespaceDomainRequest.Raw, + Rivet.cloud.games.namespaces.AddNamespaceDomainRequest +> = core.serialization.object({ + domain: core.serialization.string(), +}); + +export declare namespace AddNamespaceDomainRequest { + interface Raw { + domain: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceRequest.ts new file mode 100644 index 0000000000..f5d8c8b212 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 CreateGameNamespaceRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.CreateGameNamespaceRequest.Raw, + Rivet.cloud.games.namespaces.CreateGameNamespaceRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../../../..")).DisplayName) + ), + versionId: core.serialization.property("version_id", core.serialization.string()), + nameId: core.serialization.property("name_id", core.serialization.string()), +}); + +export declare namespace CreateGameNamespaceRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + version_id: string; + name_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceResponse.ts new file mode 100644 index 0000000000..b18dd161d0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CreateGameNamespaceResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.CreateGameNamespaceResponse.Raw, + Rivet.cloud.games.namespaces.CreateGameNamespaceResponse +> = core.serialization.object({ + namespaceId: core.serialization.property("namespace_id", core.serialization.string()), +}); + +export declare namespace CreateGameNamespaceResponse { + interface Raw { + namespace_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentRequest.ts new file mode 100644 index 0000000000..521bd7ef91 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentRequest.ts @@ -0,0 +1,41 @@ +/** + * 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 CreateGameNamespaceTokenDevelopmentRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.CreateGameNamespaceTokenDevelopmentRequest.Raw, + Rivet.cloud.games.namespaces.CreateGameNamespaceTokenDevelopmentRequest +> = core.serialization.object({ + hostname: core.serialization.string(), + ports: core.serialization + .record( + core.serialization.string(), + core.serialization.lazyObject( + async () => (await import("../../../../../../..")).cloud.MatchmakerDevelopmentPort + ) + ) + .optional(), + lobbyPorts: core.serialization.property( + "lobby_ports", + core.serialization + .list( + core.serialization.lazyObject( + async () => + (await import("../../../../../../..")).cloud.version.matchmaker.LobbyGroupRuntimeDockerPort + ) + ) + .optional() + ), +}); + +export declare namespace CreateGameNamespaceTokenDevelopmentRequest { + interface Raw { + hostname: string; + ports?: Record | null; + lobby_ports?: serializers.cloud.version.matchmaker.LobbyGroupRuntimeDockerPort.Raw[] | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentResponse.ts new file mode 100644 index 0000000000..9c4636f9e0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenDevelopmentResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CreateGameNamespaceTokenDevelopmentResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.CreateGameNamespaceTokenDevelopmentResponse.Raw, + Rivet.cloud.games.namespaces.CreateGameNamespaceTokenDevelopmentResponse +> = core.serialization.object({ + token: core.serialization.string(), +}); + +export declare namespace CreateGameNamespaceTokenDevelopmentResponse { + interface Raw { + token: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenPublicResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenPublicResponse.ts new file mode 100644 index 0000000000..c395313519 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/CreateGameNamespaceTokenPublicResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CreateGameNamespaceTokenPublicResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.CreateGameNamespaceTokenPublicResponse.Raw, + Rivet.cloud.games.namespaces.CreateGameNamespaceTokenPublicResponse +> = core.serialization.object({ + token: core.serialization.string(), +}); + +export declare namespace CreateGameNamespaceTokenPublicResponse { + interface Raw { + token: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceByIdResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceByIdResponse.ts new file mode 100644 index 0000000000..9f6829327a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceByIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 GetGameNamespaceByIdResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.GetGameNamespaceByIdResponse.Raw, + Rivet.cloud.games.namespaces.GetGameNamespaceByIdResponse +> = core.serialization.object({ + namespace: core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.NamespaceFull), +}); + +export declare namespace GetGameNamespaceByIdResponse { + interface Raw { + namespace: serializers.cloud.NamespaceFull.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceVersionHistoryResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceVersionHistoryResponse.ts new file mode 100644 index 0000000000..7e48ba7fa7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/GetGameNamespaceVersionHistoryResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetGameNamespaceVersionHistoryResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.GetGameNamespaceVersionHistoryResponse.Raw, + Rivet.cloud.games.namespaces.GetGameNamespaceVersionHistoryResponse +> = core.serialization.object({ + versions: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.NamespaceVersion) + ), +}); + +export declare namespace GetGameNamespaceVersionHistoryResponse { + interface Raw { + versions: serializers.cloud.NamespaceVersion.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/InspectResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/InspectResponse.ts new file mode 100644 index 0000000000..9d44398789 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/InspectResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 InspectResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.InspectResponse.Raw, + Rivet.cloud.games.namespaces.InspectResponse +> = core.serialization.object({ + agent: core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.AuthAgent), +}); + +export declare namespace InspectResponse { + interface Raw { + agent: serializers.cloud.AuthAgent.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/SetNamespaceCdnAuthTypeRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/SetNamespaceCdnAuthTypeRequest.ts new file mode 100644 index 0000000000..a4012a70c5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/SetNamespaceCdnAuthTypeRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 SetNamespaceCdnAuthTypeRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.SetNamespaceCdnAuthTypeRequest.Raw, + Rivet.cloud.games.namespaces.SetNamespaceCdnAuthTypeRequest +> = core.serialization.object({ + authType: core.serialization.property( + "auth_type", + core.serialization.lazy(async () => (await import("../../../../../../..")).cloud.CdnAuthType) + ), +}); + +export declare namespace SetNamespaceCdnAuthTypeRequest { + interface Raw { + auth_type: serializers.cloud.CdnAuthType.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ToggleNamespaceDomainPublicAuthRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ToggleNamespaceDomainPublicAuthRequest.ts new file mode 100644 index 0000000000..29d88e04ed --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ToggleNamespaceDomainPublicAuthRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 ToggleNamespaceDomainPublicAuthRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.ToggleNamespaceDomainPublicAuthRequest.Raw, + Rivet.cloud.games.namespaces.ToggleNamespaceDomainPublicAuthRequest +> = core.serialization.object({ + enabled: core.serialization.boolean(), +}); + +export declare namespace ToggleNamespaceDomainPublicAuthRequest { + interface Raw { + enabled: boolean; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceMatchmakerConfigRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceMatchmakerConfigRequest.ts new file mode 100644 index 0000000000..6c2b7a6757 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceMatchmakerConfigRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 UpdateGameNamespaceMatchmakerConfigRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.UpdateGameNamespaceMatchmakerConfigRequest.Raw, + Rivet.cloud.games.namespaces.UpdateGameNamespaceMatchmakerConfigRequest +> = core.serialization.object({ + lobbyCountMax: core.serialization.property("lobby_count_max", core.serialization.number()), + maxPlayers: core.serialization.property("max_players", core.serialization.number()), +}); + +export declare namespace UpdateGameNamespaceMatchmakerConfigRequest { + interface Raw { + lobby_count_max: number; + max_players: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceVersionRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceVersionRequest.ts new file mode 100644 index 0000000000..812e6c43b1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateGameNamespaceVersionRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 UpdateGameNamespaceVersionRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.UpdateGameNamespaceVersionRequest.Raw, + Rivet.cloud.games.namespaces.UpdateGameNamespaceVersionRequest +> = core.serialization.object({ + versionId: core.serialization.property("version_id", core.serialization.string()), +}); + +export declare namespace UpdateGameNamespaceVersionRequest { + interface Raw { + version_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateNamespaceCdnAuthUserRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateNamespaceCdnAuthUserRequest.ts new file mode 100644 index 0000000000..09954dfb3b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/UpdateNamespaceCdnAuthUserRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 UpdateNamespaceCdnAuthUserRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.UpdateNamespaceCdnAuthUserRequest.Raw, + Rivet.cloud.games.namespaces.UpdateNamespaceCdnAuthUserRequest +> = core.serialization.object({ + user: core.serialization.string(), + password: core.serialization.string(), +}); + +export declare namespace UpdateNamespaceCdnAuthUserRequest { + interface Raw { + user: string; + password: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigRequest.ts new file mode 100644 index 0000000000..e2aa167238 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateGameNamespaceMatchmakerConfigRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.ValidateGameNamespaceMatchmakerConfigRequest.Raw, + Rivet.cloud.games.namespaces.ValidateGameNamespaceMatchmakerConfigRequest +> = core.serialization.object({ + lobbyCountMax: core.serialization.property("lobby_count_max", core.serialization.number()), + maxPlayers: core.serialization.property("max_players", core.serialization.number()), +}); + +export declare namespace ValidateGameNamespaceMatchmakerConfigRequest { + interface Raw { + lobby_count_max: number; + max_players: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigResponse.ts new file mode 100644 index 0000000000..8c0ab5f318 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceMatchmakerConfigResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateGameNamespaceMatchmakerConfigResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.ValidateGameNamespaceMatchmakerConfigResponse.Raw, + Rivet.cloud.games.namespaces.ValidateGameNamespaceMatchmakerConfigResponse +> = core.serialization.object({ + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).ValidationError) + ), +}); + +export declare namespace ValidateGameNamespaceMatchmakerConfigResponse { + interface Raw { + errors: serializers.ValidationError.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceRequest.ts new file mode 100644 index 0000000000..569a9e0dcf --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 ValidateGameNamespaceRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.ValidateGameNamespaceRequest.Raw, + Rivet.cloud.games.namespaces.ValidateGameNamespaceRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../../../..")).DisplayName) + ), + nameId: core.serialization.property("name_id", core.serialization.string()), +}); + +export declare namespace ValidateGameNamespaceRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + name_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceResponse.ts new file mode 100644 index 0000000000..6158579c09 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateGameNamespaceResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.ValidateGameNamespaceResponse.Raw, + Rivet.cloud.games.namespaces.ValidateGameNamespaceResponse +> = core.serialization.object({ + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).ValidationError) + ), +}); + +export declare namespace ValidateGameNamespaceResponse { + interface Raw { + errors: serializers.ValidationError.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentRequest.ts new file mode 100644 index 0000000000..1419bcab97 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentRequest.ts @@ -0,0 +1,29 @@ +/** + * 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 ValidateGameNamespaceTokenDevelopmentRequest: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.ValidateGameNamespaceTokenDevelopmentRequest.Raw, + Rivet.cloud.games.namespaces.ValidateGameNamespaceTokenDevelopmentRequest +> = core.serialization.object({ + hostname: core.serialization.string(), + lobbyPorts: core.serialization.property( + "lobby_ports", + core.serialization.list( + core.serialization.lazyObject( + async () => (await import("../../../../../../..")).cloud.version.matchmaker.LobbyGroupRuntimeDockerPort + ) + ) + ), +}); + +export declare namespace ValidateGameNamespaceTokenDevelopmentRequest { + interface Raw { + hostname: string; + lobby_ports: serializers.cloud.version.matchmaker.LobbyGroupRuntimeDockerPort.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentResponse.ts new file mode 100644 index 0000000000..89c21c8fba --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/ValidateGameNamespaceTokenDevelopmentResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateGameNamespaceTokenDevelopmentResponse: core.serialization.ObjectSchema< + serializers.cloud.games.namespaces.ValidateGameNamespaceTokenDevelopmentResponse.Raw, + Rivet.cloud.games.namespaces.ValidateGameNamespaceTokenDevelopmentResponse +> = core.serialization.object({ + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).ValidationError) + ), +}); + +export declare namespace ValidateGameNamespaceTokenDevelopmentResponse { + interface Raw { + errors: serializers.ValidationError.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/index.ts new file mode 100644 index 0000000000..7fa5c9329d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/namespaces/types/index.ts @@ -0,0 +1,20 @@ +export * from "./InspectResponse"; +export * from "./CreateGameNamespaceRequest"; +export * from "./CreateGameNamespaceResponse"; +export * from "./ValidateGameNamespaceRequest"; +export * from "./ValidateGameNamespaceResponse"; +export * from "./GetGameNamespaceByIdResponse"; +export * from "./UpdateNamespaceCdnAuthUserRequest"; +export * from "./SetNamespaceCdnAuthTypeRequest"; +export * from "./ToggleNamespaceDomainPublicAuthRequest"; +export * from "./AddNamespaceDomainRequest"; +export * from "./UpdateGameNamespaceMatchmakerConfigRequest"; +export * from "./GetGameNamespaceVersionHistoryResponse"; +export * from "./ValidateGameNamespaceMatchmakerConfigRequest"; +export * from "./ValidateGameNamespaceMatchmakerConfigResponse"; +export * from "./CreateGameNamespaceTokenDevelopmentRequest"; +export * from "./CreateGameNamespaceTokenDevelopmentResponse"; +export * from "./ValidateGameNamespaceTokenDevelopmentRequest"; +export * from "./ValidateGameNamespaceTokenDevelopmentResponse"; +export * from "./CreateGameNamespaceTokenPublicResponse"; +export * from "./UpdateGameNamespaceVersionRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/tokens/types/CreateCloudTokenResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/tokens/types/CreateCloudTokenResponse.ts new file mode 100644 index 0000000000..f0ac8bf969 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/tokens/types/CreateCloudTokenResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CreateCloudTokenResponse: core.serialization.ObjectSchema< + serializers.cloud.games.CreateCloudTokenResponse.Raw, + Rivet.cloud.games.CreateCloudTokenResponse +> = core.serialization.object({ + token: core.serialization.string(), +}); + +export declare namespace CreateCloudTokenResponse { + interface Raw { + token: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/tokens/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/tokens/types/index.ts new file mode 100644 index 0000000000..c6eb67fbbe --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/tokens/types/index.ts @@ -0,0 +1 @@ +export * from "./CreateCloudTokenResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/CreateGameVersionRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/CreateGameVersionRequest.ts new file mode 100644 index 0000000000..5f627a0724 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/CreateGameVersionRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 CreateGameVersionRequest: core.serialization.ObjectSchema< + serializers.cloud.games.CreateGameVersionRequest.Raw, + Rivet.cloud.games.CreateGameVersionRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../../../..")).DisplayName) + ), + config: core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.version.Config), +}); + +export declare namespace CreateGameVersionRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + config: serializers.cloud.version.Config.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/CreateGameVersionResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/CreateGameVersionResponse.ts new file mode 100644 index 0000000000..127dbf1f17 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/CreateGameVersionResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CreateGameVersionResponse: core.serialization.ObjectSchema< + serializers.cloud.games.CreateGameVersionResponse.Raw, + Rivet.cloud.games.CreateGameVersionResponse +> = core.serialization.object({ + versionId: core.serialization.property("version_id", core.serialization.string()), +}); + +export declare namespace CreateGameVersionResponse { + interface Raw { + version_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/GetGameVersionByIdResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/GetGameVersionByIdResponse.ts new file mode 100644 index 0000000000..78e599f9c4 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/GetGameVersionByIdResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 GetGameVersionByIdResponse: core.serialization.ObjectSchema< + serializers.cloud.games.GetGameVersionByIdResponse.Raw, + Rivet.cloud.games.GetGameVersionByIdResponse +> = core.serialization.object({ + version: core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.version.Full), +}); + +export declare namespace GetGameVersionByIdResponse { + interface Raw { + version: serializers.cloud.version.Full.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ReserveVersionNameResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ReserveVersionNameResponse.ts new file mode 100644 index 0000000000..dea6c66718 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ReserveVersionNameResponse.ts @@ -0,0 +1,23 @@ +/** + * 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 ReserveVersionNameResponse: core.serialization.ObjectSchema< + serializers.cloud.games.ReserveVersionNameResponse.Raw, + Rivet.cloud.games.ReserveVersionNameResponse +> = core.serialization.object({ + versionDisplayName: core.serialization.property( + "version_display_name", + core.serialization.lazy(async () => (await import("../../../../../../..")).DisplayName) + ), +}); + +export declare namespace ReserveVersionNameResponse { + interface Raw { + version_display_name: serializers.DisplayName.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionRequest.ts new file mode 100644 index 0000000000..05d23ddb0c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionRequest.ts @@ -0,0 +1,25 @@ +/** + * 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 ValidateGameVersionRequest: core.serialization.ObjectSchema< + serializers.cloud.games.ValidateGameVersionRequest.Raw, + Rivet.cloud.games.ValidateGameVersionRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../../../..")).DisplayName) + ), + config: core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.version.Config), +}); + +export declare namespace ValidateGameVersionRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + config: serializers.cloud.version.Config.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionResponse.ts new file mode 100644 index 0000000000..454f07aa45 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/ValidateGameVersionResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateGameVersionResponse: core.serialization.ObjectSchema< + serializers.cloud.games.ValidateGameVersionResponse.Raw, + Rivet.cloud.games.ValidateGameVersionResponse +> = core.serialization.object({ + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).ValidationError) + ), +}); + +export declare namespace ValidateGameVersionResponse { + interface Raw { + errors: serializers.ValidationError.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/index.ts new file mode 100644 index 0000000000..893aa27b04 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/resources/versions/types/index.ts @@ -0,0 +1,6 @@ +export * from "./CreateGameVersionRequest"; +export * from "./CreateGameVersionResponse"; +export * from "./ReserveVersionNameResponse"; +export * from "./ValidateGameVersionRequest"; +export * from "./ValidateGameVersionResponse"; +export * from "./GetGameVersionByIdResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/CreateGameRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/CreateGameRequest.ts new file mode 100644 index 0000000000..1b892decfa --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/CreateGameRequest.ts @@ -0,0 +1,30 @@ +/** + * 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 CreateGameRequest: core.serialization.ObjectSchema< + serializers.cloud.games.CreateGameRequest.Raw, + Rivet.cloud.games.CreateGameRequest +> = core.serialization.object({ + nameId: core.serialization.property( + "name_id", + core.serialization.lazy(async () => (await import("../../../../..")).Identifier).optional() + ), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + developerGroupId: core.serialization.property("developer_group_id", core.serialization.string()), +}); + +export declare namespace CreateGameRequest { + interface Raw { + name_id?: serializers.Identifier.Raw | null; + display_name: serializers.DisplayName.Raw; + developer_group_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/CreateGameResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/CreateGameResponse.ts new file mode 100644 index 0000000000..21c98fddf7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/CreateGameResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CreateGameResponse: core.serialization.ObjectSchema< + serializers.cloud.games.CreateGameResponse.Raw, + Rivet.cloud.games.CreateGameResponse +> = core.serialization.object({ + gameId: core.serialization.property("game_id", core.serialization.string()), +}); + +export declare namespace CreateGameResponse { + interface Raw { + game_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameBannerUploadPrepareRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameBannerUploadPrepareRequest.ts new file mode 100644 index 0000000000..3ff6aa0782 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameBannerUploadPrepareRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 GameBannerUploadPrepareRequest: core.serialization.ObjectSchema< + serializers.cloud.games.GameBannerUploadPrepareRequest.Raw, + Rivet.cloud.games.GameBannerUploadPrepareRequest +> = core.serialization.object({ + path: core.serialization.string(), + mime: core.serialization.string().optional(), + contentLength: core.serialization.property("content_length", core.serialization.number()), +}); + +export declare namespace GameBannerUploadPrepareRequest { + interface Raw { + path: string; + mime?: string | null; + content_length: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameBannerUploadPrepareResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameBannerUploadPrepareResponse.ts new file mode 100644 index 0000000000..ed9240c0f8 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameBannerUploadPrepareResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 GameBannerUploadPrepareResponse: core.serialization.ObjectSchema< + serializers.cloud.games.GameBannerUploadPrepareResponse.Raw, + Rivet.cloud.games.GameBannerUploadPrepareResponse +> = core.serialization.object({ + uploadId: core.serialization.property("upload_id", core.serialization.string()), + presignedRequest: core.serialization.property( + "presigned_request", + core.serialization.lazyObject(async () => (await import("../../../../..")).upload.PresignedRequest) + ), +}); + +export declare namespace GameBannerUploadPrepareResponse { + interface Raw { + upload_id: string; + presigned_request: serializers.upload.PresignedRequest.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameLogoUploadPrepareRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameLogoUploadPrepareRequest.ts new file mode 100644 index 0000000000..a9fd9a13b9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameLogoUploadPrepareRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 GameLogoUploadPrepareRequest: core.serialization.ObjectSchema< + serializers.cloud.games.GameLogoUploadPrepareRequest.Raw, + Rivet.cloud.games.GameLogoUploadPrepareRequest +> = core.serialization.object({ + path: core.serialization.string(), + mime: core.serialization.string().optional(), + contentLength: core.serialization.property("content_length", core.serialization.number()), +}); + +export declare namespace GameLogoUploadPrepareRequest { + interface Raw { + path: string; + mime?: string | null; + content_length: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameLogoUploadPrepareResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameLogoUploadPrepareResponse.ts new file mode 100644 index 0000000000..1d779fa192 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GameLogoUploadPrepareResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 GameLogoUploadPrepareResponse: core.serialization.ObjectSchema< + serializers.cloud.games.GameLogoUploadPrepareResponse.Raw, + Rivet.cloud.games.GameLogoUploadPrepareResponse +> = core.serialization.object({ + uploadId: core.serialization.property("upload_id", core.serialization.string()), + presignedRequest: core.serialization.property( + "presigned_request", + core.serialization.lazyObject(async () => (await import("../../../../..")).upload.PresignedRequest) + ), +}); + +export declare namespace GameLogoUploadPrepareResponse { + interface Raw { + upload_id: string; + presigned_request: serializers.upload.PresignedRequest.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GetGameByIdResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GetGameByIdResponse.ts new file mode 100644 index 0000000000..6370466e60 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GetGameByIdResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetGameByIdResponse: core.serialization.ObjectSchema< + serializers.cloud.games.GetGameByIdResponse.Raw, + Rivet.cloud.games.GetGameByIdResponse +> = core.serialization.object({ + game: core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.GameFull), + watch: core.serialization.lazyObject(async () => (await import("../../../../..")).WatchResponse), +}); + +export declare namespace GetGameByIdResponse { + interface Raw { + game: serializers.cloud.GameFull.Raw; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GetGamesResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GetGamesResponse.ts new file mode 100644 index 0000000000..df9485716a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/GetGamesResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 GetGamesResponse: core.serialization.ObjectSchema< + serializers.cloud.games.GetGamesResponse.Raw, + Rivet.cloud.games.GetGamesResponse +> = core.serialization.object({ + games: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).game.Summary) + ), + groups: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).group.Summary) + ), + watch: core.serialization.lazyObject(async () => (await import("../../../../..")).WatchResponse), +}); + +export declare namespace GetGamesResponse { + interface Raw { + games: serializers.game.Summary.Raw[]; + groups: serializers.group.Summary.Raw[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/ValidateGameRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/ValidateGameRequest.ts new file mode 100644 index 0000000000..bba92b08dc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/ValidateGameRequest.ts @@ -0,0 +1,28 @@ +/** + * 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 ValidateGameRequest: core.serialization.ObjectSchema< + serializers.cloud.games.ValidateGameRequest.Raw, + Rivet.cloud.games.ValidateGameRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + nameId: core.serialization.property( + "name_id", + core.serialization.lazy(async () => (await import("../../../../..")).Identifier).optional() + ), +}); + +export declare namespace ValidateGameRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + name_id?: serializers.Identifier.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/ValidateGameResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/ValidateGameResponse.ts new file mode 100644 index 0000000000..aa723f2677 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/ValidateGameResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateGameResponse: core.serialization.ObjectSchema< + serializers.cloud.games.ValidateGameResponse.Raw, + Rivet.cloud.games.ValidateGameResponse +> = core.serialization.object({ + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).ValidationError) + ), +}); + +export declare namespace ValidateGameResponse { + interface Raw { + errors: serializers.ValidationError.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/index.ts new file mode 100644 index 0000000000..4ee3f44932 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/games/types/index.ts @@ -0,0 +1,10 @@ +export * from "./GetGamesResponse"; +export * from "./CreateGameRequest"; +export * from "./CreateGameResponse"; +export * from "./ValidateGameRequest"; +export * from "./ValidateGameResponse"; +export * from "./GetGameByIdResponse"; +export * from "./GameBannerUploadPrepareRequest"; +export * from "./GameBannerUploadPrepareResponse"; +export * from "./GameLogoUploadPrepareRequest"; +export * from "./GameLogoUploadPrepareResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/ValidateGroupRequest.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/ValidateGroupRequest.ts new file mode 100644 index 0000000000..34fd7659bc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/ValidateGroupRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 ValidateGroupRequest: core.serialization.ObjectSchema< + serializers.cloud.ValidateGroupRequest.Raw, + Rivet.cloud.ValidateGroupRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), +}); + +export declare namespace ValidateGroupRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/ValidateGroupResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/ValidateGroupResponse.ts new file mode 100644 index 0000000000..0d9bf6c634 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/ValidateGroupResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateGroupResponse: core.serialization.ObjectSchema< + serializers.cloud.ValidateGroupResponse.Raw, + Rivet.cloud.ValidateGroupResponse +> = core.serialization.object({ + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).ValidationError) + ), +}); + +export declare namespace ValidateGroupResponse { + interface Raw { + errors: serializers.ValidationError.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/index.ts new file mode 100644 index 0000000000..4f4b12381a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/groups/types/index.ts @@ -0,0 +1,2 @@ +export * from "./ValidateGroupRequest"; +export * from "./ValidateGroupResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/logs/types/GetRayPerfLogsResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/logs/types/GetRayPerfLogsResponse.ts new file mode 100644 index 0000000000..c6ccf3fd0a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/logs/types/GetRayPerfLogsResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 GetRayPerfLogsResponse: core.serialization.ObjectSchema< + serializers.cloud.GetRayPerfLogsResponse.Raw, + Rivet.cloud.GetRayPerfLogsResponse +> = core.serialization.object({ + perfLists: core.serialization.property( + "perf_lists", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.SvcPerf) + ) + ), +}); + +export declare namespace GetRayPerfLogsResponse { + interface Raw { + perf_lists: serializers.cloud.SvcPerf.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/logs/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/logs/types/index.ts new file mode 100644 index 0000000000..3e48b7404b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/logs/types/index.ts @@ -0,0 +1 @@ +export * from "./GetRayPerfLogsResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/tiers/types/GetRegionTiersResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/tiers/types/GetRegionTiersResponse.ts new file mode 100644 index 0000000000..f54657b7fc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/tiers/types/GetRegionTiersResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetRegionTiersResponse: core.serialization.ObjectSchema< + serializers.cloud.GetRegionTiersResponse.Raw, + Rivet.cloud.GetRegionTiersResponse +> = core.serialization.object({ + tiers: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.RegionTier) + ), +}); + +export declare namespace GetRegionTiersResponse { + interface Raw { + tiers: serializers.cloud.RegionTier.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/tiers/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/tiers/types/index.ts new file mode 100644 index 0000000000..93a8b71ceb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/tiers/types/index.ts @@ -0,0 +1 @@ +export * from "./GetRegionTiersResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Config.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Config.ts new file mode 100644 index 0000000000..769241bdf8 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Config.ts @@ -0,0 +1,33 @@ +/** + * 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 Config: core.serialization.ObjectSchema< + serializers.cloud.version.cdn.Config.Raw, + Rivet.cloud.version.cdn.Config +> = core.serialization.object({ + buildCommand: core.serialization.property("build_command", core.serialization.string().optional()), + buildOutput: core.serialization.property("build_output", core.serialization.string().optional()), + buildEnv: core.serialization.property( + "build_env", + core.serialization.record(core.serialization.string(), core.serialization.string()).optional() + ), + siteId: core.serialization.property("site_id", core.serialization.string().optional()), + routes: core.serialization + .list(core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.version.cdn.Route)) + .optional(), +}); + +export declare namespace Config { + interface Raw { + build_command?: string | null; + build_output?: string | null; + build_env?: Record | null; + site_id?: string | null; + routes?: serializers.cloud.version.cdn.Route.Raw[] | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/CustomHeadersMiddleware.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/CustomHeadersMiddleware.ts new file mode 100644 index 0000000000..0753392e1e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/CustomHeadersMiddleware.ts @@ -0,0 +1,22 @@ +/** + * 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 CustomHeadersMiddleware: core.serialization.ObjectSchema< + serializers.cloud.version.cdn.CustomHeadersMiddleware.Raw, + Rivet.cloud.version.cdn.CustomHeadersMiddleware +> = core.serialization.object({ + headers: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.version.cdn.Header) + ), +}); + +export declare namespace CustomHeadersMiddleware { + interface Raw { + headers: serializers.cloud.version.cdn.Header.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Header.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Header.ts new file mode 100644 index 0000000000..a1d3815d66 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Header.ts @@ -0,0 +1,22 @@ +/** + * 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 Header: core.serialization.ObjectSchema< + serializers.cloud.version.cdn.Header.Raw, + Rivet.cloud.version.cdn.Header +> = core.serialization.object({ + name: core.serialization.string(), + value: core.serialization.string(), +}); + +export declare namespace Header { + interface Raw { + name: string; + value: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Middleware.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Middleware.ts new file mode 100644 index 0000000000..e9403b27d3 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Middleware.ts @@ -0,0 +1,22 @@ +/** + * 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 Middleware: core.serialization.ObjectSchema< + serializers.cloud.version.cdn.Middleware.Raw, + Rivet.cloud.version.cdn.Middleware +> = core.serialization.object({ + kind: core.serialization.lazyObject( + async () => (await import("../../../../../../..")).cloud.version.cdn.MiddlewareKind + ), +}); + +export declare namespace Middleware { + interface Raw { + kind: serializers.cloud.version.cdn.MiddlewareKind.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/MiddlewareKind.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/MiddlewareKind.ts new file mode 100644 index 0000000000..e09edbd05c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/MiddlewareKind.ts @@ -0,0 +1,25 @@ +/** + * 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 MiddlewareKind: core.serialization.ObjectSchema< + serializers.cloud.version.cdn.MiddlewareKind.Raw, + Rivet.cloud.version.cdn.MiddlewareKind +> = core.serialization.object({ + customHeaders: core.serialization.property( + "custom_headers", + core.serialization + .lazyObject(async () => (await import("../../../../../../..")).cloud.version.cdn.CustomHeadersMiddleware) + .optional() + ), +}); + +export declare namespace MiddlewareKind { + interface Raw { + custom_headers?: serializers.cloud.version.cdn.CustomHeadersMiddleware.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Route.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Route.ts new file mode 100644 index 0000000000..4629320e65 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/Route.ts @@ -0,0 +1,26 @@ +/** + * 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 Route: core.serialization.ObjectSchema< + serializers.cloud.version.cdn.Route.Raw, + Rivet.cloud.version.cdn.Route +> = core.serialization.object({ + glob: core.serialization.string(), + priority: core.serialization.number(), + middlewares: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../../../..")).cloud.version.cdn.Middleware) + ), +}); + +export declare namespace Route { + interface Raw { + glob: string; + priority: number; + middlewares: serializers.cloud.version.cdn.Middleware.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/index.ts new file mode 100644 index 0000000000..dc7e5532f1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/cdn/types/index.ts @@ -0,0 +1,6 @@ +export * from "./Config"; +export * from "./Route"; +export * from "./Middleware"; +export * from "./MiddlewareKind"; +export * from "./CustomHeadersMiddleware"; +export * from "./Header"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/custom/types/CustomConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/custom/types/CustomConfig.ts new file mode 100644 index 0000000000..7086b4fc44 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/custom/types/CustomConfig.ts @@ -0,0 +1,16 @@ +/** + * 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 CustomConfig: core.serialization.ObjectSchema< + serializers.cloud.version.engine.CustomConfig.Raw, + Rivet.cloud.version.engine.CustomConfig +> = core.serialization.object({}); + +export declare namespace CustomConfig { + interface Raw {} +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/custom/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/custom/types/index.ts new file mode 100644 index 0000000000..381f2b6981 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/custom/types/index.ts @@ -0,0 +1 @@ +export * from "./CustomConfig"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/godot/types/GodotConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/godot/types/GodotConfig.ts new file mode 100644 index 0000000000..809dc2834d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/godot/types/GodotConfig.ts @@ -0,0 +1,16 @@ +/** + * 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 GodotConfig: core.serialization.ObjectSchema< + serializers.cloud.version.engine.GodotConfig.Raw, + Rivet.cloud.version.engine.GodotConfig +> = core.serialization.object({}); + +export declare namespace GodotConfig { + interface Raw {} +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/godot/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/godot/types/index.ts new file mode 100644 index 0000000000..7cea9775b4 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/godot/types/index.ts @@ -0,0 +1 @@ +export * from "./GodotConfig"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/html5/types/Html5Config.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/html5/types/Html5Config.ts new file mode 100644 index 0000000000..a9596aa25f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/html5/types/Html5Config.ts @@ -0,0 +1,16 @@ +/** + * 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 Html5Config: core.serialization.ObjectSchema< + serializers.cloud.version.engine.Html5Config.Raw, + Rivet.cloud.version.engine.Html5Config +> = core.serialization.object({}); + +export declare namespace Html5Config { + interface Raw {} +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/html5/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/html5/types/index.ts new file mode 100644 index 0000000000..654a44c8f9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/html5/types/index.ts @@ -0,0 +1 @@ +export * from "./Html5Config"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unity/types/UnityConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unity/types/UnityConfig.ts new file mode 100644 index 0000000000..8888544028 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unity/types/UnityConfig.ts @@ -0,0 +1,16 @@ +/** + * 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 UnityConfig: core.serialization.ObjectSchema< + serializers.cloud.version.engine.UnityConfig.Raw, + Rivet.cloud.version.engine.UnityConfig +> = core.serialization.object({}); + +export declare namespace UnityConfig { + interface Raw {} +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unity/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unity/types/index.ts new file mode 100644 index 0000000000..1c90b32602 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unity/types/index.ts @@ -0,0 +1 @@ +export * from "./UnityConfig"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unreal/types/UnrealConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unreal/types/UnrealConfig.ts new file mode 100644 index 0000000000..63a7099395 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unreal/types/UnrealConfig.ts @@ -0,0 +1,20 @@ +/** + * 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 UnrealConfig: core.serialization.ObjectSchema< + serializers.cloud.version.engine.UnrealConfig.Raw, + Rivet.cloud.version.engine.UnrealConfig +> = core.serialization.object({ + gameModule: core.serialization.property("game_module", core.serialization.string()), +}); + +export declare namespace UnrealConfig { + interface Raw { + game_module: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unreal/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unreal/types/index.ts new file mode 100644 index 0000000000..3f35012393 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/resources/unreal/types/index.ts @@ -0,0 +1 @@ +export * from "./UnrealConfig"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/types/Config.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/types/Config.ts new file mode 100644 index 0000000000..ece2271cf6 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/types/Config.ts @@ -0,0 +1,38 @@ +/** + * 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 Config: core.serialization.ObjectSchema< + serializers.cloud.version.engine.Config.Raw, + Rivet.cloud.version.engine.Config +> = core.serialization.object({ + unity: core.serialization + .lazyObject(async () => (await import("../../../../../../..")).cloud.version.engine.UnityConfig) + .optional(), + unreal: core.serialization + .lazyObject(async () => (await import("../../../../../../..")).cloud.version.engine.UnrealConfig) + .optional(), + godot: core.serialization + .lazyObject(async () => (await import("../../../../../../..")).cloud.version.engine.GodotConfig) + .optional(), + html5: core.serialization + .lazyObject(async () => (await import("../../../../../../..")).cloud.version.engine.Html5Config) + .optional(), + custom: core.serialization + .lazyObject(async () => (await import("../../../../../../..")).cloud.version.engine.CustomConfig) + .optional(), +}); + +export declare namespace Config { + interface Raw { + unity?: serializers.cloud.version.engine.UnityConfig.Raw | null; + unreal?: serializers.cloud.version.engine.UnrealConfig.Raw | null; + godot?: serializers.cloud.version.engine.GodotConfig.Raw | null; + html5?: serializers.cloud.version.engine.Html5Config.Raw | null; + custom?: serializers.cloud.version.engine.CustomConfig.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/types/index.ts new file mode 100644 index 0000000000..f7ca0fcfbb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/engine/types/index.ts @@ -0,0 +1 @@ +export * from "./Config"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/Config.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/Config.ts new file mode 100644 index 0000000000..41fb261bc0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/Config.ts @@ -0,0 +1,47 @@ +/** + * 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 Config: core.serialization.ObjectSchema< + serializers.cloud.version.identity.Config.Raw, + Rivet.cloud.version.identity.Config +> = core.serialization.object({ + displayNames: core.serialization.property( + "display_names", + core.serialization.list(core.serialization.string()).optional() + ), + avatars: core.serialization.list(core.serialization.string()).optional(), + customDisplayNames: core.serialization.property( + "custom_display_names", + core.serialization + .list( + core.serialization.lazyObject( + async () => (await import("../../../../../../..")).cloud.version.identity.CustomDisplayName + ) + ) + .optional() + ), + customAvatars: core.serialization.property( + "custom_avatars", + core.serialization + .list( + core.serialization.lazyObject( + async () => (await import("../../../../../../..")).cloud.version.identity.CustomAvatar + ) + ) + .optional() + ), +}); + +export declare namespace Config { + interface Raw { + display_names?: string[] | null; + avatars?: string[] | null; + custom_display_names?: serializers.cloud.version.identity.CustomDisplayName.Raw[] | null; + custom_avatars?: serializers.cloud.version.identity.CustomAvatar.Raw[] | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/CustomAvatar.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/CustomAvatar.ts new file mode 100644 index 0000000000..97b7a7d8e7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/CustomAvatar.ts @@ -0,0 +1,20 @@ +/** + * 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 CustomAvatar: core.serialization.ObjectSchema< + serializers.cloud.version.identity.CustomAvatar.Raw, + Rivet.cloud.version.identity.CustomAvatar +> = core.serialization.object({ + uploadId: core.serialization.property("upload_id", core.serialization.string()), +}); + +export declare namespace CustomAvatar { + interface Raw { + upload_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/CustomDisplayName.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/CustomDisplayName.ts new file mode 100644 index 0000000000..b6fcaa55e1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/CustomDisplayName.ts @@ -0,0 +1,23 @@ +/** + * 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 CustomDisplayName: core.serialization.ObjectSchema< + serializers.cloud.version.identity.CustomDisplayName.Raw, + Rivet.cloud.version.identity.CustomDisplayName +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../../../..")).DisplayName) + ), +}); + +export declare namespace CustomDisplayName { + interface Raw { + display_name: serializers.DisplayName.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/index.ts new file mode 100644 index 0000000000..d076b4dda6 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/identity/types/index.ts @@ -0,0 +1,3 @@ +export * from "./Config"; +export * from "./CustomDisplayName"; +export * from "./CustomAvatar"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/kv/types/Config.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/kv/types/Config.ts new file mode 100644 index 0000000000..15878af91a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/kv/types/Config.ts @@ -0,0 +1,16 @@ +/** + * 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 Config: core.serialization.ObjectSchema< + serializers.cloud.version.kv.Config.Raw, + Rivet.cloud.version.kv.Config +> = core.serialization.object({}); + +export declare namespace Config { + interface Raw {} +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/kv/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/kv/types/index.ts new file mode 100644 index 0000000000..f7ca0fcfbb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/kv/types/index.ts @@ -0,0 +1 @@ +export * from "./Config"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/Captcha.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/Captcha.ts new file mode 100644 index 0000000000..4067c74270 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/Captcha.ts @@ -0,0 +1,30 @@ +/** + * 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 Captcha: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.Captcha.Raw, + Rivet.cloud.version.matchmaker.Captcha +> = core.serialization.object({ + requestsBeforeReverify: core.serialization.property("requests_before_reverify", core.serialization.number()), + verificationTtl: core.serialization.property("verification_ttl", core.serialization.number()), + hcaptcha: core.serialization + .lazyObject(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.CaptchaHcaptcha) + .optional(), + turnstile: core.serialization + .lazyObject(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.CaptchaTurnstile) + .optional(), +}); + +export declare namespace Captcha { + interface Raw { + requests_before_reverify: number; + verification_ttl: number; + hcaptcha?: serializers.cloud.version.matchmaker.CaptchaHcaptcha.Raw | null; + turnstile?: serializers.cloud.version.matchmaker.CaptchaTurnstile.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptcha.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptcha.ts new file mode 100644 index 0000000000..ff4fe4d3ce --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptcha.ts @@ -0,0 +1,26 @@ +/** + * 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 CaptchaHcaptcha: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.CaptchaHcaptcha.Raw, + Rivet.cloud.version.matchmaker.CaptchaHcaptcha +> = core.serialization.object({ + level: core.serialization + .lazy(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.CaptchaHcaptchaLevel) + .optional(), + siteKey: core.serialization.property("site_key", core.serialization.string().optional()), + secretKey: core.serialization.property("secret_key", core.serialization.string().optional()), +}); + +export declare namespace CaptchaHcaptcha { + interface Raw { + level?: serializers.cloud.version.matchmaker.CaptchaHcaptchaLevel.Raw | null; + site_key?: string | null; + secret_key?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptchaLevel.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptchaLevel.ts new file mode 100644 index 0000000000..1102da84bf --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaHcaptchaLevel.ts @@ -0,0 +1,16 @@ +/** + * 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 CaptchaHcaptchaLevel: core.serialization.Schema< + serializers.cloud.version.matchmaker.CaptchaHcaptchaLevel.Raw, + Rivet.cloud.version.matchmaker.CaptchaHcaptchaLevel +> = core.serialization.enum_(["easy", "moderate", "difficult", "always_on"]); + +export declare namespace CaptchaHcaptchaLevel { + type Raw = "easy" | "moderate" | "difficult" | "always_on"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaTurnstile.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaTurnstile.ts new file mode 100644 index 0000000000..3186805399 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/CaptchaTurnstile.ts @@ -0,0 +1,22 @@ +/** + * 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 CaptchaTurnstile: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.CaptchaTurnstile.Raw, + Rivet.cloud.version.matchmaker.CaptchaTurnstile +> = core.serialization.object({ + siteKey: core.serialization.property("site_key", core.serialization.string()), + secretKey: core.serialization.property("secret_key", core.serialization.string()), +}); + +export declare namespace CaptchaTurnstile { + interface Raw { + site_key: string; + secret_key: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/NetworkMode.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/NetworkMode.ts new file mode 100644 index 0000000000..653abaffbe --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/NetworkMode.ts @@ -0,0 +1,16 @@ +/** + * 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 NetworkMode: core.serialization.Schema< + serializers.cloud.version.matchmaker.NetworkMode.Raw, + Rivet.cloud.version.matchmaker.NetworkMode +> = core.serialization.enum_(["bridge", "host"]); + +export declare namespace NetworkMode { + type Raw = "bridge" | "host"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortProtocol.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortProtocol.ts new file mode 100644 index 0000000000..b835c50b0b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortProtocol.ts @@ -0,0 +1,16 @@ +/** + * 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 PortProtocol: core.serialization.Schema< + serializers.cloud.version.matchmaker.PortProtocol.Raw, + Rivet.cloud.version.matchmaker.PortProtocol +> = core.serialization.enum_(["http", "https", "tcp", "tcp_tls", "udp"]); + +export declare namespace PortProtocol { + type Raw = "http" | "https" | "tcp" | "tcp_tls" | "udp"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortRange.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortRange.ts new file mode 100644 index 0000000000..c2668131a1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/PortRange.ts @@ -0,0 +1,22 @@ +/** + * 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 PortRange: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.PortRange.Raw, + Rivet.cloud.version.matchmaker.PortRange +> = core.serialization.object({ + min: core.serialization.number(), + max: core.serialization.number(), +}); + +export declare namespace PortRange { + interface Raw { + min: number; + max: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/ProxyKind.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/ProxyKind.ts new file mode 100644 index 0000000000..44715aeb30 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/ProxyKind.ts @@ -0,0 +1,16 @@ +/** + * 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 ProxyKind: core.serialization.Schema< + serializers.cloud.version.matchmaker.ProxyKind.Raw, + Rivet.cloud.version.matchmaker.ProxyKind +> = core.serialization.enum_(["none", "game_guard"]); + +export declare namespace ProxyKind { + type Raw = "none" | "game_guard"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/index.ts new file mode 100644 index 0000000000..de5db03527 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/common/types/index.ts @@ -0,0 +1,8 @@ +export * from "./PortRange"; +export * from "./PortProtocol"; +export * from "./ProxyKind"; +export * from "./Captcha"; +export * from "./CaptchaHcaptcha"; +export * from "./CaptchaHcaptchaLevel"; +export * from "./CaptchaTurnstile"; +export * from "./NetworkMode"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameMode.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameMode.ts new file mode 100644 index 0000000000..7f9ed910f7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameMode.ts @@ -0,0 +1,64 @@ +/** + * 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 GameMode: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameMode.Raw, + Rivet.cloud.version.matchmaker.GameMode +> = core.serialization.object({ + regions: core.serialization + .record( + core.serialization.string(), + core.serialization.lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeRegion + ) + ) + .optional(), + maxPlayers: core.serialization.property("max_players", core.serialization.number().optional()), + maxPlayersDirect: core.serialization.property("max_players_direct", core.serialization.number().optional()), + maxPlayersParty: core.serialization.property("max_players_party", core.serialization.number().optional()), + docker: core.serialization + .lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeRuntimeDocker + ) + .optional(), + listable: core.serialization.boolean().optional(), + taggable: core.serialization.boolean().optional(), + allowDynamicMaxPlayers: core.serialization.property( + "allow_dynamic_max_players", + core.serialization.boolean().optional() + ), + actions: core.serialization + .lazyObject(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeActions) + .optional(), + tier: core.serialization.string().optional(), + idleLobbies: core.serialization.property( + "idle_lobbies", + core.serialization + .lazyObject( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeIdleLobbiesConfig + ) + .optional() + ), +}); + +export declare namespace GameMode { + interface Raw { + regions?: Record | null; + max_players?: number | null; + max_players_direct?: number | null; + max_players_party?: number | null; + docker?: serializers.cloud.version.matchmaker.GameModeRuntimeDocker.Raw | null; + listable?: boolean | null; + taggable?: boolean | null; + allow_dynamic_max_players?: boolean | null; + actions?: serializers.cloud.version.matchmaker.GameModeActions.Raw | null; + tier?: string | null; + idle_lobbies?: serializers.cloud.version.matchmaker.GameModeIdleLobbiesConfig.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeActions.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeActions.ts new file mode 100644 index 0000000000..3115d063f5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeActions.ts @@ -0,0 +1,36 @@ +/** + * 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 GameModeActions: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeActions.Raw, + Rivet.cloud.version.matchmaker.GameModeActions +> = core.serialization.object({ + find: core.serialization + .lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeFindConfig + ) + .optional(), + join: core.serialization + .lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeJoinConfig + ) + .optional(), + create: core.serialization + .lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeCreateConfig + ) + .optional(), +}); + +export declare namespace GameModeActions { + interface Raw { + find?: serializers.cloud.version.matchmaker.GameModeFindConfig.Raw | null; + join?: serializers.cloud.version.matchmaker.GameModeJoinConfig.Raw | null; + create?: serializers.cloud.version.matchmaker.GameModeCreateConfig.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeCreateConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeCreateConfig.ts new file mode 100644 index 0000000000..aa8bf297d5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeCreateConfig.ts @@ -0,0 +1,45 @@ +/** + * 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 GameModeCreateConfig: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeCreateConfig.Raw, + Rivet.cloud.version.matchmaker.GameModeCreateConfig +> = core.serialization.object({ + enabled: core.serialization.boolean(), + identityRequirement: core.serialization.property( + "identity_requirement", + core.serialization + .lazy( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeIdentityRequirement + ) + .optional() + ), + verification: core.serialization + .lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeVerificationConfig + ) + .optional(), + enablePublic: core.serialization.property("enable_public", core.serialization.boolean().optional()), + enablePrivate: core.serialization.property("enable_private", core.serialization.boolean().optional()), + maxLobbiesPerIdentity: core.serialization.property( + "max_lobbies_per_identity", + core.serialization.number().optional() + ), +}); + +export declare namespace GameModeCreateConfig { + interface Raw { + enabled: boolean; + identity_requirement?: serializers.cloud.version.matchmaker.GameModeIdentityRequirement.Raw | null; + verification?: serializers.cloud.version.matchmaker.GameModeVerificationConfig.Raw | null; + enable_public?: boolean | null; + enable_private?: boolean | null; + max_lobbies_per_identity?: number | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeFindConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeFindConfig.ts new file mode 100644 index 0000000000..4ceedb9e3b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeFindConfig.ts @@ -0,0 +1,36 @@ +/** + * 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 GameModeFindConfig: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeFindConfig.Raw, + Rivet.cloud.version.matchmaker.GameModeFindConfig +> = core.serialization.object({ + enabled: core.serialization.boolean(), + identityRequirement: core.serialization.property( + "identity_requirement", + core.serialization + .lazy( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeIdentityRequirement + ) + .optional() + ), + verification: core.serialization + .lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeVerificationConfig + ) + .optional(), +}); + +export declare namespace GameModeFindConfig { + interface Raw { + enabled: boolean; + identity_requirement?: serializers.cloud.version.matchmaker.GameModeIdentityRequirement.Raw | null; + verification?: serializers.cloud.version.matchmaker.GameModeVerificationConfig.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdentityRequirement.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdentityRequirement.ts new file mode 100644 index 0000000000..bd4e6a0f52 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdentityRequirement.ts @@ -0,0 +1,16 @@ +/** + * 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 GameModeIdentityRequirement: core.serialization.Schema< + serializers.cloud.version.matchmaker.GameModeIdentityRequirement.Raw, + Rivet.cloud.version.matchmaker.GameModeIdentityRequirement +> = core.serialization.enum_(["none", "guest", "registered"]); + +export declare namespace GameModeIdentityRequirement { + type Raw = "none" | "guest" | "registered"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdleLobbiesConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdleLobbiesConfig.ts new file mode 100644 index 0000000000..c4ec0c3820 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeIdleLobbiesConfig.ts @@ -0,0 +1,22 @@ +/** + * 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 GameModeIdleLobbiesConfig: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeIdleLobbiesConfig.Raw, + Rivet.cloud.version.matchmaker.GameModeIdleLobbiesConfig +> = core.serialization.object({ + min: core.serialization.number(), + max: core.serialization.number(), +}); + +export declare namespace GameModeIdleLobbiesConfig { + interface Raw { + min: number; + max: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeJoinConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeJoinConfig.ts new file mode 100644 index 0000000000..e7c05309c2 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeJoinConfig.ts @@ -0,0 +1,36 @@ +/** + * 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 GameModeJoinConfig: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeJoinConfig.Raw, + Rivet.cloud.version.matchmaker.GameModeJoinConfig +> = core.serialization.object({ + enabled: core.serialization.boolean(), + identityRequirement: core.serialization.property( + "identity_requirement", + core.serialization + .lazy( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeIdentityRequirement + ) + .optional() + ), + verification: core.serialization + .lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeVerificationConfig + ) + .optional(), +}); + +export declare namespace GameModeJoinConfig { + interface Raw { + enabled: boolean; + identity_requirement?: serializers.cloud.version.matchmaker.GameModeIdentityRequirement.Raw | null; + verification?: serializers.cloud.version.matchmaker.GameModeVerificationConfig.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRegion.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRegion.ts new file mode 100644 index 0000000000..528f0e658c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRegion.ts @@ -0,0 +1,30 @@ +/** + * 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 GameModeRegion: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeRegion.Raw, + Rivet.cloud.version.matchmaker.GameModeRegion +> = core.serialization.object({ + tier: core.serialization.string().optional(), + idleLobbies: core.serialization.property( + "idle_lobbies", + core.serialization + .lazyObject( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeIdleLobbiesConfig + ) + .optional() + ), +}); + +export declare namespace GameModeRegion { + interface Raw { + tier?: string | null; + idle_lobbies?: serializers.cloud.version.matchmaker.GameModeIdleLobbiesConfig.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDocker.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDocker.ts new file mode 100644 index 0000000000..27f7ce4ee5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDocker.ts @@ -0,0 +1,50 @@ +/** + * 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 GameModeRuntimeDocker: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeRuntimeDocker.Raw, + Rivet.cloud.version.matchmaker.GameModeRuntimeDocker +> = core.serialization.object({ + dockerfile: core.serialization.string().optional(), + buildArgs: core.serialization.property( + "build_args", + core.serialization.record(core.serialization.string(), core.serialization.string()).optional() + ), + image: core.serialization.string().optional(), + imageId: core.serialization.property("image_id", core.serialization.string().optional()), + args: core.serialization.list(core.serialization.string()).optional(), + env: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), + networkMode: core.serialization.property( + "network_mode", + core.serialization + .lazy(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.NetworkMode) + .optional() + ), + ports: core.serialization + .record( + core.serialization.string(), + core.serialization.lazyObject( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.GameModeRuntimeDockerPort + ) + ) + .optional(), +}); + +export declare namespace GameModeRuntimeDocker { + interface Raw { + dockerfile?: string | null; + build_args?: Record | null; + image?: string | null; + image_id?: string | null; + args?: string[] | null; + env?: Record | null; + network_mode?: serializers.cloud.version.matchmaker.NetworkMode.Raw | null; + ports?: Record | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDockerPort.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDockerPort.ts new file mode 100644 index 0000000000..1299e62f7d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeRuntimeDockerPort.ts @@ -0,0 +1,51 @@ +/** + * 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 GameModeRuntimeDockerPort: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeRuntimeDockerPort.Raw, + Rivet.cloud.version.matchmaker.GameModeRuntimeDockerPort +> = core.serialization.object({ + port: core.serialization.number().optional(), + portRange: core.serialization.property( + "port_range", + core.serialization + .lazyObject(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.PortRange) + .optional() + ), + protocol: core.serialization + .lazy(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.PortProtocol) + .optional(), + proxy: core.serialization + .lazy(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.ProxyKind) + .optional(), + devPort: core.serialization.property("dev_port", core.serialization.number().optional()), + devPortRange: core.serialization.property( + "dev_port_range", + core.serialization + .lazyObject(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.PortRange) + .optional() + ), + devProtocol: core.serialization.property( + "dev_protocol", + core.serialization + .lazy(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.PortProtocol) + .optional() + ), +}); + +export declare namespace GameModeRuntimeDockerPort { + interface Raw { + port?: number | null; + port_range?: serializers.cloud.version.matchmaker.PortRange.Raw | null; + protocol?: serializers.cloud.version.matchmaker.PortProtocol.Raw | null; + proxy?: serializers.cloud.version.matchmaker.ProxyKind.Raw | null; + dev_port?: number | null; + dev_port_range?: serializers.cloud.version.matchmaker.PortRange.Raw | null; + dev_protocol?: serializers.cloud.version.matchmaker.PortProtocol.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeVerificationConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeVerificationConfig.ts new file mode 100644 index 0000000000..33e94fe312 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/GameModeVerificationConfig.ts @@ -0,0 +1,22 @@ +/** + * 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 GameModeVerificationConfig: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.GameModeVerificationConfig.Raw, + Rivet.cloud.version.matchmaker.GameModeVerificationConfig +> = core.serialization.object({ + url: core.serialization.string(), + headers: core.serialization.record(core.serialization.string(), core.serialization.string()), +}); + +export declare namespace GameModeVerificationConfig { + interface Raw { + url: string; + headers: Record; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/index.ts new file mode 100644 index 0000000000..724ddf9090 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/gameMode/types/index.ts @@ -0,0 +1,11 @@ +export * from "./GameMode"; +export * from "./GameModeRegion"; +export * from "./GameModeRuntimeDocker"; +export * from "./GameModeRuntimeDockerPort"; +export * from "./GameModeIdleLobbiesConfig"; +export * from "./GameModeActions"; +export * from "./GameModeIdentityRequirement"; +export * from "./GameModeVerificationConfig"; +export * from "./GameModeFindConfig"; +export * from "./GameModeJoinConfig"; +export * from "./GameModeCreateConfig"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroup.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroup.ts new file mode 100644 index 0000000000..cff17539aa --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroup.ts @@ -0,0 +1,36 @@ +/** + * 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 LobbyGroup: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.LobbyGroup.Raw, + Rivet.cloud.version.matchmaker.LobbyGroup +> = core.serialization.object({ + nameId: core.serialization.property("name_id", core.serialization.string()), + regions: core.serialization.list( + core.serialization.lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.LobbyGroupRegion + ) + ), + maxPlayersNormal: core.serialization.property("max_players_normal", core.serialization.number()), + maxPlayersDirect: core.serialization.property("max_players_direct", core.serialization.number()), + maxPlayersParty: core.serialization.property("max_players_party", core.serialization.number()), + runtime: core.serialization.lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.LobbyGroupRuntime + ), +}); + +export declare namespace LobbyGroup { + interface Raw { + name_id: string; + regions: serializers.cloud.version.matchmaker.LobbyGroupRegion.Raw[]; + max_players_normal: number; + max_players_direct: number; + max_players_party: number; + runtime: serializers.cloud.version.matchmaker.LobbyGroupRuntime.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupIdleLobbiesConfig.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupIdleLobbiesConfig.ts new file mode 100644 index 0000000000..9d05d29fca --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupIdleLobbiesConfig.ts @@ -0,0 +1,22 @@ +/** + * 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 LobbyGroupIdleLobbiesConfig: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.LobbyGroupIdleLobbiesConfig.Raw, + Rivet.cloud.version.matchmaker.LobbyGroupIdleLobbiesConfig +> = core.serialization.object({ + minIdleLobbies: core.serialization.property("min_idle_lobbies", core.serialization.number()), + maxIdleLobbies: core.serialization.property("max_idle_lobbies", core.serialization.number()), +}); + +export declare namespace LobbyGroupIdleLobbiesConfig { + interface Raw { + min_idle_lobbies: number; + max_idle_lobbies: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRegion.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRegion.ts new file mode 100644 index 0000000000..4296fd6e00 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRegion.ts @@ -0,0 +1,32 @@ +/** + * 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 LobbyGroupRegion: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.LobbyGroupRegion.Raw, + Rivet.cloud.version.matchmaker.LobbyGroupRegion +> = core.serialization.object({ + regionId: core.serialization.property("region_id", core.serialization.string()), + tierNameId: core.serialization.property("tier_name_id", core.serialization.string()), + idleLobbies: core.serialization.property( + "idle_lobbies", + core.serialization + .lazyObject( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.LobbyGroupIdleLobbiesConfig + ) + .optional() + ), +}); + +export declare namespace LobbyGroupRegion { + interface Raw { + region_id: string; + tier_name_id: string; + idle_lobbies?: serializers.cloud.version.matchmaker.LobbyGroupIdleLobbiesConfig.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntime.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntime.ts new file mode 100644 index 0000000000..cb42453b63 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntime.ts @@ -0,0 +1,24 @@ +/** + * 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 LobbyGroupRuntime: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.LobbyGroupRuntime.Raw, + Rivet.cloud.version.matchmaker.LobbyGroupRuntime +> = core.serialization.object({ + docker: core.serialization + .lazyObject( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.LobbyGroupRuntimeDocker + ) + .optional(), +}); + +export declare namespace LobbyGroupRuntime { + interface Raw { + docker?: serializers.cloud.version.matchmaker.LobbyGroupRuntimeDocker.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDocker.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDocker.ts new file mode 100644 index 0000000000..7011c762ba --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDocker.ts @@ -0,0 +1,46 @@ +/** + * 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 LobbyGroupRuntimeDocker: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.LobbyGroupRuntimeDocker.Raw, + Rivet.cloud.version.matchmaker.LobbyGroupRuntimeDocker +> = core.serialization.object({ + buildId: core.serialization.property("build_id", core.serialization.string().optional()), + args: core.serialization.list(core.serialization.string()), + envVars: core.serialization.property( + "env_vars", + core.serialization.list( + core.serialization.lazyObject( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.LobbyGroupRuntimeDockerEnvVar + ) + ) + ), + networkMode: core.serialization.property( + "network_mode", + core.serialization + .lazy(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.NetworkMode) + .optional() + ), + ports: core.serialization.list( + core.serialization.lazyObject( + async () => + (await import("../../../../../../../../..")).cloud.version.matchmaker.LobbyGroupRuntimeDockerPort + ) + ), +}); + +export declare namespace LobbyGroupRuntimeDocker { + interface Raw { + build_id?: string | null; + args: string[]; + env_vars: serializers.cloud.version.matchmaker.LobbyGroupRuntimeDockerEnvVar.Raw[]; + network_mode?: serializers.cloud.version.matchmaker.NetworkMode.Raw | null; + ports: serializers.cloud.version.matchmaker.LobbyGroupRuntimeDockerPort.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerEnvVar.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerEnvVar.ts new file mode 100644 index 0000000000..49ad2511f8 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerEnvVar.ts @@ -0,0 +1,22 @@ +/** + * 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 LobbyGroupRuntimeDockerEnvVar: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.LobbyGroupRuntimeDockerEnvVar.Raw, + Rivet.cloud.version.matchmaker.LobbyGroupRuntimeDockerEnvVar +> = core.serialization.object({ + key: core.serialization.string(), + value: core.serialization.string(), +}); + +export declare namespace LobbyGroupRuntimeDockerEnvVar { + interface Raw { + key: string; + value: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerPort.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerPort.ts new file mode 100644 index 0000000000..70b579b506 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/LobbyGroupRuntimeDockerPort.ts @@ -0,0 +1,36 @@ +/** + * 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 LobbyGroupRuntimeDockerPort: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.LobbyGroupRuntimeDockerPort.Raw, + Rivet.cloud.version.matchmaker.LobbyGroupRuntimeDockerPort +> = core.serialization.object({ + label: core.serialization.string(), + targetPort: core.serialization.property("target_port", core.serialization.number().optional()), + portRange: core.serialization.property( + "port_range", + core.serialization + .lazyObject(async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.PortRange) + .optional() + ), + proxyProtocol: core.serialization.property( + "proxy_protocol", + core.serialization.lazy( + async () => (await import("../../../../../../../../..")).cloud.version.matchmaker.PortProtocol + ) + ), +}); + +export declare namespace LobbyGroupRuntimeDockerPort { + interface Raw { + label: string; + target_port?: number | null; + port_range?: serializers.cloud.version.matchmaker.PortRange.Raw | null; + proxy_protocol: serializers.cloud.version.matchmaker.PortProtocol.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/index.ts new file mode 100644 index 0000000000..ced14a2af5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/resources/lobbyGroup/types/index.ts @@ -0,0 +1,7 @@ +export * from "./LobbyGroup"; +export * from "./LobbyGroupRuntime"; +export * from "./LobbyGroupRegion"; +export * from "./LobbyGroupRuntimeDocker"; +export * from "./LobbyGroupRuntimeDockerEnvVar"; +export * from "./LobbyGroupRuntimeDockerPort"; +export * from "./LobbyGroupIdleLobbiesConfig"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/types/Config.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/types/Config.ts new file mode 100644 index 0000000000..d8d3053d99 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/types/Config.ts @@ -0,0 +1,77 @@ +/** + * 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 Config: core.serialization.ObjectSchema< + serializers.cloud.version.matchmaker.Config.Raw, + Rivet.cloud.version.matchmaker.Config +> = core.serialization.object({ + gameModes: core.serialization.property( + "game_modes", + core.serialization + .record( + core.serialization.string(), + core.serialization.lazyObject( + async () => (await import("../../../../../../..")).cloud.version.matchmaker.GameMode + ) + ) + .optional() + ), + captcha: core.serialization + .lazyObject(async () => (await import("../../../../../../..")).cloud.version.matchmaker.Captcha) + .optional(), + devHostname: core.serialization.property("dev_hostname", core.serialization.string().optional()), + regions: core.serialization + .record( + core.serialization.string(), + core.serialization.lazyObject( + async () => (await import("../../../../../../..")).cloud.version.matchmaker.GameModeRegion + ) + ) + .optional(), + maxPlayers: core.serialization.property("max_players", core.serialization.number().optional()), + maxPlayersDirect: core.serialization.property("max_players_direct", core.serialization.number().optional()), + maxPlayersParty: core.serialization.property("max_players_party", core.serialization.number().optional()), + docker: core.serialization + .lazyObject(async () => (await import("../../../../../../..")).cloud.version.matchmaker.GameModeRuntimeDocker) + .optional(), + tier: core.serialization.string().optional(), + idleLobbies: core.serialization.property( + "idle_lobbies", + core.serialization + .lazyObject( + async () => (await import("../../../../../../..")).cloud.version.matchmaker.GameModeIdleLobbiesConfig + ) + .optional() + ), + lobbyGroups: core.serialization.property( + "lobby_groups", + core.serialization + .list( + core.serialization.lazyObject( + async () => (await import("../../../../../../..")).cloud.version.matchmaker.LobbyGroup + ) + ) + .optional() + ), +}); + +export declare namespace Config { + interface Raw { + game_modes?: Record | null; + captcha?: serializers.cloud.version.matchmaker.Captcha.Raw | null; + dev_hostname?: string | null; + regions?: Record | null; + max_players?: number | null; + max_players_direct?: number | null; + max_players_party?: number | null; + docker?: serializers.cloud.version.matchmaker.GameModeRuntimeDocker.Raw | null; + tier?: string | null; + idle_lobbies?: serializers.cloud.version.matchmaker.GameModeIdleLobbiesConfig.Raw | null; + lobby_groups?: serializers.cloud.version.matchmaker.LobbyGroup.Raw[] | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/types/index.ts new file mode 100644 index 0000000000..f7ca0fcfbb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/resources/matchmaker/types/index.ts @@ -0,0 +1 @@ +export * from "./Config"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Config.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Config.ts new file mode 100644 index 0000000000..463beb4d8a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Config.ts @@ -0,0 +1,38 @@ +/** + * 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 Config: core.serialization.ObjectSchema = + core.serialization.object({ + scripts: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(), + engine: core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.version.engine.Config) + .optional(), + cdn: core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.version.cdn.Config) + .optional(), + matchmaker: core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.version.matchmaker.Config) + .optional(), + kv: core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.version.kv.Config) + .optional(), + identity: core.serialization + .lazyObject(async () => (await import("../../../../..")).cloud.version.identity.Config) + .optional(), + }); + +export declare namespace Config { + interface Raw { + scripts?: Record | null; + engine?: serializers.cloud.version.engine.Config.Raw | null; + cdn?: serializers.cloud.version.cdn.Config.Raw | null; + matchmaker?: serializers.cloud.version.matchmaker.Config.Raw | null; + kv?: serializers.cloud.version.kv.Config.Raw | null; + identity?: serializers.cloud.version.identity.Config.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Full.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Full.ts new file mode 100644 index 0000000000..21d2a44da7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Full.ts @@ -0,0 +1,30 @@ +/** + * 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 Full: core.serialization.ObjectSchema = + core.serialization.object({ + versionId: core.serialization.property("version_id", core.serialization.string()), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + config: core.serialization.lazyObject(async () => (await import("../../../../..")).cloud.version.Config), + }); + +export declare namespace Full { + interface Raw { + version_id: string; + create_ts: serializers.Timestamp.Raw; + display_name: serializers.DisplayName.Raw; + config: serializers.cloud.version.Config.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Summary.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Summary.ts new file mode 100644 index 0000000000..c8f6bb04dc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/Summary.ts @@ -0,0 +1,30 @@ +/** + * 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 Summary: core.serialization.ObjectSchema< + serializers.cloud.version.Summary.Raw, + Rivet.cloud.version.Summary +> = core.serialization.object({ + versionId: core.serialization.property("version_id", core.serialization.string()), + createTs: core.serialization.property( + "create_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), +}); + +export declare namespace Summary { + interface Raw { + version_id: string; + create_ts: serializers.Timestamp.Raw; + display_name: serializers.DisplayName.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/index.ts new file mode 100644 index 0000000000..ab57cdad09 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/resources/version/types/index.ts @@ -0,0 +1,3 @@ +export * from "./Config"; +export * from "./Full"; +export * from "./Summary"; diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapAccess.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapAccess.ts new file mode 100644 index 0000000000..7767ceb821 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapAccess.ts @@ -0,0 +1,16 @@ +/** + * 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 BootstrapAccess: core.serialization.Schema< + serializers.cloud.BootstrapAccess.Raw, + Rivet.cloud.BootstrapAccess +> = core.serialization.enum_(["public", "private"]); + +export declare namespace BootstrapAccess { + type Raw = "public" | "private"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCaptcha.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCaptcha.ts new file mode 100644 index 0000000000..b3c1691df0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCaptcha.ts @@ -0,0 +1,22 @@ +/** + * 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 BootstrapCaptcha: core.serialization.ObjectSchema< + serializers.cloud.BootstrapCaptcha.Raw, + Rivet.cloud.BootstrapCaptcha +> = core.serialization.object({ + turnstile: core.serialization + .lazyObject(async () => (await import("../../..")).cloud.BootstrapCaptchaTurnstile) + .optional(), +}); + +export declare namespace BootstrapCaptcha { + interface Raw { + turnstile?: serializers.cloud.BootstrapCaptchaTurnstile.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCaptchaTurnstile.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCaptchaTurnstile.ts new file mode 100644 index 0000000000..7879860d50 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCaptchaTurnstile.ts @@ -0,0 +1,20 @@ +/** + * 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 BootstrapCaptchaTurnstile: core.serialization.ObjectSchema< + serializers.cloud.BootstrapCaptchaTurnstile.Raw, + Rivet.cloud.BootstrapCaptchaTurnstile +> = core.serialization.object({ + siteKey: core.serialization.property("site_key", core.serialization.string()), +}); + +export declare namespace BootstrapCaptchaTurnstile { + interface Raw { + site_key: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCluster.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCluster.ts new file mode 100644 index 0000000000..b2ba50b1f8 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapCluster.ts @@ -0,0 +1,16 @@ +/** + * 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 BootstrapCluster: core.serialization.Schema< + serializers.cloud.BootstrapCluster.Raw, + Rivet.cloud.BootstrapCluster +> = core.serialization.enum_(["enterprise", "oss"]); + +export declare namespace BootstrapCluster { + type Raw = "enterprise" | "oss"; +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapDomains.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapDomains.ts new file mode 100644 index 0000000000..16c69fe705 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapDomains.ts @@ -0,0 +1,24 @@ +/** + * 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 BootstrapDomains: core.serialization.ObjectSchema< + serializers.cloud.BootstrapDomains.Raw, + Rivet.cloud.BootstrapDomains +> = core.serialization.object({ + main: core.serialization.string(), + cdn: core.serialization.string(), + job: core.serialization.string(), +}); + +export declare namespace BootstrapDomains { + interface Raw { + main: string; + cdn: string; + job: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapLoginMethods.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapLoginMethods.ts new file mode 100644 index 0000000000..625e142551 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapLoginMethods.ts @@ -0,0 +1,22 @@ +/** + * 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 BootstrapLoginMethods: core.serialization.ObjectSchema< + serializers.cloud.BootstrapLoginMethods.Raw, + Rivet.cloud.BootstrapLoginMethods +> = core.serialization.object({ + accessToken: core.serialization.property("access_token", core.serialization.boolean()), + email: core.serialization.boolean(), +}); + +export declare namespace BootstrapLoginMethods { + interface Raw { + access_token: boolean; + email: boolean; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapOrigins.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapOrigins.ts new file mode 100644 index 0000000000..8c719a4738 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapOrigins.ts @@ -0,0 +1,20 @@ +/** + * 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 BootstrapOrigins: core.serialization.ObjectSchema< + serializers.cloud.BootstrapOrigins.Raw, + Rivet.cloud.BootstrapOrigins +> = core.serialization.object({ + hub: core.serialization.string(), +}); + +export declare namespace BootstrapOrigins { + interface Raw { + hub: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapResponse.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapResponse.ts new file mode 100644 index 0000000000..acd331e3e3 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/BootstrapResponse.ts @@ -0,0 +1,33 @@ +/** + * 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 BootstrapResponse: core.serialization.ObjectSchema< + serializers.cloud.BootstrapResponse.Raw, + Rivet.cloud.BootstrapResponse +> = core.serialization.object({ + cluster: core.serialization.lazy(async () => (await import("../../..")).cloud.BootstrapCluster), + access: core.serialization.lazy(async () => (await import("../../..")).cloud.BootstrapAccess), + domains: core.serialization.lazyObject(async () => (await import("../../..")).cloud.BootstrapDomains).optional(), + origins: core.serialization.lazyObject(async () => (await import("../../..")).cloud.BootstrapOrigins), + captcha: core.serialization.lazyObject(async () => (await import("../../..")).cloud.BootstrapCaptcha), + loginMethods: core.serialization.property( + "login_methods", + core.serialization.lazyObject(async () => (await import("../../..")).cloud.BootstrapLoginMethods) + ), +}); + +export declare namespace BootstrapResponse { + interface Raw { + cluster: serializers.cloud.BootstrapCluster.Raw; + access: serializers.cloud.BootstrapAccess.Raw; + domains?: serializers.cloud.BootstrapDomains.Raw | null; + origins: serializers.cloud.BootstrapOrigins.Raw; + captcha: serializers.cloud.BootstrapCaptcha.Raw; + login_methods: serializers.cloud.BootstrapLoginMethods.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/cloud/types/index.ts b/sdks/full/typescript/src/serialization/resources/cloud/types/index.ts new file mode 100644 index 0000000000..73c144b622 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/cloud/types/index.ts @@ -0,0 +1,8 @@ +export * from "./BootstrapResponse"; +export * from "./BootstrapCluster"; +export * from "./BootstrapAccess"; +export * from "./BootstrapDomains"; +export * from "./BootstrapOrigins"; +export * from "./BootstrapCaptcha"; +export * from "./BootstrapCaptchaTurnstile"; +export * from "./BootstrapLoginMethods"; diff --git a/sdks/full/typescript/src/serialization/resources/common/types/AccountNumber.ts b/sdks/full/typescript/src/serialization/resources/common/types/AccountNumber.ts new file mode 100644 index 0000000000..0bfd7af718 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/AccountNumber.ts @@ -0,0 +1,14 @@ +/** + * 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 AccountNumber: core.serialization.Schema = + core.serialization.number(); + +export declare namespace AccountNumber { + type Raw = number; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/Bio.ts b/sdks/full/typescript/src/serialization/resources/common/types/Bio.ts new file mode 100644 index 0000000000..0f45d02993 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/Bio.ts @@ -0,0 +1,13 @@ +/** + * 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 Bio: core.serialization.Schema = core.serialization.string(); + +export declare namespace Bio { + type Raw = string; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/DisplayName.ts b/sdks/full/typescript/src/serialization/resources/common/types/DisplayName.ts new file mode 100644 index 0000000000..f315a99305 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/DisplayName.ts @@ -0,0 +1,14 @@ +/** + * 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 DisplayName: core.serialization.Schema = + core.serialization.string(); + +export declare namespace DisplayName { + type Raw = string; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/Email.ts b/sdks/full/typescript/src/serialization/resources/common/types/Email.ts new file mode 100644 index 0000000000..eb7088ecb5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/Email.ts @@ -0,0 +1,13 @@ +/** + * 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 Email: core.serialization.Schema = core.serialization.string(); + +export declare namespace Email { + type Raw = string; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/EmptyObject.ts b/sdks/full/typescript/src/serialization/resources/common/types/EmptyObject.ts new file mode 100644 index 0000000000..3b824b9861 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/EmptyObject.ts @@ -0,0 +1,14 @@ +/** + * 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 EmptyObject: core.serialization.ObjectSchema = + core.serialization.object({}); + +export declare namespace EmptyObject { + interface Raw {} +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/ErrorBody.ts b/sdks/full/typescript/src/serialization/resources/common/types/ErrorBody.ts new file mode 100644 index 0000000000..522f9d39b0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/ErrorBody.ts @@ -0,0 +1,24 @@ +/** + * 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 ErrorBody: core.serialization.ObjectSchema = + core.serialization.object({ + code: core.serialization.string(), + message: core.serialization.string(), + documentation: core.serialization.string().optional(), + metadata: core.serialization.lazy(async () => (await import("../../..")).ErrorMetadata).optional(), + }); + +export declare namespace ErrorBody { + interface Raw { + code: string; + message: string; + documentation?: string | null; + metadata?: (serializers.ErrorMetadata.Raw | undefined) | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/ErrorMetadata.ts b/sdks/full/typescript/src/serialization/resources/common/types/ErrorMetadata.ts new file mode 100644 index 0000000000..c060927b7b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/ErrorMetadata.ts @@ -0,0 +1,14 @@ +/** + * 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 ErrorMetadata: core.serialization.Schema = + core.serialization.unknown(); + +export declare namespace ErrorMetadata { + type Raw = unknown; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/GlobalEventNotification.ts b/sdks/full/typescript/src/serialization/resources/common/types/GlobalEventNotification.ts new file mode 100644 index 0000000000..f43bca0333 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/GlobalEventNotification.ts @@ -0,0 +1,26 @@ +/** + * 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 GlobalEventNotification: core.serialization.ObjectSchema< + serializers.GlobalEventNotification.Raw, + Rivet.GlobalEventNotification +> = core.serialization.object({ + title: core.serialization.string(), + description: core.serialization.string(), + thumbnailUrl: core.serialization.property("thumbnail_url", core.serialization.string()), + url: core.serialization.string(), +}); + +export declare namespace GlobalEventNotification { + interface Raw { + title: string; + description: string; + thumbnail_url: string; + url: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/Identifier.ts b/sdks/full/typescript/src/serialization/resources/common/types/Identifier.ts new file mode 100644 index 0000000000..043a639c46 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/Identifier.ts @@ -0,0 +1,14 @@ +/** + * 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 Identifier: core.serialization.Schema = + core.serialization.string(); + +export declare namespace Identifier { + type Raw = string; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/Jwt.ts b/sdks/full/typescript/src/serialization/resources/common/types/Jwt.ts new file mode 100644 index 0000000000..936f045bfa --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/Jwt.ts @@ -0,0 +1,13 @@ +/** + * 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 Jwt: core.serialization.Schema = core.serialization.string(); + +export declare namespace Jwt { + type Raw = string; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/Timestamp.ts b/sdks/full/typescript/src/serialization/resources/common/types/Timestamp.ts new file mode 100644 index 0000000000..cb3829cc59 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/Timestamp.ts @@ -0,0 +1,14 @@ +/** + * 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 Timestamp: core.serialization.Schema = + core.serialization.date(); + +export declare namespace Timestamp { + type Raw = string; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/ValidationError.ts b/sdks/full/typescript/src/serialization/resources/common/types/ValidationError.ts new file mode 100644 index 0000000000..768f365ff5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/ValidationError.ts @@ -0,0 +1,18 @@ +/** + * 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 ValidationError: core.serialization.ObjectSchema = + core.serialization.object({ + path: core.serialization.list(core.serialization.string()), + }); + +export declare namespace ValidationError { + interface Raw { + path: string[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/WatchQuery.ts b/sdks/full/typescript/src/serialization/resources/common/types/WatchQuery.ts new file mode 100644 index 0000000000..8bacba63f9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/WatchQuery.ts @@ -0,0 +1,15 @@ +/** + * 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 WatchQuery: core.serialization.Schema = core.serialization + .string() + .optional(); + +export declare namespace WatchQuery { + type Raw = string | null | undefined; +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/WatchResponse.ts b/sdks/full/typescript/src/serialization/resources/common/types/WatchResponse.ts new file mode 100644 index 0000000000..c19fb79c53 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/WatchResponse.ts @@ -0,0 +1,18 @@ +/** + * 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 WatchResponse: core.serialization.ObjectSchema = + core.serialization.object({ + index: core.serialization.string(), + }); + +export declare namespace WatchResponse { + interface Raw { + index: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/common/types/index.ts new file mode 100644 index 0000000000..2247fadcf1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/common/types/index.ts @@ -0,0 +1,14 @@ +export * from "./Identifier"; +export * from "./Bio"; +export * from "./Email"; +export * from "./Jwt"; +export * from "./WatchQuery"; +export * from "./WatchResponse"; +export * from "./DisplayName"; +export * from "./AccountNumber"; +export * from "./Timestamp"; +export * from "./GlobalEventNotification"; +export * from "./ValidationError"; +export * from "./EmptyObject"; +export * from "./ErrorMetadata"; +export * from "./ErrorBody"; diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Handle.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Handle.ts new file mode 100644 index 0000000000..24cf43bc32 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Handle.ts @@ -0,0 +1,32 @@ +/** + * 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 Handle: core.serialization.ObjectSchema = + core.serialization.object({ + gameId: core.serialization.property("game_id", core.serialization.string()), + nameId: core.serialization.property( + "name_id", + core.serialization.lazy(async () => (await import("../../../../..")).Identifier) + ), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()), + bannerUrl: core.serialization.property("banner_url", core.serialization.string().optional()), + }); + +export declare namespace Handle { + interface Raw { + game_id: string; + name_id: serializers.Identifier.Raw; + display_name: serializers.DisplayName.Raw; + logo_url?: string | null; + banner_url?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/LeaderboardCategory.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/LeaderboardCategory.ts new file mode 100644 index 0000000000..cd59fdb5c7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/LeaderboardCategory.ts @@ -0,0 +1,23 @@ +/** + * 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 LeaderboardCategory: core.serialization.ObjectSchema< + serializers.game.LeaderboardCategory.Raw, + Rivet.game.LeaderboardCategory +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), +}); + +export declare namespace LeaderboardCategory { + interface Raw { + display_name: serializers.DisplayName.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/PlatformLink.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/PlatformLink.ts new file mode 100644 index 0000000000..4608827356 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/PlatformLink.ts @@ -0,0 +1,23 @@ +/** + * 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 PlatformLink: core.serialization.ObjectSchema = + core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + url: core.serialization.string(), + }); + +export declare namespace PlatformLink { + interface Raw { + display_name: serializers.DisplayName.Raw; + url: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Profile.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Profile.ts new file mode 100644 index 0000000000..b2f4e340e9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Profile.ts @@ -0,0 +1,62 @@ +/** + * 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 Profile: core.serialization.ObjectSchema = + core.serialization.object({ + gameId: core.serialization.property("game_id", core.serialization.string()), + nameId: core.serialization.property("name_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()), + bannerUrl: core.serialization.property("banner_url", core.serialization.string().optional()), + url: core.serialization.string(), + developer: core.serialization.lazyObject(async () => (await import("../../../../..")).group.Summary), + tags: core.serialization.list(core.serialization.string()), + description: core.serialization.string(), + platforms: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).game.PlatformLink) + ), + recommendedGroups: core.serialization.property( + "recommended_groups", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).group.Summary) + ) + ), + identityLeaderboardCategories: core.serialization.property( + "identity_leaderboard_categories", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).game.LeaderboardCategory) + ) + ), + groupLeaderboardCategories: core.serialization.property( + "group_leaderboard_categories", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).game.LeaderboardCategory) + ) + ), + }); + +export declare namespace Profile { + interface Raw { + game_id: string; + name_id: string; + display_name: serializers.DisplayName.Raw; + logo_url?: string | null; + banner_url?: string | null; + url: string; + developer: serializers.group.Summary.Raw; + tags: string[]; + description: string; + platforms: serializers.game.PlatformLink.Raw[]; + recommended_groups: serializers.group.Summary.Raw[]; + identity_leaderboard_categories: serializers.game.LeaderboardCategory.Raw[]; + group_leaderboard_categories: serializers.game.LeaderboardCategory.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Stat.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Stat.ts new file mode 100644 index 0000000000..be63a02285 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Stat.ts @@ -0,0 +1,20 @@ +/** + * 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 Stat: core.serialization.ObjectSchema = + core.serialization.object({ + config: core.serialization.lazyObject(async () => (await import("../../../../..")).game.StatConfig), + overallValue: core.serialization.property("overall_value", core.serialization.number()), + }); + +export declare namespace Stat { + interface Raw { + config: serializers.game.StatConfig.Raw; + overall_value: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatAggregationMethod.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatAggregationMethod.ts new file mode 100644 index 0000000000..186ec1bd99 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatAggregationMethod.ts @@ -0,0 +1,16 @@ +/** + * 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 StatAggregationMethod: core.serialization.Schema< + serializers.game.StatAggregationMethod.Raw, + Rivet.game.StatAggregationMethod +> = core.serialization.enum_(["sum", "average", "min", "max"]); + +export declare namespace StatAggregationMethod { + type Raw = "sum" | "average" | "min" | "max"; +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatConfig.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatConfig.ts new file mode 100644 index 0000000000..0aa85520ee --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatConfig.ts @@ -0,0 +1,41 @@ +/** + * 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 StatConfig: core.serialization.ObjectSchema = + core.serialization.object({ + recordId: core.serialization.property("record_id", core.serialization.string()), + iconId: core.serialization.property("icon_id", core.serialization.string()), + format: core.serialization.lazy(async () => (await import("../../../../..")).game.StatFormatMethod), + aggregation: core.serialization.lazy(async () => (await import("../../../../..")).game.StatAggregationMethod), + sorting: core.serialization.lazy(async () => (await import("../../../../..")).game.StatSortingMethod), + priority: core.serialization.number(), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + postfixSingular: core.serialization.property("postfix_singular", core.serialization.string().optional()), + postfixPlural: core.serialization.property("postfix_plural", core.serialization.string().optional()), + prefixSingular: core.serialization.property("prefix_singular", core.serialization.string().optional()), + prefixPlural: core.serialization.property("prefix_plural", core.serialization.string().optional()), + }); + +export declare namespace StatConfig { + interface Raw { + record_id: string; + icon_id: string; + format: serializers.game.StatFormatMethod.Raw; + aggregation: serializers.game.StatAggregationMethod.Raw; + sorting: serializers.game.StatSortingMethod.Raw; + priority: number; + display_name: serializers.DisplayName.Raw; + postfix_singular?: string | null; + postfix_plural?: string | null; + prefix_singular?: string | null; + prefix_plural?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatFormatMethod.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatFormatMethod.ts new file mode 100644 index 0000000000..a2b4619437 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatFormatMethod.ts @@ -0,0 +1,31 @@ +/** + * 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 StatFormatMethod: core.serialization.Schema< + serializers.game.StatFormatMethod.Raw, + Rivet.game.StatFormatMethod +> = core.serialization.enum_([ + "integer", + "float_1", + "float_2", + "float_3", + "duration_minute", + "duration_second", + "duration_hundredth_second", +]); + +export declare namespace StatFormatMethod { + type Raw = + | "integer" + | "float_1" + | "float_2" + | "float_3" + | "duration_minute" + | "duration_second" + | "duration_hundredth_second"; +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatSortingMethod.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatSortingMethod.ts new file mode 100644 index 0000000000..68589e2efd --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatSortingMethod.ts @@ -0,0 +1,16 @@ +/** + * 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 StatSortingMethod: core.serialization.Schema< + serializers.game.StatSortingMethod.Raw, + Rivet.game.StatSortingMethod +> = core.serialization.enum_(["desc", "asc"]); + +export declare namespace StatSortingMethod { + type Raw = "desc" | "asc"; +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatSummary.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatSummary.ts new file mode 100644 index 0000000000..f32104e911 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/StatSummary.ts @@ -0,0 +1,22 @@ +/** + * 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 StatSummary: core.serialization.ObjectSchema = + core.serialization.object({ + game: core.serialization.lazyObject(async () => (await import("../../../../..")).game.Handle), + stats: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).game.Stat) + ), + }); + +export declare namespace StatSummary { + interface Raw { + game: serializers.game.Handle.Raw; + stats: serializers.game.Stat.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Summary.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Summary.ts new file mode 100644 index 0000000000..c3ee059d6b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/Summary.ts @@ -0,0 +1,38 @@ +/** + * 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 Summary: core.serialization.ObjectSchema = + core.serialization.object({ + gameId: core.serialization.property("game_id", core.serialization.string()), + nameId: core.serialization.property( + "name_id", + core.serialization.lazy(async () => (await import("../../../../..")).Identifier) + ), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()), + bannerUrl: core.serialization.property("banner_url", core.serialization.string().optional()), + url: core.serialization.string(), + developer: core.serialization.lazyObject(async () => (await import("../../../../..")).group.Handle), + totalPlayerCount: core.serialization.property("total_player_count", core.serialization.number()), + }); + +export declare namespace Summary { + interface Raw { + game_id: string; + name_id: serializers.Identifier.Raw; + display_name: serializers.DisplayName.Raw; + logo_url?: string | null; + banner_url?: string | null; + url: string; + developer: serializers.group.Handle.Raw; + total_player_count: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/game/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/index.ts new file mode 100644 index 0000000000..743ab2ad86 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/game/resources/common/types/index.ts @@ -0,0 +1,11 @@ +export * from "./Handle"; +export * from "./Summary"; +export * from "./Profile"; +export * from "./PlatformLink"; +export * from "./LeaderboardCategory"; +export * from "./StatSummary"; +export * from "./Stat"; +export * from "./StatConfig"; +export * from "./StatFormatMethod"; +export * from "./StatAggregationMethod"; +export * from "./StatSortingMethod"; diff --git a/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/Coord.ts b/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/Coord.ts new file mode 100644 index 0000000000..c62dbff1b5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/Coord.ts @@ -0,0 +1,20 @@ +/** + * 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 Coord: core.serialization.ObjectSchema = + core.serialization.object({ + latitude: core.serialization.number(), + longitude: core.serialization.number(), + }); + +export declare namespace Coord { + interface Raw { + latitude: number; + longitude: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/Distance.ts b/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/Distance.ts new file mode 100644 index 0000000000..1f842b82a7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/Distance.ts @@ -0,0 +1,20 @@ +/** + * 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 Distance: core.serialization.ObjectSchema = + core.serialization.object({ + kilometers: core.serialization.number(), + miles: core.serialization.number(), + }); + +export declare namespace Distance { + interface Raw { + kilometers: number; + miles: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/index.ts new file mode 100644 index 0000000000..9bedc827df --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/geo/resources/common/types/index.ts @@ -0,0 +1,2 @@ +export * from "./Coord"; +export * from "./Distance"; diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/BannedIdentity.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/BannedIdentity.ts new file mode 100644 index 0000000000..7b72f3f5f0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/BannedIdentity.ts @@ -0,0 +1,25 @@ +/** + * 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 BannedIdentity: core.serialization.ObjectSchema< + serializers.group.BannedIdentity.Raw, + Rivet.group.BannedIdentity +> = core.serialization.object({ + identity: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Handle), + banTs: core.serialization.property( + "ban_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), +}); + +export declare namespace BannedIdentity { + interface Raw { + identity: serializers.identity.Handle.Raw; + ban_ts: serializers.Timestamp.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/ExternalLinks.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/ExternalLinks.ts new file mode 100644 index 0000000000..c927baac71 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/ExternalLinks.ts @@ -0,0 +1,20 @@ +/** + * 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 ExternalLinks: core.serialization.ObjectSchema< + serializers.group.ExternalLinks.Raw, + Rivet.group.ExternalLinks +> = core.serialization.object({ + profile: core.serialization.string(), +}); + +export declare namespace ExternalLinks { + interface Raw { + profile: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Handle.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Handle.ts new file mode 100644 index 0000000000..c89f41537f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Handle.ts @@ -0,0 +1,29 @@ +/** + * 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 Handle: core.serialization.ObjectSchema = + core.serialization.object({ + groupId: core.serialization.property("group_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + avatarUrl: core.serialization.property("avatar_url", core.serialization.string().optional()), + external: core.serialization.lazyObject(async () => (await import("../../../../..")).group.ExternalLinks), + isDeveloper: core.serialization.property("is_developer", core.serialization.boolean().optional()), + }); + +export declare namespace Handle { + interface Raw { + group_id: string; + display_name: serializers.DisplayName.Raw; + avatar_url?: string | null; + external: serializers.group.ExternalLinks.Raw; + is_developer?: boolean | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/JoinRequest.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/JoinRequest.ts new file mode 100644 index 0000000000..81ceb81680 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/JoinRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 JoinRequest: core.serialization.ObjectSchema = + core.serialization.object({ + identity: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Handle), + ts: core.serialization.lazy(async () => (await import("../../../../..")).Timestamp), + }); + +export declare namespace JoinRequest { + interface Raw { + identity: serializers.identity.Handle.Raw; + ts: serializers.Timestamp.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Member.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Member.ts new file mode 100644 index 0000000000..d8f516fc05 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Member.ts @@ -0,0 +1,18 @@ +/** + * 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 Member: core.serialization.ObjectSchema = + core.serialization.object({ + identity: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Handle), + }); + +export declare namespace Member { + interface Raw { + identity: serializers.identity.Handle.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Profile.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Profile.ts new file mode 100644 index 0000000000..61d73d6b94 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Profile.ts @@ -0,0 +1,58 @@ +/** + * 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 Profile: core.serialization.ObjectSchema = + core.serialization.object({ + groupId: core.serialization.property("group_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + avatarUrl: core.serialization.property("avatar_url", core.serialization.string().optional()), + external: core.serialization.lazyObject(async () => (await import("../../../../..")).group.ExternalLinks), + isDeveloper: core.serialization.property("is_developer", core.serialization.boolean().optional()), + bio: core.serialization.string(), + isCurrentIdentityMember: core.serialization.property( + "is_current_identity_member", + core.serialization.boolean().optional() + ), + publicity: core.serialization.lazy(async () => (await import("../../../../..")).group.Publicity), + memberCount: core.serialization.property("member_count", core.serialization.number().optional()), + members: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).group.Member) + ), + joinRequests: core.serialization.property( + "join_requests", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).group.JoinRequest) + ) + ), + isCurrentIdentityRequestingJoin: core.serialization.property( + "is_current_identity_requesting_join", + core.serialization.boolean().optional() + ), + ownerIdentityId: core.serialization.property("owner_identity_id", core.serialization.string()), + }); + +export declare namespace Profile { + interface Raw { + group_id: string; + display_name: serializers.DisplayName.Raw; + avatar_url?: string | null; + external: serializers.group.ExternalLinks.Raw; + is_developer?: boolean | null; + bio: string; + is_current_identity_member?: boolean | null; + publicity: serializers.group.Publicity.Raw; + member_count?: number | null; + members: serializers.group.Member.Raw[]; + join_requests: serializers.group.JoinRequest.Raw[]; + is_current_identity_requesting_join?: boolean | null; + owner_identity_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Publicity.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Publicity.ts new file mode 100644 index 0000000000..3f2a112026 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Publicity.ts @@ -0,0 +1,14 @@ +/** + * 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 Publicity: core.serialization.Schema = + core.serialization.enum_(["open", "closed"]); + +export declare namespace Publicity { + type Raw = "open" | "closed"; +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Summary.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Summary.ts new file mode 100644 index 0000000000..ba01a55dd3 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/Summary.ts @@ -0,0 +1,42 @@ +/** + * 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 Summary: core.serialization.ObjectSchema = + core.serialization.object({ + groupId: core.serialization.property("group_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + avatarUrl: core.serialization.property("avatar_url", core.serialization.string().optional()), + external: core.serialization.lazyObject(async () => (await import("../../../../..")).group.ExternalLinks), + isDeveloper: core.serialization.property("is_developer", core.serialization.boolean()), + bio: core.serialization.lazy(async () => (await import("../../../../..")).Bio), + isCurrentIdentityMember: core.serialization.property( + "is_current_identity_member", + core.serialization.boolean() + ), + publicity: core.serialization.lazy(async () => (await import("../../../../..")).group.Publicity), + memberCount: core.serialization.property("member_count", core.serialization.number()), + ownerIdentityId: core.serialization.property("owner_identity_id", core.serialization.string()), + }); + +export declare namespace Summary { + interface Raw { + group_id: string; + display_name: serializers.DisplayName.Raw; + avatar_url?: string | null; + external: serializers.group.ExternalLinks.Raw; + is_developer: boolean; + bio: serializers.Bio.Raw; + is_current_identity_member: boolean; + publicity: serializers.group.Publicity.Raw; + member_count: number; + owner_identity_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/index.ts new file mode 100644 index 0000000000..970136991f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/common/types/index.ts @@ -0,0 +1,8 @@ +export * from "./Summary"; +export * from "./Publicity"; +export * from "./Handle"; +export * from "./ExternalLinks"; +export * from "./JoinRequest"; +export * from "./Member"; +export * from "./Profile"; +export * from "./BannedIdentity"; diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/ConsumeInviteResponse.ts b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/ConsumeInviteResponse.ts new file mode 100644 index 0000000000..0a858830e0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/ConsumeInviteResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 ConsumeInviteResponse: core.serialization.ObjectSchema< + serializers.group.ConsumeInviteResponse.Raw, + Rivet.group.ConsumeInviteResponse +> = core.serialization.object({ + groupId: core.serialization.property("group_id", core.serialization.string().optional()), +}); + +export declare namespace ConsumeInviteResponse { + interface Raw { + group_id?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/CreateInviteRequest.ts b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/CreateInviteRequest.ts new file mode 100644 index 0000000000..8b18491f21 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/CreateInviteRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 CreateInviteRequest: core.serialization.ObjectSchema< + serializers.group.CreateInviteRequest.Raw, + Rivet.group.CreateInviteRequest +> = core.serialization.object({ + ttl: core.serialization.number().optional(), + useCount: core.serialization.property("use_count", core.serialization.number().optional()), +}); + +export declare namespace CreateInviteRequest { + interface Raw { + ttl?: number | null; + use_count?: number | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/CreateInviteResponse.ts b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/CreateInviteResponse.ts new file mode 100644 index 0000000000..3e783aa1f0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/CreateInviteResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CreateInviteResponse: core.serialization.ObjectSchema< + serializers.group.CreateInviteResponse.Raw, + Rivet.group.CreateInviteResponse +> = core.serialization.object({ + code: core.serialization.string(), +}); + +export declare namespace CreateInviteResponse { + interface Raw { + code: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/GetInviteResponse.ts b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/GetInviteResponse.ts new file mode 100644 index 0000000000..ed05ac0f41 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/GetInviteResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 GetInviteResponse: core.serialization.ObjectSchema< + serializers.group.GetInviteResponse.Raw, + Rivet.group.GetInviteResponse +> = core.serialization.object({ + group: core.serialization.lazyObject(async () => (await import("../../../../..")).group.Handle), +}); + +export declare namespace GetInviteResponse { + interface Raw { + group: serializers.group.Handle.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/index.ts b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/index.ts new file mode 100644 index 0000000000..f8a24bc37f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/invites/types/index.ts @@ -0,0 +1,4 @@ +export * from "./GetInviteResponse"; +export * from "./ConsumeInviteResponse"; +export * from "./CreateInviteRequest"; +export * from "./CreateInviteResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/joinRequests/types/ResolveJoinRequestRequest.ts b/sdks/full/typescript/src/serialization/resources/group/resources/joinRequests/types/ResolveJoinRequestRequest.ts new file mode 100644 index 0000000000..4a553faf3d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/joinRequests/types/ResolveJoinRequestRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 ResolveJoinRequestRequest: core.serialization.ObjectSchema< + serializers.group.ResolveJoinRequestRequest.Raw, + Rivet.group.ResolveJoinRequestRequest +> = core.serialization.object({ + resolution: core.serialization.boolean().optional(), +}); + +export declare namespace ResolveJoinRequestRequest { + interface Raw { + resolution?: boolean | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/resources/joinRequests/types/index.ts b/sdks/full/typescript/src/serialization/resources/group/resources/joinRequests/types/index.ts new file mode 100644 index 0000000000..1bb524e650 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/resources/joinRequests/types/index.ts @@ -0,0 +1 @@ +export * from "./ResolveJoinRequestRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/group/types/CreateRequest.ts b/sdks/full/typescript/src/serialization/resources/group/types/CreateRequest.ts new file mode 100644 index 0000000000..175e271632 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/CreateRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 CreateRequest: core.serialization.ObjectSchema< + serializers.group.CreateRequest.Raw, + Rivet.group.CreateRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../..")).DisplayName) + ), +}); + +export declare namespace CreateRequest { + interface Raw { + display_name: serializers.DisplayName.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/CreateResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/CreateResponse.ts new file mode 100644 index 0000000000..539b9a88ef --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/CreateResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 CreateResponse: core.serialization.ObjectSchema< + serializers.group.CreateResponse.Raw, + Rivet.group.CreateResponse +> = core.serialization.object({ + groupId: core.serialization.property("group_id", core.serialization.string()), +}); + +export declare namespace CreateResponse { + interface Raw { + group_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/GetBansResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/GetBansResponse.ts new file mode 100644 index 0000000000..92c106ac5a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/GetBansResponse.ts @@ -0,0 +1,29 @@ +/** + * 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 GetBansResponse: core.serialization.ObjectSchema< + serializers.group.GetBansResponse.Raw, + Rivet.group.GetBansResponse +> = core.serialization.object({ + bannedIdentities: core.serialization.property( + "banned_identities", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).group.BannedIdentity) + ) + ), + anchor: core.serialization.string().optional(), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace GetBansResponse { + interface Raw { + banned_identities: serializers.group.BannedIdentity.Raw[]; + anchor?: string | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/GetJoinRequestsResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/GetJoinRequestsResponse.ts new file mode 100644 index 0000000000..6858b9d6b9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/GetJoinRequestsResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 GetJoinRequestsResponse: core.serialization.ObjectSchema< + serializers.group.GetJoinRequestsResponse.Raw, + Rivet.group.GetJoinRequestsResponse +> = core.serialization.object({ + joinRequests: core.serialization.property( + "join_requests", + core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).group.JoinRequest)) + ), + anchor: core.serialization.string().optional(), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace GetJoinRequestsResponse { + interface Raw { + join_requests: serializers.group.JoinRequest.Raw[]; + anchor?: string | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/GetMembersResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/GetMembersResponse.ts new file mode 100644 index 0000000000..ccf2eebb8b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/GetMembersResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 GetMembersResponse: core.serialization.ObjectSchema< + serializers.group.GetMembersResponse.Raw, + Rivet.group.GetMembersResponse +> = core.serialization.object({ + members: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).group.Member) + ), + anchor: core.serialization.string().optional(), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace GetMembersResponse { + interface Raw { + members: serializers.group.Member.Raw[]; + anchor?: string | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/GetProfileResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/GetProfileResponse.ts new file mode 100644 index 0000000000..94bec88fdd --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/GetProfileResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetProfileResponse: core.serialization.ObjectSchema< + serializers.group.GetProfileResponse.Raw, + Rivet.group.GetProfileResponse +> = core.serialization.object({ + group: core.serialization.lazyObject(async () => (await import("../../..")).group.Profile), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace GetProfileResponse { + interface Raw { + group: serializers.group.Profile.Raw; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/GetSummaryResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/GetSummaryResponse.ts new file mode 100644 index 0000000000..29b51974e1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/GetSummaryResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 GetSummaryResponse: core.serialization.ObjectSchema< + serializers.group.GetSummaryResponse.Raw, + Rivet.group.GetSummaryResponse +> = core.serialization.object({ + group: core.serialization.lazyObject(async () => (await import("../../..")).group.Summary), +}); + +export declare namespace GetSummaryResponse { + interface Raw { + group: serializers.group.Summary.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/ListSuggestedResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/ListSuggestedResponse.ts new file mode 100644 index 0000000000..93765092b5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/ListSuggestedResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 ListSuggestedResponse: core.serialization.ObjectSchema< + serializers.group.ListSuggestedResponse.Raw, + Rivet.group.ListSuggestedResponse +> = core.serialization.object({ + groups: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).group.Summary) + ), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace ListSuggestedResponse { + interface Raw { + groups: serializers.group.Summary.Raw[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/PrepareAvatarUploadRequest.ts b/sdks/full/typescript/src/serialization/resources/group/types/PrepareAvatarUploadRequest.ts new file mode 100644 index 0000000000..65317bde67 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/PrepareAvatarUploadRequest.ts @@ -0,0 +1,24 @@ +/** + * 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 PrepareAvatarUploadRequest: core.serialization.ObjectSchema< + serializers.group.PrepareAvatarUploadRequest.Raw, + Rivet.group.PrepareAvatarUploadRequest +> = core.serialization.object({ + path: core.serialization.string(), + mime: core.serialization.string().optional(), + contentLength: core.serialization.property("content_length", core.serialization.number()), +}); + +export declare namespace PrepareAvatarUploadRequest { + interface Raw { + path: string; + mime?: string | null; + content_length: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/PrepareAvatarUploadResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/PrepareAvatarUploadResponse.ts new file mode 100644 index 0000000000..1fd2ac1d2f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/PrepareAvatarUploadResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 PrepareAvatarUploadResponse: core.serialization.ObjectSchema< + serializers.group.PrepareAvatarUploadResponse.Raw, + Rivet.group.PrepareAvatarUploadResponse +> = core.serialization.object({ + uploadId: core.serialization.property("upload_id", core.serialization.string()), + presignedRequest: core.serialization.property( + "presigned_request", + core.serialization.lazyObject(async () => (await import("../../..")).upload.PresignedRequest) + ), +}); + +export declare namespace PrepareAvatarUploadResponse { + interface Raw { + upload_id: string; + presigned_request: serializers.upload.PresignedRequest.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/SearchResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/SearchResponse.ts new file mode 100644 index 0000000000..51640c49a1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/SearchResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 SearchResponse: core.serialization.ObjectSchema< + serializers.group.SearchResponse.Raw, + Rivet.group.SearchResponse +> = core.serialization.object({ + groups: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).group.Handle)), + anchor: core.serialization.string().optional(), +}); + +export declare namespace SearchResponse { + interface Raw { + groups: serializers.group.Handle.Raw[]; + anchor?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/TransferOwnershipRequest.ts b/sdks/full/typescript/src/serialization/resources/group/types/TransferOwnershipRequest.ts new file mode 100644 index 0000000000..6c3c883a06 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/TransferOwnershipRequest.ts @@ -0,0 +1,20 @@ +/** + * 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 TransferOwnershipRequest: core.serialization.ObjectSchema< + serializers.group.TransferOwnershipRequest.Raw, + Rivet.group.TransferOwnershipRequest +> = core.serialization.object({ + newOwnerIdentityId: core.serialization.property("new_owner_identity_id", core.serialization.string()), +}); + +export declare namespace TransferOwnershipRequest { + interface Raw { + new_owner_identity_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/UpdateProfileRequest.ts b/sdks/full/typescript/src/serialization/resources/group/types/UpdateProfileRequest.ts new file mode 100644 index 0000000000..885e969601 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/UpdateProfileRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 UpdateProfileRequest: core.serialization.ObjectSchema< + serializers.group.UpdateProfileRequest.Raw, + Rivet.group.UpdateProfileRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../..")).DisplayName).optional() + ), + bio: core.serialization.string().optional(), + publicity: core.serialization.lazy(async () => (await import("../../..")).group.Publicity).optional(), +}); + +export declare namespace UpdateProfileRequest { + interface Raw { + display_name?: serializers.DisplayName.Raw | null; + bio?: string | null; + publicity?: serializers.group.Publicity.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/ValidateProfileRequest.ts b/sdks/full/typescript/src/serialization/resources/group/types/ValidateProfileRequest.ts new file mode 100644 index 0000000000..704faaeb5b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/ValidateProfileRequest.ts @@ -0,0 +1,27 @@ +/** + * 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 ValidateProfileRequest: core.serialization.ObjectSchema< + serializers.group.ValidateProfileRequest.Raw, + Rivet.group.ValidateProfileRequest +> = core.serialization.object({ + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../..")).DisplayName).optional() + ), + bio: core.serialization.lazy(async () => (await import("../../..")).DisplayName).optional(), + publicity: core.serialization.lazy(async () => (await import("../../..")).group.Publicity).optional(), +}); + +export declare namespace ValidateProfileRequest { + interface Raw { + display_name?: serializers.DisplayName.Raw | null; + bio?: serializers.DisplayName.Raw | null; + publicity?: serializers.group.Publicity.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/ValidateProfileResponse.ts b/sdks/full/typescript/src/serialization/resources/group/types/ValidateProfileResponse.ts new file mode 100644 index 0000000000..da140b3af2 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/ValidateProfileResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateProfileResponse: core.serialization.ObjectSchema< + serializers.group.ValidateProfileResponse.Raw, + Rivet.group.ValidateProfileResponse +> = core.serialization.object({ + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).ValidationError) + ), +}); + +export declare namespace ValidateProfileResponse { + interface Raw { + errors: serializers.ValidationError.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/group/types/index.ts b/sdks/full/typescript/src/serialization/resources/group/types/index.ts new file mode 100644 index 0000000000..1c7da6f7f8 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/group/types/index.ts @@ -0,0 +1,15 @@ +export * from "./ListSuggestedResponse"; +export * from "./CreateRequest"; +export * from "./CreateResponse"; +export * from "./PrepareAvatarUploadRequest"; +export * from "./PrepareAvatarUploadResponse"; +export * from "./ValidateProfileRequest"; +export * from "./ValidateProfileResponse"; +export * from "./SearchResponse"; +export * from "./GetBansResponse"; +export * from "./GetJoinRequestsResponse"; +export * from "./GetMembersResponse"; +export * from "./GetProfileResponse"; +export * from "./UpdateProfileRequest"; +export * from "./GetSummaryResponse"; +export * from "./TransferOwnershipRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/activities/types/ListActivitiesResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/activities/types/ListActivitiesResponse.ts new file mode 100644 index 0000000000..69700fa080 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/activities/types/ListActivitiesResponse.ts @@ -0,0 +1,42 @@ +/** + * 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 ListActivitiesResponse: core.serialization.ObjectSchema< + serializers.identity.ListActivitiesResponse.Raw, + Rivet.identity.ListActivitiesResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Handle) + ), + games: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).game.Summary) + ), + suggestedGroups: core.serialization.property( + "suggested_groups", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).group.Summary) + ) + ), + suggestedPlayers: core.serialization.property( + "suggested_players", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Handle) + ) + ), + watch: core.serialization.lazyObject(async () => (await import("../../../../..")).WatchResponse), +}); + +export declare namespace ListActivitiesResponse { + interface Raw { + identities: serializers.identity.Handle.Raw[]; + games: serializers.game.Summary.Raw[]; + suggested_groups: serializers.group.Summary.Raw[]; + suggested_players: serializers.identity.Handle.Raw[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/activities/types/index.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/activities/types/index.ts new file mode 100644 index 0000000000..9f3dd3a19e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/activities/types/index.ts @@ -0,0 +1 @@ +export * from "./ListActivitiesResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/AccessTokenLinkedAccount.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/AccessTokenLinkedAccount.ts new file mode 100644 index 0000000000..e8d6c222ae --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/AccessTokenLinkedAccount.ts @@ -0,0 +1,20 @@ +/** + * 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 AccessTokenLinkedAccount: core.serialization.ObjectSchema< + serializers.identity.AccessTokenLinkedAccount.Raw, + Rivet.identity.AccessTokenLinkedAccount +> = core.serialization.object({ + name: core.serialization.string(), +}); + +export declare namespace AccessTokenLinkedAccount { + interface Raw { + name: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/DevState.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/DevState.ts new file mode 100644 index 0000000000..4e78207368 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/DevState.ts @@ -0,0 +1,14 @@ +/** + * 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 DevState: core.serialization.Schema = + core.serialization.enum_(["inactive", "pending", "accepted"]); + +export declare namespace DevState { + type Raw = "inactive" | "pending" | "accepted"; +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/EmailLinkedAccount.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/EmailLinkedAccount.ts new file mode 100644 index 0000000000..8ee11eb2b1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/EmailLinkedAccount.ts @@ -0,0 +1,20 @@ +/** + * 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 EmailLinkedAccount: core.serialization.ObjectSchema< + serializers.identity.EmailLinkedAccount.Raw, + Rivet.identity.EmailLinkedAccount +> = core.serialization.object({ + email: core.serialization.lazy(async () => (await import("../../../../..")).Email), +}); + +export declare namespace EmailLinkedAccount { + interface Raw { + email: serializers.Email.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/ExternalLinks.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/ExternalLinks.ts new file mode 100644 index 0000000000..965880871d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/ExternalLinks.ts @@ -0,0 +1,22 @@ +/** + * 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 ExternalLinks: core.serialization.ObjectSchema< + serializers.identity.ExternalLinks.Raw, + Rivet.identity.ExternalLinks +> = core.serialization.object({ + profile: core.serialization.string(), + settings: core.serialization.string().optional(), +}); + +export declare namespace ExternalLinks { + interface Raw { + profile: string; + settings?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GameActivity.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GameActivity.ts new file mode 100644 index 0000000000..e928df93c9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GameActivity.ts @@ -0,0 +1,26 @@ +/** + * 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 GameActivity: core.serialization.ObjectSchema< + serializers.identity.GameActivity.Raw, + Rivet.identity.GameActivity +> = core.serialization.object({ + game: core.serialization.lazyObject(async () => (await import("../../../../..")).game.Handle), + message: core.serialization.string(), + publicMetadata: core.serialization.property("public_metadata", core.serialization.unknown().optional()), + mutualMetadata: core.serialization.property("mutual_metadata", core.serialization.unknown().optional()), +}); + +export declare namespace GameActivity { + interface Raw { + game: serializers.game.Handle.Raw; + message: string; + public_metadata?: unknown | null; + mutual_metadata?: unknown | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GameLinkStatus.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GameLinkStatus.ts new file mode 100644 index 0000000000..7d761f3f58 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GameLinkStatus.ts @@ -0,0 +1,16 @@ +/** + * 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 GameLinkStatus: core.serialization.Schema< + serializers.identity.GameLinkStatus.Raw, + Rivet.identity.GameLinkStatus +> = core.serialization.enum_(["incomplete", "complete", "cancelled"]); + +export declare namespace GameLinkStatus { + type Raw = "incomplete" | "complete" | "cancelled"; +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEvent.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEvent.ts new file mode 100644 index 0000000000..4f20fbc9cc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEvent.ts @@ -0,0 +1,26 @@ +/** + * 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 GlobalEvent: core.serialization.ObjectSchema< + serializers.identity.GlobalEvent.Raw, + Rivet.identity.GlobalEvent +> = core.serialization.object({ + ts: core.serialization.lazy(async () => (await import("../../../../..")).Timestamp), + kind: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.GlobalEventKind), + notification: core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.GlobalEventNotification) + .optional(), +}); + +export declare namespace GlobalEvent { + interface Raw { + ts: serializers.Timestamp.Raw; + kind: serializers.identity.GlobalEventKind.Raw; + notification?: serializers.identity.GlobalEventNotification.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventIdentityUpdate.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventIdentityUpdate.ts new file mode 100644 index 0000000000..4d62209b45 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventIdentityUpdate.ts @@ -0,0 +1,20 @@ +/** + * 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 GlobalEventIdentityUpdate: core.serialization.ObjectSchema< + serializers.identity.GlobalEventIdentityUpdate.Raw, + Rivet.identity.GlobalEventIdentityUpdate +> = core.serialization.object({ + identity: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Profile), +}); + +export declare namespace GlobalEventIdentityUpdate { + interface Raw { + identity: serializers.identity.Profile.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventKind.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventKind.ts new file mode 100644 index 0000000000..058bee44c6 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventKind.ts @@ -0,0 +1,32 @@ +/** + * 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 GlobalEventKind: core.serialization.ObjectSchema< + serializers.identity.GlobalEventKind.Raw, + Rivet.identity.GlobalEventKind +> = core.serialization.object({ + identityUpdate: core.serialization.property( + "identity_update", + core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.GlobalEventIdentityUpdate) + .optional() + ), + matchmakerLobbyJoin: core.serialization.property( + "matchmaker_lobby_join", + core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.GlobalEventMatchmakerLobbyJoin) + .optional() + ), +}); + +export declare namespace GlobalEventKind { + interface Raw { + identity_update?: serializers.identity.GlobalEventIdentityUpdate.Raw | null; + matchmaker_lobby_join?: serializers.identity.GlobalEventMatchmakerLobbyJoin.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventMatchmakerLobbyJoin.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventMatchmakerLobbyJoin.ts new file mode 100644 index 0000000000..9062aa17b5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventMatchmakerLobbyJoin.ts @@ -0,0 +1,27 @@ +/** + * 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 GlobalEventMatchmakerLobbyJoin: core.serialization.ObjectSchema< + serializers.identity.GlobalEventMatchmakerLobbyJoin.Raw, + Rivet.identity.GlobalEventMatchmakerLobbyJoin +> = core.serialization.object({ + lobby: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinLobby), + ports: core.serialization.record( + core.serialization.string(), + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPort) + ), + player: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPlayer), +}); + +export declare namespace GlobalEventMatchmakerLobbyJoin { + interface Raw { + lobby: serializers.matchmaker.JoinLobby.Raw; + ports: Record; + player: serializers.matchmaker.JoinPlayer.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventNotification.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventNotification.ts new file mode 100644 index 0000000000..78fb0c769f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/GlobalEventNotification.ts @@ -0,0 +1,26 @@ +/** + * 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 GlobalEventNotification: core.serialization.ObjectSchema< + serializers.identity.GlobalEventNotification.Raw, + Rivet.identity.GlobalEventNotification +> = core.serialization.object({ + title: core.serialization.string(), + description: core.serialization.string(), + thumbnailUrl: core.serialization.property("thumbnail_url", core.serialization.string()), + url: core.serialization.string(), +}); + +export declare namespace GlobalEventNotification { + interface Raw { + title: string; + description: string; + thumbnail_url: string; + url: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Group.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Group.ts new file mode 100644 index 0000000000..f26f3f2e45 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Group.ts @@ -0,0 +1,18 @@ +/** + * 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 Group: core.serialization.ObjectSchema = + core.serialization.object({ + group: core.serialization.lazyObject(async () => (await import("../../../../..")).group.Handle), + }); + +export declare namespace Group { + interface Raw { + group: serializers.group.Handle.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Handle.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Handle.ts new file mode 100644 index 0000000000..2dc18724c7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Handle.ts @@ -0,0 +1,38 @@ +/** + * 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 Handle: core.serialization.ObjectSchema = + core.serialization.object({ + identityId: core.serialization.property("identity_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + accountNumber: core.serialization.property( + "account_number", + core.serialization.lazy(async () => (await import("../../../../..")).AccountNumber) + ), + avatarUrl: core.serialization.property("avatar_url", core.serialization.string()), + presence: core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.Presence) + .optional(), + isRegistered: core.serialization.property("is_registered", core.serialization.boolean()), + external: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.ExternalLinks), + }); + +export declare namespace Handle { + interface Raw { + identity_id: string; + display_name: serializers.DisplayName.Raw; + account_number: serializers.AccountNumber.Raw; + avatar_url: string; + presence?: serializers.identity.Presence.Raw | null; + is_registered: boolean; + external: serializers.identity.ExternalLinks.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/LinkedAccount.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/LinkedAccount.ts new file mode 100644 index 0000000000..8a63c377f9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/LinkedAccount.ts @@ -0,0 +1,29 @@ +/** + * 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 LinkedAccount: core.serialization.ObjectSchema< + serializers.identity.LinkedAccount.Raw, + Rivet.identity.LinkedAccount +> = core.serialization.object({ + email: core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.EmailLinkedAccount) + .optional(), + accessToken: core.serialization.property( + "access_token", + core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.AccessTokenLinkedAccount) + .optional() + ), +}); + +export declare namespace LinkedAccount { + interface Raw { + email?: serializers.identity.EmailLinkedAccount.Raw | null; + access_token?: serializers.identity.AccessTokenLinkedAccount.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Presence.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Presence.ts new file mode 100644 index 0000000000..64aa2082b4 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Presence.ts @@ -0,0 +1,28 @@ +/** + * 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 Presence: core.serialization.ObjectSchema = + core.serialization.object({ + updateTs: core.serialization.property( + "update_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + status: core.serialization.lazy(async () => (await import("../../../../..")).identity.Status), + gameActivity: core.serialization.property( + "game_activity", + core.serialization.lazyObject(async () => (await import("../../../../..")).identity.GameActivity).optional() + ), + }); + +export declare namespace Presence { + interface Raw { + update_ts: serializers.Timestamp.Raw; + status: serializers.identity.Status.Raw; + game_activity?: serializers.identity.GameActivity.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Profile.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Profile.ts new file mode 100644 index 0000000000..edb365209f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Profile.ts @@ -0,0 +1,81 @@ +/** + * 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 Profile: core.serialization.ObjectSchema = + core.serialization.object({ + identityId: core.serialization.property("identity_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + accountNumber: core.serialization.property( + "account_number", + core.serialization.lazy(async () => (await import("../../../../..")).AccountNumber) + ), + avatarUrl: core.serialization.property("avatar_url", core.serialization.string()), + presence: core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.Presence) + .optional(), + isRegistered: core.serialization.property("is_registered", core.serialization.boolean()), + external: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.ExternalLinks), + isAdmin: core.serialization.property("is_admin", core.serialization.boolean()), + isGameLinked: core.serialization.property("is_game_linked", core.serialization.boolean().optional()), + devState: core.serialization.property( + "dev_state", + core.serialization.lazy(async () => (await import("../../../../..")).identity.DevState).optional() + ), + followerCount: core.serialization.property("follower_count", core.serialization.number()), + followingCount: core.serialization.property("following_count", core.serialization.number()), + following: core.serialization.boolean(), + isFollowingMe: core.serialization.property("is_following_me", core.serialization.boolean()), + isMutualFollowing: core.serialization.property("is_mutual_following", core.serialization.boolean()), + joinTs: core.serialization.property( + "join_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + bio: core.serialization.lazy(async () => (await import("../../../../..")).Bio), + linkedAccounts: core.serialization.property( + "linked_accounts", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).identity.LinkedAccount) + ) + ), + groups: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Group) + ), + games: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).game.StatSummary) + ), + awaitingDeletion: core.serialization.property("awaiting_deletion", core.serialization.boolean().optional()), + }); + +export declare namespace Profile { + interface Raw { + identity_id: string; + display_name: serializers.DisplayName.Raw; + account_number: serializers.AccountNumber.Raw; + avatar_url: string; + presence?: serializers.identity.Presence.Raw | null; + is_registered: boolean; + external: serializers.identity.ExternalLinks.Raw; + is_admin: boolean; + is_game_linked?: boolean | null; + dev_state?: serializers.identity.DevState.Raw | null; + follower_count: number; + following_count: number; + following: boolean; + is_following_me: boolean; + is_mutual_following: boolean; + join_ts: serializers.Timestamp.Raw; + bio: serializers.Bio.Raw; + linked_accounts: serializers.identity.LinkedAccount.Raw[]; + groups: serializers.identity.Group.Raw[]; + games: serializers.game.StatSummary.Raw[]; + awaiting_deletion?: boolean | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Status.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Status.ts new file mode 100644 index 0000000000..1ea9df7bbc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Status.ts @@ -0,0 +1,14 @@ +/** + * 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 Status: core.serialization.Schema = + core.serialization.enum_(["online", "away", "offline"]); + +export declare namespace Status { + type Raw = "online" | "away" | "offline"; +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Summary.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Summary.ts new file mode 100644 index 0000000000..119bc5e8ac --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/Summary.ts @@ -0,0 +1,44 @@ +/** + * 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 Summary: core.serialization.ObjectSchema = + core.serialization.object({ + identityId: core.serialization.property("identity_id", core.serialization.string()), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + accountNumber: core.serialization.property( + "account_number", + core.serialization.lazy(async () => (await import("../../../../..")).AccountNumber) + ), + avatarUrl: core.serialization.property("avatar_url", core.serialization.string()), + presence: core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.Presence) + .optional(), + isRegistered: core.serialization.property("is_registered", core.serialization.boolean()), + external: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.ExternalLinks), + following: core.serialization.boolean(), + isFollowingMe: core.serialization.property("is_following_me", core.serialization.boolean()), + isMutualFollowing: core.serialization.property("is_mutual_following", core.serialization.boolean()), + }); + +export declare namespace Summary { + interface Raw { + identity_id: string; + display_name: serializers.DisplayName.Raw; + account_number: serializers.AccountNumber.Raw; + avatar_url: string; + presence?: serializers.identity.Presence.Raw | null; + is_registered: boolean; + external: serializers.identity.ExternalLinks.Raw; + following: boolean; + is_following_me: boolean; + is_mutual_following: boolean; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/UpdateGameActivity.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/UpdateGameActivity.ts new file mode 100644 index 0000000000..58f03e9c2f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/UpdateGameActivity.ts @@ -0,0 +1,24 @@ +/** + * 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 UpdateGameActivity: core.serialization.ObjectSchema< + serializers.identity.UpdateGameActivity.Raw, + Rivet.identity.UpdateGameActivity +> = core.serialization.object({ + message: core.serialization.string().optional(), + publicMetadata: core.serialization.property("public_metadata", core.serialization.unknown().optional()), + mutualMetadata: core.serialization.property("mutual_metadata", core.serialization.unknown().optional()), +}); + +export declare namespace UpdateGameActivity { + interface Raw { + message?: string | null; + public_metadata?: unknown | null; + mutual_metadata?: unknown | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/index.ts new file mode 100644 index 0000000000..699a6353eb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/common/types/index.ts @@ -0,0 +1,19 @@ +export * from "./GlobalEvent"; +export * from "./GlobalEventKind"; +export * from "./GlobalEventNotification"; +export * from "./GlobalEventIdentityUpdate"; +export * from "./GlobalEventMatchmakerLobbyJoin"; +export * from "./UpdateGameActivity"; +export * from "./Handle"; +export * from "./Summary"; +export * from "./Profile"; +export * from "./ExternalLinks"; +export * from "./Presence"; +export * from "./Status"; +export * from "./GameActivity"; +export * from "./Group"; +export * from "./LinkedAccount"; +export * from "./EmailLinkedAccount"; +export * from "./AccessTokenLinkedAccount"; +export * from "./DevState"; +export * from "./GameLinkStatus"; diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/events/types/WatchEventsResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/events/types/WatchEventsResponse.ts new file mode 100644 index 0000000000..31949d54ae --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/events/types/WatchEventsResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 WatchEventsResponse: core.serialization.ObjectSchema< + serializers.identity.WatchEventsResponse.Raw, + Rivet.identity.WatchEventsResponse +> = core.serialization.object({ + events: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).identity.GlobalEvent) + ), + watch: core.serialization.lazyObject(async () => (await import("../../../../..")).WatchResponse), +}); + +export declare namespace WatchEventsResponse { + interface Raw { + events: serializers.identity.GlobalEvent.Raw[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/events/types/index.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/events/types/index.ts new file mode 100644 index 0000000000..85124e8f72 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/events/types/index.ts @@ -0,0 +1 @@ +export * from "./WatchEventsResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/CancelGameLinkRequest.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/CancelGameLinkRequest.ts new file mode 100644 index 0000000000..760193099e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/CancelGameLinkRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 CancelGameLinkRequest: core.serialization.ObjectSchema< + serializers.identity.CancelGameLinkRequest.Raw, + Rivet.identity.CancelGameLinkRequest +> = core.serialization.object({ + identityLinkToken: core.serialization.property( + "identity_link_token", + core.serialization.lazy(async () => (await import("../../../../..")).Jwt) + ), +}); + +export declare namespace CancelGameLinkRequest { + interface Raw { + identity_link_token: serializers.Jwt.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/CompleteGameLinkRequest.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/CompleteGameLinkRequest.ts new file mode 100644 index 0000000000..d9c08c7f31 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/CompleteGameLinkRequest.ts @@ -0,0 +1,23 @@ +/** + * 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 CompleteGameLinkRequest: core.serialization.ObjectSchema< + serializers.identity.CompleteGameLinkRequest.Raw, + Rivet.identity.CompleteGameLinkRequest +> = core.serialization.object({ + identityLinkToken: core.serialization.property( + "identity_link_token", + core.serialization.lazy(async () => (await import("../../../../..")).Jwt) + ), +}); + +export declare namespace CompleteGameLinkRequest { + interface Raw { + identity_link_token: serializers.Jwt.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/GetGameLinkNewIdentity.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/GetGameLinkNewIdentity.ts new file mode 100644 index 0000000000..55f8d56162 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/GetGameLinkNewIdentity.ts @@ -0,0 +1,30 @@ +/** + * 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 GetGameLinkNewIdentity: core.serialization.ObjectSchema< + serializers.identity.GetGameLinkNewIdentity.Raw, + Rivet.identity.GetGameLinkNewIdentity +> = core.serialization.object({ + identityToken: core.serialization.property( + "identity_token", + core.serialization.lazy(async () => (await import("../../../../..")).Jwt) + ), + identityTokenExpireTs: core.serialization.property( + "identity_token_expire_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), + identity: core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Profile), +}); + +export declare namespace GetGameLinkNewIdentity { + interface Raw { + identity_token: serializers.Jwt.Raw; + identity_token_expire_ts: serializers.Timestamp.Raw; + identity: serializers.identity.Profile.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/GetGameLinkResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/GetGameLinkResponse.ts new file mode 100644 index 0000000000..e069dc92f3 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/GetGameLinkResponse.ts @@ -0,0 +1,36 @@ +/** + * 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 GetGameLinkResponse: core.serialization.ObjectSchema< + serializers.identity.GetGameLinkResponse.Raw, + Rivet.identity.GetGameLinkResponse +> = core.serialization.object({ + status: core.serialization.lazy(async () => (await import("../../../../..")).identity.GameLinkStatus), + game: core.serialization.lazyObject(async () => (await import("../../../../..")).game.Handle), + currentIdentity: core.serialization.property( + "current_identity", + core.serialization.lazyObject(async () => (await import("../../../../..")).identity.Handle) + ), + newIdentity: core.serialization.property( + "new_identity", + core.serialization + .lazyObject(async () => (await import("../../../../..")).identity.GetGameLinkNewIdentity) + .optional() + ), + watch: core.serialization.lazyObject(async () => (await import("../../../../..")).WatchResponse), +}); + +export declare namespace GetGameLinkResponse { + interface Raw { + status: serializers.identity.GameLinkStatus.Raw; + game: serializers.game.Handle.Raw; + current_identity: serializers.identity.Handle.Raw; + new_identity?: serializers.identity.GetGameLinkNewIdentity.Raw | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/PrepareGameLinkResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/PrepareGameLinkResponse.ts new file mode 100644 index 0000000000..e0db09607a --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/PrepareGameLinkResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 PrepareGameLinkResponse: core.serialization.ObjectSchema< + serializers.identity.PrepareGameLinkResponse.Raw, + Rivet.identity.PrepareGameLinkResponse +> = core.serialization.object({ + identityLinkToken: core.serialization.property("identity_link_token", core.serialization.string()), + identityLinkUrl: core.serialization.property("identity_link_url", core.serialization.string()), + expireTs: core.serialization.property( + "expire_ts", + core.serialization.lazy(async () => (await import("../../../../..")).Timestamp) + ), +}); + +export declare namespace PrepareGameLinkResponse { + interface Raw { + identity_link_token: string; + identity_link_url: string; + expire_ts: serializers.Timestamp.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/index.ts b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/index.ts new file mode 100644 index 0000000000..675bb866ca --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/resources/links/types/index.ts @@ -0,0 +1,5 @@ +export * from "./PrepareGameLinkResponse"; +export * from "./GetGameLinkResponse"; +export * from "./GetGameLinkNewIdentity"; +export * from "./CompleteGameLinkRequest"; +export * from "./CancelGameLinkRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/GetHandlesResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/GetHandlesResponse.ts new file mode 100644 index 0000000000..41463b3a31 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/GetHandlesResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 GetHandlesResponse: core.serialization.ObjectSchema< + serializers.identity.GetHandlesResponse.Raw, + Rivet.identity.GetHandlesResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).identity.Handle) + ), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace GetHandlesResponse { + interface Raw { + identities: serializers.identity.Handle.Raw[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/GetProfileResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/GetProfileResponse.ts new file mode 100644 index 0000000000..e66bf67890 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/GetProfileResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetProfileResponse: core.serialization.ObjectSchema< + serializers.identity.GetProfileResponse.Raw, + Rivet.identity.GetProfileResponse +> = core.serialization.object({ + identity: core.serialization.lazyObject(async () => (await import("../../..")).identity.Profile), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace GetProfileResponse { + interface Raw { + identity: serializers.identity.Profile.Raw; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/GetSummariesResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/GetSummariesResponse.ts new file mode 100644 index 0000000000..47c42b6d9f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/GetSummariesResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 GetSummariesResponse: core.serialization.ObjectSchema< + serializers.identity.GetSummariesResponse.Raw, + Rivet.identity.GetSummariesResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).identity.Summary) + ), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace GetSummariesResponse { + interface Raw { + identities: serializers.identity.Summary.Raw[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/ListFollowersResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/ListFollowersResponse.ts new file mode 100644 index 0000000000..eef6be546b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/ListFollowersResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 ListFollowersResponse: core.serialization.ObjectSchema< + serializers.identity.ListFollowersResponse.Raw, + Rivet.identity.ListFollowersResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).identity.Handle) + ), + anchor: core.serialization.string().optional(), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace ListFollowersResponse { + interface Raw { + identities: serializers.identity.Handle.Raw[]; + anchor?: string | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/ListFollowingResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/ListFollowingResponse.ts new file mode 100644 index 0000000000..f250afb11b --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/ListFollowingResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 ListFollowingResponse: core.serialization.ObjectSchema< + serializers.identity.ListFollowingResponse.Raw, + Rivet.identity.ListFollowingResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).identity.Handle) + ), + anchor: core.serialization.string().optional(), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace ListFollowingResponse { + interface Raw { + identities: serializers.identity.Handle.Raw[]; + anchor?: string | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/ListFriendsResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/ListFriendsResponse.ts new file mode 100644 index 0000000000..c01df81aa1 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/ListFriendsResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 ListFriendsResponse: core.serialization.ObjectSchema< + serializers.identity.ListFriendsResponse.Raw, + Rivet.identity.ListFriendsResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).identity.Handle) + ), + anchor: core.serialization.string().optional(), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace ListFriendsResponse { + interface Raw { + identities: serializers.identity.Handle.Raw[]; + anchor?: string | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/ListMutualFriendsResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/ListMutualFriendsResponse.ts new file mode 100644 index 0000000000..0da3b771da --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/ListMutualFriendsResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 ListMutualFriendsResponse: core.serialization.ObjectSchema< + serializers.identity.ListMutualFriendsResponse.Raw, + Rivet.identity.ListMutualFriendsResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).identity.Handle) + ), + anchor: core.serialization.string().optional(), +}); + +export declare namespace ListMutualFriendsResponse { + interface Raw { + identities: serializers.identity.Handle.Raw[]; + anchor?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/ListRecentFollowersResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/ListRecentFollowersResponse.ts new file mode 100644 index 0000000000..35b6f62cd4 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/ListRecentFollowersResponse.ts @@ -0,0 +1,26 @@ +/** + * 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 ListRecentFollowersResponse: core.serialization.ObjectSchema< + serializers.identity.ListRecentFollowersResponse.Raw, + Rivet.identity.ListRecentFollowersResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).identity.Handle) + ), + anchor: core.serialization.string().optional(), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace ListRecentFollowersResponse { + interface Raw { + identities: serializers.identity.Handle.Raw[]; + anchor?: string | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/PrepareAvatarUploadResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/PrepareAvatarUploadResponse.ts new file mode 100644 index 0000000000..cfd2d4348f --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/PrepareAvatarUploadResponse.ts @@ -0,0 +1,25 @@ +/** + * 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 PrepareAvatarUploadResponse: core.serialization.ObjectSchema< + serializers.identity.PrepareAvatarUploadResponse.Raw, + Rivet.identity.PrepareAvatarUploadResponse +> = core.serialization.object({ + uploadId: core.serialization.property("upload_id", core.serialization.string()), + presignedRequest: core.serialization.property( + "presigned_request", + core.serialization.lazyObject(async () => (await import("../../..")).upload.PresignedRequest) + ), +}); + +export declare namespace PrepareAvatarUploadResponse { + interface Raw { + upload_id: string; + presigned_request: serializers.upload.PresignedRequest.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/SearchResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/SearchResponse.ts new file mode 100644 index 0000000000..46fba99da0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/SearchResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 SearchResponse: core.serialization.ObjectSchema< + serializers.identity.SearchResponse.Raw, + Rivet.identity.SearchResponse +> = core.serialization.object({ + identities: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).identity.Handle) + ), + anchor: core.serialization.string().optional(), +}); + +export declare namespace SearchResponse { + interface Raw { + identities: serializers.identity.Handle.Raw[]; + anchor?: string | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/SetupResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/SetupResponse.ts new file mode 100644 index 0000000000..6ac4b58c75 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/SetupResponse.ts @@ -0,0 +1,32 @@ +/** + * 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 SetupResponse: core.serialization.ObjectSchema< + serializers.identity.SetupResponse.Raw, + Rivet.identity.SetupResponse +> = core.serialization.object({ + identityToken: core.serialization.property( + "identity_token", + core.serialization.lazy(async () => (await import("../../..")).Jwt) + ), + identityTokenExpireTs: core.serialization.property( + "identity_token_expire_ts", + core.serialization.lazy(async () => (await import("../../..")).Timestamp) + ), + identity: core.serialization.lazyObject(async () => (await import("../../..")).identity.Profile), + gameId: core.serialization.property("game_id", core.serialization.string()), +}); + +export declare namespace SetupResponse { + interface Raw { + identity_token: serializers.Jwt.Raw; + identity_token_expire_ts: serializers.Timestamp.Raw; + identity: serializers.identity.Profile.Raw; + game_id: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/ValidateProfileResponse.ts b/sdks/full/typescript/src/serialization/resources/identity/types/ValidateProfileResponse.ts new file mode 100644 index 0000000000..42444905eb --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/ValidateProfileResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ValidateProfileResponse: core.serialization.ObjectSchema< + serializers.identity.ValidateProfileResponse.Raw, + Rivet.identity.ValidateProfileResponse +> = core.serialization.object({ + errors: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).ValidationError) + ), +}); + +export declare namespace ValidateProfileResponse { + interface Raw { + errors: serializers.ValidationError.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/identity/types/index.ts b/sdks/full/typescript/src/serialization/resources/identity/types/index.ts new file mode 100644 index 0000000000..fc0e4d976d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/identity/types/index.ts @@ -0,0 +1,12 @@ +export * from "./SetupResponse"; +export * from "./GetProfileResponse"; +export * from "./GetHandlesResponse"; +export * from "./GetSummariesResponse"; +export * from "./ValidateProfileResponse"; +export * from "./SearchResponse"; +export * from "./PrepareAvatarUploadResponse"; +export * from "./ListFollowersResponse"; +export * from "./ListFollowingResponse"; +export * from "./ListRecentFollowersResponse"; +export * from "./ListFriendsResponse"; +export * from "./ListMutualFriendsResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Directory.ts b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Directory.ts new file mode 100644 index 0000000000..551cfbd892 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Directory.ts @@ -0,0 +1,14 @@ +/** + * 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 Directory: core.serialization.Schema = + core.serialization.string(); + +export declare namespace Directory { + type Raw = string; +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Entry.ts b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Entry.ts new file mode 100644 index 0000000000..d621b55722 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Entry.ts @@ -0,0 +1,22 @@ +/** + * 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 Entry: core.serialization.ObjectSchema = + core.serialization.object({ + key: core.serialization.lazy(async () => (await import("../../../../..")).kv.Key), + value: core.serialization.lazy(async () => (await import("../../../../..")).kv.Value), + deleted: core.serialization.boolean().optional(), + }); + +export declare namespace Entry { + interface Raw { + key: serializers.kv.Key.Raw; + value?: serializers.kv.Value.Raw; + deleted?: boolean | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Key.ts b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Key.ts new file mode 100644 index 0000000000..f1c6b42a71 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Key.ts @@ -0,0 +1,13 @@ +/** + * 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 Key: core.serialization.Schema = core.serialization.string(); + +export declare namespace Key { + type Raw = string; +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/PutEntry.ts b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/PutEntry.ts new file mode 100644 index 0000000000..a309e573c0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/PutEntry.ts @@ -0,0 +1,20 @@ +/** + * 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 PutEntry: core.serialization.ObjectSchema = + core.serialization.object({ + key: core.serialization.lazy(async () => (await import("../../../../..")).kv.Key), + value: core.serialization.lazy(async () => (await import("../../../../..")).kv.Value), + }); + +export declare namespace PutEntry { + interface Raw { + key: serializers.kv.Key.Raw; + value?: serializers.kv.Value.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Value.ts b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Value.ts new file mode 100644 index 0000000000..2e5d3b8267 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/Value.ts @@ -0,0 +1,13 @@ +/** + * 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 Value: core.serialization.Schema = core.serialization.unknown(); + +export declare namespace Value { + type Raw = unknown; +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/index.ts new file mode 100644 index 0000000000..f88e3ccae9 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/resources/common/types/index.ts @@ -0,0 +1,5 @@ +export * from "./Key"; +export * from "./Directory"; +export * from "./Value"; +export * from "./Entry"; +export * from "./PutEntry"; diff --git a/sdks/full/typescript/src/serialization/resources/kv/types/GetBatchResponse.ts b/sdks/full/typescript/src/serialization/resources/kv/types/GetBatchResponse.ts new file mode 100644 index 0000000000..59e09e1c57 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/types/GetBatchResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetBatchResponse: core.serialization.ObjectSchema< + serializers.kv.GetBatchResponse.Raw, + Rivet.kv.GetBatchResponse +> = core.serialization.object({ + entries: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).kv.Entry)), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), +}); + +export declare namespace GetBatchResponse { + interface Raw { + entries: serializers.kv.Entry.Raw[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/types/GetResponse.ts b/sdks/full/typescript/src/serialization/resources/kv/types/GetResponse.ts new file mode 100644 index 0000000000..4ca3a825a6 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/types/GetResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetResponse: core.serialization.ObjectSchema = + core.serialization.object({ + value: core.serialization.lazy(async () => (await import("../../..")).kv.Value), + deleted: core.serialization.boolean().optional(), + watch: core.serialization.lazyObject(async () => (await import("../../..")).WatchResponse), + }); + +export declare namespace GetResponse { + interface Raw { + value?: serializers.kv.Value.Raw; + deleted?: boolean | null; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/types/ListResponse.ts b/sdks/full/typescript/src/serialization/resources/kv/types/ListResponse.ts new file mode 100644 index 0000000000..ddf5176c0c --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/types/ListResponse.ts @@ -0,0 +1,20 @@ +/** + * 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 ListResponse: core.serialization.ObjectSchema = + core.serialization.object({ + entries: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../..")).kv.Entry) + ), + }); + +export declare namespace ListResponse { + interface Raw { + entries: serializers.kv.Entry.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/types/PutBatchRequest.ts b/sdks/full/typescript/src/serialization/resources/kv/types/PutBatchRequest.ts new file mode 100644 index 0000000000..e98c4d5acc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/types/PutBatchRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 PutBatchRequest: core.serialization.ObjectSchema< + serializers.kv.PutBatchRequest.Raw, + Rivet.kv.PutBatchRequest +> = core.serialization.object({ + namespaceId: core.serialization.property("namespace_id", core.serialization.string().optional()), + entries: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).kv.PutEntry)), +}); + +export declare namespace PutBatchRequest { + interface Raw { + namespace_id?: string | null; + entries: serializers.kv.PutEntry.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/types/PutRequest.ts b/sdks/full/typescript/src/serialization/resources/kv/types/PutRequest.ts new file mode 100644 index 0000000000..578bfed0b0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/types/PutRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 PutRequest: core.serialization.ObjectSchema = + core.serialization.object({ + namespaceId: core.serialization.property("namespace_id", core.serialization.string().optional()), + key: core.serialization.lazy(async () => (await import("../../..")).kv.Key), + value: core.serialization.lazy(async () => (await import("../../..")).kv.Value), + }); + +export declare namespace PutRequest { + interface Raw { + namespace_id?: string | null; + key: serializers.kv.Key.Raw; + value?: serializers.kv.Value.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/kv/types/index.ts b/sdks/full/typescript/src/serialization/resources/kv/types/index.ts new file mode 100644 index 0000000000..e4596df6de --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/kv/types/index.ts @@ -0,0 +1,5 @@ +export * from "./GetResponse"; +export * from "./PutRequest"; +export * from "./ListResponse"; +export * from "./GetBatchResponse"; +export * from "./PutBatchRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/CustomLobbyPublicity.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/CustomLobbyPublicity.ts new file mode 100644 index 0000000000..a82627c1d5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/CustomLobbyPublicity.ts @@ -0,0 +1,16 @@ +/** + * 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 CustomLobbyPublicity: core.serialization.Schema< + serializers.matchmaker.CustomLobbyPublicity.Raw, + Rivet.matchmaker.CustomLobbyPublicity +> = core.serialization.enum_(["public", "private"]); + +export declare namespace CustomLobbyPublicity { + type Raw = "public" | "private"; +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/GameModeInfo.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/GameModeInfo.ts new file mode 100644 index 0000000000..d84d040283 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/GameModeInfo.ts @@ -0,0 +1,23 @@ +/** + * 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 GameModeInfo: core.serialization.ObjectSchema< + serializers.matchmaker.GameModeInfo.Raw, + Rivet.matchmaker.GameModeInfo +> = core.serialization.object({ + gameModeId: core.serialization.property( + "game_mode_id", + core.serialization.lazy(async () => (await import("../../../../..")).Identifier) + ), +}); + +export declare namespace GameModeInfo { + interface Raw { + game_mode_id: serializers.Identifier.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinLobby.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinLobby.ts new file mode 100644 index 0000000000..ac863e7e43 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinLobby.ts @@ -0,0 +1,29 @@ +/** + * 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 JoinLobby: core.serialization.ObjectSchema< + serializers.matchmaker.JoinLobby.Raw, + Rivet.matchmaker.JoinLobby +> = core.serialization.object({ + lobbyId: core.serialization.property("lobby_id", core.serialization.string()), + region: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinRegion), + ports: core.serialization.record( + core.serialization.string(), + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPort) + ), + player: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPlayer), +}); + +export declare namespace JoinLobby { + interface Raw { + lobby_id: string; + region: serializers.matchmaker.JoinRegion.Raw; + ports: Record; + player: serializers.matchmaker.JoinPlayer.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPlayer.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPlayer.ts new file mode 100644 index 0000000000..b671fb8b3e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPlayer.ts @@ -0,0 +1,20 @@ +/** + * 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 JoinPlayer: core.serialization.ObjectSchema< + serializers.matchmaker.JoinPlayer.Raw, + Rivet.matchmaker.JoinPlayer +> = core.serialization.object({ + token: core.serialization.lazy(async () => (await import("../../../../..")).Jwt), +}); + +export declare namespace JoinPlayer { + interface Raw { + token: serializers.Jwt.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPort.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPort.ts new file mode 100644 index 0000000000..6f9413c750 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPort.ts @@ -0,0 +1,31 @@ +/** + * 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 JoinPort: core.serialization.ObjectSchema = + core.serialization.object({ + host: core.serialization.string().optional(), + hostname: core.serialization.string(), + port: core.serialization.number().optional(), + portRange: core.serialization.property( + "port_range", + core.serialization + .lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPortRange) + .optional() + ), + isTls: core.serialization.property("is_tls", core.serialization.boolean()), + }); + +export declare namespace JoinPort { + interface Raw { + host?: string | null; + hostname: string; + port?: number | null; + port_range?: serializers.matchmaker.JoinPortRange.Raw | null; + is_tls: boolean; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPortRange.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPortRange.ts new file mode 100644 index 0000000000..f970256c39 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinPortRange.ts @@ -0,0 +1,22 @@ +/** + * 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 JoinPortRange: core.serialization.ObjectSchema< + serializers.matchmaker.JoinPortRange.Raw, + Rivet.matchmaker.JoinPortRange +> = core.serialization.object({ + min: core.serialization.number(), + max: core.serialization.number(), +}); + +export declare namespace JoinPortRange { + interface Raw { + min: number; + max: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinRegion.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinRegion.ts new file mode 100644 index 0000000000..1bd0c52094 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/JoinRegion.ts @@ -0,0 +1,28 @@ +/** + * 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 JoinRegion: core.serialization.ObjectSchema< + serializers.matchmaker.JoinRegion.Raw, + Rivet.matchmaker.JoinRegion +> = core.serialization.object({ + regionId: core.serialization.property( + "region_id", + core.serialization.lazy(async () => (await import("../../../../..")).Identifier) + ), + displayName: core.serialization.property( + "display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), +}); + +export declare namespace JoinRegion { + interface Raw { + region_id: serializers.Identifier.Raw; + display_name: serializers.DisplayName.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/LobbyInfo.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/LobbyInfo.ts new file mode 100644 index 0000000000..0e89aadff0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/LobbyInfo.ts @@ -0,0 +1,34 @@ +/** + * 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 LobbyInfo: core.serialization.ObjectSchema< + serializers.matchmaker.LobbyInfo.Raw, + Rivet.matchmaker.LobbyInfo +> = core.serialization.object({ + regionId: core.serialization.property("region_id", core.serialization.string()), + gameModeId: core.serialization.property("game_mode_id", core.serialization.string()), + lobbyId: core.serialization.property("lobby_id", core.serialization.string()), + maxPlayersNormal: core.serialization.property("max_players_normal", core.serialization.number()), + maxPlayersDirect: core.serialization.property("max_players_direct", core.serialization.number()), + maxPlayersParty: core.serialization.property("max_players_party", core.serialization.number()), + totalPlayerCount: core.serialization.property("total_player_count", core.serialization.number()), + state: core.serialization.unknown().optional(), +}); + +export declare namespace LobbyInfo { + interface Raw { + region_id: string; + game_mode_id: string; + lobby_id: string; + max_players_normal: number; + max_players_direct: number; + max_players_party: number; + total_player_count: number; + state?: unknown | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/RegionInfo.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/RegionInfo.ts new file mode 100644 index 0000000000..6268b0e956 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/RegionInfo.ts @@ -0,0 +1,43 @@ +/** + * 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 RegionInfo: core.serialization.ObjectSchema< + serializers.matchmaker.RegionInfo.Raw, + Rivet.matchmaker.RegionInfo +> = core.serialization.object({ + regionId: core.serialization.property( + "region_id", + core.serialization.lazy(async () => (await import("../../../../..")).Identifier) + ), + providerDisplayName: core.serialization.property( + "provider_display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + regionDisplayName: core.serialization.property( + "region_display_name", + core.serialization.lazy(async () => (await import("../../../../..")).DisplayName) + ), + datacenterCoord: core.serialization.property( + "datacenter_coord", + core.serialization.lazyObject(async () => (await import("../../../../..")).geo.Coord) + ), + datacenterDistanceFromClient: core.serialization.property( + "datacenter_distance_from_client", + core.serialization.lazyObject(async () => (await import("../../../../..")).geo.Distance) + ), +}); + +export declare namespace RegionInfo { + interface Raw { + region_id: serializers.Identifier.Raw; + provider_display_name: serializers.DisplayName.Raw; + region_display_name: serializers.DisplayName.Raw; + datacenter_coord: serializers.geo.Coord.Raw; + datacenter_distance_from_client: serializers.geo.Distance.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/index.ts new file mode 100644 index 0000000000..5519ce0ef7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/common/types/index.ts @@ -0,0 +1,9 @@ +export * from "./LobbyInfo"; +export * from "./GameModeInfo"; +export * from "./RegionInfo"; +export * from "./JoinLobby"; +export * from "./JoinRegion"; +export * from "./JoinPort"; +export * from "./JoinPortRange"; +export * from "./JoinPlayer"; +export * from "./CustomLobbyPublicity"; diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/CreateLobbyResponse.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/CreateLobbyResponse.ts new file mode 100644 index 0000000000..cb70e64ac3 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/CreateLobbyResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 CreateLobbyResponse: core.serialization.ObjectSchema< + serializers.matchmaker.CreateLobbyResponse.Raw, + Rivet.matchmaker.CreateLobbyResponse +> = core.serialization.object({ + lobby: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinLobby), + ports: core.serialization.record( + core.serialization.string(), + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPort) + ), + player: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPlayer), +}); + +export declare namespace CreateLobbyResponse { + interface Raw { + lobby: serializers.matchmaker.JoinLobby.Raw; + ports: Record; + player: serializers.matchmaker.JoinPlayer.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/FindLobbyResponse.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/FindLobbyResponse.ts new file mode 100644 index 0000000000..9eae87d8c5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/FindLobbyResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 FindLobbyResponse: core.serialization.ObjectSchema< + serializers.matchmaker.FindLobbyResponse.Raw, + Rivet.matchmaker.FindLobbyResponse +> = core.serialization.object({ + lobby: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinLobby), + ports: core.serialization.record( + core.serialization.string(), + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPort) + ), + player: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPlayer), +}); + +export declare namespace FindLobbyResponse { + interface Raw { + lobby: serializers.matchmaker.JoinLobby.Raw; + ports: Record; + player: serializers.matchmaker.JoinPlayer.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/JoinLobbyResponse.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/JoinLobbyResponse.ts new file mode 100644 index 0000000000..289cf984c4 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/JoinLobbyResponse.ts @@ -0,0 +1,27 @@ +/** + * 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 JoinLobbyResponse: core.serialization.ObjectSchema< + serializers.matchmaker.JoinLobbyResponse.Raw, + Rivet.matchmaker.JoinLobbyResponse +> = core.serialization.object({ + lobby: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinLobby), + ports: core.serialization.record( + core.serialization.string(), + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPort) + ), + player: core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.JoinPlayer), +}); + +export declare namespace JoinLobbyResponse { + interface Raw { + lobby: serializers.matchmaker.JoinLobby.Raw; + ports: Record; + player: serializers.matchmaker.JoinPlayer.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/ListLobbiesResponse.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/ListLobbiesResponse.ts new file mode 100644 index 0000000000..5de03f5fd7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/ListLobbiesResponse.ts @@ -0,0 +1,33 @@ +/** + * 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 ListLobbiesResponse: core.serialization.ObjectSchema< + serializers.matchmaker.ListLobbiesResponse.Raw, + Rivet.matchmaker.ListLobbiesResponse +> = core.serialization.object({ + gameModes: core.serialization.property( + "game_modes", + core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.GameModeInfo) + ) + ), + regions: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.RegionInfo) + ), + lobbies: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.LobbyInfo) + ), +}); + +export declare namespace ListLobbiesResponse { + interface Raw { + game_modes: serializers.matchmaker.GameModeInfo.Raw[]; + regions: serializers.matchmaker.RegionInfo.Raw[]; + lobbies: serializers.matchmaker.LobbyInfo.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/index.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/index.ts new file mode 100644 index 0000000000..13491dd556 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/lobbies/types/index.ts @@ -0,0 +1,4 @@ +export * from "./FindLobbyResponse"; +export * from "./JoinLobbyResponse"; +export * from "./CreateLobbyResponse"; +export * from "./ListLobbiesResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/GameModeStatistics.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/GameModeStatistics.ts new file mode 100644 index 0000000000..37ce994b1d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/GameModeStatistics.ts @@ -0,0 +1,25 @@ +/** + * 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 GameModeStatistics: core.serialization.ObjectSchema< + serializers.matchmaker.GameModeStatistics.Raw, + Rivet.matchmaker.GameModeStatistics +> = core.serialization.object({ + playerCount: core.serialization.property("player_count", core.serialization.number()), + regions: core.serialization.record( + core.serialization.lazy(async () => (await import("../../../../..")).Identifier), + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.RegionStatistics) + ), +}); + +export declare namespace GameModeStatistics { + interface Raw { + player_count: number; + regions: Record; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/GetStatisticsResponse.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/GetStatisticsResponse.ts new file mode 100644 index 0000000000..625d73d4a4 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/GetStatisticsResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 GetStatisticsResponse: core.serialization.ObjectSchema< + serializers.matchmaker.GetStatisticsResponse.Raw, + Rivet.matchmaker.GetStatisticsResponse +> = core.serialization.object({ + playerCount: core.serialization.property("player_count", core.serialization.number()), + gameModes: core.serialization.property( + "game_modes", + core.serialization.record( + core.serialization.lazy(async () => (await import("../../../../..")).Identifier), + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.GameModeStatistics) + ) + ), +}); + +export declare namespace GetStatisticsResponse { + interface Raw { + player_count: number; + game_modes: Record; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/RegionStatistics.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/RegionStatistics.ts new file mode 100644 index 0000000000..da7ec7253e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/RegionStatistics.ts @@ -0,0 +1,20 @@ +/** + * 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 RegionStatistics: core.serialization.ObjectSchema< + serializers.matchmaker.RegionStatistics.Raw, + Rivet.matchmaker.RegionStatistics +> = core.serialization.object({ + playerCount: core.serialization.property("player_count", core.serialization.number()), +}); + +export declare namespace RegionStatistics { + interface Raw { + player_count: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/index.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/index.ts new file mode 100644 index 0000000000..e6a2666580 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/players/types/index.ts @@ -0,0 +1,3 @@ +export * from "./GetStatisticsResponse"; +export * from "./GameModeStatistics"; +export * from "./RegionStatistics"; diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/regions/types/ListRegionsResponse.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/regions/types/ListRegionsResponse.ts new file mode 100644 index 0000000000..608d29cf57 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/regions/types/ListRegionsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 ListRegionsResponse: core.serialization.ObjectSchema< + serializers.matchmaker.ListRegionsResponse.Raw, + Rivet.matchmaker.ListRegionsResponse +> = core.serialization.object({ + regions: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).matchmaker.RegionInfo) + ), +}); + +export declare namespace ListRegionsResponse { + interface Raw { + regions: serializers.matchmaker.RegionInfo.Raw[]; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/matchmaker/resources/regions/types/index.ts b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/regions/types/index.ts new file mode 100644 index 0000000000..dd60cc81be --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/matchmaker/resources/regions/types/index.ts @@ -0,0 +1 @@ +export * from "./ListRegionsResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationRegisterFirebaseService.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationRegisterFirebaseService.ts new file mode 100644 index 0000000000..64b8839fa3 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationRegisterFirebaseService.ts @@ -0,0 +1,20 @@ +/** + * 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 NotificationRegisterFirebaseService: core.serialization.ObjectSchema< + serializers.portal.NotificationRegisterFirebaseService.Raw, + Rivet.portal.NotificationRegisterFirebaseService +> = core.serialization.object({ + accessKey: core.serialization.property("access_key", core.serialization.string()), +}); + +export declare namespace NotificationRegisterFirebaseService { + interface Raw { + access_key: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationRegisterService.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationRegisterService.ts new file mode 100644 index 0000000000..493e4622d0 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationRegisterService.ts @@ -0,0 +1,22 @@ +/** + * 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 NotificationRegisterService: core.serialization.ObjectSchema< + serializers.portal.NotificationRegisterService.Raw, + Rivet.portal.NotificationRegisterService +> = core.serialization.object({ + firebase: core.serialization + .lazyObject(async () => (await import("../../../../..")).portal.NotificationRegisterFirebaseService) + .optional(), +}); + +export declare namespace NotificationRegisterService { + interface Raw { + firebase?: serializers.portal.NotificationRegisterFirebaseService.Raw | null; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationUnregisterService.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationUnregisterService.ts new file mode 100644 index 0000000000..e25385d83d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/NotificationUnregisterService.ts @@ -0,0 +1,16 @@ +/** + * 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 NotificationUnregisterService: core.serialization.Schema< + serializers.portal.NotificationUnregisterService.Raw, + Rivet.portal.NotificationUnregisterService +> = core.serialization.enum_(["firebase"]); + +export declare namespace NotificationUnregisterService { + type Raw = "firebase"; +} diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/index.ts new file mode 100644 index 0000000000..af64098ef7 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/common/types/index.ts @@ -0,0 +1,3 @@ +export * from "./NotificationRegisterService"; +export * from "./NotificationRegisterFirebaseService"; +export * from "./NotificationUnregisterService"; diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/GetGameProfileResponse.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/GetGameProfileResponse.ts new file mode 100644 index 0000000000..ab388b03ad --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/GetGameProfileResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetGameProfileResponse: core.serialization.ObjectSchema< + serializers.portal.GetGameProfileResponse.Raw, + Rivet.portal.GetGameProfileResponse +> = core.serialization.object({ + game: core.serialization.lazyObject(async () => (await import("../../../../..")).game.Profile), + watch: core.serialization.lazyObject(async () => (await import("../../../../..")).WatchResponse), +}); + +export declare namespace GetGameProfileResponse { + interface Raw { + game: serializers.game.Profile.Raw; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/GetSuggestedGamesResponse.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/GetSuggestedGamesResponse.ts new file mode 100644 index 0000000000..b0c1cdf92d --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/GetSuggestedGamesResponse.ts @@ -0,0 +1,24 @@ +/** + * 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 GetSuggestedGamesResponse: core.serialization.ObjectSchema< + serializers.portal.GetSuggestedGamesResponse.Raw, + Rivet.portal.GetSuggestedGamesResponse +> = core.serialization.object({ + games: core.serialization.list( + core.serialization.lazyObject(async () => (await import("../../../../..")).game.Summary) + ), + watch: core.serialization.lazyObject(async () => (await import("../../../../..")).WatchResponse), +}); + +export declare namespace GetSuggestedGamesResponse { + interface Raw { + games: serializers.game.Summary.Raw[]; + watch: serializers.WatchResponse.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/index.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/index.ts new file mode 100644 index 0000000000..ffac3322f5 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/games/types/index.ts @@ -0,0 +1,2 @@ +export * from "./GetSuggestedGamesResponse"; +export * from "./GetGameProfileResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/notifications/types/RegisterNotificationsRequest.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/notifications/types/RegisterNotificationsRequest.ts new file mode 100644 index 0000000000..aadd1d8f9e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/notifications/types/RegisterNotificationsRequest.ts @@ -0,0 +1,22 @@ +/** + * 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 RegisterNotificationsRequest: core.serialization.ObjectSchema< + serializers.portal.RegisterNotificationsRequest.Raw, + Rivet.portal.RegisterNotificationsRequest +> = core.serialization.object({ + service: core.serialization.lazyObject( + async () => (await import("../../../../..")).portal.NotificationRegisterService + ), +}); + +export declare namespace RegisterNotificationsRequest { + interface Raw { + service: serializers.portal.NotificationRegisterService.Raw; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/portal/resources/notifications/types/index.ts b/sdks/full/typescript/src/serialization/resources/portal/resources/notifications/types/index.ts new file mode 100644 index 0000000000..b8870104ec --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/portal/resources/notifications/types/index.ts @@ -0,0 +1 @@ +export * from "./RegisterNotificationsRequest"; diff --git a/sdks/full/typescript/src/serialization/resources/provision/resources/datacenters/types/GetTlsResponse.ts b/sdks/full/typescript/src/serialization/resources/provision/resources/datacenters/types/GetTlsResponse.ts new file mode 100644 index 0000000000..fe1c6db1cc --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/provision/resources/datacenters/types/GetTlsResponse.ts @@ -0,0 +1,22 @@ +/** + * 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 GetTlsResponse: core.serialization.ObjectSchema< + serializers.provision.datacenters.GetTlsResponse.Raw, + Rivet.provision.datacenters.GetTlsResponse +> = core.serialization.object({ + jobCertPem: core.serialization.property("job_cert_pem", core.serialization.string()), + jobPrivateKeyPem: core.serialization.property("job_private_key_pem", core.serialization.string()), +}); + +export declare namespace GetTlsResponse { + interface Raw { + job_cert_pem: string; + job_private_key_pem: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/provision/resources/datacenters/types/index.ts b/sdks/full/typescript/src/serialization/resources/provision/resources/datacenters/types/index.ts new file mode 100644 index 0000000000..19c6f682d2 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/provision/resources/datacenters/types/index.ts @@ -0,0 +1 @@ +export * from "./GetTlsResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/provision/resources/servers/types/GetInfoResponse.ts b/sdks/full/typescript/src/serialization/resources/provision/resources/servers/types/GetInfoResponse.ts new file mode 100644 index 0000000000..2e86746150 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/provision/resources/servers/types/GetInfoResponse.ts @@ -0,0 +1,28 @@ +/** + * 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 GetInfoResponse: core.serialization.ObjectSchema< + serializers.provision.servers.GetInfoResponse.Raw, + Rivet.provision.servers.GetInfoResponse +> = core.serialization.object({ + name: core.serialization.string(), + serverId: core.serialization.property("server_id", core.serialization.string()), + datacenterId: core.serialization.property("datacenter_id", core.serialization.string()), + clusterId: core.serialization.property("cluster_id", core.serialization.string()), + vlanIp: core.serialization.property("vlan_ip", core.serialization.string()), +}); + +export declare namespace GetInfoResponse { + interface Raw { + name: string; + server_id: string; + datacenter_id: string; + cluster_id: string; + vlan_ip: string; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/provision/resources/servers/types/index.ts b/sdks/full/typescript/src/serialization/resources/provision/resources/servers/types/index.ts new file mode 100644 index 0000000000..f9b6ce198e --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/provision/resources/servers/types/index.ts @@ -0,0 +1 @@ +export * from "./GetInfoResponse"; diff --git a/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/PrepareFile.ts b/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/PrepareFile.ts new file mode 100644 index 0000000000..cf9bd43a49 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/PrepareFile.ts @@ -0,0 +1,24 @@ +/** + * 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 PrepareFile: core.serialization.ObjectSchema< + serializers.upload.PrepareFile.Raw, + Rivet.upload.PrepareFile +> = core.serialization.object({ + path: core.serialization.string(), + contentType: core.serialization.property("content_type", core.serialization.string().optional()), + contentLength: core.serialization.property("content_length", core.serialization.number()), +}); + +export declare namespace PrepareFile { + interface Raw { + path: string; + content_type?: string | null; + content_length: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/PresignedRequest.ts b/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/PresignedRequest.ts new file mode 100644 index 0000000000..bb15814b36 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/PresignedRequest.ts @@ -0,0 +1,26 @@ +/** + * 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 PresignedRequest: core.serialization.ObjectSchema< + serializers.upload.PresignedRequest.Raw, + Rivet.upload.PresignedRequest +> = core.serialization.object({ + path: core.serialization.string(), + url: core.serialization.string(), + byteOffset: core.serialization.property("byte_offset", core.serialization.number()), + contentLength: core.serialization.property("content_length", core.serialization.number()), +}); + +export declare namespace PresignedRequest { + interface Raw { + path: string; + url: string; + byte_offset: number; + content_length: number; + } +} diff --git a/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/index.ts b/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/index.ts new file mode 100644 index 0000000000..c950bbac53 --- /dev/null +++ b/sdks/full/typescript/src/serialization/resources/upload/resources/common/types/index.ts @@ -0,0 +1,2 @@ +export * from "./PresignedRequest"; +export * from "./PrepareFile"; diff --git a/sdks/full/typescript/tsconfig.json b/sdks/full/typescript/tsconfig.json deleted file mode 100644 index 6386dc3821..0000000000 --- a/sdks/full/typescript/tsconfig.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "compilerOptions": { - "extendedDiagnostics": true, - "strict": true, - "target": "esnext", - "module": "esnext", - "moduleResolution": "node", - "esModuleInterop": true, - "skipLibCheck": true, - "declaration": true, - "emitDeclarationOnly": true, - "sourceMap": true, - "noUnusedParameters": true, - "outDir": "types", - "rootDir": "src", - "baseUrl": "src", - "paths": { - "@rivet-gg/api": [ - "." - ] - } - }, - "include": [ - "src" - ], - "exclude": [] -} \ No newline at end of file diff --git a/sdks/full/typescript/yarn.lock b/sdks/full/typescript/yarn.lock index 834dd40aed..fb57ccd13a 100644 --- a/sdks/full/typescript/yarn.lock +++ b/sdks/full/typescript/yarn.lock @@ -2,339 +2,3 @@ # yarn lockfile v1 -"@esbuild/aix-ppc64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.19.11.tgz#2acd20be6d4f0458bc8c784103495ff24f13b1d3" - integrity sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g== - -"@esbuild/android-arm64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.11.tgz#b45d000017385c9051a4f03e17078abb935be220" - integrity sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q== - -"@esbuild/android-arm@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.11.tgz#f46f55414e1c3614ac682b29977792131238164c" - integrity sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw== - -"@esbuild/android-x64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.11.tgz#bfc01e91740b82011ef503c48f548950824922b2" - integrity sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg== - -"@esbuild/darwin-arm64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.11.tgz#533fb7f5a08c37121d82c66198263dcc1bed29bf" - integrity sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ== - -"@esbuild/darwin-x64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.11.tgz#62f3819eff7e4ddc656b7c6815a31cf9a1e7d98e" - integrity sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g== - -"@esbuild/freebsd-arm64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.11.tgz#d478b4195aa3ca44160272dab85ef8baf4175b4a" - integrity sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA== - -"@esbuild/freebsd-x64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.11.tgz#7bdcc1917409178257ca6a1a27fe06e797ec18a2" - integrity sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw== - -"@esbuild/linux-arm64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.11.tgz#58ad4ff11685fcc735d7ff4ca759ab18fcfe4545" - integrity sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg== - -"@esbuild/linux-arm@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.11.tgz#ce82246d873b5534d34de1e5c1b33026f35e60e3" - integrity sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q== - -"@esbuild/linux-ia32@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.11.tgz#cbae1f313209affc74b80f4390c4c35c6ab83fa4" - integrity sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA== - -"@esbuild/linux-loong64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.11.tgz#5f32aead1c3ec8f4cccdb7ed08b166224d4e9121" - integrity sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg== - -"@esbuild/linux-mips64el@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.11.tgz#38eecf1cbb8c36a616261de858b3c10d03419af9" - integrity sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg== - -"@esbuild/linux-ppc64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.11.tgz#9c5725a94e6ec15b93195e5a6afb821628afd912" - integrity sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA== - -"@esbuild/linux-riscv64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.11.tgz#2dc4486d474a2a62bbe5870522a9a600e2acb916" - integrity sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ== - -"@esbuild/linux-s390x@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.11.tgz#4ad8567df48f7dd4c71ec5b1753b6f37561a65a8" - integrity sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q== - -"@esbuild/linux-x64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz#b7390c4d5184f203ebe7ddaedf073df82a658766" - integrity sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA== - -"@esbuild/netbsd-x64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.11.tgz#d633c09492a1721377f3bccedb2d821b911e813d" - integrity sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ== - -"@esbuild/openbsd-x64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.11.tgz#17388c76e2f01125bf831a68c03a7ffccb65d1a2" - integrity sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw== - -"@esbuild/sunos-x64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.11.tgz#e320636f00bb9f4fdf3a80e548cb743370d41767" - integrity sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ== - -"@esbuild/win32-arm64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.11.tgz#c778b45a496e90b6fc373e2a2bb072f1441fe0ee" - integrity sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ== - -"@esbuild/win32-ia32@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.11.tgz#481a65fee2e5cce74ec44823e6b09ecedcc5194c" - integrity sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg== - -"@esbuild/win32-x64@0.19.11": - version "0.19.11" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.11.tgz#a5d300008960bb39677c46bf16f53ec70d8dee04" - integrity sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw== - -"@types/node@17.0.33": - version "17.0.33" - resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.33.tgz#3c1879b276dc63e73030bb91165e62a4509cd506" - integrity sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ== - -"@types/qs@6.9.8": - version "6.9.8" - resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.8.tgz#f2a7de3c107b89b441e071d5472e6b726b4adf45" - integrity sha512-u95svzDlTysU5xecFNTgfFG5RUWu1A9P0VzgpcIiGZA9iraHOdSzcxMxQ55DyeRaGCSxQi7LxXDI4rzq/MYfdg== - -"@types/url-join@4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@types/url-join/-/url-join-4.0.1.tgz#4989c97f969464647a8586c7252d97b449cdc045" - integrity sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ== - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -call-bind@^1.0.0: - version "1.0.5" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.5.tgz#6fa2b7845ce0ea49bf4d8b9ef64727a2c2e2e513" - integrity sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ== - dependencies: - function-bind "^1.1.2" - get-intrinsic "^1.2.1" - set-function-length "^1.1.1" - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -define-data-property@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3" - integrity sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ== - dependencies: - get-intrinsic "^1.2.1" - gopd "^1.0.1" - has-property-descriptors "^1.0.0" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -esbuild@^0.19.11: - version "0.19.11" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.11.tgz#4a02dca031e768b5556606e1b468fe72e3325d96" - integrity sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA== - optionalDependencies: - "@esbuild/aix-ppc64" "0.19.11" - "@esbuild/android-arm" "0.19.11" - "@esbuild/android-arm64" "0.19.11" - "@esbuild/android-x64" "0.19.11" - "@esbuild/darwin-arm64" "0.19.11" - "@esbuild/darwin-x64" "0.19.11" - "@esbuild/freebsd-arm64" "0.19.11" - "@esbuild/freebsd-x64" "0.19.11" - "@esbuild/linux-arm" "0.19.11" - "@esbuild/linux-arm64" "0.19.11" - "@esbuild/linux-ia32" "0.19.11" - "@esbuild/linux-loong64" "0.19.11" - "@esbuild/linux-mips64el" "0.19.11" - "@esbuild/linux-ppc64" "0.19.11" - "@esbuild/linux-riscv64" "0.19.11" - "@esbuild/linux-s390x" "0.19.11" - "@esbuild/linux-x64" "0.19.11" - "@esbuild/netbsd-x64" "0.19.11" - "@esbuild/openbsd-x64" "0.19.11" - "@esbuild/sunos-x64" "0.19.11" - "@esbuild/win32-arm64" "0.19.11" - "@esbuild/win32-ia32" "0.19.11" - "@esbuild/win32-x64" "0.19.11" - -form-data@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" - integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -function-bind@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" - integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== - -get-intrinsic@^1.0.2, get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.2.tgz#281b7622971123e1ef4b3c90fd7539306da93f3b" - integrity sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA== - dependencies: - function-bind "^1.1.2" - has-proto "^1.0.1" - has-symbols "^1.0.3" - hasown "^2.0.0" - -gopd@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" - integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== - dependencies: - get-intrinsic "^1.1.3" - -has-property-descriptors@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz#52ba30b6c5ec87fd89fa574bc1c39125c6f65340" - integrity sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg== - dependencies: - get-intrinsic "^1.2.2" - -has-proto@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" - integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== - -has-symbols@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -hasown@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.0.tgz#f4c513d454a57b7c7e1650778de226b11700546c" - integrity sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA== - dependencies: - function-bind "^1.1.2" - -js-base64@^3.7.5: - version "3.7.5" - resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.5.tgz#21e24cf6b886f76d6f5f165bfcd69cc55b9e3fca" - integrity sha512-3MEt5DTINKqfScXKfJFrRbxkrnk2AxPWGBL/ycjz4dK8iqiSJ06UxD8jh8xuh6p10TX4t2+7FsBYVxxQbMg+qA== - -mime-db@1.52.0: - version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@^2.1.12: - version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -node-fetch@2: - version "2.7.0" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" - integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== - dependencies: - whatwg-url "^5.0.0" - -object-inspect@^1.9.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" - integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== - -prettier@2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== - -qs@^6.11.2: - version "6.11.2" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.2.tgz#64bea51f12c1f5da1bc01496f48ffcff7c69d7d9" - integrity sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA== - dependencies: - side-channel "^1.0.4" - -set-function-length@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.1.1.tgz#4bc39fafb0307224a33e106a7d35ca1218d659ed" - integrity sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ== - dependencies: - define-data-property "^1.1.1" - get-intrinsic "^1.2.1" - gopd "^1.0.1" - has-property-descriptors "^1.0.0" - -side-channel@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== - dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" - -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - -typescript@4.6.4: - version "4.6.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" - integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== - -url-join@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/url-join/-/url-join-5.0.0.tgz#c2f1e5cbd95fa91082a93b58a1f42fecb4bdbcf1" - integrity sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA== - -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" diff --git a/svc/api/cloud/src/route/games/mod.rs b/svc/api/cloud/src/route/games/mod.rs index 92aa993784..9d627020a5 100644 --- a/svc/api/cloud/src/route/games/mod.rs +++ b/svc/api/cloud/src/route/games/mod.rs @@ -3,7 +3,6 @@ use api_helper::{ ctx::Ctx, }; use proto::backend::{self, pkg::*}; -use rand::seq::IteratorRandom; use rivet_api::models; use rivet_claims::ClaimsDecode; use rivet_convert::{fetch, ApiInto, ApiTryFrom, ApiTryInto}; @@ -81,7 +80,7 @@ pub async fn create( // Create game let game_id = { let create_game_res = op!([ctx] game_create { - name_id: gen_name_id(&body.display_name), + name_id: util::format::gen_name_id(&body.display_name, "game"), display_name: body.display_name.clone(), developer_team_id: Some(body.developer_group_id.into()), creator_user_id: user_id.as_ref().map(|x| x.user_id.into()), @@ -610,28 +609,3 @@ pub async fn complete_banner_upload( Ok(json!({})) } - -fn gen_name_id(s: impl AsRef) -> String { - let proc_ident = util::format::str_to_ident(s); - - // Default - let (proc_ident, rng_count) = if proc_ident.is_empty() { - ("game", 8) - } else { - (proc_ident.as_str(), 3) - }; - - // Choose a random hash to add to the name id - let chars = "abcdefghijklmnopqrstuvwxyz1234567890"; // pragma: allowlist secret - let mut rng = rand::thread_rng(); - let hash = std::iter::repeat_with(|| chars.chars().choose(&mut rng)) - .flatten() - .take(rng_count); - - proc_ident - .chars() - .take(util::check::MAX_IDENT_LEN - 4) - .chain(std::iter::once('-')) - .chain(hash) - .collect::() -} diff --git a/svc/api/cloud/src/route/mod.rs b/svc/api/cloud/src/route/mod.rs index 5883f57778..5eb6f04838 100644 --- a/svc/api/cloud/src/route/mod.rs +++ b/svc/api/cloud/src/route/mod.rs @@ -222,7 +222,9 @@ define_router! { ), }, "devices" / "links" / "complete": { - POST: devices::links::complete(body: models::CloudDevicesCompleteDeviceLinkRequest), + POST: devices::links::complete( + body: models::CloudDevicesCompleteDeviceLinkRequest, + ), }, }, } diff --git a/svc/pkg/cf-custom-hostname/worker/src/lib.rs b/svc/pkg/cf-custom-hostname/worker/src/lib.rs index 9d6b5ad841..3075f1b5e7 100644 --- a/svc/pkg/cf-custom-hostname/worker/src/lib.rs +++ b/svc/pkg/cf-custom-hostname/worker/src/lib.rs @@ -1,14 +1,3 @@ use serde::Deserialize; 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 c074300027..57fdcbe17a 100644 --- a/svc/pkg/cf-custom-hostname/worker/src/workers/create.rs +++ b/svc/pkg/cf-custom-hostname/worker/src/workers/create.rs @@ -3,8 +3,6 @@ use proto::backend::{self, pkg::*}; use serde::Deserialize; use serde_json::json; -use crate::CloudflareError; - #[derive(Debug, Deserialize)] struct CloudflareResponse { result: CloudflareResult, @@ -22,6 +20,17 @@ 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 9f737972c1..3d84e25c46 100644 --- a/svc/pkg/cf-custom-hostname/worker/src/workers/delete.rs +++ b/svc/pkg/cf-custom-hostname/worker/src/workers/delete.rs @@ -2,7 +2,16 @@ use chirp_worker::prelude::*; use proto::backend::pkg::*; use serde::Deserialize; -use crate::CloudflareError; +#[derive(Debug, Deserialize)] +struct CloudflareError { + errors: Vec, +} + +#[derive(Debug, Deserialize)] +struct CloudflareErrorEntry { + code: usize, + message: String, +} #[worker(name = "cf-custom-hostname-delete")] async fn worker( 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 28afb0c20d..b24ea06526 100644 --- a/svc/pkg/load-test/standalone/api-cloud/src/lib.rs +++ b/svc/pkg/load-test/standalone/api-cloud/src/lib.rs @@ -145,9 +145,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/user/ops/get/src/lib.rs b/svc/pkg/user/ops/get/src/lib.rs index cf640eb904..76e8f2579c 100644 --- a/svc/pkg/user/ops/get/src/lib.rs +++ b/svc/pkg/user/ops/get/src/lib.rs @@ -112,6 +112,8 @@ pub async fn handle( .find(|file| file.upload_id == profile_id); if let (Some(upload), Some(file)) = (upload, file) { + // TODO: Why do we parse the file name here? Based on route.rs in utils shouldn't + // the entire path be present in the media url? let profile_file_name = file .path .rsplit_once('/')