blocks
2 years ago
extended-blocks
3 years ago
plugins
2 years ago
shared
2 years ago
global.d.ts
2 years ago
types.ts
2 years ago
types.ts
20 lines
| 1 | /** |
| 2 | * Types for the AI Assistant feature. |
| 3 | */ |
| 4 | import { UpgradeTypeProp } from './blocks/ai-assistant/hooks/use-ai-feature'; |
| 5 | |
| 6 | /* |
| 7 | * `sites/$site/ai-assistant-feature` endpoint response body props |
| 8 | */ |
| 9 | export type SiteAIAssistantFeatureEndpointResponseProps = { |
| 10 | 'has-feature': boolean; |
| 11 | 'is-over-limit': boolean; |
| 12 | 'requests-count': number; |
| 13 | 'requests-limit': number; |
| 14 | 'site-require-upgrade': boolean; |
| 15 | 'error-message': string; |
| 16 | 'error-code': string; |
| 17 | 'is-playground-visible': boolean; |
| 18 | 'upgrade-type': UpgradeTypeProp; |
| 19 | }; |
| 20 |