/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 447895683f15 */ import { billingGetEntitlements } from "../funcs/billingGetEntitlements.js"; import { billingListAuditLog } from "../funcs/billingListAuditLog.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Billing extends ClientSDK { /** * List billing activity entries for the current workspace. */ async listAuditLog( request?: operations.ListBillingAuditLogRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(billingListAuditLog( this, request, options, )); } /** * Get the workspace billing entitlements used for product feature gates. Autumn is the source of truth; the response is served through the workspace billing read model with stale-cache fallback. */ async getEntitlements( request?: operations.GetWorkspaceBillingEntitlementsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(billingGetEntitlements( this, request, options, )); } }