YoukaClient authentication and per-request options as project and export calls.
client.account.get(options?)
Fetch the account identity for the active API key.
client.credits.overview(options?)
Fetch available balance, renewal dates, top-ups, and subscription renewal metadata.
client.billing.getCatalog(options?)
Fetch subscription and top-up pricing for the authenticated account.
planQuantities lists every owned subscription quantity together with its
provider; check enabled because maxed-out subscriptions remain in the list.
planQuantity identifies the automatic target when the default provider or a
sole eligible alternative can be increased. When no automatic target exists,
its nullable fields distinguish a sole disabled owner from an unresolved owner.
For eligible accounts, subscription.monthly.priceExperiment identifies the
active price experiment, assigned variant, and effective unit price in cents.
The field can be null or omitted when no experiment applies.
client.billing.createCheckout(body, options?)
Create a checkout URL with the currently configured default payment provider.
productType: "topup" and a positive quantity; the account
must have an active subscription. The SDK defaults platform to "sdk" unless
you override it. The response includes provider, Youka’s checkoutId, and the
provider’s sessionId.
