diff --git a/client.gen.go b/client.gen.go index 7e7cd55..7f088dc 100644 --- a/client.gen.go +++ b/client.gen.go @@ -15234,6 +15234,7 @@ type EmailTeamInvitationResponse struct { JSON400 *BadRequest JSON403 *Forbidden JSON422 *UnprocessableEntity + JSON429 *TooManyRequests JSON500 *InternalError } @@ -23834,6 +23835,13 @@ func ParseEmailTeamInvitationResponse(rsp *http.Response) (*EmailTeamInvitationR } response.JSON422 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: + var dest TooManyRequests + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON429 = &dest + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalError if err := json.Unmarshal(bodyBytes, &dest); err != nil { diff --git a/spec.json b/spec.json index 5b5d39b..5549b1d 100644 --- a/spec.json +++ b/spec.json @@ -3329,6 +3329,9 @@ "422" : { "$ref" : "#/components/responses/UnprocessableEntity" }, + "429" : { + "$ref" : "#/components/responses/TooManyRequests" + }, "500" : { "$ref" : "#/components/responses/InternalError" }