@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";
|
|
@@ -25,7 +10,7 @@ import { MembershipCreate } from "./validators/membershipCreate.zod.js";
|
|
|
25
10
|
import { MembershipDowngrade } from "./validators/membershipDowngrade.zod.js";
|
|
26
11
|
import { MembershipUpgrade } from "./validators/membershipUpgrade.zod.js";
|
|
27
12
|
/**
|
|
28
|
-
* Lists
|
|
13
|
+
* Lists tiers on sale with prices and benefits, ordered by rank.
|
|
29
14
|
* @summary List plans
|
|
30
15
|
*/
|
|
31
16
|
export const listPlansQueryPageDefault = 1;
|
|
@@ -50,10 +35,10 @@ export const ListPlansQueryParams = zod.strictObject({
|
|
|
50
35
|
.string()
|
|
51
36
|
.regex(listPlansQueryCurrencyRegExp)
|
|
52
37
|
.optional()
|
|
53
|
-
.describe("
|
|
38
|
+
.describe("Filters prices and currency-specific benefits. Any configured currency is allowed; omit to return all currencies."),
|
|
54
39
|
});
|
|
55
40
|
/**
|
|
56
|
-
* Returns a
|
|
41
|
+
* Returns a tier on sale with its prices and benefits.
|
|
57
42
|
* @summary Get a plan
|
|
58
43
|
*/
|
|
59
44
|
export const GetPlanParams = zod.strictObject({
|
|
@@ -65,10 +50,10 @@ export const GetPlanQueryParams = zod.strictObject({
|
|
|
65
50
|
.string()
|
|
66
51
|
.regex(getPlanQueryCurrencyRegExp)
|
|
67
52
|
.optional()
|
|
68
|
-
.describe("
|
|
53
|
+
.describe("Filters prices and currency-specific benefits. Any configured currency is allowed; omit to return all currencies."),
|
|
69
54
|
});
|
|
70
55
|
/**
|
|
71
|
-
* Lists
|
|
56
|
+
* Lists memberships of the specified account, including ended memberships, newest first.
|
|
72
57
|
* @summary List memberships
|
|
73
58
|
*/
|
|
74
59
|
export const listMembershipsQueryPageDefault = 1;
|
|
@@ -88,13 +73,10 @@ export const ListMembershipsQueryParams = zod.strictObject({
|
|
|
88
73
|
.max(listMembershipsQueryPageSizeMax)
|
|
89
74
|
.default(listMembershipsQueryPageSizeDefault)
|
|
90
75
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
91
|
-
billing_account_id: zod.int().min(1).describe("
|
|
76
|
+
billing_account_id: zod.int().min(1).describe("The account to query."),
|
|
92
77
|
});
|
|
93
78
|
/**
|
|
94
|
-
* Places a
|
|
95
|
-
* The membership becomes active, and its first period's benefits are issued, once Billing reports the order ready.
|
|
96
|
-
*
|
|
97
|
-
* Fails with 409 `MEMBERSHIP_EXISTS` when the account already has a pending or active membership, and with 422 `MEMBERSHIP_PLAN_UNAVAILABLE` when the plan is not on sale or has no price or credit in the account's currency. Billing refusals, such as `BILLING_INSUFFICIENT_FUNDS`, are returned as Billing reports them.
|
|
79
|
+
* Places a purchase order and returns the membership and invoice. Activation follows successful benefit issuance and delivery confirmation. Returns 409 MEMBERSHIP_EXISTS or 422 MEMBERSHIP_PLAN_UNAVAILABLE.
|
|
98
80
|
* @summary Buy a membership
|
|
99
81
|
*/
|
|
100
82
|
export const CreateMembershipBody = MembershipCreate;
|
|
@@ -105,7 +87,7 @@ export const GetMembershipParams = zod.strictObject({
|
|
|
105
87
|
membershipId: zod.uuid(),
|
|
106
88
|
});
|
|
107
89
|
/**
|
|
108
|
-
* Lists
|
|
90
|
+
* Lists fulfilled periods and their grants, newest first.
|
|
109
91
|
* @summary List membership periods
|
|
110
92
|
*/
|
|
111
93
|
export const ListMembershipPeriodsParams = zod.strictObject({
|
|
@@ -130,9 +112,7 @@ export const ListMembershipPeriodsQueryParams = zod.strictObject({
|
|
|
130
112
|
.describe("Items per page. Defaults to 50; at most 200."),
|
|
131
113
|
});
|
|
132
114
|
/**
|
|
133
|
-
* Places
|
|
134
|
-
*
|
|
135
|
-
* Fails with 409 `MEMBERSHIP_NOT_ACTIVE` unless the membership is active, and with 422 `MEMBERSHIP_UPGRADE_UNAVAILABLE` when the chosen plan does not rank above the current one or no upgrade is priced in the account's currency. A pending upgrade or a scheduled downgrade must finish or be canceled first (409 `MEMBERSHIP_CHANGE_PENDING`).
|
|
115
|
+
* Places an order for the full-period price difference. The upgrade takes effect after benefit issuance and delivery confirmation; renewal uses the target tier. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_UPGRADE_UNAVAILABLE.
|
|
136
116
|
* @summary Upgrade a membership
|
|
137
117
|
*/
|
|
138
118
|
export const UpgradeMembershipParams = zod.strictObject({
|
|
@@ -140,9 +120,7 @@ export const UpgradeMembershipParams = zod.strictObject({
|
|
|
140
120
|
});
|
|
141
121
|
export const UpgradeMembershipBody = MembershipUpgrade;
|
|
142
122
|
/**
|
|
143
|
-
* Schedules a
|
|
144
|
-
*
|
|
145
|
-
* Fails with 409 `MEMBERSHIP_NOT_ACTIVE` unless the membership is active, 409 `MEMBERSHIP_CHANGE_PENDING` while another change is pending, and 422 `MEMBERSHIP_DOWNGRADE_INVALID` when the chosen plan does not rank below the current one or has no price in the account's currency for the membership's billing interval.
|
|
123
|
+
* Schedules a lower tier for the next period. Current benefits remain valid. Returns 409 MEMBERSHIP_NOT_ACTIVE or MEMBERSHIP_CHANGE_PENDING, or 422 MEMBERSHIP_DOWNGRADE_INVALID.
|
|
146
124
|
* @summary Schedule a downgrade
|
|
147
125
|
*/
|
|
148
126
|
export const ScheduleMembershipDowngradeParams = zod.strictObject({
|
|
@@ -150,7 +128,7 @@ export const ScheduleMembershipDowngradeParams = zod.strictObject({
|
|
|
150
128
|
});
|
|
151
129
|
export const ScheduleMembershipDowngradeBody = MembershipDowngrade;
|
|
152
130
|
/**
|
|
153
|
-
*
|
|
131
|
+
* Cancels the scheduled downgrade. Returns 409 MEMBERSHIP_CHANGE_PENDING if none is scheduled.
|
|
154
132
|
* @summary Cancel a scheduled downgrade
|
|
155
133
|
*/
|
|
156
134
|
export const CancelMembershipDowngradeParams = zod.strictObject({
|
|
@@ -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";
|
|
@@ -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,9 +13,9 @@ export const AllowanceBenefit = zod
|
|
|
28
13
|
meter_id: zod.uuid(),
|
|
29
14
|
meter_name: zod.string(),
|
|
30
15
|
unit: zod.string(),
|
|
31
|
-
quantity: zod.string().describe("
|
|
16
|
+
quantity: zod.string().describe("Quantity in the meter's unit."),
|
|
32
17
|
dimensions: zod
|
|
33
18
|
.record(zod.string(), zod.string())
|
|
34
|
-
.describe("
|
|
19
|
+
.describe("Meter dimension selectors; empty means unrestricted usage."),
|
|
35
20
|
})
|
|
36
|
-
.describe("
|
|
21
|
+
.describe("Metered usage included in each 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";
|