@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
|
@@ -1,137 +0,0 @@
|
|
|
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
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PresignedUrlPart } from './PresignedUrlPart';
|
|
17
|
-
import {
|
|
18
|
-
PresignedUrlPartFromJSON,
|
|
19
|
-
PresignedUrlPartFromJSONTyped,
|
|
20
|
-
PresignedUrlPartToJSON,
|
|
21
|
-
PresignedUrlPartToJSONTyped,
|
|
22
|
-
} from './PresignedUrlPart';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface MultipartInitiateResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface MultipartInitiateResponse {
|
|
30
|
-
/**
|
|
31
|
-
* UUID v7 format identifier (time-ordered)
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof MultipartInitiateResponse
|
|
34
|
-
*/
|
|
35
|
-
fileId: string;
|
|
36
|
-
/**
|
|
37
|
-
* MIME type detected from the first chunk
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof MultipartInitiateResponse
|
|
40
|
-
*/
|
|
41
|
-
mimeType: string;
|
|
42
|
-
/**
|
|
43
|
-
* ETag of the first chunk stored as S3 part 1
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof MultipartInitiateResponse
|
|
46
|
-
*/
|
|
47
|
-
firstChunkEtag: string;
|
|
48
|
-
/**
|
|
49
|
-
* Size of the first chunk received (for client validation)
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof MultipartInitiateResponse
|
|
52
|
-
*/
|
|
53
|
-
firstChunkSizeBytes: number;
|
|
54
|
-
/**
|
|
55
|
-
* Total number of parts. The client slices the remaining file into
|
|
56
|
-
* exactly (total_parts - 1) chunks using recommended_chunk_size.
|
|
57
|
-
* The last chunk may be smaller.
|
|
58
|
-
*
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @memberof MultipartInitiateResponse
|
|
61
|
-
*/
|
|
62
|
-
totalParts: number;
|
|
63
|
-
/**
|
|
64
|
-
* Chunk size in bytes for remaining parts. Calculated from first chunk
|
|
65
|
-
* throughput * 5s target, clamped to 5MB-100MB. The last chunk may be
|
|
66
|
-
* smaller than 5MB.
|
|
67
|
-
*
|
|
68
|
-
* @type {number}
|
|
69
|
-
* @memberof MultipartInitiateResponse
|
|
70
|
-
*/
|
|
71
|
-
recommendedChunkSize: number;
|
|
72
|
-
/**
|
|
73
|
-
* Pre-signed S3 PUT URLs for parts 2 through total_parts.
|
|
74
|
-
* Each URL accepts a PUT request with raw chunk bytes as body.
|
|
75
|
-
* Collect the ETag from each S3 response for the complete request.
|
|
76
|
-
*
|
|
77
|
-
* @type {Array<PresignedUrlPart>}
|
|
78
|
-
* @memberof MultipartInitiateResponse
|
|
79
|
-
*/
|
|
80
|
-
presignedUrls: Array<PresignedUrlPart>;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Check if a given object implements the MultipartInitiateResponse interface.
|
|
85
|
-
*/
|
|
86
|
-
export function instanceOfMultipartInitiateResponse(value: object): value is MultipartInitiateResponse {
|
|
87
|
-
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
88
|
-
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
89
|
-
if (!('firstChunkEtag' in value) || value['firstChunkEtag'] === undefined) return false;
|
|
90
|
-
if (!('firstChunkSizeBytes' in value) || value['firstChunkSizeBytes'] === undefined) return false;
|
|
91
|
-
if (!('totalParts' in value) || value['totalParts'] === undefined) return false;
|
|
92
|
-
if (!('recommendedChunkSize' in value) || value['recommendedChunkSize'] === undefined) return false;
|
|
93
|
-
if (!('presignedUrls' in value) || value['presignedUrls'] === undefined) return false;
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export function MultipartInitiateResponseFromJSON(json: any): MultipartInitiateResponse {
|
|
98
|
-
return MultipartInitiateResponseFromJSONTyped(json, false);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function MultipartInitiateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipartInitiateResponse {
|
|
102
|
-
if (json == null) {
|
|
103
|
-
return json;
|
|
104
|
-
}
|
|
105
|
-
return {
|
|
106
|
-
|
|
107
|
-
'fileId': json['file_id'],
|
|
108
|
-
'mimeType': json['mime_type'],
|
|
109
|
-
'firstChunkEtag': json['first_chunk_etag'],
|
|
110
|
-
'firstChunkSizeBytes': json['first_chunk_size_bytes'],
|
|
111
|
-
'totalParts': json['total_parts'],
|
|
112
|
-
'recommendedChunkSize': json['recommended_chunk_size'],
|
|
113
|
-
'presignedUrls': ((json['presigned_urls'] as Array<any>).map(PresignedUrlPartFromJSON)),
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export function MultipartInitiateResponseToJSON(json: any): MultipartInitiateResponse {
|
|
118
|
-
return MultipartInitiateResponseToJSONTyped(json, false);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export function MultipartInitiateResponseToJSONTyped(value?: MultipartInitiateResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
122
|
-
if (value == null) {
|
|
123
|
-
return value;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
return {
|
|
127
|
-
|
|
128
|
-
'file_id': value['fileId'],
|
|
129
|
-
'mime_type': value['mimeType'],
|
|
130
|
-
'first_chunk_etag': value['firstChunkEtag'],
|
|
131
|
-
'first_chunk_size_bytes': value['firstChunkSizeBytes'],
|
|
132
|
-
'total_parts': value['totalParts'],
|
|
133
|
-
'recommended_chunk_size': value['recommendedChunkSize'],
|
|
134
|
-
'presigned_urls': ((value['presignedUrls'] as Array<any>).map(PresignedUrlPartToJSON)),
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
@@ -1,124 +0,0 @@
|
|
|
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
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { OperationStatus } from './OperationStatus';
|
|
17
|
-
import {
|
|
18
|
-
OperationStatusFromJSON,
|
|
19
|
-
OperationStatusFromJSONTyped,
|
|
20
|
-
OperationStatusToJSON,
|
|
21
|
-
OperationStatusToJSONTyped,
|
|
22
|
-
} from './OperationStatus';
|
|
23
|
-
import type { OperationResult } from './OperationResult';
|
|
24
|
-
import {
|
|
25
|
-
OperationResultFromJSON,
|
|
26
|
-
OperationResultFromJSONTyped,
|
|
27
|
-
OperationResultToJSON,
|
|
28
|
-
OperationResultToJSONTyped,
|
|
29
|
-
} from './OperationResult';
|
|
30
|
-
import type { OperationType } from './OperationType';
|
|
31
|
-
import {
|
|
32
|
-
OperationTypeFromJSON,
|
|
33
|
-
OperationTypeFromJSONTyped,
|
|
34
|
-
OperationTypeToJSON,
|
|
35
|
-
OperationTypeToJSONTyped,
|
|
36
|
-
} from './OperationType';
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Operation status within a job response
|
|
40
|
-
* @export
|
|
41
|
-
* @interface OperationResponse
|
|
42
|
-
*/
|
|
43
|
-
export interface OperationResponse {
|
|
44
|
-
/**
|
|
45
|
-
* UUID v7 format identifier (time-ordered)
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof OperationResponse
|
|
48
|
-
*/
|
|
49
|
-
id: string;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {OperationType}
|
|
53
|
-
* @memberof OperationResponse
|
|
54
|
-
*/
|
|
55
|
-
type: OperationType;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {OperationStatus}
|
|
59
|
-
* @memberof OperationResponse
|
|
60
|
-
*/
|
|
61
|
-
status: OperationStatus;
|
|
62
|
-
/**
|
|
63
|
-
* Progress percentage (0-100). Present when in_progress or completed.
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof OperationResponse
|
|
66
|
-
*/
|
|
67
|
-
progress?: number;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {OperationResult}
|
|
71
|
-
* @memberof OperationResponse
|
|
72
|
-
*/
|
|
73
|
-
result?: OperationResult;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Check if a given object implements the OperationResponse interface.
|
|
80
|
-
*/
|
|
81
|
-
export function instanceOfOperationResponse(value: object): value is OperationResponse {
|
|
82
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
83
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
84
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
85
|
-
return true;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function OperationResponseFromJSON(json: any): OperationResponse {
|
|
89
|
-
return OperationResponseFromJSONTyped(json, false);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function OperationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationResponse {
|
|
93
|
-
if (json == null) {
|
|
94
|
-
return json;
|
|
95
|
-
}
|
|
96
|
-
return {
|
|
97
|
-
|
|
98
|
-
'id': json['id'],
|
|
99
|
-
'type': OperationTypeFromJSON(json['type']),
|
|
100
|
-
'status': OperationStatusFromJSON(json['status']),
|
|
101
|
-
'progress': json['progress'] == null ? undefined : json['progress'],
|
|
102
|
-
'result': json['result'] == null ? undefined : OperationResultFromJSON(json['result']),
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export function OperationResponseToJSON(json: any): OperationResponse {
|
|
107
|
-
return OperationResponseToJSONTyped(json, false);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function OperationResponseToJSONTyped(value?: OperationResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
-
if (value == null) {
|
|
112
|
-
return value;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return {
|
|
116
|
-
|
|
117
|
-
'id': value['id'],
|
|
118
|
-
'type': OperationTypeToJSON(value['type']),
|
|
119
|
-
'status': OperationStatusToJSON(value['status']),
|
|
120
|
-
'progress': value['progress'],
|
|
121
|
-
'result': OperationResultToJSON(value['result']),
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
|
|
@@ -1,163 +0,0 @@
|
|
|
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
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { MimeGroupSchema } from './MimeGroupSchema';
|
|
17
|
-
import {
|
|
18
|
-
MimeGroupSchemaFromJSON,
|
|
19
|
-
MimeGroupSchemaFromJSONTyped,
|
|
20
|
-
MimeGroupSchemaToJSON,
|
|
21
|
-
MimeGroupSchemaToJSONTyped,
|
|
22
|
-
} from './MimeGroupSchema';
|
|
23
|
-
import type { OperationInputModel } from './OperationInputModel';
|
|
24
|
-
import {
|
|
25
|
-
OperationInputModelFromJSON,
|
|
26
|
-
OperationInputModelFromJSONTyped,
|
|
27
|
-
OperationInputModelToJSON,
|
|
28
|
-
OperationInputModelToJSONTyped,
|
|
29
|
-
} from './OperationInputModel';
|
|
30
|
-
import type { OptionSchema } from './OptionSchema';
|
|
31
|
-
import {
|
|
32
|
-
OptionSchemaFromJSON,
|
|
33
|
-
OptionSchemaFromJSONTyped,
|
|
34
|
-
OptionSchemaToJSON,
|
|
35
|
-
OptionSchemaToJSONTyped,
|
|
36
|
-
} from './OptionSchema';
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Schema for a single operation type
|
|
40
|
-
* @export
|
|
41
|
-
* @interface OperationSchemaDefinition
|
|
42
|
-
*/
|
|
43
|
-
export interface OperationSchemaDefinition {
|
|
44
|
-
/**
|
|
45
|
-
* Human-readable description of what the operation does
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof OperationSchemaDefinition
|
|
48
|
-
*/
|
|
49
|
-
description: string;
|
|
50
|
-
/**
|
|
51
|
-
* Whether this is the default operation when none specified
|
|
52
|
-
* @type {boolean}
|
|
53
|
-
* @memberof OperationSchemaDefinition
|
|
54
|
-
*/
|
|
55
|
-
_default?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {OperationInputModel}
|
|
59
|
-
* @memberof OperationSchemaDefinition
|
|
60
|
-
*/
|
|
61
|
-
inputModel: OperationInputModel;
|
|
62
|
-
/**
|
|
63
|
-
* Minimum number of inputs (multi-input operations only)
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof OperationSchemaDefinition
|
|
66
|
-
*/
|
|
67
|
-
minInputs?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Maximum number of inputs (multi-input operations only)
|
|
70
|
-
* @type {number}
|
|
71
|
-
* @memberof OperationSchemaDefinition
|
|
72
|
-
*/
|
|
73
|
-
maxInputs?: number;
|
|
74
|
-
/**
|
|
75
|
-
* Whether mixed MIME types are allowed (archive only)
|
|
76
|
-
* @type {boolean}
|
|
77
|
-
* @memberof OperationSchemaDefinition
|
|
78
|
-
*/
|
|
79
|
-
acceptsMixedTypes?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* MIME-type-specific option schemas. When present, options are grouped
|
|
82
|
-
* by MIME category (image, video, audio, document). Each group lists
|
|
83
|
-
* the supported MIME types and group-specific options.
|
|
84
|
-
*
|
|
85
|
-
* @type {{ [key: string]: MimeGroupSchema; }}
|
|
86
|
-
* @memberof OperationSchemaDefinition
|
|
87
|
-
*/
|
|
88
|
-
mimeGroups?: { [key: string]: MimeGroupSchema; };
|
|
89
|
-
/**
|
|
90
|
-
* Global options applicable regardless of MIME type, keyed by option name.
|
|
91
|
-
* For operations with mime_groups, these are the common options.
|
|
92
|
-
*
|
|
93
|
-
* @type {{ [key: string]: OptionSchema; }}
|
|
94
|
-
* @memberof OperationSchemaDefinition
|
|
95
|
-
*/
|
|
96
|
-
options: { [key: string]: OptionSchema; };
|
|
97
|
-
/**
|
|
98
|
-
* Options that can be overridden per-input for multi-input operations,
|
|
99
|
-
* keyed by option name. For merge: per-join-point transition overrides.
|
|
100
|
-
*
|
|
101
|
-
* @type {{ [key: string]: OptionSchema; }}
|
|
102
|
-
* @memberof OperationSchemaDefinition
|
|
103
|
-
*/
|
|
104
|
-
perInputOptions?: { [key: string]: OptionSchema; };
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Check if a given object implements the OperationSchemaDefinition interface.
|
|
111
|
-
*/
|
|
112
|
-
export function instanceOfOperationSchemaDefinition(value: object): value is OperationSchemaDefinition {
|
|
113
|
-
if (!('description' in value) || value['description'] === undefined) return false;
|
|
114
|
-
if (!('inputModel' in value) || value['inputModel'] === undefined) return false;
|
|
115
|
-
if (!('options' in value) || value['options'] === undefined) return false;
|
|
116
|
-
return true;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function OperationSchemaDefinitionFromJSON(json: any): OperationSchemaDefinition {
|
|
120
|
-
return OperationSchemaDefinitionFromJSONTyped(json, false);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export function OperationSchemaDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationSchemaDefinition {
|
|
124
|
-
if (json == null) {
|
|
125
|
-
return json;
|
|
126
|
-
}
|
|
127
|
-
return {
|
|
128
|
-
|
|
129
|
-
'description': json['description'],
|
|
130
|
-
'_default': json['default'] == null ? undefined : json['default'],
|
|
131
|
-
'inputModel': OperationInputModelFromJSON(json['input_model']),
|
|
132
|
-
'minInputs': json['min_inputs'] == null ? undefined : json['min_inputs'],
|
|
133
|
-
'maxInputs': json['max_inputs'] == null ? undefined : json['max_inputs'],
|
|
134
|
-
'acceptsMixedTypes': json['accepts_mixed_types'] == null ? undefined : json['accepts_mixed_types'],
|
|
135
|
-
'mimeGroups': json['mime_groups'] == null ? undefined : (mapValues(json['mime_groups'], MimeGroupSchemaFromJSON)),
|
|
136
|
-
'options': (mapValues(json['options'], OptionSchemaFromJSON)),
|
|
137
|
-
'perInputOptions': json['per_input_options'] == null ? undefined : (mapValues(json['per_input_options'], OptionSchemaFromJSON)),
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export function OperationSchemaDefinitionToJSON(json: any): OperationSchemaDefinition {
|
|
142
|
-
return OperationSchemaDefinitionToJSONTyped(json, false);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export function OperationSchemaDefinitionToJSONTyped(value?: OperationSchemaDefinition | null, ignoreDiscriminator: boolean = false): any {
|
|
146
|
-
if (value == null) {
|
|
147
|
-
return value;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return {
|
|
151
|
-
|
|
152
|
-
'description': value['description'],
|
|
153
|
-
'default': value['_default'],
|
|
154
|
-
'input_model': OperationInputModelToJSON(value['inputModel']),
|
|
155
|
-
'min_inputs': value['minInputs'],
|
|
156
|
-
'max_inputs': value['maxInputs'],
|
|
157
|
-
'accepts_mixed_types': value['acceptsMixedTypes'],
|
|
158
|
-
'mime_groups': value['mimeGroups'] == null ? undefined : (mapValues(value['mimeGroups'], MimeGroupSchemaToJSON)),
|
|
159
|
-
'options': (mapValues(value['options'], OptionSchemaToJSON)),
|
|
160
|
-
'per_input_options': value['perInputOptions'] == null ? undefined : (mapValues(value['perInputOptions'], OptionSchemaToJSON)),
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
|
|
@@ -1,143 +0,0 @@
|
|
|
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
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { OperationResult } from './OperationResult';
|
|
17
|
-
import {
|
|
18
|
-
OperationResultFromJSON,
|
|
19
|
-
OperationResultFromJSONTyped,
|
|
20
|
-
OperationResultToJSON,
|
|
21
|
-
OperationResultToJSONTyped,
|
|
22
|
-
} from './OperationResult';
|
|
23
|
-
import type { OperationType } from './OperationType';
|
|
24
|
-
import {
|
|
25
|
-
OperationTypeFromJSON,
|
|
26
|
-
OperationTypeFromJSONTyped,
|
|
27
|
-
OperationTypeToJSON,
|
|
28
|
-
OperationTypeToJSONTyped,
|
|
29
|
-
} from './OperationType';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Payload for `operation.completed` events
|
|
33
|
-
* @export
|
|
34
|
-
* @interface SseOperationCompletedData
|
|
35
|
-
*/
|
|
36
|
-
export interface SseOperationCompletedData {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof SseOperationCompletedData
|
|
41
|
-
*/
|
|
42
|
-
jobRef: string;
|
|
43
|
-
/**
|
|
44
|
-
* UUID v7 format identifier (time-ordered)
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof SseOperationCompletedData
|
|
47
|
-
*/
|
|
48
|
-
operationId: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {OperationType}
|
|
52
|
-
* @memberof SseOperationCompletedData
|
|
53
|
-
*/
|
|
54
|
-
type: OperationType;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof SseOperationCompletedData
|
|
59
|
-
*/
|
|
60
|
-
status: SseOperationCompletedDataStatusEnum;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {number}
|
|
64
|
-
* @memberof SseOperationCompletedData
|
|
65
|
-
*/
|
|
66
|
-
progress: SseOperationCompletedDataProgressEnum;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {OperationResult}
|
|
70
|
-
* @memberof SseOperationCompletedData
|
|
71
|
-
*/
|
|
72
|
-
result?: OperationResult;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @export
|
|
78
|
-
*/
|
|
79
|
-
export const SseOperationCompletedDataStatusEnum = {
|
|
80
|
-
completed: 'completed'
|
|
81
|
-
} as const;
|
|
82
|
-
export type SseOperationCompletedDataStatusEnum = typeof SseOperationCompletedDataStatusEnum[keyof typeof SseOperationCompletedDataStatusEnum];
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @export
|
|
86
|
-
*/
|
|
87
|
-
export const SseOperationCompletedDataProgressEnum = {
|
|
88
|
-
NUMBER_100: 100
|
|
89
|
-
} as const;
|
|
90
|
-
export type SseOperationCompletedDataProgressEnum = typeof SseOperationCompletedDataProgressEnum[keyof typeof SseOperationCompletedDataProgressEnum];
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Check if a given object implements the SseOperationCompletedData interface.
|
|
95
|
-
*/
|
|
96
|
-
export function instanceOfSseOperationCompletedData(value: object): value is SseOperationCompletedData {
|
|
97
|
-
if (!('jobRef' in value) || value['jobRef'] === undefined) return false;
|
|
98
|
-
if (!('operationId' in value) || value['operationId'] === undefined) return false;
|
|
99
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
100
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
101
|
-
if (!('progress' in value) || value['progress'] === undefined) return false;
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export function SseOperationCompletedDataFromJSON(json: any): SseOperationCompletedData {
|
|
106
|
-
return SseOperationCompletedDataFromJSONTyped(json, false);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export function SseOperationCompletedDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SseOperationCompletedData {
|
|
110
|
-
if (json == null) {
|
|
111
|
-
return json;
|
|
112
|
-
}
|
|
113
|
-
return {
|
|
114
|
-
|
|
115
|
-
'jobRef': json['job_ref'],
|
|
116
|
-
'operationId': json['operation_id'],
|
|
117
|
-
'type': OperationTypeFromJSON(json['type']),
|
|
118
|
-
'status': json['status'],
|
|
119
|
-
'progress': json['progress'],
|
|
120
|
-
'result': json['result'] == null ? undefined : OperationResultFromJSON(json['result']),
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function SseOperationCompletedDataToJSON(json: any): SseOperationCompletedData {
|
|
125
|
-
return SseOperationCompletedDataToJSONTyped(json, false);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export function SseOperationCompletedDataToJSONTyped(value?: SseOperationCompletedData | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
-
if (value == null) {
|
|
130
|
-
return value;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return {
|
|
134
|
-
|
|
135
|
-
'job_ref': value['jobRef'],
|
|
136
|
-
'operation_id': value['operationId'],
|
|
137
|
-
'type': OperationTypeToJSON(value['type']),
|
|
138
|
-
'status': value['status'],
|
|
139
|
-
'progress': value['progress'],
|
|
140
|
-
'result': OperationResultToJSON(value['result']),
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
|
|
@@ -1,129 +0,0 @@
|
|
|
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
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { OperationType } from './OperationType';
|
|
17
|
-
import {
|
|
18
|
-
OperationTypeFromJSON,
|
|
19
|
-
OperationTypeFromJSONTyped,
|
|
20
|
-
OperationTypeToJSON,
|
|
21
|
-
OperationTypeToJSONTyped,
|
|
22
|
-
} from './OperationType';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Payload for `operation.failed` events
|
|
26
|
-
* @export
|
|
27
|
-
* @interface SseOperationFailedData
|
|
28
|
-
*/
|
|
29
|
-
export interface SseOperationFailedData {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SseOperationFailedData
|
|
34
|
-
*/
|
|
35
|
-
jobRef: string;
|
|
36
|
-
/**
|
|
37
|
-
* UUID v7 format identifier (time-ordered)
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SseOperationFailedData
|
|
40
|
-
*/
|
|
41
|
-
operationId: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {OperationType}
|
|
45
|
-
* @memberof SseOperationFailedData
|
|
46
|
-
*/
|
|
47
|
-
type: OperationType;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof SseOperationFailedData
|
|
52
|
-
*/
|
|
53
|
-
status: SseOperationFailedDataStatusEnum;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SseOperationFailedData
|
|
58
|
-
*/
|
|
59
|
-
errorCode: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof SseOperationFailedData
|
|
64
|
-
*/
|
|
65
|
-
errorMessage: string;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @export
|
|
71
|
-
*/
|
|
72
|
-
export const SseOperationFailedDataStatusEnum = {
|
|
73
|
-
failed: 'failed'
|
|
74
|
-
} as const;
|
|
75
|
-
export type SseOperationFailedDataStatusEnum = typeof SseOperationFailedDataStatusEnum[keyof typeof SseOperationFailedDataStatusEnum];
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Check if a given object implements the SseOperationFailedData interface.
|
|
80
|
-
*/
|
|
81
|
-
export function instanceOfSseOperationFailedData(value: object): value is SseOperationFailedData {
|
|
82
|
-
if (!('jobRef' in value) || value['jobRef'] === undefined) return false;
|
|
83
|
-
if (!('operationId' in value) || value['operationId'] === undefined) return false;
|
|
84
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
85
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
86
|
-
if (!('errorCode' in value) || value['errorCode'] === undefined) return false;
|
|
87
|
-
if (!('errorMessage' in value) || value['errorMessage'] === undefined) return false;
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function SseOperationFailedDataFromJSON(json: any): SseOperationFailedData {
|
|
92
|
-
return SseOperationFailedDataFromJSONTyped(json, false);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function SseOperationFailedDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SseOperationFailedData {
|
|
96
|
-
if (json == null) {
|
|
97
|
-
return json;
|
|
98
|
-
}
|
|
99
|
-
return {
|
|
100
|
-
|
|
101
|
-
'jobRef': json['job_ref'],
|
|
102
|
-
'operationId': json['operation_id'],
|
|
103
|
-
'type': OperationTypeFromJSON(json['type']),
|
|
104
|
-
'status': json['status'],
|
|
105
|
-
'errorCode': json['error_code'],
|
|
106
|
-
'errorMessage': json['error_message'],
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function SseOperationFailedDataToJSON(json: any): SseOperationFailedData {
|
|
111
|
-
return SseOperationFailedDataToJSONTyped(json, false);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export function SseOperationFailedDataToJSONTyped(value?: SseOperationFailedData | null, ignoreDiscriminator: boolean = false): any {
|
|
115
|
-
if (value == null) {
|
|
116
|
-
return value;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return {
|
|
120
|
-
|
|
121
|
-
'job_ref': value['jobRef'],
|
|
122
|
-
'operation_id': value['operationId'],
|
|
123
|
-
'type': OperationTypeToJSON(value['type']),
|
|
124
|
-
'status': value['status'],
|
|
125
|
-
'error_code': value['errorCode'],
|
|
126
|
-
'error_message': value['errorMessage'],
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
|