openmeter / api /v3 /client /models_entitlements.go
Leon4gr45's picture
Upload folder using huggingface_hub (part 3)
04f1444 verified
Raw
History Blame Contribute Delete
888 Bytes
// Code generated by @openmeter/typespec-go. DO NOT EDIT.
package openmeter
// Entitlement access result.
type EntitlementAccessResult struct {
// The type of the entitlement.
Type EntitlementType `json:"type"`
// The feature key of the entitlement.
FeatureKey string `json:"feature_key"`
// Whether the customer has access to the feature. Always true for `boolean` and
// `static` entitlements. Depends on balance for `metered` entitlements.
HasAccess bool `json:"has_access"`
// Only available for static entitlements. Config is the JSON parsable
// configuration of the entitlement. Useful to describe per customer configuration.
Config *string `json:"config,omitempty"`
}
// List customer entitlement access response data.
type ListCustomerEntitlementAccessResponseData struct {
// The list of entitlement access results.
Data []EntitlementAccessResult `json:"data"`
}