import type { ISimpleLocalConfig, ISimpleLocalIntegrationProfile, ISimpleLocalSnapshot, TSimpleLocalRawData } from '../../core/index.js';

export const doodsDomain = 'doods';
export const doodsDefaultName = 'DOODS - Dedicated Open Object Detection Service';

export type TDoodsRawData = TSimpleLocalRawData;
export interface IDoodsSnapshot extends ISimpleLocalSnapshot {}
export interface IDoodsConfig extends ISimpleLocalConfig {}
export interface IHomeAssistantDoodsConfig extends IDoodsConfig {}

export const doodsProfile: ISimpleLocalIntegrationProfile = {
  domain: 'doods',
  displayName: 'DOODS - Dedicated Open Object Detection Service',
  manufacturer: 'DOODS',
  model: 'Object detection service',
  defaultName: 'DOODS - Dedicated Open Object Detection Service',
  defaultProtocol: 'http',
  status: 'read-only-runtime',
  platforms: [
    'sensor',
  ],
  serviceDomains: [],
  controlServices: [],
  discoverySources: [
    'manual',
    'http',
    'custom',
  ],
  discoveryKeywords: [
    'doods',
    'dedicated open object detection service',
    'object detection',
    'image processing',
  ],
  metadata: {
    source: 'home-assistant/core',
    upstreamPath: 'homeassistant/components/doods',
    upstreamDomain: 'doods',
    iotClass: 'local_polling',
    qualityScale: 'legacy',
    requirements: [
      'pydoods==1.0.2',
      'Pillow==12.2.0',
    ],
    dependencies: [],
    afterDependencies: [],
    codeowners: [],
    configFlow: false,
    runtime: {
      type: 'read-only-runtime',
      services: [
        'snapshot',
        'status',
        'refresh',
      ],
      platforms: [
        'sensor',
      ],
      controls: false,
    },
    localApi: {
      implemented: [
        'manual local DOODS endpoint setup',
        'snapshot, raw data, snapshotProvider, and injected native client operation',
        'generic HTTP local transport when config.path, config.transport, or documented defaults are supplied',
      ],
      explicitUnsupported: [
        'claiming live image processing or command success without injected client.execute or commandExecutor',
        'camera image acquisition and rendered output file writing',
        'device-specific protocol features not represented by snapshot/rawData/client/executor inputs',
      ],
    },
  },
};
