- Add
name
field toApiKey
. - Add
revalidate_cache
toListKeysRequest
. - Add
name
,code
, andenabled
fields toVerifyKeyResponse
.
- Updated ErrorCodes to more closely align with Unkey.
- All async
Client
methods and service methods now return aResult
instead ofWrapped
. - Wrapped is now
pub(crate)
and considered internal implementation detail.
Result<T, HttpErrorResponse>
now implementsFrom<Wrapped<T>>
.
VerifyKeyRequest
now requires anapi_id
.ListKeysRequest
no longer has anoffset
field.
- Add
Conflict
variant toErrorCode
enum. - Add
get_key
method toKeyService
. - Add
cursor
field toListKeysRequest
. - Add
Refill
,RefillInterval
, andUpdateOp
models/enums. - Add
key_id
property ontoApiKeyVerification
. - Add
refill
property ontoApiKeyMeta
andApiKeyVerification
. - Add support for
refill
when creating and updating a key. - Add
update_remaining
method toKeyService
and correspondingRoute
.
- Refactor internal routes to use new API endpoints.
- Use new headers requested by Unkey.
- Add
NotUnique
andInvalidKeyType
variants toErrorCode
enum.
- Rename
UsageExceeded
error code toKeyUsageExceeded
.
- Add
Client
for interacting with the unkey api. - Add
ApiService
for api related requests. - Add
KeyService
for key related requests. - Add
create_key
method. - Add
verify_key
method. - Add
revoke_key
method. - Add
update_key
method. - Add
list_keys
method. - Add
get_api
method. - Add various models supporting api service.
- Add various models supporting key service.