Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

850 B
Raw Blame
import Stripe from 'stripe';

export type StripeEventDataWithMetadata = Stripe.CustomerSubscriptionCreatedEvent.Data & {
  object: {
    id: string;
    // customer: string;
    metadata: {
      // metadata goes here
      email?: string;
      teamId?: string;
    };
  };
};

export type StripeSubsCreatedEvent = Stripe.CustomerSubscriptionCreatedEvent & {
  data: StripeEventDataWithMetadata;
};

export type StripeCheckoutSessionCompletedEvent = Stripe.CheckoutSessionCompletedEvent & {
  data: {
    object: {
      metadata: {
        email: string;
        teamId: string;
      };
    };
  };
};

export interface WebhookCommand {
  execute(event: Stripe.EventBase & { [key: string]: any }): Promise<{ success: boolean; [key: string]: any }>;
}

export type PlanNames = 'Early Adopters' | 'SmythOS Starter' | 'SmythOS PRO' | 'SmythOS Free';