AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { SeekPage } from '@activepieces/core-utils';
import {
AppConnectionOwners,
ListVariablesRequestQuery,
RevealVariableResponse,
UpdateVariableRequestBody,
UpsertVariableRequestBody,
VariableWithoutSensitiveData,
} from '@activepieces/shared';
import { api } from '@/lib/api';
export const variablesApi = {
list(
request: ListVariablesRequestQuery,
): Promise<SeekPage<VariableWithoutSensitiveData>> {
return api.get<SeekPage<VariableWithoutSensitiveData>>(
'/v1/variables',
request,
);
},
create(
request: UpsertVariableRequestBody,
): Promise<VariableWithoutSensitiveData> {
return api.post<VariableWithoutSensitiveData>('/v1/variables', request);
},
update(
id: string,
request: UpdateVariableRequestBody,
): Promise<VariableWithoutSensitiveData> {
return api.post<VariableWithoutSensitiveData>(
`/v1/variables/${id}`,
request,
);
},
delete(id: string): Promise<void> {
return api.delete<void>(`/v1/variables/${id}`);
},
reveal(id: string): Promise<RevealVariableResponse> {
return api.post<RevealVariableResponse>(`/v1/variables/${id}/reveal`, {});
},
getOwners(request: {
projectId: string;
}): Promise<SeekPage<AppConnectionOwners>> {
return api.get<SeekPage<AppConnectionOwners>>(
'/v1/variables/owners',
request,
);
},
};