@leaflow/sdk 0.125.1 → 0.126.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 +13 -3
- package/dist/billing/type/order/v1/generated/models.js +5 -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 +4 -1
- package/dist/billing/v1/generated/functions.js +4 -1
- package/dist/billing/v1/generated/models.d.ts +13 -3
- package/dist/billing/v1/generated/models.js +5 -0
- package/dist/billing/v1/generated/schemas.zod.d.ts +4 -1
- package/dist/billing/v1/generated/schemas.zod.js +4 -1
- 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 +13 -3
- package/dist/canopy/v1/generated/models.js +5 -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 +13 -3
- package/dist/compute/v1/generated/models.js +5 -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 +47 -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/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/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";
|
|
@@ -32,6 +17,11 @@ export declare const Statement: zod.ZodObject<{
|
|
|
32
17
|
open: "open";
|
|
33
18
|
closed: "closed";
|
|
34
19
|
}>;
|
|
20
|
+
type: zod.ZodEnum<{
|
|
21
|
+
interim: "interim";
|
|
22
|
+
final: "final";
|
|
23
|
+
supplement: "supplement";
|
|
24
|
+
}>;
|
|
35
25
|
estimated: zod.ZodBoolean;
|
|
36
26
|
amounts: zod.ZodObject<{
|
|
37
27
|
subtotal: zod.ZodString;
|
|
@@ -2,28 +2,14 @@
|
|
|
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";
|
|
24
9
|
import { Money } from "./money.zod.js";
|
|
25
10
|
import { StatementAmounts } from "./statementAmounts.zod.js";
|
|
26
11
|
import { StatementStatus } from "./statementStatus.zod.js";
|
|
12
|
+
import { StatementType } from "./statementType.zod.js";
|
|
27
13
|
export const Statement = zod
|
|
28
14
|
.strictObject({
|
|
29
15
|
id: zod.uuid(),
|
|
@@ -31,13 +17,12 @@ export const Statement = zod
|
|
|
31
17
|
currency: zod.string(),
|
|
32
18
|
period_start: zod.iso.datetime({ offset: true }),
|
|
33
19
|
period_end: zod.iso.datetime({ offset: true }),
|
|
34
|
-
sequence: zod
|
|
35
|
-
.int()
|
|
36
|
-
.describe("1 for the first closing of the period; higher for statements that collect usage priced after an earlier closing."),
|
|
20
|
+
sequence: zod.int().describe("Increases with each closing of the period."),
|
|
37
21
|
status: StatementStatus,
|
|
22
|
+
type: StatementType,
|
|
38
23
|
estimated: zod
|
|
39
24
|
.boolean()
|
|
40
|
-
.describe("True while the statement is open. The estimate applies tier pricing to the period's usage so far and adds tax for the current invoice contact. Minimum charges are added at closing, and a tier reduction larger than this statement's own charges is credited to earlier invoices of the period at closing."),
|
|
25
|
+
.describe("True while the statement is open. The estimate applies tier pricing to the period's usage so far and adds tax for the current invoice contact. Minimum charges are added at the period's final closing, and a tier reduction larger than this statement's own charges is credited to earlier invoices of the period at closing."),
|
|
41
26
|
amounts: StatementAmounts,
|
|
42
27
|
closed_at: zod.iso.datetime({ offset: true }).optional(),
|
|
43
28
|
invoice_id: zod
|
|
@@ -48,4 +33,4 @@ export const Statement = zod
|
|
|
48
33
|
calculated_at: zod.iso.datetime({ offset: true }).optional(),
|
|
49
34
|
credited_amount: Money,
|
|
50
35
|
})
|
|
51
|
-
.describe("An account's consumption for one billing period, collected at one closing.
|
|
36
|
+
.describe("An account's consumption for one billing period, collected at one closing. Usage is billed after every settlement run, about hourly; each closing issues an invoice for the usage priced since the previous closing and collects it from credits and balance at once, and later usage is collected in the next statement of the same period. A closed statement is never rewritten. The period's consumption is the sum of its statements.");
|
|
@@ -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";
|
|
@@ -33,6 +18,11 @@ export declare const StatementList: zod.ZodObject<{
|
|
|
33
18
|
open: "open";
|
|
34
19
|
closed: "closed";
|
|
35
20
|
}>;
|
|
21
|
+
type: zod.ZodEnum<{
|
|
22
|
+
interim: "interim";
|
|
23
|
+
final: "final";
|
|
24
|
+
supplement: "supplement";
|
|
25
|
+
}>;
|
|
36
26
|
estimated: zod.ZodBoolean;
|
|
37
27
|
amounts: zod.ZodObject<{
|
|
38
28
|
subtotal: zod.ZodString;
|
|
@@ -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";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Membership API
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export declare const StatementType: zod.ZodEnum<{
|
|
10
|
+
interim: "interim";
|
|
11
|
+
final: "final";
|
|
12
|
+
supplement: "supplement";
|
|
13
|
+
}>;
|
|
14
|
+
export type StatementType = zod.input<typeof StatementType>;
|
|
15
|
+
export type StatementTypeOutput = zod.output<typeof StatementType>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Leaflow Membership API
|
|
5
|
+
* Membership tiers and account memberships. Catalog queries support any configured currency; purchases use the billing account currency.
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import * as zod from "zod";
|
|
9
|
+
export const StatementType = zod
|
|
10
|
+
.enum(["interim", "final", "supplement"])
|
|
11
|
+
.describe("interim: a closing before the period's usage is final; minimum charges are not applied. final: the first closing after the period ended and its late usage was settled; minimum charges for the whole period are applied. supplement: a closing after the final one, for usage priced late. An open statement is interim.");
|
|
@@ -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";
|