diff --git a/models.gen.go b/models.gen.go index b85fbd2..025fa4e 100644 --- a/models.gen.go +++ b/models.gen.go @@ -958,8 +958,8 @@ type DeleteTeamInvitationRequest struct { // DeterminePlatformTenantByEmail200Response defines model for DeterminePlatformTenantByEmail_200_response. type DeterminePlatformTenantByEmail200Response struct { - // TenantURL URL of the tenant - TenantURL string `json:"tenant_url"` + // Items List of tenants + Items []TenantUser `json:"items,omitempty"` } // DisplayName A human-readable display name @@ -2781,6 +2781,15 @@ type TeamSubscriptionOrderID = openapi_types.UUID // TeamSubscriptionOrderStatus defines model for TeamSubscriptionOrderStatus. type TeamSubscriptionOrderStatus string +// TenantUser Tenant information of a platform user +type TenantUser struct { + // Provider Login provider of the tenant + Provider *string `json:"provider,omitempty"` + + // TenantURL URL of the tenant + TenantURL string `json:"tenant_url"` +} + // UpdateCurrentUserRequest defines model for UpdateCurrentUser_request. type UpdateCurrentUserRequest struct { // Name The unique name for the user. diff --git a/spec.json b/spec.json index 996c76a..5eb8ff9 100644 --- a/spec.json +++ b/spec.json @@ -4062,10 +4062,7 @@ } } }, - "description" : "Tenant found" - }, - "204" : { - "description" : "No tenant found, or multiple tenants" + "description" : "List of tenants" }, "400" : { "$ref" : "#/components/responses/BadRequest" @@ -9147,6 +9144,23 @@ "required" : [ "token" ] } ] }, + "TenantUser" : { + "additionalProperties" : false, + "description" : "Tenant information of a platform user", + "properties" : { + "tenant_url" : { + "description" : "URL of the tenant", + "format" : "url", + "type" : "string", + "x-go-name" : "TenantURL" + }, + "provider" : { + "description" : "Login provider of the tenant", + "type" : "string" + } + }, + "required" : [ "tenant_url" ] + }, "UserID" : { "description" : "ID of the User", "example" : "12345678-1234-1234-1234-1234567890ab", @@ -11233,14 +11247,15 @@ }, "DeterminePlatformTenantByEmail_200_response" : { "properties" : { - "tenant_url" : { - "description" : "URL of the tenant", - "format" : "url", - "type" : "string", - "x-go-name" : "TenantURL" + "items" : { + "description" : "List of tenants", + "items" : { + "$ref" : "#/components/schemas/TenantUser" + }, + "type" : "array", + "x-go-type-skip-optional-pointer" : true } - }, - "required" : [ "tenant_url" ] + } }, "ListTeamAPIKeys_200_response" : { "properties" : {