@@ -24,8 +24,8 @@ the canonical API contract.
2424## TypeScript Usage
2525
2626``` typescript
27- import { AuthEndpoint , AuthFeaturesConfig , AuthProviderInfo , EmailPasswordConfigPublic , GetAuthConfigResponse } from ' @objectstack/spec/api' ;
28- import type { AuthEndpoint , AuthFeaturesConfig , AuthProviderInfo , EmailPasswordConfigPublic , GetAuthConfigResponse } from ' @objectstack/spec/api' ;
27+ import { AuthEndpoint , AuthFeaturesConfig , AuthProviderInfo , DeviceRequestResponse , DeviceTokenResponse , EmailPasswordConfigPublic , GetAuthConfigResponse } from ' @objectstack/spec/api' ;
28+ import type { AuthEndpoint , AuthFeaturesConfig , AuthProviderInfo , DeviceRequestResponse , DeviceTokenResponse , EmailPasswordConfigPublic , GetAuthConfigResponse } from ' @objectstack/spec/api' ;
2929
3030// Validate data
3131const result = AuthEndpoint .parse (data );
@@ -77,6 +77,61 @@ const result = AuthEndpoint.parse(data);
7777| ** type** | ` Enum<'social' \| 'oidc'> ` | ✅ | Provider type |
7878
7979
80+ ---
81+
82+ ## DeviceRequestResponse
83+
84+ ### Properties
85+
86+ | Property | Type | Required | Description |
87+ | :--- | :--- | :--- | :--- |
88+ | ** code** | ` string ` | ✅ | Short-lived device code used for polling |
89+ | ** verificationUrl** | ` string ` | ✅ | URL the user should open in a browser |
90+ | ** expiresAt** | ` string ` | ✅ | ISO timestamp when the code expires |
91+ | ** interval** | ` number ` | ✅ | Recommended polling interval in seconds |
92+
93+
94+ ---
95+
96+ ## DeviceTokenResponse
97+
98+ ### Union Options
99+
100+ This schema accepts one of the following structures:
101+
102+ #### Option 1
103+
104+ ### Properties
105+
106+ | Property | Type | Required | Description |
107+ | :--- | :--- | :--- | :--- |
108+ | ** status** | ` string ` | ✅ | |
109+
110+ ---
111+
112+ #### Option 2
113+
114+ ### Properties
115+
116+ | Property | Type | Required | Description |
117+ | :--- | :--- | :--- | :--- |
118+ | ** status** | ` string ` | ✅ | |
119+ | ** token** | ` string ` | ✅ | Bearer token to store in credentials file |
120+ | ** user** | ` Object ` | ✅ | |
121+
122+ ---
123+
124+ #### Option 3
125+
126+ ### Properties
127+
128+ | Property | Type | Required | Description |
129+ | :--- | :--- | :--- | :--- |
130+ | ** status** | ` string ` | ✅ | |
131+
132+ ---
133+
134+
80135---
81136
82137## EmailPasswordConfigPublic
0 commit comments