Unverified Commit 9508e8fe authored by Simon Esposito's avatar Simon Esposito Committed by GitHub
Browse files

Update generated swagger. (#948)

Update grpc-gateway openapi gen opts.
parent f4023add
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.27.1
// 	protoc-gen-go v1.28.1
// 	protoc        v3.21.9
// source: apigrpc.proto

+1135 −811

File changed.

Preview size limit exceeded, changes collapsed.

+88 −18
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -77,6 +78,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -90,6 +92,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Update a user's account details.",
            "in": "body",
            "required": true,
            "schema": {
@@ -122,7 +125,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Apple account details.",
            "in": "body",
            "required": true,
@@ -175,7 +178,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The custom account details.",
            "in": "body",
            "required": true,
@@ -228,7 +231,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The device account details.",
            "in": "body",
            "required": true,
@@ -281,7 +284,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The email account details.",
            "in": "body",
            "required": true,
@@ -334,7 +337,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Facebook account details.",
            "in": "body",
            "required": true,
@@ -394,7 +397,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Facebook Instant Game account details.",
            "in": "body",
            "required": true,
@@ -447,7 +450,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Game Center account details.",
            "in": "body",
            "required": true,
@@ -500,7 +503,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Google account details.",
            "in": "body",
            "required": true,
@@ -553,7 +556,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Steam account details.",
            "in": "body",
            "required": true,
@@ -601,6 +604,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -614,6 +618,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a Apple Sign In token to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -634,6 +639,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -647,6 +653,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a custom ID to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -667,6 +674,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -680,6 +688,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a device to the server. Used with authenticate/link/unlink and user.",
            "in": "body",
            "required": true,
            "schema": {
@@ -700,6 +709,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -713,6 +723,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send an email with password to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -733,6 +744,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -745,7 +757,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Facebook account details.",
            "in": "body",
            "required": true,
@@ -774,6 +786,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -787,6 +800,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a Facebook Instant Game token to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -807,6 +821,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -820,6 +835,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -840,6 +856,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -853,6 +870,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a Google token to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -873,6 +891,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -886,6 +905,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Link Steam to the current user's account.",
            "in": "body",
            "required": true,
            "schema": {
@@ -919,6 +939,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Authenticate against the server with a refresh token.",
            "in": "body",
            "required": true,
            "schema": {
@@ -944,6 +965,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -957,6 +979,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a Apple Sign In token to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -977,6 +1000,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -990,6 +1014,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a custom ID to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1010,6 +1035,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1023,6 +1049,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a device to the server. Used with authenticate/link/unlink and user.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1043,6 +1070,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1056,6 +1084,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send an email with password to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1076,6 +1105,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1089,6 +1119,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a Facebook token to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1109,6 +1140,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1122,6 +1154,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a Facebook Instant Game token to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1142,6 +1175,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1155,6 +1189,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1175,6 +1210,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1188,6 +1224,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a Google token to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1208,6 +1245,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1221,6 +1259,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Send a Steam token to the server. Used with authenticate/link/unlink.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1295,6 +1334,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1308,6 +1348,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Represents an event to be passed through the server to registered event handlers.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1374,6 +1415,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1419,6 +1461,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1466,6 +1509,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1513,6 +1557,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1525,7 +1570,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Facebook account details.",
            "in": "body",
            "required": true,
@@ -1554,6 +1599,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1566,7 +1612,7 @@
        },
        "parameters": [
          {
            "name": "body",
            "name": "account",
            "description": "The Facebook account details.",
            "in": "body",
            "required": true,
@@ -1630,14 +1676,14 @@
          },
          {
            "name": "langTag",
            "description": "Language tag filter.",
            "description": "Language tag filter",
            "in": "query",
            "required": false,
            "type": "string"
          },
          {
            "name": "members",
            "description": "Number of group members.",
            "description": "Number of group members",
            "in": "query",
            "required": false,
            "type": "integer",
@@ -1675,6 +1721,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Create a group with the current user as owner.",
            "in": "body",
            "required": true,
            "schema": {
@@ -1695,6 +1742,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1725,6 +1773,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1788,6 +1837,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1831,6 +1881,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1874,6 +1925,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1917,6 +1969,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1949,6 +2002,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -1992,6 +2046,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -2024,6 +2079,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -2234,6 +2290,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "List user subscriptions.",
            "in": "body",
            "required": true,
            "schema": {
@@ -2416,6 +2473,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -2465,7 +2523,7 @@
            "type": "string"
          },
          {
            "name": "body",
            "name": "record",
            "description": "Record input.",
            "in": "body",
            "required": true,
@@ -2657,6 +2715,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -2762,7 +2821,7 @@
            "type": "string"
          },
          {
            "name": "body",
            "name": "payload",
            "description": "The payload of the function which must be a JSON object.",
            "in": "body",
            "required": true,
@@ -2797,6 +2856,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -2810,6 +2870,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user.",
            "in": "body",
            "required": true,
            "schema": {
@@ -2843,6 +2904,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Batch get storage objects.",
            "in": "body",
            "required": true,
            "schema": {
@@ -2874,6 +2936,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Write objects to the storage engine.",
            "in": "body",
            "required": true,
            "schema": {
@@ -2894,6 +2957,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -2907,6 +2971,7 @@
        "parameters": [
          {
            "name": "body",
            "description": "Batch delete storage objects.",
            "in": "body",
            "required": true,
            "schema": {
@@ -3190,7 +3255,7 @@
            "type": "string"
          },
          {
            "name": "body",
            "name": "record",
            "description": "Record input.",
            "in": "body",
            "required": true,
@@ -3229,7 +3294,7 @@
            "type": "string"
          },
          {
            "name": "body",
            "name": "record",
            "description": "Record input.",
            "in": "body",
            "required": true,
@@ -3251,6 +3316,7 @@
          "200": {
            "description": "A successful response.",
            "schema": {
              "type": "object",
              "properties": {}
            }
          },
@@ -4622,6 +4688,10 @@
        "operator": {
          "$ref": "#/definitions/apiOperator",
          "description": "Operator."
        },
        "authoritative": {
          "type": "boolean",
          "description": "Whether the leaderboard was created authoritatively or not."
        }
      },
      "description": "A tournament on the server."
+4 −0
Original line number Diff line number Diff line
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v3.21.9
// source: apigrpc.proto

package apigrpc

+1 −1
Original line number Diff line number Diff line
@@ -14,4 +14,4 @@

package apigrpc

//go:generate protoc -I. -I../vendor -I../build/grpc-gateway-v2.3.0/third_party/googleapis -I../vendor/github.com/grpc-ecosystem/grpc-gateway/v2 --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative --grpc-gateway_out=. --grpc-gateway_opt=paths=source_relative --grpc-gateway_opt=logtostderr=true --openapiv2_out=. --openapiv2_opt=logtostderr=true apigrpc.proto
//go:generate protoc -I. -I../vendor -I../build/grpc-gateway-v2.3.0/third_party/googleapis -I../vendor/github.com/grpc-ecosystem/grpc-gateway/v2 --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative --grpc-gateway_out=. --grpc-gateway_opt=paths=source_relative --grpc-gateway_opt=logtostderr=true --openapiv2_out=. --openapiv2_opt=logtostderr=true,allow_delete_body=true apigrpc.proto
Loading