with Bash and Supabase Management API?
Emit new event when a database backup is completed for a project. See the documentation
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
Creates a new Supabase project within a specified organization. See the documentation
Generates TypeScript types based on the current database schema for a specified Supabase project. See the documentation
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
supabase_management_api: {
type: "app",
app: "supabase_management_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.supabase.com/v1/organizations`,
headers: {
Authorization: `Bearer ${this.supabase_management_api.$auth.oauth_access_token}`,
"Accept": `application/json`,
},
})
},
})