Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all unused data-plane gateway assets in the codebase #1299

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ PORT=3000
VITE_SUPABASE_URL=https://eyrcnmuzzyriypdajwdk.supabase.co
VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImV5cmNubXV6enlyaXlwZGFqd2RrIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NDg3NTA1NzksImV4cCI6MTk2NDMyNjU3OX0.y1OyXD3-DYMz10eGxzo1eeamVMMUwIIeOoMryTRAoco

VITE_GATEWAY_AUTH_TOKEN_URL=https://eyrcnmuzzyriypdajwdk.supabase.co/rest/v1/rpc/gateway_auth_token

VITE_TASK_AUTHORIZATION_URL=https://agent-api-1084703453822.us-central1.run.app/authorize/user/task
VITE_COLLECTION_AUTHORIZATION_URL=https://agent-api-1084703453822.us-central1.run.app/authorize/user/collection

Expand Down
2 changes: 0 additions & 2 deletions .env.development.local
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ VITE_SUPABASE_URL=http://localhost:5431
# Supabase CLI v1.40
VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0

VITE_GATEWAY_AUTH_TOKEN_URL=http://localhost:5431/rest/v1/rpc/gateway_auth_token

VITE_TASK_AUTHORIZATION_URL=http://localhost:8675/authorize/user/task
VITE_COLLECTION_AUTHORIZATION_URL=http://localhost:8675/authorize/user/collection

Expand Down
1 change: 0 additions & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ VITE_SUPABASE_ANON_KEY=__test_mode__supabaseAnonKey
VITE_SUPABASE_URL=http://example.com/supabase
VITE_ENCRYPTION_URL=http://example.com/encryption
VITE_MARKETPLACE_VERIFY_URL=http://example.com/marketplaceVerify
VITE_GATEWAY_AUTH_TOKEN_URL=http://example.com/gatewayAuthToken
26 changes: 0 additions & 26 deletions src/services/schema-inference.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,6 @@ export interface LiveSpecsExtBaseQuery extends LiveSpecsExtBareMinimum {
spec: any;
}

export interface GatewayAuthTokenResponse {
gateway_url: URL;
token: string;
}

export interface MarketPlaceVerifyResponse {
data: any;
error: any;
Expand Down
13 changes: 0 additions & 13 deletions src/utils/env-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,19 +150,6 @@ export const getMarketplaceSettings = () => {
}
};

export const getGatewayAuthTokenSettings = () => {
const gatewayAuthTokenEndpoint = import.meta.env
.VITE_GATEWAY_AUTH_TOKEN_URL;

if (gatewayAuthTokenEndpoint) {
return { gatewayAuthTokenEndpoint };
} else {
throw new Error(
'Missing endpoint for creating gateway auth tokens: VITE_GATEWAY_AUTH_TOKEN_URL'
);
}
};

export const getTaskAuthorizationSettings = () => {
const taskAuthorizationEndpoint = import.meta.env
.VITE_TASK_AUTHORIZATION_URL;
Expand Down