Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterPtato committed May 10, 2024
1 parent bfa2d14 commit d7c6322
Show file tree
Hide file tree
Showing 272 changed files with 3,839 additions and 5,562 deletions.
94 changes: 24 additions & 70 deletions fern/definition/cloud/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,8 @@ types:
label:
docs: The label given to this performance span.
type: string
start_ts:
docs: RFC3339 timestamp.
type: datetime
finish_ts:
docs: RFC3339 timestamp.
type: optional<datetime>
start_ts: commons.Timestamp
finish_ts: optional<commons.Timestamp>
req_id:
type: optional<uuid>

Expand All @@ -49,9 +45,7 @@ types:
label:
docs: The label given to this performance mark.
type: string
ts:
docs: RFC3339 timestamp.
type: datetime
ts: commons.Timestamp
ray_id:
type: optional<uuid>
req_id:
Expand All @@ -75,9 +69,7 @@ types:
type: string
region_id:
type: uuid
create_ts:
docs: RFC3339 timestamp.
type: datetime
create_ts: commons.Timestamp
is_ready:
docs: Whether or not this lobby is ready.
type: boolean
Expand Down Expand Up @@ -124,15 +116,9 @@ types:
type: string
region_id:
type: uuid
create_ts:
docs: RFC3339 timestamp.
type: datetime
start_ts:
docs: RFC3339 timestamp.
type: optional<datetime>
ready_ts:
docs: RFC3339 timestamp.
type: optional<datetime>
create_ts: commons.Timestamp
start_ts: optional<commons.Timestamp>
ready_ts: optional<commons.Timestamp>
status: LogsLobbyStatus

LogsLobbyStatus:
Expand All @@ -144,7 +130,7 @@ types:
LogsLobbyStatusStopped:
docs: The status of a stopped lobby.
properties:
stop_ts: datetime
stop_ts: commons.Timestamp
failed:
type: boolean
docs: Whether or not the lobby failed or stopped successfully.
Expand Down Expand Up @@ -189,12 +175,8 @@ types:
properties:
upload_id:
type: uuid
display_name:
docs: Represent a resource's readable display name.
type: string
create_ts:
docs: RFC3339 timestamp.
type: datetime
display_name: commons.DisplayName
create_ts: commons.Timestamp
url:
docs: >-
The URL of this custom avatar image. Only present if upload is
Expand All @@ -214,12 +196,8 @@ types:
type: uuid
upload_id:
type: uuid
display_name:
docs: Represent a resource's readable display name.
type: string
create_ts:
docs: RFC3339 timestamp.
type: datetime
display_name: commons.DisplayName
create_ts: commons.Timestamp
content_length:
docs: Unsigned 64 bit integer.
type: long
Expand All @@ -234,12 +212,8 @@ types:
type: uuid
upload_id:
type: uuid
display_name:
docs: Represent a resource's readable display name.
type: string
create_ts:
docs: RFC3339 timestamp.
type: datetime
display_name: commons.DisplayName
create_ts: commons.Timestamp
content_length:
docs: Unsigned 64 bit integer.
type: long
Expand All @@ -252,9 +226,7 @@ types:
properties:
game_id:
type: uuid
create_ts:
docs: RFC3339 timestamp.
type: datetime
create_ts: commons.Timestamp
name_id:
docs: >-
A human readable short identifier used to references resources.
Expand All @@ -264,9 +236,7 @@ types:
include special
characters and be short.
type: string
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName
developer_group_id:
type: uuid
total_player_count:
Expand All @@ -293,12 +263,8 @@ types:
properties:
namespace_id:
type: uuid
create_ts:
docs: RFC3339 timestamp.
type: datetime
display_name:
docs: Represent a resource's readable display name.
type: string
create_ts: commons.Timestamp
display_name: commons.DisplayName
version_id:
type: uuid
name_id:
Expand Down Expand Up @@ -328,12 +294,8 @@ types:
provider:
docs: The server provider of this region.
type: string
provider_display_name:
docs: Represent a resource's readable display name.
type: string
region_display_name:
docs: Represent a resource's readable display name.
type: string
provider_display_name: commons.DisplayName
region_display_name: commons.DisplayName

GameLobbyExpenses:
docs: Game lobby expenses.
Expand Down Expand Up @@ -436,12 +398,8 @@ types:
properties:
namespace_id:
type: uuid
create_ts:
docs: RFC3339 timestamp.
type: datetime
display_name:
docs: Represent a resource's readable display name.
type: string
create_ts: commons.Timestamp
display_name: commons.DisplayName
version_id:
type: uuid
name_id:
Expand Down Expand Up @@ -523,9 +481,7 @@ types:
domain:
docs: A valid domain name (no protocol).
type: string
create_ts:
docs: RFC3339 timestamp.
type: datetime
create_ts: commons.Timestamp
verification_status: CdnNamespaceDomainVerificationStatus
verification_method: CdnNamespaceDomainVerificationMethod
verification_errors: list<string>
Expand Down Expand Up @@ -570,6 +526,4 @@ types:
version_id:
docs: A universally unique identifier.
type: string
deploy_ts:
docs: RFC3339 timestamp.
type: datetime
deploy_ts: commons.Timestamp
5 changes: 2 additions & 3 deletions fern/definition/cloud/games/builds.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json

imports:
commons: ../../common.yml
uploadCommons: ../../upload/common.yml
cloudCommons: ../../cloud/common.yml

Expand Down Expand Up @@ -34,9 +35,7 @@ types:

CreateGameBuildRequest:
properties:
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName
image_tag:
docs: A tag given to the game build.
type: string
Expand Down
5 changes: 2 additions & 3 deletions fern/definition/cloud/games/cdn.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json

imports:
commons: ../../common.yml
uploadCommons: ../../upload/common.yml
cloudCommons: ../../cloud/common.yml

Expand Down Expand Up @@ -33,9 +34,7 @@ types:

CreateGameCdnSiteRequest:
properties:
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName
files:
docs: A list of files preparing to upload.
type: list<uploadCommons.PrepareFile>
Expand Down
17 changes: 3 additions & 14 deletions fern/definition/cloud/games/games.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,8 @@ types:
name_id:
docs: >-
**Deprecated**
A human readable short identifier used to references resources.
Different than a `rivet.common#Uuid` because this is intended to be
human readable.
Different than `rivet.common#DisplayName` because this should not
include special
characters and be short.
type: optional<string>
display_name:
docs: Represent a resource's readable display name.
type: string
type: optional<commons.Identifier>
display_name: commons.DisplayName
developer_group_id:
type: uuid

Expand All @@ -137,9 +128,7 @@ types:

ValidateGameRequest:
properties:
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName
name_id:
docs: >-
**Deprecated**
Expand Down
8 changes: 2 additions & 6 deletions fern/definition/cloud/games/namespaces/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,7 @@ types:

CreateGameNamespaceRequest:
properties:
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName
version_id:
type: uuid
name_id:
Expand All @@ -248,9 +246,7 @@ types:

ValidateGameNamespaceRequest:
properties:
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName
name_id:
docs: >-
A human readable short identifier used to references resources.
Expand Down
3 changes: 2 additions & 1 deletion fern/definition/cloud/games/namespaces/logs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json

imports:
commons: ../../../common.yml
localCommons: ../../common.yml

service:
Expand All @@ -22,7 +23,7 @@ service:
query-parameters:
before_create_ts:
docs: Returns lobbies created before this timestamp.
type: optional<datetime>
type: optional<commons.Timestamp>
response: ListNamespaceLobbiesResponse

getNamespaceLobby:
Expand Down
10 changes: 3 additions & 7 deletions fern/definition/cloud/games/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ service:
types:
CreateGameVersionRequest:
properties:
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName
config: version.Config

CreateGameVersionResponse:
Expand All @@ -60,13 +58,11 @@ types:

ReserveVersionNameResponse:
properties:
version_display_name: string
version_display_name: commons.DisplayName

ValidateGameVersionRequest:
properties:
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName
config: version.Config

ValidateGameVersionResponse:
Expand Down
4 changes: 1 addition & 3 deletions fern/definition/cloud/groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ service:
types:
ValidateGroupRequest:
properties:
display_name:
docs: Represent a resource's readable display name.
type: string
display_name: commons.DisplayName

ValidateGroupResponse:
properties:
Expand Down
19 changes: 6 additions & 13 deletions fern/definition/cloud/version/__package__.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json

imports:
commons: ../common.yml
commons: ../../common.yml
cloudCommons: ../common.yml
engine: engine/__package__.yml
cdn: cdn/__package__.yml
matchmaker: matchmaker/__package__.yml
Expand All @@ -24,22 +25,14 @@ types:
properties:
version_id:
type: uuid
create_ts:
docs: RFC3339 timestamp.
type: datetime
display_name:
docs: Represent a resource's readable display name.
type: string
create_ts: commons.Timestamp
display_name: commons.DisplayName
config: Config

Summary:
docs: A version summary.
properties:
version_id:
type: uuid
create_ts:
docs: RFC3339 timestamp.
type: datetime
display_name:
docs: Represent a resource's readable display name.
type: string
create_ts: commons.Timestamp
display_name: commons.DisplayName
5 changes: 3 additions & 2 deletions fern/definition/cloud/version/identity/__package__.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json

imports:
commons: ../../common.yml
commons: ../../../common.yml
cloudCommons: ../../common.yml

types:
Config:
Expand Down Expand Up @@ -30,7 +31,7 @@ types:

CustomDisplayName:
properties:
display_name: string
display_name: commons.DisplayName

CustomAvatar:
properties:
Expand Down
Loading

0 comments on commit d7c6322

Please sign in to comment.