Versions in this module Expand all Collapse all v1 v1.13.0 Jul 1, 2026 Changes in this version + const OwnerTypeOrganization + const OwnerTypeUser + type ApiKey struct + CreatedAt time.Time + Enabled bool + ExpiresAt *time.Time + ID string + KeyHash string + Last string + LastRequestedAt *time.Time + Metadata map[string]any + Name string + OwnerID string + OwnerType string + Permissions []string + Prefix *string + RateLimitEnabled bool + Start string + UpdatedAt time.Time + type ApiKeyPluginConfig struct + AllowOrgKeys bool + AutoCleanup bool + CleanupInterval time.Duration + DefaultPrefix string + Header string + func (c *ApiKeyPluginConfig) ApplyDefaults() + type CreateApiKeyRequest struct + Enabled *bool + ExpiresAt *time.Time + Metadata map[string]any + Name string + OwnerID string + OwnerType string + Permissions []string + Prefix *string + RateLimitEnabled *bool + RateLimitMaxRequests *int + RateLimitTimeWindow *int + func (r *CreateApiKeyRequest) Validate() error + type CreateApiKeyResponse struct + ApiKey *ApiKey + RawApiKey string + type DeleteApiKeyResponse struct + Message string + type GetAllApiKeysResponse struct + Items []*ApiKey + Limit int + Page int + Total int + type GetApiKeyResponse struct + ApiKey *ApiKey + type GetApiKeysRequest struct + Limit int + OwnerID *string + OwnerType *string + Page int + type UpdateApiKeyData struct + Enabled *bool + ExpiresAt *time.Time + LastRequestedAt *time.Time + Metadata map[string]any + Name *string + Permissions []string + RateLimitEnabled *bool + RateLimitMaxRequests *int + RateLimitTimeWindow *int + type UpdateApiKeyRequest struct + Enabled *bool + ExpiresAt *time.Time + Metadata map[string]any + Name *string + Permissions []string + RateLimitEnabled *bool + RateLimitMaxRequests *int + RateLimitTimeWindow *int + func (r *UpdateApiKeyRequest) Validate() error + type UpdateApiKeyResponse struct + ApiKey *ApiKey + type VerifyApiKeyRequest struct + Key string + func (r *VerifyApiKeyRequest) Validate() error + type VerifyApiKeyResponse struct + ApiKey *ApiKey + type VerifyApiKeyResult struct + ApiKey *ApiKey + Valid bool