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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Request types for authentication API endpoints.
//!
//! This module contains request structures for creating, disabling, and
//! managing API keys, as well as configuring OpenRouter BYOK integration.
use ;
/// Request to create a new API key.
///
/// # Fields
///
/// * `expires` - Optional expiration timestamp. If `None`, the key never expires.
/// * `name` - A user-provided name for identifying the key.
/// * `description` - Optional description providing additional context.
/// Request to disable an existing API key.
///
/// Once disabled, the API key can no longer be used for authentication.
/// This action is reversible only by creating a new key.
/// Request to create or update an OpenRouter BYOK (Bring Your Own Key) API key.
///
/// This allows users to provide their own OpenRouter API key for routing
/// requests through OpenRouter's model marketplace.