From 2009f8dea074e38f37f3fd182f88a7d55a33c117 Mon Sep 17 00:00:00 2001 From: avallete <8771783+avallete@users.noreply.github.com> Date: Fri, 10 Oct 2025 05:35:11 +0000 Subject: [PATCH] chore: sync API types from infrastructure --- pkg/api/types.gen.go | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/pkg/api/types.gen.go b/pkg/api/types.gen.go index d7f36b7d0..2cdd4d0ec 100644 --- a/pkg/api/types.gen.go +++ b/pkg/api/types.gen.go @@ -657,12 +657,6 @@ const ( RefreshToken OAuthTokenBodyGrantType = "refresh_token" ) -// Defines values for OAuthTokenBodyResource. -const ( - OAuthTokenBodyResourceHttpsapiSupabaseGreenmcp OAuthTokenBodyResource = "https://api.supabase.green/mcp" - OAuthTokenBodyResourceHttpsmcpSupabaseGreenmcp OAuthTokenBodyResource = "https://mcp.supabase.green/mcp" -) - // Defines values for OAuthTokenResponseTokenType. const ( Bearer OAuthTokenResponseTokenType = "Bearer" @@ -1232,12 +1226,6 @@ const ( V1AuthorizeUserParamsCodeChallengeMethodSha256 V1AuthorizeUserParamsCodeChallengeMethod = "sha256" ) -// Defines values for V1AuthorizeUserParamsResource. -const ( - V1AuthorizeUserParamsResourceHttpsapiSupabaseGreenmcp V1AuthorizeUserParamsResource = "https://api.supabase.green/mcp" - V1AuthorizeUserParamsResourceHttpsmcpSupabaseGreenmcp V1AuthorizeUserParamsResource = "https://mcp.supabase.green/mcp" -) - // Defines values for V1OauthAuthorizeProjectClaimParamsResponseType. const ( V1OauthAuthorizeProjectClaimParamsResponseTypeCode V1OauthAuthorizeProjectClaimParamsResponseType = "code" @@ -2569,15 +2557,13 @@ type OAuthTokenBody struct { RefreshToken *string `json:"refresh_token,omitempty"` // Resource Resource indicator for MCP (Model Context Protocol) clients - Resource *OAuthTokenBodyResource `json:"resource,omitempty"` + Resource *string `json:"resource,omitempty"` + Scope *string `json:"scope,omitempty"` } // OAuthTokenBodyGrantType defines model for OAuthTokenBody.GrantType. type OAuthTokenBodyGrantType string -// OAuthTokenBodyResource Resource indicator for MCP (Model Context Protocol) clients -type OAuthTokenBodyResource string - // OAuthTokenResponse defines model for OAuthTokenResponse. type OAuthTokenResponse struct { AccessToken string `json:"access_token"` @@ -2607,12 +2593,10 @@ type OrganizationProjectClaimResponse struct { Limit float32 `json:"limit"` Name string `json:"name"` } `json:"members_exceeding_free_project_limit"` - SourceSubscriptionPlan OrganizationProjectClaimResponsePreviewSourceSubscriptionPlan `json:"source_subscription_plan"` - TargetOrganizationEligible nullable.Nullable[bool] `json:"target_organization_eligible"` - TargetOrganizationHasFreeProjectSlots nullable.Nullable[bool] `json:"target_organization_has_free_project_slots"` - TargetSubscriptionPlan nullable.Nullable[OrganizationProjectClaimResponsePreviewTargetSubscriptionPlan] `json:"target_subscription_plan"` - Valid bool `json:"valid"` - Warnings []struct { + SourceSubscriptionPlan OrganizationProjectClaimResponsePreviewSourceSubscriptionPlan `json:"source_subscription_plan"` + TargetSubscriptionPlan nullable.Nullable[OrganizationProjectClaimResponsePreviewTargetSubscriptionPlan] `json:"target_subscription_plan"` + Valid bool `json:"valid"` + Warnings []struct { Key string `json:"key"` Message string `json:"message"` } `json:"warnings"` @@ -3871,7 +3855,7 @@ type V1AuthorizeUserParams struct { OrganizationSlug *string `form:"organization_slug,omitempty" json:"organization_slug,omitempty"` // Resource Resource indicator for MCP (Model Context Protocol) clients - Resource *V1AuthorizeUserParamsResource `form:"resource,omitempty" json:"resource,omitempty"` + Resource *string `form:"resource,omitempty" json:"resource,omitempty"` } // V1AuthorizeUserParamsResponseType defines parameters for V1AuthorizeUser. @@ -3880,9 +3864,6 @@ type V1AuthorizeUserParamsResponseType string // V1AuthorizeUserParamsCodeChallengeMethod defines parameters for V1AuthorizeUser. type V1AuthorizeUserParamsCodeChallengeMethod string -// V1AuthorizeUserParamsResource defines parameters for V1AuthorizeUser. -type V1AuthorizeUserParamsResource string - // V1OauthAuthorizeProjectClaimParams defines parameters for V1OauthAuthorizeProjectClaim. type V1OauthAuthorizeProjectClaimParams struct { // ProjectRef Project ref