File size: 851 Bytes
1477a90 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | // Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
import { type Client } from '../core.js'
import { unwrap, type RequestOptions } from '../lib/types.js'
import { listCustomerEntitlementAccess } from '../funcs/entitlements.js'
import type {
ListCustomerEntitlementAccessRequest,
ListCustomerEntitlementAccessResponse,
} from '../models/operations/entitlements.js'
export class Entitlements {
constructor(private readonly _client: Client) {}
/**
* List customer entitlement access
*
* GET /openmeter/customers/{customerId}/entitlement-access
*/
async listCustomerAccess(
request: ListCustomerEntitlementAccessRequest,
options?: RequestOptions,
): Promise<ListCustomerEntitlementAccessResponse> {
return unwrap(
await listCustomerEntitlementAccess(this._client, request, options),
)
}
}
|