@giveitsmaller/contracts 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asyncapi/ErrorCode.d.ts +18 -0
- package/dist/asyncapi/ErrorCode.js +19 -0
- package/dist/asyncapi/MergeOutputType.d.ts +8 -0
- package/dist/asyncapi/MergeOutputType.js +9 -0
- package/{asyncapi/NotificationsOperationsQueue.ts → dist/asyncapi/NotificationsOperationsQueue.d.ts} +2 -2
- package/dist/asyncapi/NotificationsOperationsQueue.js +1 -0
- package/dist/asyncapi/OperationMetrics.d.ts +11 -0
- package/dist/asyncapi/OperationMetrics.js +1 -0
- package/dist/asyncapi/OperationProgress.d.ts +12 -0
- package/dist/asyncapi/OperationProgress.js +1 -0
- package/dist/asyncapi/OperationRequest.d.ts +21 -0
- package/dist/asyncapi/OperationRequest.js +1 -0
- package/dist/asyncapi/OperationResult.d.ts +20 -0
- package/dist/asyncapi/OperationResult.js +1 -0
- package/dist/asyncapi/OperationType.d.ts +9 -0
- package/dist/asyncapi/OperationType.js +10 -0
- package/dist/asyncapi/ProgressStatus.d.ts +7 -0
- package/dist/asyncapi/ProgressStatus.js +8 -0
- package/dist/asyncapi/ResultStatus.d.ts +5 -0
- package/dist/asyncapi/ResultStatus.js +6 -0
- package/dist/asyncapi/SourceEntry.d.ts +8 -0
- package/dist/asyncapi/SourceEntry.js +1 -0
- package/dist/asyncapi/index.d.ts +11 -0
- package/dist/asyncapi/index.js +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/openapi/index.d.ts +2 -0
- package/dist/openapi/index.js +4 -0
- package/dist/openapi/models/CallbackEventType.d.ts +32 -0
- package/{openapi/models/CallbackEventType.ts → dist/openapi/models/CallbackEventType.js} +13 -23
- package/dist/openapi/models/ContactRequest.d.ts +60 -0
- package/{openapi/models/ContactRequest.ts → dist/openapi/models/ContactRequest.js} +14 -71
- package/dist/openapi/models/ContactSubject.d.ts +34 -0
- package/{openapi/models/ContactSubject.ts → dist/openapi/models/ContactSubject.js} +13 -23
- package/dist/openapi/models/ContactValidationErrorResponse.d.ts +35 -0
- package/{openapi/models/ContactValidationErrorResponse.ts → dist/openapi/models/ContactValidationErrorResponse.js} +9 -33
- package/dist/openapi/models/ErrorEnvelope.d.ts +45 -0
- package/{openapi/models/ErrorEnvelope.ts → dist/openapi/models/ErrorEnvelope.js} +12 -44
- package/{openapi/models/ExportConfig.ts → dist/openapi/models/ExportConfig.d.ts} +12 -57
- package/dist/openapi/models/ExportConfig.js +59 -0
- package/{openapi/models/JobDefinition.ts → dist/openapi/models/JobDefinition.d.ts} +9 -33
- package/dist/openapi/models/JobDefinition.js +31 -0
- package/dist/openapi/models/JobDownload.d.ts +45 -0
- package/dist/openapi/models/JobDownload.js +52 -0
- package/{openapi/models/JobInput.ts → dist/openapi/models/JobInput.d.ts} +13 -49
- package/dist/openapi/models/JobInput.js +47 -0
- package/dist/openapi/models/JobResponse.d.ts +58 -0
- package/dist/openapi/models/JobResponse.js +61 -0
- package/{openapi/models/JobSource.ts → dist/openapi/models/JobSource.d.ts} +9 -45
- package/dist/openapi/models/JobSource.js +45 -0
- package/dist/openapi/models/JobStatus.d.ts +34 -0
- package/{openapi/models/JobStatus.ts → dist/openapi/models/JobStatus.js} +13 -23
- package/dist/openapi/models/JobType.d.ts +32 -0
- package/{openapi/models/JobType.ts → dist/openapi/models/JobType.js} +13 -23
- package/dist/openapi/models/LivenessResponse.d.ts +32 -0
- package/{openapi/models/LivenessResponse.ts → dist/openapi/models/LivenessResponse.js} +9 -32
- package/dist/openapi/models/MetadataResponse.d.ts +139 -0
- package/dist/openapi/models/MetadataResponse.js +85 -0
- package/dist/openapi/models/MetadataResponseDimensions.d.ts +38 -0
- package/{openapi/models/MetadataResponseDimensions.ts → dist/openapi/models/MetadataResponseDimensions.js} +7 -37
- package/dist/openapi/models/MetadataResponseExif.d.ts +51 -0
- package/{openapi/models/MetadataResponseExif.ts → dist/openapi/models/MetadataResponseExif.js} +8 -57
- package/dist/openapi/models/MetadataResponseExifGps.d.ts +38 -0
- package/{openapi/models/MetadataResponseExifGps.ts → dist/openapi/models/MetadataResponseExifGps.js} +7 -37
- package/dist/openapi/models/MetadataSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/MetadataSuccessEnvelope.ts → dist/openapi/models/MetadataSuccessEnvelope.js} +13 -52
- package/dist/openapi/models/MimeGroupSchema.d.ts +49 -0
- package/{openapi/models/MimeGroupSchema.ts → dist/openapi/models/MimeGroupSchema.js} +13 -53
- package/dist/openapi/models/MultipartCompleteRequest.d.ts +41 -0
- package/dist/openapi/models/MultipartCompleteRequest.js +48 -0
- package/dist/openapi/models/MultipartCompleteRequestPartsInner.d.ts +38 -0
- package/{openapi/models/MultipartCompleteRequestPartsInner.ts → dist/openapi/models/MultipartCompleteRequestPartsInner.js} +11 -39
- package/dist/openapi/models/MultipartInitiateResponse.d.ts +78 -0
- package/dist/openapi/models/MultipartInitiateResponse.js +68 -0
- package/dist/openapi/models/MultipartInitiateSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/MultipartInitiateSuccessEnvelope.ts → dist/openapi/models/MultipartInitiateSuccessEnvelope.js} +13 -52
- package/{openapi/models/OperationDefinition.ts → dist/openapi/models/OperationDefinition.d.ts} +14 -57
- package/dist/openapi/models/OperationDefinition.js +46 -0
- package/dist/openapi/models/OperationDownload.d.ts +56 -0
- package/{openapi/models/OperationDownload.ts → dist/openapi/models/OperationDownload.js} +17 -60
- package/dist/openapi/models/OperationInputModel.d.ts +28 -0
- package/{openapi/models/OperationInputModel.ts → dist/openapi/models/OperationInputModel.js} +13 -23
- package/dist/openapi/models/OperationResponse.d.ts +59 -0
- package/dist/openapi/models/OperationResponse.js +58 -0
- package/dist/openapi/models/OperationResult.d.ts +52 -0
- package/{openapi/models/OperationResult.ts → dist/openapi/models/OperationResult.js} +12 -60
- package/dist/openapi/models/OperationResultMetrics.d.ts +38 -0
- package/{openapi/models/OperationResultMetrics.ts → dist/openapi/models/OperationResultMetrics.js} +7 -37
- package/dist/openapi/models/OperationSchemaDefinition.d.ts +96 -0
- package/dist/openapi/models/OperationSchemaDefinition.js +67 -0
- package/dist/openapi/models/OperationStatus.d.ts +34 -0
- package/{openapi/models/OperationStatus.ts → dist/openapi/models/OperationStatus.js} +13 -23
- package/dist/openapi/models/OperationType.d.ts +36 -0
- package/{openapi/models/OperationType.ts → dist/openapi/models/OperationType.js} +13 -23
- package/{openapi/models/OperationsSchemaResponse.ts → dist/openapi/models/OperationsSchemaResponse.d.ts} +13 -55
- package/dist/openapi/models/OperationsSchemaResponse.js +49 -0
- package/{openapi/models/OptionSchema.ts → dist/openapi/models/OptionSchema.d.ts} +24 -76
- package/dist/openapi/models/OptionSchema.js +76 -0
- package/dist/openapi/models/PresignedUrlPart.d.ts +46 -0
- package/{openapi/models/PresignedUrlPart.ts → dist/openapi/models/PresignedUrlPart.js} +13 -48
- package/dist/openapi/models/ReadinessResponse.d.ts +38 -0
- package/{openapi/models/ReadinessResponse.ts → dist/openapi/models/ReadinessResponse.js} +7 -37
- package/dist/openapi/models/ResponseEnvelope.d.ts +36 -0
- package/{openapi/models/ResponseEnvelope.ts → dist/openapi/models/ResponseEnvelope.js} +9 -36
- package/dist/openapi/models/RetryResponse.d.ts +51 -0
- package/{openapi/models/RetryResponse.ts → dist/openapi/models/RetryResponse.js} +14 -51
- package/dist/openapi/models/RetrySuccessEnvelope.d.ts +46 -0
- package/{openapi/models/RetrySuccessEnvelope.ts → dist/openapi/models/RetrySuccessEnvelope.js} +13 -52
- package/dist/openapi/models/SseEventType.d.ts +40 -0
- package/{openapi/models/SseEventType.ts → dist/openapi/models/SseEventType.js} +13 -23
- package/{openapi/models/SseJobCompletedData.ts → dist/openapi/models/SseJobCompletedData.d.ts} +12 -55
- package/dist/openapi/models/SseJobCompletedData.js +57 -0
- package/dist/openapi/models/SseJobFailedData.d.ts +51 -0
- package/{openapi/models/SseJobFailedData.ts → dist/openapi/models/SseJobFailedData.js} +14 -51
- package/dist/openapi/models/SseOperationCompletedData.d.ts +78 -0
- package/dist/openapi/models/SseOperationCompletedData.js +75 -0
- package/dist/openapi/models/SseOperationFailedData.d.ts +70 -0
- package/dist/openapi/models/SseOperationFailedData.js +70 -0
- package/dist/openapi/models/SseOperationProgressData.d.ts +51 -0
- package/{openapi/models/SseOperationProgressData.ts → dist/openapi/models/SseOperationProgressData.js} +16 -63
- package/dist/openapi/models/SseWorkflowTerminalData.d.ts +49 -0
- package/{openapi/models/SseWorkflowTerminalData.ts → dist/openapi/models/SseWorkflowTerminalData.js} +12 -46
- package/dist/openapi/models/UploadResponse.d.ts +50 -0
- package/{openapi/models/UploadResponse.ts → dist/openapi/models/UploadResponse.js} +15 -53
- package/dist/openapi/models/UploadSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/UploadSuccessEnvelope.ts → dist/openapi/models/UploadSuccessEnvelope.js} +13 -52
- package/dist/openapi/models/ValidationErrorEnvelope.d.ts +54 -0
- package/dist/openapi/models/ValidationErrorEnvelope.js +58 -0
- package/dist/openapi/models/ValidationErrorEnvelopeDetailsInner.d.ts +50 -0
- package/{openapi/models/ValidationErrorEnvelopeDetailsInner.ts → dist/openapi/models/ValidationErrorEnvelopeDetailsInner.js} +9 -50
- package/dist/openapi/models/WebhookOperationContext.d.ts +40 -0
- package/{openapi/models/WebhookOperationContext.ts → dist/openapi/models/WebhookOperationContext.js} +11 -41
- package/dist/openapi/models/WebhookPayload.d.ts +66 -0
- package/dist/openapi/models/WebhookPayload.js +60 -0
- package/dist/openapi/models/WorkflowCreateRequest.d.ts +76 -0
- package/dist/openapi/models/WorkflowCreateRequest.js +55 -0
- package/dist/openapi/models/WorkflowCreateResponse.d.ts +58 -0
- package/dist/openapi/models/WorkflowCreateResponse.js +54 -0
- package/dist/openapi/models/WorkflowCreateSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/WorkflowCreateSuccessEnvelope.ts → dist/openapi/models/WorkflowCreateSuccessEnvelope.js} +13 -52
- package/dist/openapi/models/WorkflowDownloadResponse.d.ts +33 -0
- package/{openapi/models/WorkflowDownloadResponse.ts → dist/openapi/models/WorkflowDownloadResponse.js} +12 -42
- package/dist/openapi/models/WorkflowDownloadSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/WorkflowDownloadSuccessEnvelope.ts → dist/openapi/models/WorkflowDownloadSuccessEnvelope.js} +13 -52
- package/{openapi/models/WorkflowEdge.ts → dist/openapi/models/WorkflowEdge.d.ts} +8 -45
- package/dist/openapi/models/WorkflowEdge.js +47 -0
- package/dist/openapi/models/WorkflowStatus.d.ts +34 -0
- package/{openapi/models/WorkflowStatus.ts → dist/openapi/models/WorkflowStatus.js} +13 -23
- package/dist/openapi/models/WorkflowStatusResponse.d.ts +46 -0
- package/dist/openapi/models/WorkflowStatusResponse.js +53 -0
- package/dist/openapi/models/WorkflowStatusSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/WorkflowStatusSuccessEnvelope.ts → dist/openapi/models/WorkflowStatusSuccessEnvelope.js} +13 -52
- package/dist/openapi/models/index.d.ts +62 -0
- package/dist/openapi/models/index.js +64 -0
- package/dist/openapi/runtime.d.ts +184 -0
- package/{openapi/runtime.ts → dist/openapi/runtime.js} +107 -206
- package/dist/operations/archive.d.ts +12 -0
- package/dist/operations/archive.js +11 -0
- package/dist/operations/compress.d.ts +154 -0
- package/dist/operations/compress.js +112 -0
- package/dist/operations/convert.d.ts +58 -0
- package/dist/operations/convert.js +46 -0
- package/dist/operations/index.d.ts +5 -0
- package/dist/operations/index.js +6 -0
- package/dist/operations/merge.d.ts +79 -0
- package/dist/operations/merge.js +46 -0
- package/dist/operations/thumbnail.d.ts +55 -0
- package/dist/operations/thumbnail.js +42 -0
- package/package.json +29 -11
- package/asyncapi/ErrorCode.ts +0 -19
- package/asyncapi/MergeOutputType.ts +0 -9
- package/asyncapi/OperationMetrics.ts +0 -12
- package/asyncapi/OperationProgress.ts +0 -12
- package/asyncapi/OperationRequest.ts +0 -21
- package/asyncapi/OperationResult.ts +0 -20
- package/asyncapi/OperationType.ts +0 -10
- package/asyncapi/ProgressStatus.ts +0 -8
- package/asyncapi/README.md +0 -16
- package/asyncapi/ResultStatus.ts +0 -6
- package/asyncapi/SourceEntry.ts +0 -9
- package/asyncapi/index.ts +0 -11
- package/index.ts +0 -5
- package/openapi/.openapi-generator-ignore +0 -26
- package/openapi/README.md +0 -17
- package/openapi/index.ts +0 -4
- package/openapi/models/JobDownload.ts +0 -92
- package/openapi/models/JobResponse.ts +0 -119
- package/openapi/models/MetadataResponse.ts +0 -223
- package/openapi/models/MultipartCompleteRequest.ts +0 -85
- package/openapi/models/MultipartInitiateResponse.ts +0 -137
- package/openapi/models/OperationResponse.ts +0 -124
- package/openapi/models/OperationSchemaDefinition.ts +0 -163
- package/openapi/models/SseOperationCompletedData.ts +0 -143
- package/openapi/models/SseOperationFailedData.ts +0 -129
- package/openapi/models/ValidationErrorEnvelope.ts +0 -104
- package/openapi/models/WebhookPayload.ts +0 -132
- package/openapi/models/WorkflowCreateRequest.ts +0 -143
- package/openapi/models/WorkflowCreateResponse.ts +0 -114
- package/openapi/models/WorkflowStatusResponse.ts +0 -101
- package/openapi/models/index.ts +0 -64
- package/operations/README.md +0 -17
- package/operations/archive.ts +0 -16
- package/operations/compress.ts +0 -177
- package/operations/convert.ts +0 -69
- package/operations/index.ts +0 -7
- package/operations/merge.ts +0 -95
- package/operations/thumbnail.ts +0 -66
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LivenessResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface LivenessResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Application is running
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof LivenessResponse
|
|
22
|
+
*/
|
|
23
|
+
app: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the LivenessResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfLivenessResponse(value: object): value is LivenessResponse;
|
|
29
|
+
export declare function LivenessResponseFromJSON(json: any): LivenessResponse;
|
|
30
|
+
export declare function LivenessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LivenessResponse;
|
|
31
|
+
export declare function LivenessResponseToJSON(json: any): LivenessResponse;
|
|
32
|
+
export declare function LivenessResponseToJSONTyped(value?: LivenessResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,65 +2,42 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface LivenessResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface LivenessResponse {
|
|
22
|
-
/**
|
|
23
|
-
* Application is running
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
* @memberof LivenessResponse
|
|
26
|
-
*/
|
|
27
|
-
app: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
14
|
/**
|
|
31
15
|
* Check if a given object implements the LivenessResponse interface.
|
|
32
16
|
*/
|
|
33
|
-
export function instanceOfLivenessResponse(value
|
|
34
|
-
if (!('app' in value) || value['app'] === undefined)
|
|
17
|
+
export function instanceOfLivenessResponse(value) {
|
|
18
|
+
if (!('app' in value) || value['app'] === undefined)
|
|
19
|
+
return false;
|
|
35
20
|
return true;
|
|
36
21
|
}
|
|
37
|
-
|
|
38
|
-
export function LivenessResponseFromJSON(json: any): LivenessResponse {
|
|
22
|
+
export function LivenessResponseFromJSON(json) {
|
|
39
23
|
return LivenessResponseFromJSONTyped(json, false);
|
|
40
24
|
}
|
|
41
|
-
|
|
42
|
-
export function LivenessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LivenessResponse {
|
|
25
|
+
export function LivenessResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
26
|
if (json == null) {
|
|
44
27
|
return json;
|
|
45
28
|
}
|
|
46
29
|
return {
|
|
47
|
-
|
|
48
30
|
'app': json['app'],
|
|
49
31
|
};
|
|
50
32
|
}
|
|
51
|
-
|
|
52
|
-
export function LivenessResponseToJSON(json: any): LivenessResponse {
|
|
33
|
+
export function LivenessResponseToJSON(json) {
|
|
53
34
|
return LivenessResponseToJSONTyped(json, false);
|
|
54
35
|
}
|
|
55
|
-
|
|
56
|
-
export function LivenessResponseToJSONTyped(value?: LivenessResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
36
|
+
export function LivenessResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
37
|
if (value == null) {
|
|
58
38
|
return value;
|
|
59
39
|
}
|
|
60
|
-
|
|
61
40
|
return {
|
|
62
|
-
|
|
63
41
|
'app': value['app'],
|
|
64
42
|
};
|
|
65
43
|
}
|
|
66
|
-
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MetadataResponseDimensions } from './MetadataResponseDimensions.js';
|
|
13
|
+
import type { MetadataResponseExif } from './MetadataResponseExif.js';
|
|
14
|
+
/**
|
|
15
|
+
* File metadata. Fields vary by MIME type. Common fields are always present;
|
|
16
|
+
* type-specific fields (dimensions, exif, duration, etc.) are included when
|
|
17
|
+
* available for the file type.
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface MetadataResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface MetadataResponse {
|
|
23
|
+
/**
|
|
24
|
+
* UUID v7 format identifier (time-ordered)
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof MetadataResponse
|
|
27
|
+
*/
|
|
28
|
+
fileId: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof MetadataResponse
|
|
33
|
+
*/
|
|
34
|
+
originalName: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof MetadataResponse
|
|
39
|
+
*/
|
|
40
|
+
mimeType: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof MetadataResponse
|
|
45
|
+
*/
|
|
46
|
+
sizeBytes: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {MetadataResponseDimensions}
|
|
50
|
+
* @memberof MetadataResponse
|
|
51
|
+
*/
|
|
52
|
+
dimensions?: MetadataResponseDimensions;
|
|
53
|
+
/**
|
|
54
|
+
* Color space (images)
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof MetadataResponse
|
|
57
|
+
*/
|
|
58
|
+
colorSpace?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Dots per inch (images, PDF)
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof MetadataResponse
|
|
63
|
+
*/
|
|
64
|
+
dpi?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the image has an alpha channel (images)
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof MetadataResponse
|
|
69
|
+
*/
|
|
70
|
+
hasAlpha?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {MetadataResponseExif}
|
|
74
|
+
* @memberof MetadataResponse
|
|
75
|
+
*/
|
|
76
|
+
exif?: MetadataResponseExif;
|
|
77
|
+
/**
|
|
78
|
+
* Dominant colors as hex strings (images)
|
|
79
|
+
* @type {Array<string>}
|
|
80
|
+
* @memberof MetadataResponse
|
|
81
|
+
*/
|
|
82
|
+
dominantColors?: Array<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Duration in seconds (video, audio)
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof MetadataResponse
|
|
87
|
+
*/
|
|
88
|
+
duration?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Video/audio codec
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof MetadataResponse
|
|
93
|
+
*/
|
|
94
|
+
codec?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Frames per second (video)
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof MetadataResponse
|
|
99
|
+
*/
|
|
100
|
+
fps?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Audio codec (video)
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof MetadataResponse
|
|
105
|
+
*/
|
|
106
|
+
audioCodec?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Bitrate in bps (video, audio)
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof MetadataResponse
|
|
111
|
+
*/
|
|
112
|
+
bitrate?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Audio channels (audio)
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof MetadataResponse
|
|
117
|
+
*/
|
|
118
|
+
channels?: number;
|
|
119
|
+
/**
|
|
120
|
+
* Sample rate in Hz (audio)
|
|
121
|
+
* @type {number}
|
|
122
|
+
* @memberof MetadataResponse
|
|
123
|
+
*/
|
|
124
|
+
sampleRate?: number;
|
|
125
|
+
/**
|
|
126
|
+
* Number of pages (documents)
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof MetadataResponse
|
|
129
|
+
*/
|
|
130
|
+
pageCount?: number;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Check if a given object implements the MetadataResponse interface.
|
|
134
|
+
*/
|
|
135
|
+
export declare function instanceOfMetadataResponse(value: object): value is MetadataResponse;
|
|
136
|
+
export declare function MetadataResponseFromJSON(json: any): MetadataResponse;
|
|
137
|
+
export declare function MetadataResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataResponse;
|
|
138
|
+
export declare function MetadataResponseToJSON(json: any): MetadataResponse;
|
|
139
|
+
export declare function MetadataResponseToJSONTyped(value?: MetadataResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GISL Compression API
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { MetadataResponseDimensionsFromJSON, MetadataResponseDimensionsToJSON, } from './MetadataResponseDimensions.js';
|
|
15
|
+
import { MetadataResponseExifFromJSON, MetadataResponseExifToJSON, } from './MetadataResponseExif.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the MetadataResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfMetadataResponse(value) {
|
|
20
|
+
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('originalName' in value) || value['originalName'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function MetadataResponseFromJSON(json) {
|
|
31
|
+
return MetadataResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function MetadataResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'fileId': json['file_id'],
|
|
39
|
+
'originalName': json['original_name'],
|
|
40
|
+
'mimeType': json['mime_type'],
|
|
41
|
+
'sizeBytes': json['size_bytes'],
|
|
42
|
+
'dimensions': json['dimensions'] == null ? undefined : MetadataResponseDimensionsFromJSON(json['dimensions']),
|
|
43
|
+
'colorSpace': json['color_space'] == null ? undefined : json['color_space'],
|
|
44
|
+
'dpi': json['dpi'] == null ? undefined : json['dpi'],
|
|
45
|
+
'hasAlpha': json['has_alpha'] == null ? undefined : json['has_alpha'],
|
|
46
|
+
'exif': json['exif'] == null ? undefined : MetadataResponseExifFromJSON(json['exif']),
|
|
47
|
+
'dominantColors': json['dominant_colors'] == null ? undefined : json['dominant_colors'],
|
|
48
|
+
'duration': json['duration'] == null ? undefined : json['duration'],
|
|
49
|
+
'codec': json['codec'] == null ? undefined : json['codec'],
|
|
50
|
+
'fps': json['fps'] == null ? undefined : json['fps'],
|
|
51
|
+
'audioCodec': json['audio_codec'] == null ? undefined : json['audio_codec'],
|
|
52
|
+
'bitrate': json['bitrate'] == null ? undefined : json['bitrate'],
|
|
53
|
+
'channels': json['channels'] == null ? undefined : json['channels'],
|
|
54
|
+
'sampleRate': json['sample_rate'] == null ? undefined : json['sample_rate'],
|
|
55
|
+
'pageCount': json['page_count'] == null ? undefined : json['page_count'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function MetadataResponseToJSON(json) {
|
|
59
|
+
return MetadataResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function MetadataResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'file_id': value['fileId'],
|
|
67
|
+
'original_name': value['originalName'],
|
|
68
|
+
'mime_type': value['mimeType'],
|
|
69
|
+
'size_bytes': value['sizeBytes'],
|
|
70
|
+
'dimensions': MetadataResponseDimensionsToJSON(value['dimensions']),
|
|
71
|
+
'color_space': value['colorSpace'],
|
|
72
|
+
'dpi': value['dpi'],
|
|
73
|
+
'has_alpha': value['hasAlpha'],
|
|
74
|
+
'exif': MetadataResponseExifToJSON(value['exif']),
|
|
75
|
+
'dominant_colors': value['dominantColors'],
|
|
76
|
+
'duration': value['duration'],
|
|
77
|
+
'codec': value['codec'],
|
|
78
|
+
'fps': value['fps'],
|
|
79
|
+
'audio_codec': value['audioCodec'],
|
|
80
|
+
'bitrate': value['bitrate'],
|
|
81
|
+
'channels': value['channels'],
|
|
82
|
+
'sample_rate': value['sampleRate'],
|
|
83
|
+
'page_count': value['pageCount'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Image/video dimensions (images, video, PDF)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MetadataResponseDimensions
|
|
16
|
+
*/
|
|
17
|
+
export interface MetadataResponseDimensions {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof MetadataResponseDimensions
|
|
22
|
+
*/
|
|
23
|
+
width?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof MetadataResponseDimensions
|
|
28
|
+
*/
|
|
29
|
+
height?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MetadataResponseDimensions interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMetadataResponseDimensions(value: object): value is MetadataResponseDimensions;
|
|
35
|
+
export declare function MetadataResponseDimensionsFromJSON(json: any): MetadataResponseDimensions;
|
|
36
|
+
export declare function MetadataResponseDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataResponseDimensions;
|
|
37
|
+
export declare function MetadataResponseDimensionsToJSON(json: any): MetadataResponseDimensions;
|
|
38
|
+
export declare function MetadataResponseDimensionsToJSONTyped(value?: MetadataResponseDimensions | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,72 +2,42 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Image/video dimensions (images, video, PDF)
|
|
18
|
-
* @export
|
|
19
|
-
* @interface MetadataResponseDimensions
|
|
20
|
-
*/
|
|
21
|
-
export interface MetadataResponseDimensions {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof MetadataResponseDimensions
|
|
26
|
-
*/
|
|
27
|
-
width?: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof MetadataResponseDimensions
|
|
32
|
-
*/
|
|
33
|
-
height?: number;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
14
|
/**
|
|
37
15
|
* Check if a given object implements the MetadataResponseDimensions interface.
|
|
38
16
|
*/
|
|
39
|
-
export function instanceOfMetadataResponseDimensions(value
|
|
17
|
+
export function instanceOfMetadataResponseDimensions(value) {
|
|
40
18
|
return true;
|
|
41
19
|
}
|
|
42
|
-
|
|
43
|
-
export function MetadataResponseDimensionsFromJSON(json: any): MetadataResponseDimensions {
|
|
20
|
+
export function MetadataResponseDimensionsFromJSON(json) {
|
|
44
21
|
return MetadataResponseDimensionsFromJSONTyped(json, false);
|
|
45
22
|
}
|
|
46
|
-
|
|
47
|
-
export function MetadataResponseDimensionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataResponseDimensions {
|
|
23
|
+
export function MetadataResponseDimensionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
24
|
if (json == null) {
|
|
49
25
|
return json;
|
|
50
26
|
}
|
|
51
27
|
return {
|
|
52
|
-
|
|
53
28
|
'width': json['width'] == null ? undefined : json['width'],
|
|
54
29
|
'height': json['height'] == null ? undefined : json['height'],
|
|
55
30
|
};
|
|
56
31
|
}
|
|
57
|
-
|
|
58
|
-
export function MetadataResponseDimensionsToJSON(json: any): MetadataResponseDimensions {
|
|
32
|
+
export function MetadataResponseDimensionsToJSON(json) {
|
|
59
33
|
return MetadataResponseDimensionsToJSONTyped(json, false);
|
|
60
34
|
}
|
|
61
|
-
|
|
62
|
-
export function MetadataResponseDimensionsToJSONTyped(value?: MetadataResponseDimensions | null, ignoreDiscriminator: boolean = false): any {
|
|
35
|
+
export function MetadataResponseDimensionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
63
36
|
if (value == null) {
|
|
64
37
|
return value;
|
|
65
38
|
}
|
|
66
|
-
|
|
67
39
|
return {
|
|
68
|
-
|
|
69
40
|
'width': value['width'],
|
|
70
41
|
'height': value['height'],
|
|
71
42
|
};
|
|
72
43
|
}
|
|
73
|
-
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { MetadataResponseExifGps } from './MetadataResponseExifGps.js';
|
|
13
|
+
/**
|
|
14
|
+
* EXIF metadata (images)
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MetadataResponseExif
|
|
17
|
+
*/
|
|
18
|
+
export interface MetadataResponseExif {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MetadataResponseExif
|
|
23
|
+
*/
|
|
24
|
+
camera?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof MetadataResponseExif
|
|
29
|
+
*/
|
|
30
|
+
datetime?: Date;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {MetadataResponseExifGps}
|
|
34
|
+
* @memberof MetadataResponseExif
|
|
35
|
+
*/
|
|
36
|
+
gps?: MetadataResponseExifGps;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof MetadataResponseExif
|
|
41
|
+
*/
|
|
42
|
+
copyright?: string | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the MetadataResponseExif interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfMetadataResponseExif(value: object): value is MetadataResponseExif;
|
|
48
|
+
export declare function MetadataResponseExifFromJSON(json: any): MetadataResponseExif;
|
|
49
|
+
export declare function MetadataResponseExifFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataResponseExif;
|
|
50
|
+
export declare function MetadataResponseExifToJSON(json: any): MetadataResponseExif;
|
|
51
|
+
export declare function MetadataResponseExifToJSONTyped(value?: MetadataResponseExif | null, ignoreDiscriminator?: boolean): any;
|
package/{openapi/models/MetadataResponseExif.ts → dist/openapi/models/MetadataResponseExif.js}
RENAMED
|
@@ -2,96 +2,47 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { MetadataResponseExifGps } from './MetadataResponseExifGps';
|
|
17
|
-
import {
|
|
18
|
-
MetadataResponseExifGpsFromJSON,
|
|
19
|
-
MetadataResponseExifGpsFromJSONTyped,
|
|
20
|
-
MetadataResponseExifGpsToJSON,
|
|
21
|
-
MetadataResponseExifGpsToJSONTyped,
|
|
22
|
-
} from './MetadataResponseExifGps';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* EXIF metadata (images)
|
|
26
|
-
* @export
|
|
27
|
-
* @interface MetadataResponseExif
|
|
28
|
-
*/
|
|
29
|
-
export interface MetadataResponseExif {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof MetadataResponseExif
|
|
34
|
-
*/
|
|
35
|
-
camera?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Date}
|
|
39
|
-
* @memberof MetadataResponseExif
|
|
40
|
-
*/
|
|
41
|
-
datetime?: Date;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {MetadataResponseExifGps}
|
|
45
|
-
* @memberof MetadataResponseExif
|
|
46
|
-
*/
|
|
47
|
-
gps?: MetadataResponseExifGps;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof MetadataResponseExif
|
|
52
|
-
*/
|
|
53
|
-
copyright?: string | null;
|
|
54
|
-
}
|
|
55
|
-
|
|
14
|
+
import { MetadataResponseExifGpsFromJSON, MetadataResponseExifGpsToJSON, } from './MetadataResponseExifGps.js';
|
|
56
15
|
/**
|
|
57
16
|
* Check if a given object implements the MetadataResponseExif interface.
|
|
58
17
|
*/
|
|
59
|
-
export function instanceOfMetadataResponseExif(value
|
|
18
|
+
export function instanceOfMetadataResponseExif(value) {
|
|
60
19
|
return true;
|
|
61
20
|
}
|
|
62
|
-
|
|
63
|
-
export function MetadataResponseExifFromJSON(json: any): MetadataResponseExif {
|
|
21
|
+
export function MetadataResponseExifFromJSON(json) {
|
|
64
22
|
return MetadataResponseExifFromJSONTyped(json, false);
|
|
65
23
|
}
|
|
66
|
-
|
|
67
|
-
export function MetadataResponseExifFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataResponseExif {
|
|
24
|
+
export function MetadataResponseExifFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
25
|
if (json == null) {
|
|
69
26
|
return json;
|
|
70
27
|
}
|
|
71
28
|
return {
|
|
72
|
-
|
|
73
29
|
'camera': json['camera'] == null ? undefined : json['camera'],
|
|
74
30
|
'datetime': json['datetime'] == null ? undefined : (new Date(json['datetime'])),
|
|
75
31
|
'gps': json['gps'] == null ? undefined : MetadataResponseExifGpsFromJSON(json['gps']),
|
|
76
32
|
'copyright': json['copyright'] == null ? undefined : json['copyright'],
|
|
77
33
|
};
|
|
78
34
|
}
|
|
79
|
-
|
|
80
|
-
export function MetadataResponseExifToJSON(json: any): MetadataResponseExif {
|
|
35
|
+
export function MetadataResponseExifToJSON(json) {
|
|
81
36
|
return MetadataResponseExifToJSONTyped(json, false);
|
|
82
37
|
}
|
|
83
|
-
|
|
84
|
-
export function MetadataResponseExifToJSONTyped(value?: MetadataResponseExif | null, ignoreDiscriminator: boolean = false): any {
|
|
38
|
+
export function MetadataResponseExifToJSONTyped(value, ignoreDiscriminator = false) {
|
|
85
39
|
if (value == null) {
|
|
86
40
|
return value;
|
|
87
41
|
}
|
|
88
|
-
|
|
89
42
|
return {
|
|
90
|
-
|
|
91
43
|
'camera': value['camera'],
|
|
92
44
|
'datetime': value['datetime'] == null ? undefined : ((value['datetime']).toISOString()),
|
|
93
45
|
'gps': MetadataResponseExifGpsToJSON(value['gps']),
|
|
94
46
|
'copyright': value['copyright'],
|
|
95
47
|
};
|
|
96
48
|
}
|
|
97
|
-
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MetadataResponseExifGps
|
|
16
|
+
*/
|
|
17
|
+
export interface MetadataResponseExifGps {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof MetadataResponseExifGps
|
|
22
|
+
*/
|
|
23
|
+
lat?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof MetadataResponseExifGps
|
|
28
|
+
*/
|
|
29
|
+
lon?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MetadataResponseExifGps interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMetadataResponseExifGps(value: object): value is MetadataResponseExifGps;
|
|
35
|
+
export declare function MetadataResponseExifGpsFromJSON(json: any): MetadataResponseExifGps;
|
|
36
|
+
export declare function MetadataResponseExifGpsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataResponseExifGps;
|
|
37
|
+
export declare function MetadataResponseExifGpsToJSON(json: any): MetadataResponseExifGps;
|
|
38
|
+
export declare function MetadataResponseExifGpsToJSONTyped(value?: MetadataResponseExifGps | null, ignoreDiscriminator?: boolean): any;
|