From 3202d0e503f6c298ebf47d8388b7cbef83c83102 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Tue, 29 Oct 2024 14:05:18 -0700 Subject: [PATCH] chore: remove unused fern routes --- sdks/fern/definition/group/__package__.yml | 23 --- sdks/fern/definition/identity/__package__.yml | 151 ------------------ sdks/fern/definition/identity/common.yml | 8 - sdks/fern/definition/identity/links.yml | 89 ----------- sdks/fern/definition/kv/__package__.yml | 125 --------------- sdks/fern/definition/kv/common.yml | 44 ----- 6 files changed, 440 deletions(-) delete mode 100644 sdks/fern/definition/identity/links.yml delete mode 100644 sdks/fern/definition/kv/__package__.yml delete mode 100644 sdks/fern/definition/kv/common.yml diff --git a/sdks/fern/definition/group/__package__.yml b/sdks/fern/definition/group/__package__.yml index 25fcaeb5cf..f3fa3a4ac1 100644 --- a/sdks/fern/definition/group/__package__.yml +++ b/sdks/fern/definition/group/__package__.yml @@ -50,22 +50,6 @@ service: body: ValidateProfileRequest response: ValidateProfileResponse - search: - path: /search - method: GET - docs: Fuzzy search for groups. - request: - name: SearchRequest - query-parameters: - query: - docs: The query to match group display names against. - type: string - anchor: optional - limit: - docs: Unsigned 32 bit integer. - type: optional - response: SearchResponse - completeAvatarUpload: path: /{group_id}/avatar-upload/{upload_id}/complete method: POST @@ -282,13 +266,6 @@ types: docs: A list of validation errors. type: list - SearchResponse: - properties: - groups: - docs: A list of group handles. - type: list - anchor: optional - GetBansResponse: properties: banned_identities: diff --git a/sdks/fern/definition/identity/__package__.yml b/sdks/fern/definition/identity/__package__.yml index 0ba65310ac..d2dae7e478 100644 --- a/sdks/fern/definition/identity/__package__.yml +++ b/sdks/fern/definition/identity/__package__.yml @@ -115,24 +115,6 @@ service: account_number: optional bio: optional - search: - docs: Fuzzy search for identities. - path: /search - method: GET - request: - name: SearchRequest - query-parameters: - query: - type: string - docs: The query to match identity display names and account numbers against. - anchor: - type: optional - docs: How many identities to offset the search by. - limit: - type: optional - docs: Amount of identities to return. Must be between 1 and 32 inclusive. - response: SearchResponse - setGameActivity: docs: Sets the current identity's game activity. This activity will automatically be removed when the identity goes offline. @@ -159,21 +141,6 @@ service: properties: status: identityCommons.Status - follow: - docs: Follows the given identity. In order for identities to be "friends", the - other identity has to also follow this identity. - path: /{identity_id}/follow - method: POST - path-parameters: - identity_id: uuid - - unfollow: - docs: Unfollows the given identity. - path: /{identity_id}/follow - method: DELETE - path-parameters: - identity_id: uuid - prepareAvatarUpload: docs: Prepares an avatar image upload. Complete upload with `CompleteIdentityAvatarUpload`. @@ -213,88 +180,6 @@ service: preferred_tools: string goals: string - report: - docs: Creates an abuse report for an identity. - path: /{identity_id}/report - method: POST - path-parameters: - identity_id: uuid - request: - name: ReportRequest - body: - properties: - reason: optional - - listFollowers: - path: /{identity_id}/followers - method: GET - path-parameters: - identity_id: uuid - request: - name: ListFollowersRequest - query-parameters: - anchor: optional - limit: - type: optional - docs: Range is between 1 and 32 (inclusive). - response: ListFollowersResponse - - listFollowing: - path: /{identity_id}/following - method: GET - path-parameters: - identity_id: uuid - request: - name: ListFollowingRequest - query-parameters: - anchor: optional - limit: - type: optional - docs: Range is between 1 and 32 (inclusive). - response: ListFollowingResponse - - listFriends: - path: /self/friends - method: GET - request: - name: ListFriendsRequest - query-parameters: - anchor: optional - limit: - type: optional - docs: Range is between 1 and 32 (inclusive). - response: ListFriendsResponse - - listMutualFriends: - path: /{identity_id}/mutual-friends - method: GET - path-parameters: - identity_id: uuid - request: - name: ListMutualFriendsRequest - query-parameters: - anchor: optional - limit: - type: optional - docs: Range is between 1 and 32 (inclusive). - response: ListMutualFriendsResponse - - listRecentFollowers: - path: /self/recent-followers - method: GET - request: - name: ListRecentFollowersRequest - query-parameters: - count: optional - watch_index: optional - response: ListRecentFollowersResponse - - ignoreRecentFollower: - path: /self/recent-followers/{identity_id}/ignore - method: POST - path-parameters: - identity_id: uuid - markDeletion: path: /self/delete-request method: POST @@ -342,44 +227,8 @@ types: properties: errors: list - SearchResponse: - properties: - identities: list - anchor: - type: optional - docs: | - The pagination anchor. - PrepareAvatarUploadResponse: properties: upload_id: uuid presigned_request: uploadCommons.PresignedRequest - ListFollowersResponse: - properties: - identities: list - anchor: optional - watch: commons.WatchResponse - - ListFollowingResponse: - properties: - identities: list - anchor: optional - watch: commons.WatchResponse - - ListRecentFollowersResponse: - properties: - identities: list - anchor: optional - watch: commons.WatchResponse - - ListFriendsResponse: - properties: - identities: list - anchor: optional - watch: commons.WatchResponse - - ListMutualFriendsResponse: - properties: - identities: list - anchor: optional diff --git a/sdks/fern/definition/identity/common.yml b/sdks/fern/definition/identity/common.yml index d4eee8b4bb..ca343b509d 100644 --- a/sdks/fern/definition/identity/common.yml +++ b/sdks/fern/definition/identity/common.yml @@ -5,7 +5,6 @@ imports: gameCommons: ../game/common.yml groupCommons: ../group/common.yml identityCommons: ../identity/common.yml - matchmakerCommons: ../matchmaker/common.yml types: GlobalEvent: @@ -18,7 +17,6 @@ types: GlobalEventKind: properties: identity_update: optional - matchmaker_lobby_join: optional GlobalEventNotification: docs: | @@ -53,12 +51,6 @@ types: properties: identity: identityCommons.Profile - GlobalEventMatchmakerLobbyJoin: - properties: - lobby: matchmakerCommons.JoinLobby - ports: map - player: matchmakerCommons.JoinPlayer - UpdateGameActivity: docs: Information about the identity's current game. This is information that all other identities can see about what the current identity is doing. diff --git a/sdks/fern/definition/identity/links.yml b/sdks/fern/definition/identity/links.yml deleted file mode 100644 index 9d5329f84a..0000000000 --- a/sdks/fern/definition/identity/links.yml +++ /dev/null @@ -1,89 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json - -imports: - commons: ../common.yml - identityCommons: ../identity/common.yml - gameCommons: ../game/common.yml - -service: - auth: true - base-path: /identity/game-links - endpoints: - prepare: - docs: | - Begins the process for linking an identity with the Rivet Hub. - # Importance of Linking Identities - When an identity is created via `rivet.api.identity#SetupIdentity`, the identity is temporary - and is not shared with other games the user plays. - In order to make the identity permanent and synchronize the identity with - other games, the identity must be linked with the hub. - # Linking Process - The linking process works by opening `identity_link_url` in a browser then polling - `rivet.api.identity#GetGameLink` to wait for it to complete. - This is designed to be as flexible as possible so `identity_link_url` can be opened - on any device. For example, when playing a console game, the user can scan a - QR code for `identity_link_url` to authenticate on their phone. - path: "" - method: POST - response: PrepareGameLinkResponse - - get: - docs: Returns the current status of a linking process. Once `status` is - `complete`, the identity's profile should be fetched again since they - may have switched accounts. - path: "" - method: GET - request: - name: GetGameLinkRequest - query-parameters: - identity_link_token: commons.JWT - watch_index: commons.WatchQuery - response: GetGameLinkResponse - - complete: - docs: Completes a game link process and returns whether or not the link is - valid. - path: "/complete" - method: POST - request: - body: CompleteGameLinkRequest - - cancel: - docs: Cancels a game link. It can no longer be used to link after cancellation. - path: /cancel - method: POST - request: - body: CancelGameLinkRequest - -types: - PrepareGameLinkResponse: - properties: - identity_link_token: - type: string - docs: Pass this to `GetGameLink` to get the linking status. Valid for 15 - minutes. - identity_link_url: - type: string - expire_ts: commons.Timestamp - - GetGameLinkResponse: - properties: - status: identityCommons.GameLinkStatus - game: gameCommons.Handle - current_identity: identityCommons.Handle - new_identity: optional - watch: commons.WatchResponse - - GetGameLinkNewIdentity: - properties: - identity_token: commons.JWT - identity_token_expire_ts: commons.Timestamp - identity: identityCommons.Profile - - CompleteGameLinkRequest: - properties: - identity_link_token: commons.JWT - - CancelGameLinkRequest: - properties: - identity_link_token: commons.JWT diff --git a/sdks/fern/definition/kv/__package__.yml b/sdks/fern/definition/kv/__package__.yml deleted file mode 100644 index 3a5ff03dc8..0000000000 --- a/sdks/fern/definition/kv/__package__.yml +++ /dev/null @@ -1,125 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json - -imports: - commons: ../common.yml - localCommons: common.yml - -service: - auth: true - base-path: /kv/entries - audiences: - - runtime - endpoints: - get: - path: "" - method: GET - docs: Returns a specific key-value entry by key. - request: - name: GetOperationRequest - query-parameters: - key: localCommons.Key - watch_index: - docs: A query parameter denoting the requests watch index. - type: optional - namespace_id: - type: optional - response: GetResponse - - put: - path: "" - method: PUT - docs: Puts (sets or overwrites) a key-value entry by key. - request: - body: PutRequest - - delete: - path: "" - method: DELETE - docs: Deletes a key-value entry by key. - request: - name: DeleteOperationRequest - query-parameters: - key: localCommons.Key - namespace_id: - type: optional - - list: - path: "/list" - method: GET - docs: Lists all keys in a directory. - request: - name: ListOperationRequest - query-parameters: - directory: localCommons.Directory - namespace_id: uuid - response: ListResponse - - getBatch: - path: /batch - method: GET - docs: Gets multiple key-value entries by key(s). - request: - name: GetBatchRequest - query-parameters: - keys: - type: localCommons.Key - allow-multiple: true - watch_index: - docs: A query parameter denoting the requests watch index. - type: optional - namespace_id: - type: optional - response: GetBatchResponse - - putBatch: - path: /batch - method: PUT - docs: Puts (sets or overwrites) multiple key-value entries by key(s). - request: - body: PutBatchRequest - - deleteBatch: - path: /batch - method: DELETE - docs: Deletes multiple key-value entries by key(s). - request: - name: DeleteBatchRequest - query-parameters: - keys: - type: localCommons.Key - allow-multiple: true - namespace_id: - type: optional - -types: - GetResponse: - properties: - value: localCommons.Value - deleted: - docs: >- - Whether or not the entry has been deleted. Only set when watching this - endpoint. - type: optional - watch: commons.WatchResponse - - PutRequest: - properties: - namespace_id: - type: optional - key: localCommons.Key - value: localCommons.Value - - ListResponse: - properties: - entries: list - - GetBatchResponse: - properties: - entries: list - watch: commons.WatchResponse - - PutBatchRequest: - properties: - namespace_id: - type: optional - entries: list diff --git a/sdks/fern/definition/kv/common.yml b/sdks/fern/definition/kv/common.yml deleted file mode 100644 index 959165d874..0000000000 --- a/sdks/fern/definition/kv/common.yml +++ /dev/null @@ -1,44 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json - -types: - Key: - docs: >- - 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. - type: string - - Directory: - type: string - - Value: - docs: >- - A JSON object stored in the KV database. - - A `null` value indicates the entry is deleted. - - Maximum length of 262,144 bytes when encoded. - type: unknown - - Entry: - docs: A key-value entry. - properties: - key: Key - value: Value - deleted: optional - - PutEntry: - docs: A new entry to insert into the key-value database. - properties: - key: Key - value: Value