@@ -6,6 +6,7 @@ import "./shared/index.tsp";
66import "./events/index.tsp" ;
77import "./meters/index.tsp" ;
88import "./customers/index.tsp" ;
9+ import "./entitlements/index.tsp" ;
910
1011using TypeSpec .Http ;
1112using TypeSpec .OpenAPI ;
@@ -29,6 +30,10 @@ using TypeSpec.OpenAPI;
2930@ tagMetadata (Shared .MetersTag , #{ description : Shared .MetersDescription })
3031@ tagMetadata (Shared .EventsTag , #{ description : Shared .EventsDescription })
3132@ tagMetadata (Shared .CustomersTag , #{ description : Shared .CustomersDescription })
33+ @ tagMetadata (
34+ Shared .EntitlementsTag ,
35+ #{ description : Shared .EntitlementsDescription }
36+ )
3237@ useAuth (systemAccountAccessToken | personalAccessToken | konnectAccessToken )
3338namespace MeteringAndBilling ;
3439
@@ -47,6 +52,13 @@ interface MetersEndpoints extends Meters.MetersOperations {}
4752@ friendlyName ("${Shared .MeteringAndBillingTitle }: ${Shared .CustomersTag }" )
4853interface CustomersEndpoints extends Customers .CustomersOperations {}
4954
55+ @ route ("/openmeter/customers/{customerId}/entitlement-access" )
56+ @ tag (Shared .CustomersTag )
57+ @ tag (Shared .EntitlementsTag )
58+ @ friendlyName ("${Shared .MeteringAndBillingTitle }: ${Shared .EntitlementsTag }" )
59+ interface CustomerEntitlementsEndpoints
60+ extends Entitlements .CustomerEntitlementsOperations {}
61+
5062/**
5163 * The system account access token is meant for automations and integrations that are not directly associated with a human identity.
5264 */
0 commit comments