Skip to content

Commit

Permalink
Regen swagger-v7.json
Browse files Browse the repository at this point in the history
Also includes changes from #4368
  • Loading branch information
akshaymankar committed Dec 11, 2024
1 parent b3251b7 commit a841e4e
Showing 1 changed file with 27 additions and 158 deletions.
185 changes: 27 additions & 158 deletions services/brig/docs/swagger-v7.json
Original file line number Diff line number Diff line change
Expand Up @@ -1723,43 +1723,37 @@
],
"type": "object"
},
"CreateScimToken": {
"CreateScimTokenResponseV7": {
"properties": {
"description": {
"type": "string"
},
"idp": {
"$ref": "#/components/schemas/UUID"
},
"name": {
"type": "string"
"info": {
"$ref": "#/components/schemas/ScimTokenInfoV7"
},
"password": {
"maxLength": 1024,
"minLength": 6,
"token": {
"type": "string"
},
"verification_code": {
"$ref": "#/components/schemas/ASCII"
}
},
"required": [
"description"
"token",
"info"
],
"type": "object"
},
"CreateScimTokenResponse": {
"CreateScimTokenV7": {
"properties": {
"info": {
"$ref": "#/components/schemas/ScimTokenInfo"
"description": {
"type": "string"
},
"token": {
"password": {
"maxLength": 1024,
"minLength": 6,
"type": "string"
},
"verification_code": {
"$ref": "#/components/schemas/ASCII"
}
},
"required": [
"token",
"info"
"description"
],
"type": "object"
},
Expand Down Expand Up @@ -5107,7 +5101,7 @@
],
"type": "object"
},
"ScimTokenInfo": {
"ScimTokenInfoV7": {
"properties": {
"created_at": {
"$ref": "#/components/schemas/UTCTime"
Expand All @@ -5121,9 +5115,6 @@
"idp": {
"$ref": "#/components/schemas/UUID"
},
"name": {
"type": "string"
},
"team": {
"$ref": "#/components/schemas/UUID"
}
Expand All @@ -5132,16 +5123,15 @@
"team",
"id",
"created_at",
"description",
"name"
"description"
],
"type": "object"
},
"ScimTokenList": {
"ScimTokenListV7": {
"properties": {
"tokens": {
"items": {
"$ref": "#/components/schemas/ScimTokenInfo"
"$ref": "#/components/schemas/ScimTokenInfoV7"
},
"type": "array"
}
Expand All @@ -5151,17 +5141,6 @@
],
"type": "object"
},
"ScimTokenName": {
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"SearchResult": {
"properties": {
"documents": {
Expand Down Expand Up @@ -15715,36 +15694,6 @@
"summary": "Verify account deletion with a code."
}
},
"/events": {
"get": {
"description": " [<a href=\"https://docs.wire.com/developer/developer/servant.html#named-and-internal-route-ids\">internal route ID:</a> \"consume-events\"]\n\nThis is the rabbitMQ-based variant of \"await-notifications\"",
"externalDocs": {
"description": "RFC 6455",
"url": "https://datatracker.ietf.org/doc/html/rfc6455"
},
"operationId": "consume-events",
"parameters": [
{
"description": "Client ID",
"in": "query",
"name": "client",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"101": {
"description": "Connection upgraded."
},
"426": {
"description": "Upgrade required."
}
},
"summary": "Consume events over a websocket connection"
}
},
"/feature-configs": {
"get": {
"description": " [<a href=\"https://docs.wire.com/developer/developer/servant.html#named-and-internal-route-ids\">internal route ID:</a> \"get-all-feature-configs-for-user\"]\n\nGets feature configs for a user. If the user is a member of a team and has the required permissions, this will return the team's feature configs.If the user is not a member of a team, this will return the personal feature configs (the server defaults).\nOAuth scope: `read:feature_configs`",
Expand Down Expand Up @@ -22147,14 +22096,14 @@
}
},
"get": {
"description": " [<a href=\"https://docs.wire.com/developer/developer/servant.html#named-and-internal-route-ids\">internal route ID:</a> \"auth-tokens-list\"]\n\n",
"operationId": "auth-tokens-list",
"description": " [<a href=\"https://docs.wire.com/developer/developer/servant.html#named-and-internal-route-ids\">internal route ID:</a> \"auth-tokens-list@v7\"]\n\n",
"operationId": "auth-tokens-list@v7",
"responses": {
"200": {
"content": {
"application/json;charset=utf-8": {
"schema": {
"$ref": "#/components/schemas/ScimTokenList"
"$ref": "#/components/schemas/ScimTokenListV7"
}
}
},
Expand Down Expand Up @@ -22201,90 +22150,13 @@
}
},
"post": {
"description": " [<a href=\"https://docs.wire.com/developer/developer/servant.html#named-and-internal-route-ids\">internal route ID:</a> \"auth-tokens-create\"]\n\n",
"operationId": "auth-tokens-create",
"requestBody": {
"content": {
"application/json;charset=utf-8": {
"schema": {
"$ref": "#/components/schemas/CreateScimToken"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json;charset=utf-8": {
"schema": {
"$ref": "#/components/schemas/CreateScimTokenResponse"
}
}
},
"description": ""
},
"403": {
"content": {
"application/json;charset=utf-8": {
"schema": {
"example": {
"code": 403,
"label": "code-authentication-required",
"message": "Code authentication is required"
},
"properties": {
"code": {
"enum": [
403
],
"type": "integer"
},
"label": {
"enum": [
"code-authentication-required",
"code-authentication-failed"
],
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"label",
"message"
],
"type": "object"
}
}
},
"description": "Code authentication is required (label: `code-authentication-required`)\n\nCode authentication failed (label: `code-authentication-failed`)"
}
}
}
},
"/scim/auth-tokens/{id}": {
"put": {
"description": " [<a href=\"https://docs.wire.com/developer/developer/servant.html#named-and-internal-route-ids\">internal route ID:</a> \"auth-tokens-put-name\"]\n\n",
"operationId": "auth-tokens-put-name",
"parameters": [
{
"in": "path",
"name": "id",
"required": true,
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"description": " [<a href=\"https://docs.wire.com/developer/developer/servant.html#named-and-internal-route-ids\">internal route ID:</a> \"auth-tokens-create@v7\"]\n\n",
"operationId": "auth-tokens-create@v7",
"requestBody": {
"content": {
"application/json;charset=utf-8": {
"schema": {
"$ref": "#/components/schemas/ScimTokenName"
"$ref": "#/components/schemas/CreateScimTokenV7"
}
}
},
Expand All @@ -22295,10 +22167,7 @@
"content": {
"application/json;charset=utf-8": {
"schema": {
"example": [],
"items": {},
"maxItems": 0,
"type": "array"
"$ref": "#/components/schemas/CreateScimTokenResponseV7"
}
}
},
Expand Down

0 comments on commit a841e4e

Please sign in to comment.