@leaflow/sdk 0.125.1 → 0.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/type/order/v1/generated/models.d.ts +38 -3
- package/dist/billing/type/order/v1/generated/models.js +5 -0
- package/dist/billing/type/order/v1/generated/validators/monthlyStatement.zod.d.ts +36 -0
- package/dist/billing/type/order/v1/generated/validators/monthlyStatement.zod.js +30 -0
- package/dist/billing/type/order/v1/generated/validators/monthlyStatementList.zod.d.ts +43 -0
- package/dist/billing/type/order/v1/generated/validators/monthlyStatementList.zod.js +14 -0
- package/dist/billing/type/order/v1/generated/validators/statement.zod.d.ts +5 -0
- package/dist/billing/type/order/v1/generated/validators/statement.zod.js +5 -5
- package/dist/billing/type/order/v1/generated/validators/statementList.zod.d.ts +5 -0
- package/dist/billing/type/order/v1/generated/validators/statementType.zod.d.ts +15 -0
- package/dist/billing/type/order/v1/generated/validators/statementType.zod.js +11 -0
- package/dist/billing/v1/generated/functions.d.ts +26 -2
- package/dist/billing/v1/generated/functions.js +29 -1
- package/dist/billing/v1/generated/models.d.ts +61 -3
- package/dist/billing/v1/generated/models.js +5 -0
- package/dist/billing/v1/generated/schemas.zod.d.ts +19 -1
- package/dist/billing/v1/generated/schemas.zod.js +29 -1
- package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.d.ts +21 -0
- package/dist/billing/v1/generated/validators/listMonthlyStatementsParams.zod.js +27 -0
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.d.ts +36 -0
- package/dist/billing/v1/generated/validators/monthlyStatement.zod.js +30 -0
- package/dist/billing/v1/generated/validators/monthlyStatementList.zod.d.ts +43 -0
- package/dist/billing/v1/generated/validators/monthlyStatementList.zod.js +14 -0
- package/dist/billing/v1/generated/validators/statement.zod.d.ts +5 -0
- package/dist/billing/v1/generated/validators/statement.zod.js +5 -5
- package/dist/billing/v1/generated/validators/statementList.zod.d.ts +5 -0
- package/dist/billing/v1/generated/validators/statementType.zod.d.ts +15 -0
- package/dist/billing/v1/generated/validators/statementType.zod.js +11 -0
- package/dist/canopy/v1/generated/models.d.ts +38 -3
- package/dist/canopy/v1/generated/models.js +5 -0
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.d.ts +59 -0
- package/dist/canopy/v1/generated/validators/monthlyStatement.zod.js +53 -0
- package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.d.ts +66 -0
- package/dist/canopy/v1/generated/validators/monthlyStatementList.zod.js +37 -0
- package/dist/canopy/v1/generated/validators/statement.zod.d.ts +5 -0
- package/dist/canopy/v1/generated/validators/statement.zod.js +5 -5
- package/dist/canopy/v1/generated/validators/statementList.zod.d.ts +5 -0
- package/dist/canopy/v1/generated/validators/statementType.zod.d.ts +38 -0
- package/dist/canopy/v1/generated/validators/statementType.zod.js +34 -0
- package/dist/compute/v1/generated/models.d.ts +38 -3
- package/dist/compute/v1/generated/models.js +5 -0
- package/dist/compute/v1/generated/validators/monthlyStatement.zod.d.ts +52 -0
- package/dist/compute/v1/generated/validators/monthlyStatement.zod.js +46 -0
- package/dist/compute/v1/generated/validators/monthlyStatementList.zod.d.ts +59 -0
- package/dist/compute/v1/generated/validators/monthlyStatementList.zod.js +30 -0
- package/dist/compute/v1/generated/validators/statement.zod.d.ts +5 -0
- package/dist/compute/v1/generated/validators/statement.zod.js +5 -5
- package/dist/compute/v1/generated/validators/statementList.zod.d.ts +5 -0
- package/dist/compute/v1/generated/validators/statementType.zod.d.ts +31 -0
- package/dist/compute/v1/generated/validators/statementType.zod.js +27 -0
- package/dist/membership/v1/generated/functions.d.ts +9 -31
- package/dist/membership/v1/generated/functions.js +8 -15
- package/dist/membership/v1/generated/models.d.ts +72 -58
- package/dist/membership/v1/generated/models.js +5 -0
- package/dist/membership/v1/generated/schemas.zod.d.ts +9 -31
- package/dist/membership/v1/generated/schemas.zod.js +12 -34
- package/dist/membership/v1/generated/validators/accountBalance.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/accountBalance.zod.js +1 -16
- package/dist/membership/v1/generated/validators/accountIdentity.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/accountIdentity.zod.js +1 -16
- package/dist/membership/v1/generated/validators/activeResource.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/activeResource.zod.js +1 -16
- package/dist/membership/v1/generated/validators/activeResourceList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/activeResourceList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/allowance.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/allowance.zod.js +1 -16
- package/dist/membership/v1/generated/validators/allowanceBenefit.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/allowanceBenefit.zod.js +4 -19
- package/dist/membership/v1/generated/validators/allowanceList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/allowanceList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/applicability.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/applicability.zod.js +1 -16
- package/dist/membership/v1/generated/validators/applicablePlan.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/applicablePlan.zod.js +1 -16
- package/dist/membership/v1/generated/validators/appliedCredit.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/appliedCredit.zod.js +1 -16
- package/dist/membership/v1/generated/validators/autoRenewSet.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/autoRenewSet.zod.js +1 -16
- package/dist/membership/v1/generated/validators/benefit.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/benefit.zod.js +2 -17
- package/dist/membership/v1/generated/validators/billingAccount.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/billingAccount.zod.js +1 -16
- package/dist/membership/v1/generated/validators/billingAccountCreate.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/billingAccountCreate.zod.js +1 -16
- package/dist/membership/v1/generated/validators/billingAccountList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/billingAccountList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/billingAccountUpdate.zod.js +1 -16
- package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/cancelSubscriptionRequest.zod.js +1 -16
- package/dist/membership/v1/generated/validators/cancellation.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/cancellation.zod.js +1 -16
- package/dist/membership/v1/generated/validators/cancellationCreate.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/cancellationCreate.zod.js +1 -16
- package/dist/membership/v1/generated/validators/cancellationItem.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/cancellationItem.zod.js +1 -16
- package/dist/membership/v1/generated/validators/cancellationList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/cancellationList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/cancellationRefundPreview.zod.js +1 -16
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/cancellationRefundPreviewItem.zod.js +1 -16
- package/dist/membership/v1/generated/validators/checkoutMode.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/checkoutMode.zod.js +1 -16
- package/dist/membership/v1/generated/validators/checkoutOptions.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/checkoutOptions.zod.js +1 -16
- package/dist/membership/v1/generated/validators/contact.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/contact.zod.js +1 -16
- package/dist/membership/v1/generated/validators/contactCreate.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/contactCreate.zod.js +1 -16
- package/dist/membership/v1/generated/validators/contactList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/contactList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/contactUpdate.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/contactUpdate.zod.js +1 -16
- package/dist/membership/v1/generated/validators/creditBenefit.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/creditBenefit.zod.js +3 -18
- package/dist/membership/v1/generated/validators/creditGrant.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/creditGrant.zod.js +1 -16
- package/dist/membership/v1/generated/validators/creditGrantList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/creditGrantList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/creditGroup.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/creditGroup.zod.js +1 -16
- package/dist/membership/v1/generated/validators/creditNote.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/creditNote.zod.js +1 -16
- package/dist/membership/v1/generated/validators/creditNoteItem.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/creditNoteItem.zod.js +1 -16
- package/dist/membership/v1/generated/validators/creditNoteItemList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/creditNoteItemList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/creditNoteList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/creditNoteList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/currency.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/currency.zod.js +1 -16
- package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/currency6ff0ec7.zod.js +1 -16
- package/dist/membership/v1/generated/validators/currencyA200529.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/currencyA200529.zod.js +1 -16
- package/dist/membership/v1/generated/validators/currencyList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/currencyList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/cursorPagination.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/cursorPagination.zod.js +1 -16
- package/dist/membership/v1/generated/validators/discount.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/discount.zod.js +1 -16
- package/dist/membership/v1/generated/validators/discountBenefit.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/discountBenefit.zod.js +4 -19
- package/dist/membership/v1/generated/validators/discountList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/discountList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/entitlement.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/entitlement.zod.js +1 -16
- package/dist/membership/v1/generated/validators/entitlementList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/entitlementList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/error.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/error.zod.js +1 -16
- package/dist/membership/v1/generated/validators/errorA200529.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/errorA200529.zod.js +1 -16
- package/dist/membership/v1/generated/validators/featureBenefit.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/featureBenefit.zod.js +2 -17
- package/dist/membership/v1/generated/validators/featureGrant.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/featureGrant.zod.js +1 -16
- package/dist/membership/v1/generated/validators/featureGrantList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/featureGrantList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/featureGrantStatus.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/featureGrantStatus.zod.js +1 -16
- package/dist/membership/v1/generated/validators/getPlanParams.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/getPlanParams.zod.js +1 -16
- package/dist/membership/v1/generated/validators/grant.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/grant.zod.js +3 -20
- package/dist/membership/v1/generated/validators/invoice.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/invoice.zod.js +1 -16
- package/dist/membership/v1/generated/validators/invoiceItem.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/invoiceItem.zod.js +1 -16
- package/dist/membership/v1/generated/validators/invoiceItemList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/invoiceItemList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/invoiceList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/invoiceList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/invoiceStatus.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/invoiceStatus.zod.js +1 -16
- package/dist/membership/v1/generated/validators/invoiceSummary.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/invoiceSummary.zod.js +1 -16
- package/dist/membership/v1/generated/validators/listMembershipPeriodsParams.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/listMembershipPeriodsParams.zod.js +1 -16
- package/dist/membership/v1/generated/validators/listMembershipsParams.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/listMembershipsParams.zod.js +1 -16
- package/dist/membership/v1/generated/validators/listPlansParams.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/listPlansParams.zod.js +1 -16
- package/dist/membership/v1/generated/validators/membership.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/membership.zod.js +6 -23
- package/dist/membership/v1/generated/validators/membershipCreate.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/membershipCreate.zod.js +2 -17
- package/dist/membership/v1/generated/validators/membershipDowngrade.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/membershipDowngrade.zod.js +2 -17
- package/dist/membership/v1/generated/validators/membershipList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/membershipList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/membershipPurchase.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/membershipPurchase.zod.js +2 -17
- package/dist/membership/v1/generated/validators/membershipUpgrade.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/membershipUpgrade.zod.js +2 -17
- package/dist/membership/v1/generated/validators/money.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/money.zod.js +1 -16
- package/dist/membership/v1/generated/validators/monthlyStatement.zod.d.ts +36 -0
- package/dist/membership/v1/generated/validators/monthlyStatement.zod.js +30 -0
- package/dist/membership/v1/generated/validators/monthlyStatementList.zod.d.ts +43 -0
- package/dist/membership/v1/generated/validators/monthlyStatementList.zod.js +14 -0
- package/dist/membership/v1/generated/validators/namedIdentity.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/namedIdentity.zod.js +1 -16
- package/dist/membership/v1/generated/validators/objectIdentity.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/objectIdentity.zod.js +1 -16
- package/dist/membership/v1/generated/validators/offsetPagination.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/offsetPagination.zod.js +1 -16
- package/dist/membership/v1/generated/validators/order.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/order.zod.js +1 -16
- package/dist/membership/v1/generated/validators/orderCancel.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/orderCancel.zod.js +1 -16
- package/dist/membership/v1/generated/validators/orderItem.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/orderItem.zod.js +1 -16
- package/dist/membership/v1/generated/validators/orderItemList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/orderItemList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/orderItemStatus.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/orderItemStatus.zod.js +1 -16
- package/dist/membership/v1/generated/validators/orderList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/orderList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/orderRefundQuote.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/orderRefundQuote.zod.js +1 -16
- package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/orderRefundQuoteInput.zod.js +1 -16
- package/dist/membership/v1/generated/validators/orderStatus.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/orderStatus.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paidWith.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paidWith.zod.js +1 -16
- package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/payInvoiceRequest.zod.js +1 -16
- package/dist/membership/v1/generated/validators/payTogetherRequest.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/payTogetherRequest.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentAction.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentAction.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentCancellationReason.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentMethod.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentMethod.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentMethodList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentMethodList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentMethodSetup.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentMethodSetup.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentMethodSetupResult.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentOption.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentOption.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentOptionList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentOptionList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentOptionMethod.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentPreview.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentPreview.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentPreviewInvoice.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentPreviewInvoice.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentResult.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentResult.zod.js +1 -16
- package/dist/membership/v1/generated/validators/paymentStatus.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/paymentStatus.zod.js +1 -16
- package/dist/membership/v1/generated/validators/period.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/period.zod.js +2 -17
- package/dist/membership/v1/generated/validators/periodList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/periodList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/placedOrder.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/placedOrder.zod.js +1 -16
- package/dist/membership/v1/generated/validators/plan.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/plan.zod.js +2 -17
- package/dist/membership/v1/generated/validators/planA200529.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/planA200529.zod.js +1 -16
- package/dist/membership/v1/generated/validators/planC836db9.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/planC836db9.zod.js +1 -16
- package/dist/membership/v1/generated/validators/planFeature.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/planFeature.zod.js +1 -16
- package/dist/membership/v1/generated/validators/planList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/planList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/planListA200529.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/planListA200529.zod.js +1 -16
- package/dist/membership/v1/generated/validators/planListC836db9.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/planListC836db9.zod.js +1 -16
- package/dist/membership/v1/generated/validators/planPrice.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/planPrice.zod.js +1 -16
- package/dist/membership/v1/generated/validators/planSummary.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/planSummary.zod.js +2 -17
- package/dist/membership/v1/generated/validators/price.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/price.zod.js +1 -16
- package/dist/membership/v1/generated/validators/priceList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/priceList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/priceOption.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/priceOption.zod.js +1 -16
- package/dist/membership/v1/generated/validators/product.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/product.zod.js +1 -16
- package/dist/membership/v1/generated/validators/productID.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/productID.zod.js +1 -16
- package/dist/membership/v1/generated/validators/productIdentity.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/productIdentity.zod.js +2 -17
- package/dist/membership/v1/generated/validators/productList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/productList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/projectAssignment.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/projectAssignment.zod.js +1 -16
- package/dist/membership/v1/generated/validators/projectAssignmentList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/projectAssignmentList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/purchaseOperation.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/purchaseOperation.zod.js +1 -16
- package/dist/membership/v1/generated/validators/quote.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/quote.zod.js +1 -16
- package/dist/membership/v1/generated/validators/quoteCancellation.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/quoteCancellation.zod.js +1 -16
- package/dist/membership/v1/generated/validators/quoteItem.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/quoteItem.zod.js +1 -16
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/quoteItemInput.zod.js +1 -16
- package/dist/membership/v1/generated/validators/quoteRenewal.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/quoteRenewal.zod.js +1 -16
- package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/quoteRenewalResult.zod.js +1 -16
- package/dist/membership/v1/generated/validators/quoteRequest.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/quoteRequest.zod.js +1 -16
- package/dist/membership/v1/generated/validators/quotedDiscount.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/quotedDiscount.zod.js +1 -16
- package/dist/membership/v1/generated/validators/rate.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/rate.zod.js +1 -16
- package/dist/membership/v1/generated/validators/rateList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/rateList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/refund.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/refund.zod.js +1 -16
- package/dist/membership/v1/generated/validators/refundList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/refundList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/refundPolicy.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/refundPolicy.zod.js +1 -16
- package/dist/membership/v1/generated/validators/refundReason.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/refundReason.zod.js +1 -16
- package/dist/membership/v1/generated/validators/renewRequest.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/renewRequest.zod.js +1 -16
- package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/renewalOrderRequest.zod.js +1 -16
- package/dist/membership/v1/generated/validators/renewalPrice.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/renewalPrice.zod.js +1 -16
- package/dist/membership/v1/generated/validators/renewalPriceList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/renewalPriceList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/setProjectAssignmentRequest.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/setProjectAssignmentRequest.zod.js +1 -16
- package/dist/membership/v1/generated/validators/spendRow.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/spendRow.zod.js +1 -16
- package/dist/membership/v1/generated/validators/spendRowList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/spendRowList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/statement.zod.d.ts +6 -16
- package/dist/membership/v1/generated/validators/statement.zod.js +6 -21
- package/dist/membership/v1/generated/validators/statementAmounts.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/statementAmounts.zod.js +1 -16
- package/dist/membership/v1/generated/validators/statementItem.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/statementItem.zod.js +1 -16
- package/dist/membership/v1/generated/validators/statementList.zod.d.ts +6 -16
- package/dist/membership/v1/generated/validators/statementList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/statementStatus.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/statementStatus.zod.js +1 -16
- package/dist/membership/v1/generated/validators/statementSummary.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/statementSummary.zod.js +1 -16
- package/dist/membership/v1/generated/validators/statementType.zod.d.ts +15 -0
- package/dist/membership/v1/generated/validators/statementType.zod.js +11 -0
- package/dist/membership/v1/generated/validators/subscription.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/subscription.zod.js +1 -16
- package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/subscriptionCancellation.zod.js +1 -16
- package/dist/membership/v1/generated/validators/subscriptionList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/subscriptionList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/taxItem.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/taxItem.zod.js +1 -16
- package/dist/membership/v1/generated/validators/terminationPolicy.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/terminationPolicy.zod.js +1 -16
- package/dist/membership/v1/generated/validators/tier.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/tier.zod.js +1 -16
- package/dist/membership/v1/generated/validators/topUp.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/topUp.zod.js +1 -16
- package/dist/membership/v1/generated/validators/topUpCreate.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/topUpCreate.zod.js +1 -16
- package/dist/membership/v1/generated/validators/topUpList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/topUpList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/transaction.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/transaction.zod.js +1 -16
- package/dist/membership/v1/generated/validators/transactionList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/transactionList.zod.js +1 -16
- package/dist/membership/v1/generated/validators/transactionType.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/transactionType.zod.js +1 -16
- package/dist/membership/v1/generated/validators/usageCharge.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/usageCharge.zod.js +1 -16
- package/dist/membership/v1/generated/validators/usageChargeList.zod.d.ts +1 -16
- package/dist/membership/v1/generated/validators/usageChargeList.zod.js +1 -16
- package/dist/routes.d.ts +8 -0
- package/dist/routes.js +9 -0
- package/package.json +1 -1
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -32,4 +17,4 @@ export const Period = zod
|
|
|
32
17
|
ends_at: zod.iso.datetime({ offset: true }),
|
|
33
18
|
grants: zod.array(Grant),
|
|
34
19
|
})
|
|
35
|
-
.describe("A
|
|
20
|
+
.describe("A fulfilled membership period.");
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -28,7 +13,7 @@ export const Plan = zod.strictObject({
|
|
|
28
13
|
lookup_key: zod.string(),
|
|
29
14
|
name: zod.string(),
|
|
30
15
|
description: zod.string(),
|
|
31
|
-
rank: zod.int().describe("Higher
|
|
16
|
+
rank: zod.int().describe("Higher values mean higher tiers."),
|
|
32
17
|
prices: zod.array(PlanPrice),
|
|
33
18
|
benefits: zod.array(Benefit),
|
|
34
19
|
});
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|
|
@@ -2,22 +2,7 @@
|
|
|
2
2
|
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Leaflow Membership API
|
|
5
|
-
* Membership
|
|
6
|
-
*
|
|
7
|
-
* A membership is a prepaid subscription sold through Billing. For each paid period it issues the plan's benefits to the billing account. A plan can carry several benefits across services: credit for chosen services, coupons on purchases and metered usage, and usage allowances such as model tokens, and access to features of other services. Benefits are shared by every project paid for by the account.
|
|
8
|
-
*
|
|
9
|
-
* ## Authentication
|
|
10
|
-
*
|
|
11
|
-
* Plans are public. Memberships require an access token; see the `accessTokenAuth` security scheme. Only the owner of a billing account can read or change its membership; anyone else receives 403 `MEMBERSHIP_ACCOUNT_FORBIDDEN`.
|
|
12
|
-
*
|
|
13
|
-
* ## Conventions
|
|
14
|
-
*
|
|
15
|
-
* - **One membership per billing account.** A pending or active membership must end before another is bought; change plans with upgrade and downgrade instead.
|
|
16
|
-
* - **Payment goes through Billing.** Purchases and upgrades return a Billing order. With `checkout.mode` `deferred`, pay the order's invoice through Billing. Benefits are issued once Billing reports the order ready; every order has an invoice, including a zero-total one, which is paid automatically.
|
|
17
|
-
* - **Cancellation and auto-renewal are managed in Billing** on the membership's `subscription_id`. A cancellation takes effect at the end of the paid period without a refund, and the period's benefits remain until then.
|
|
18
|
-
* - **An upgrade takes effect immediately** for the full difference between the two plans' period prices, whatever remains of the period. The difference in credit is issued in full and the new plan's discount applies from payment. Renewals are charged at the new plan's price.
|
|
19
|
-
* - **A downgrade takes effect at the end of the paid period.** The current period keeps its benefits and nothing is refunded.
|
|
20
|
-
* - **Amounts are decimal strings** in the billing account's currency. There is no currency conversion: a plan without a price or credit in the account's currency cannot be bought with it.
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
21
6
|
* OpenAPI spec version: 1.0.0
|
|
22
7
|
*/
|
|
23
8
|
import * as zod from "zod";
|