This description was created by Ellipsis for commit 52cfa490f0786459ce537fd2448f14f4cbb805aa
Summary:
This PR refines user and organization type definitions in the SDK, adds a new promo code validation endpoint, and updates the AtlasUser class to use specific types for improved type safety.
Key points:
Updated src/type-gen/openapi.ts to include a new endpoint /v1/stripe/promo-code/validate for validating promo codes.
Modified components['schemas']['Organization'] to use components['schemas']['OrganizationPlan'] for plan_type.
Added components['schemas']['StripeSubscriptionCancelRequest and components['schemas']['ValidatePromoCodeRequest.
Updated src/user.ts to use components['schemas']['PrivateUser'] in AtlasUser class.
Removed deprecated OrganizationUserInfo and UserInfo types from src/user.ts.
Summary:
This PR refines user and organization type definitions in the SDK, adds a new promo code validation endpoint, and updates the
AtlasUser
class to use specific types for improved type safety.Key points:
src/type-gen/openapi.ts
to include a new endpoint/v1/stripe/promo-code/validate
for validating promo codes.components['schemas']['Organization']
to usecomponents['schemas']['OrganizationPlan']
forplan_type
.components['schemas']['StripeSubscriptionCancelRequest
andcomponents['schemas']['ValidatePromoCodeRequest
.src/user.ts
to usecomponents['schemas']['PrivateUser']
inAtlasUser
class.OrganizationUserInfo
andUserInfo
types fromsrc/user.ts
.Generated with :heart: by ellipsis.dev