diff --git a/models.gen.go b/models.gen.go index e7a5706..207acb7 100644 --- a/models.gen.go +++ b/models.gen.go @@ -1099,9 +1099,6 @@ type ListTeamAPIKeysParams struct { type CreateTeamAPIKeyJSONBody struct { ExpiresAt time.Time `json:"expires_at"` Name string `json:"name"` - - // Scope Scope of permissions for the API key. API keys are used for creating new plugin versions and downloading existing plugins - Scope *APIKeyScope `json:"scope,omitempty"` } // ListTeamInvitationsParams defines parameters for ListTeamInvitations. diff --git a/spec.json b/spec.json index ffc88c5..5e5a01a 100644 --- a/spec.json +++ b/spec.json @@ -3232,7 +3232,7 @@ } }, "post": { - "description": "Create new team API Key. This is useful in CI", + "description": "Create new team API Key.", "operationId": "CreateTeamAPIKey", "tags": [ "teams" @@ -3249,20 +3249,17 @@ "type": "object", "required": [ "expires_at", - "role", "name" ], "properties": { "name": { "type": "string", + "minLength": 1, "maxLength": 255 }, "expires_at": { "type": "string", "format": "date-time" - }, - "scope": { - "$ref": "#/components/schemas/APIKeyScope" } } }