@@ -11,136 +11,46 @@ definitions.
1111Request Types
1212-------------
1313
14- ClassifyRequest
15- ~~~~~~~~~~~~~~~
14+ .. ts :autointerface :: ClassifyRequest
1615
17- Request message for image classification.
18-
19- * ``deploymentId: string `` - Deployment identifier for routing responses
20- * ``inputs: ClassificationInput[] `` - Array of images to classify
21-
22- ClassificationInput
23- ~~~~~~~~~~~~~~~~~~~
24-
25- Single image classification input.
26-
27- * ``affiliate: string `` - Source system identifier
28- * ``correlationId: string `` - Unique ID for matching responses
29- * ``encoding: RequestEncoding `` - Data compression format
30- * ``data: Uint8Array `` - Raw image bytes
31- * ``format: ImageFormat `` - Image file format
32- * ``hashes: ImageHash[] `` - Image data hashes
16+ .. ts :autointerface :: ClassificationInput
3317
3418 Response Types
3519--------------
20+ .. ts :autointerface :: ClassifyResponse
3621
37- ClassifyResponse
38- ~~~~~~~~~~~~~~~~
39-
40- Response containing classification results.
41-
42- * ``globalError?: ClassificationError `` - Error affecting entire request
43- * ``outputs: ClassificationOutput[] `` - Individual image results
44-
45- ClassificationOutput
46- ~~~~~~~~~~~~~~~~~~~~
47-
48- Result for a single image.
49-
50- * ``correlationId: string `` - Matches input correlation ID
51- * ``classifications: Classification[] `` - Detected classifications
52- * ``error?: ClassificationError `` - Image-specific error
22+ .. ts :autointerface :: ClassificationOutput
5323
5424 Classification
5525~~~~~~~~~~~~~~
5626
57- Single classification result.
58-
59- * ``label: string `` - Classification label
60- * ``weight: number `` - Confidence score (0.0 - 1.0)
27+ .. ts :autointerface :: Classification
6128
6229 ClassificationError
6330~~~~~~~~~~~~~~~~~~~
6431
65- Error information.
66-
67- * ``code: ErrorCode `` - Error type
68- * ``message: string `` - Error description
69- * ``details: string `` - Additional error context
32+ .. ts :autointerface :: ClassificationError
7033
7134 Deployment Types
7235----------------
7336
74- ListDeploymentsResponse
75- ~~~~~~~~~~~~~~~~~~~~~~~
76-
77- Response listing active deployments.
78-
79- * ``deployments: Deployment[] `` - Array of deployment info
80-
81- Deployment
82- ~~~~~~~~~~
37+ .. ts :autointerface :: ListDeploymentsResponse
8338
84- Single deployment information.
39+ .. ts : autointerface :: Deployment
8540
86- * ``deploymentId: string `` - Deployment identifier
87- * ``backlog: number `` - Number of queued responses
8841
8942 Utility Types
9043-------------
9144
92- ImageHash
93- ~~~~~~~~~
94-
95- Hash of image data.
96-
97- * ``value: string `` - Hash value
98- * ``type: HashType `` - Hash algorithm type
45+ .. ts :autointerface :: ImageHash
9946
10047 Enums
10148-----
10249
103- ErrorCode
104- ~~~~~~~~~
105-
106- * ``UNSPECIFIED = 0 `` - Unknown error
107- * ``IMAGE_TOO_LARGE = 2 `` - Image exceeds size limits
108- * ``MODEL_ERROR = 3 `` - Classifier internal error
109- * ``AFFILIATE_NOT_PERMITTED = 4 `` - Access denied for affiliate
110-
111- RequestEncoding
112- ~~~~~~~~~~~~~~~
113-
114- * ``UNSPECIFIED = 0 `` - Default (uncompressed)
115- * ``UNCOMPRESSED = 1 `` - Raw image data
116- * ``BROTLI = 2 `` - Brotli compressed data
117-
118- ImageFormat
119- ~~~~~~~~~~~
120-
121- * ``UNSPECIFIED = 0 `` - Unknown format
122- * ``GIF = 1 `` - GIF format
123- * ``JPEG = 2 `` - JPEG format (.jpeg, .jpg, .jpe)
124- * ``BMP = 3 `` - BMP format
125- * ``DIB = 4 `` - DIB format
126- * ``PNG = 5 `` - PNG format
127- * ``WEBP = 6 `` - WebP format
128- * ``PBM = 7 `` - PBM format
129- * ``PGM = 8 `` - PGM format
130- * ``PPM = 9 `` - PPM format
131- * ``PXM = 10 `` - PXM format
132- * ``PNM = 11 `` - PNM format
133- * ``PFM = 12 `` - PFM format
134- * ``SR = 13 `` - SR format
135- * ``RAS = 14 `` - RAS format
136- * ``TIFF = 15 `` - TIFF format (.tiff, .tif)
137- * ``HDR = 16 `` - HDR format
138- * ``PIC = 17 `` - PIC format
139- * ``RAW_UINT8 = 18 `` - Raw 8-bit RGB data
140-
141- HashType
142- ~~~~~~~~
143-
144- * ``UNKNOWN = 0 `` - Unknown hash type
145- * ``MD5 = 1 `` - MD5 hash
146- * ``SHA1 = 2 `` - SHA1 hash
50+ .. ts :autoenum :: ErrorCode
51+
52+ .. ts :autoenum :: RequestEncoding
53+
54+ .. ts :autoenum :: ImageFormat
55+
56+ .. ts :autoenum :: HashType
0 commit comments