Register Anthropic access-review connector
Add the ANTHROPIC connector_provider enum value, its migration, and the GraphQL enum binding, then register the provider as an API-key connector that authenticates via x-api-key. The probe URL is left empty because the shared connection probe cannot send the required anthropic-version header and would misreport a valid key; a dead key surfaces on the first member fetch instead. Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -50,6 +50,7 @@ const (
|
||||
ConnectorProviderVercel ConnectorProvider = "VERCEL"
|
||||
ConnectorProviderMonday ConnectorProvider = "MONDAY"
|
||||
ConnectorProviderTailscale ConnectorProvider = "TAILSCALE"
|
||||
ConnectorProviderAnthropic ConnectorProvider = "ANTHROPIC"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -87,6 +88,7 @@ func ConnectorProviders() []ConnectorProvider {
|
||||
ConnectorProviderVercel,
|
||||
ConnectorProviderMonday,
|
||||
ConnectorProviderTailscale,
|
||||
ConnectorProviderAnthropic,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +121,8 @@ func (v ConnectorProvider) IsValid() bool {
|
||||
ConnectorProviderClickUp,
|
||||
ConnectorProviderVercel,
|
||||
ConnectorProviderMonday,
|
||||
ConnectorProviderTailscale:
|
||||
ConnectorProviderTailscale,
|
||||
ConnectorProviderAnthropic:
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
15
pkg/coredata/migrations/20260528T613927Z.sql
Normal file
15
pkg/coredata/migrations/20260528T613927Z.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- Copyright (c) 2026 Probo Inc <hello@getprobo.com>.
|
||||
--
|
||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||
-- purpose with or without fee is hereby granted, provided that the above
|
||||
-- copyright notice and this permission notice appear in all copies.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
-- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
-- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
-- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
-- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
-- PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
ALTER TYPE connector_provider ADD VALUE IF NOT EXISTS 'ANTHROPIC';
|
||||
Reference in New Issue
Block a user