Allow user to share a flow publicly and make it duplicatable

Closes #360
This commit is contained in:
Baptiste Arnaud
2023-11-23 12:05:31 +01:00
parent 8a07392821
commit bb41226a04
130 changed files with 1150 additions and 2012 deletions

View File

@@ -11,7 +11,7 @@ export const createCheckoutSession = authenticatedProcedure
.meta({
openapi: {
method: 'POST',
path: '/billing/subscription/checkout',
path: '/v1/billing/subscription/checkout',
protect: true,
summary: 'Create checkout session to create a new subscription',
tags: ['Billing'],

View File

@@ -11,7 +11,7 @@ export const createCustomCheckoutSession = authenticatedProcedure
.meta({
openapi: {
method: 'POST',
path: '/billing/subscription/custom-checkout',
path: '/v1/billing/subscription/custom-checkout',
protect: true,
summary:
'Create custom checkout session to make a workspace pay for a custom plan',

View File

@@ -10,7 +10,7 @@ export const getBillingPortalUrl = authenticatedProcedure
.meta({
openapi: {
method: 'GET',
path: '/billing/subscription/portal',
path: '/v1/billing/subscription/portal',
protect: true,
summary: 'Get Stripe billing portal URL',
tags: ['Billing'],

View File

@@ -11,7 +11,7 @@ export const getSubscription = authenticatedProcedure
.meta({
openapi: {
method: 'GET',
path: '/billing/subscription',
path: '/v1/billing/subscription',
protect: true,
summary: 'List invoices',
tags: ['Billing'],

View File

@@ -10,7 +10,7 @@ export const getUsage = authenticatedProcedure
.meta({
openapi: {
method: 'GET',
path: '/billing/usage',
path: '/v1/billing/usage',
protect: true,
summary: 'Get current plan usage',
tags: ['Billing'],

View File

@@ -12,7 +12,7 @@ export const listInvoices = authenticatedProcedure
.meta({
openapi: {
method: 'GET',
path: '/billing/invoices',
path: '/v1/billing/invoices',
protect: true,
summary: 'List invoices',
tags: ['Billing'],

View File

@@ -14,7 +14,7 @@ export const updateSubscription = authenticatedProcedure
.meta({
openapi: {
method: 'PATCH',
path: '/billing/subscription',
path: '/v1/billing/subscription',
protect: true,
summary: 'Update subscription',
tags: ['Billing'],