@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,78 @@
|
|
|
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 { PresignedUrlPart } from './PresignedUrlPart.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MultipartInitiateResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface MultipartInitiateResponse {
|
|
19
|
+
/**
|
|
20
|
+
* UUID v7 format identifier (time-ordered)
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MultipartInitiateResponse
|
|
23
|
+
*/
|
|
24
|
+
fileId: string;
|
|
25
|
+
/**
|
|
26
|
+
* MIME type detected from the first chunk
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MultipartInitiateResponse
|
|
29
|
+
*/
|
|
30
|
+
mimeType: string;
|
|
31
|
+
/**
|
|
32
|
+
* ETag of the first chunk stored as S3 part 1
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MultipartInitiateResponse
|
|
35
|
+
*/
|
|
36
|
+
firstChunkEtag: string;
|
|
37
|
+
/**
|
|
38
|
+
* Size of the first chunk received (for client validation)
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof MultipartInitiateResponse
|
|
41
|
+
*/
|
|
42
|
+
firstChunkSizeBytes: number;
|
|
43
|
+
/**
|
|
44
|
+
* Total number of parts. The client slices the remaining file into
|
|
45
|
+
* exactly (total_parts - 1) chunks using recommended_chunk_size.
|
|
46
|
+
* The last chunk may be smaller.
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof MultipartInitiateResponse
|
|
50
|
+
*/
|
|
51
|
+
totalParts: number;
|
|
52
|
+
/**
|
|
53
|
+
* Chunk size in bytes for remaining parts. Calculated from first chunk
|
|
54
|
+
* throughput * 5s target, clamped to 5MB-100MB. The last chunk may be
|
|
55
|
+
* smaller than 5MB.
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof MultipartInitiateResponse
|
|
59
|
+
*/
|
|
60
|
+
recommendedChunkSize: number;
|
|
61
|
+
/**
|
|
62
|
+
* Pre-signed S3 PUT URLs for parts 2 through total_parts.
|
|
63
|
+
* Each URL accepts a PUT request with raw chunk bytes as body.
|
|
64
|
+
* Collect the ETag from each S3 response for the complete request.
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<PresignedUrlPart>}
|
|
67
|
+
* @memberof MultipartInitiateResponse
|
|
68
|
+
*/
|
|
69
|
+
presignedUrls: Array<PresignedUrlPart>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the MultipartInitiateResponse interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfMultipartInitiateResponse(value: object): value is MultipartInitiateResponse;
|
|
75
|
+
export declare function MultipartInitiateResponseFromJSON(json: any): MultipartInitiateResponse;
|
|
76
|
+
export declare function MultipartInitiateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipartInitiateResponse;
|
|
77
|
+
export declare function MultipartInitiateResponseToJSON(json: any): MultipartInitiateResponse;
|
|
78
|
+
export declare function MultipartInitiateResponseToJSONTyped(value?: MultipartInitiateResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { PresignedUrlPartFromJSON, PresignedUrlPartToJSON, } from './PresignedUrlPart.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the MultipartInitiateResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfMultipartInitiateResponse(value) {
|
|
19
|
+
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('firstChunkEtag' in value) || value['firstChunkEtag'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('firstChunkSizeBytes' in value) || value['firstChunkSizeBytes'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('totalParts' in value) || value['totalParts'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('recommendedChunkSize' in value) || value['recommendedChunkSize'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('presignedUrls' in value) || value['presignedUrls'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function MultipartInitiateResponseFromJSON(json) {
|
|
36
|
+
return MultipartInitiateResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function MultipartInitiateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'fileId': json['file_id'],
|
|
44
|
+
'mimeType': json['mime_type'],
|
|
45
|
+
'firstChunkEtag': json['first_chunk_etag'],
|
|
46
|
+
'firstChunkSizeBytes': json['first_chunk_size_bytes'],
|
|
47
|
+
'totalParts': json['total_parts'],
|
|
48
|
+
'recommendedChunkSize': json['recommended_chunk_size'],
|
|
49
|
+
'presignedUrls': (json['presigned_urls'].map(PresignedUrlPartFromJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function MultipartInitiateResponseToJSON(json) {
|
|
53
|
+
return MultipartInitiateResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function MultipartInitiateResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'file_id': value['fileId'],
|
|
61
|
+
'mime_type': value['mimeType'],
|
|
62
|
+
'first_chunk_etag': value['firstChunkEtag'],
|
|
63
|
+
'first_chunk_size_bytes': value['firstChunkSizeBytes'],
|
|
64
|
+
'total_parts': value['totalParts'],
|
|
65
|
+
'recommended_chunk_size': value['recommendedChunkSize'],
|
|
66
|
+
'presigned_urls': (value['presignedUrls'].map(PresignedUrlPartToJSON)),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { MultipartInitiateResponse } from './MultipartInitiateResponse.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MultipartInitiateSuccessEnvelope
|
|
17
|
+
*/
|
|
18
|
+
export interface MultipartInitiateSuccessEnvelope {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof MultipartInitiateSuccessEnvelope
|
|
23
|
+
*/
|
|
24
|
+
success: MultipartInitiateSuccessEnvelopeSuccessEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MultipartInitiateResponse}
|
|
28
|
+
* @memberof MultipartInitiateSuccessEnvelope
|
|
29
|
+
*/
|
|
30
|
+
data: MultipartInitiateResponse;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const MultipartInitiateSuccessEnvelopeSuccessEnum: {
|
|
36
|
+
readonly true: true;
|
|
37
|
+
};
|
|
38
|
+
export type MultipartInitiateSuccessEnvelopeSuccessEnum = typeof MultipartInitiateSuccessEnvelopeSuccessEnum[keyof typeof MultipartInitiateSuccessEnvelopeSuccessEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the MultipartInitiateSuccessEnvelope interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfMultipartInitiateSuccessEnvelope(value: object): value is MultipartInitiateSuccessEnvelope;
|
|
43
|
+
export declare function MultipartInitiateSuccessEnvelopeFromJSON(json: any): MultipartInitiateSuccessEnvelope;
|
|
44
|
+
export declare function MultipartInitiateSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipartInitiateSuccessEnvelope;
|
|
45
|
+
export declare function MultipartInitiateSuccessEnvelopeToJSON(json: any): MultipartInitiateSuccessEnvelope;
|
|
46
|
+
export declare function MultipartInitiateSuccessEnvelopeToJSONTyped(value?: MultipartInitiateSuccessEnvelope | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,92 +2,53 @@
|
|
|
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 { MultipartInitiateResponse } from './MultipartInitiateResponse';
|
|
17
|
-
import {
|
|
18
|
-
MultipartInitiateResponseFromJSON,
|
|
19
|
-
MultipartInitiateResponseFromJSONTyped,
|
|
20
|
-
MultipartInitiateResponseToJSON,
|
|
21
|
-
MultipartInitiateResponseToJSONTyped,
|
|
22
|
-
} from './MultipartInitiateResponse';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface MultipartInitiateSuccessEnvelope
|
|
28
|
-
*/
|
|
29
|
-
export interface MultipartInitiateSuccessEnvelope {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof MultipartInitiateSuccessEnvelope
|
|
34
|
-
*/
|
|
35
|
-
success: MultipartInitiateSuccessEnvelopeSuccessEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {MultipartInitiateResponse}
|
|
39
|
-
* @memberof MultipartInitiateSuccessEnvelope
|
|
40
|
-
*/
|
|
41
|
-
data: MultipartInitiateResponse;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
import { MultipartInitiateResponseFromJSON, MultipartInitiateResponseToJSON, } from './MultipartInitiateResponse.js';
|
|
45
15
|
/**
|
|
46
16
|
* @export
|
|
47
17
|
*/
|
|
48
18
|
export const MultipartInitiateSuccessEnvelopeSuccessEnum = {
|
|
49
19
|
true: true
|
|
50
|
-
}
|
|
51
|
-
export type MultipartInitiateSuccessEnvelopeSuccessEnum = typeof MultipartInitiateSuccessEnvelopeSuccessEnum[keyof typeof MultipartInitiateSuccessEnvelopeSuccessEnum];
|
|
52
|
-
|
|
53
|
-
|
|
20
|
+
};
|
|
54
21
|
/**
|
|
55
22
|
* Check if a given object implements the MultipartInitiateSuccessEnvelope interface.
|
|
56
23
|
*/
|
|
57
|
-
export function instanceOfMultipartInitiateSuccessEnvelope(value
|
|
58
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
59
|
-
|
|
24
|
+
export function instanceOfMultipartInitiateSuccessEnvelope(value) {
|
|
25
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
60
29
|
return true;
|
|
61
30
|
}
|
|
62
|
-
|
|
63
|
-
export function MultipartInitiateSuccessEnvelopeFromJSON(json: any): MultipartInitiateSuccessEnvelope {
|
|
31
|
+
export function MultipartInitiateSuccessEnvelopeFromJSON(json) {
|
|
64
32
|
return MultipartInitiateSuccessEnvelopeFromJSONTyped(json, false);
|
|
65
33
|
}
|
|
66
|
-
|
|
67
|
-
export function MultipartInitiateSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultipartInitiateSuccessEnvelope {
|
|
34
|
+
export function MultipartInitiateSuccessEnvelopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
35
|
if (json == null) {
|
|
69
36
|
return json;
|
|
70
37
|
}
|
|
71
38
|
return {
|
|
72
|
-
|
|
73
39
|
'success': json['success'],
|
|
74
40
|
'data': MultipartInitiateResponseFromJSON(json['data']),
|
|
75
41
|
};
|
|
76
42
|
}
|
|
77
|
-
|
|
78
|
-
export function MultipartInitiateSuccessEnvelopeToJSON(json: any): MultipartInitiateSuccessEnvelope {
|
|
43
|
+
export function MultipartInitiateSuccessEnvelopeToJSON(json) {
|
|
79
44
|
return MultipartInitiateSuccessEnvelopeToJSONTyped(json, false);
|
|
80
45
|
}
|
|
81
|
-
|
|
82
|
-
export function MultipartInitiateSuccessEnvelopeToJSONTyped(value?: MultipartInitiateSuccessEnvelope | null, ignoreDiscriminator: boolean = false): any {
|
|
46
|
+
export function MultipartInitiateSuccessEnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
47
|
if (value == null) {
|
|
84
48
|
return value;
|
|
85
49
|
}
|
|
86
|
-
|
|
87
50
|
return {
|
|
88
|
-
|
|
89
51
|
'success': value['success'],
|
|
90
52
|
'data': MultipartInitiateResponseToJSON(value['data']),
|
|
91
53
|
};
|
|
92
54
|
}
|
|
93
|
-
|
package/{openapi/models/OperationDefinition.ts → dist/openapi/models/OperationDefinition.d.ts}
RENAMED
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
1
|
/**
|
|
4
2
|
* 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.
|
|
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.
|
|
6
4
|
*
|
|
7
5
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
6
|
+
*
|
|
9
7
|
*
|
|
10
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
9
|
* https://openapi-generator.tech
|
|
12
10
|
* Do not edit the class manually.
|
|
13
11
|
*/
|
|
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
|
-
|
|
12
|
+
import type { OperationType } from './OperationType.js';
|
|
24
13
|
/**
|
|
25
14
|
* Definition of a single operation within a job
|
|
26
15
|
* @export
|
|
@@ -28,7 +17,7 @@ import {
|
|
|
28
17
|
*/
|
|
29
18
|
export interface OperationDefinition {
|
|
30
19
|
/**
|
|
31
|
-
*
|
|
20
|
+
*
|
|
32
21
|
* @type {OperationType}
|
|
33
22
|
* @memberof OperationDefinition
|
|
34
23
|
*/
|
|
@@ -37,55 +26,23 @@ export interface OperationDefinition {
|
|
|
37
26
|
* Operation-specific options. The available options and their validation
|
|
38
27
|
* rules depend on the operation type and the input file's MIME type.
|
|
39
28
|
* See `GET /api/operations/schema` for the full schema.
|
|
40
|
-
*
|
|
29
|
+
*
|
|
41
30
|
* Options are validated against the schema using JSON Schema if/then/else
|
|
42
31
|
* rules. For example, `quality` is only valid when `mode: lossy` for
|
|
43
32
|
* compress operations.
|
|
44
|
-
*
|
|
33
|
+
*
|
|
45
34
|
* @type {{ [key: string]: any; }}
|
|
46
35
|
* @memberof OperationDefinition
|
|
47
36
|
*/
|
|
48
|
-
options?: {
|
|
37
|
+
options?: {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
};
|
|
49
40
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
41
|
/**
|
|
54
42
|
* Check if a given object implements the OperationDefinition interface.
|
|
55
43
|
*/
|
|
56
|
-
export function instanceOfOperationDefinition(value: object): value is OperationDefinition
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
export function OperationDefinitionFromJSON(json: any): OperationDefinition {
|
|
62
|
-
return OperationDefinitionFromJSONTyped(json, false);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function OperationDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationDefinition {
|
|
66
|
-
if (json == null) {
|
|
67
|
-
return json;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'type': OperationTypeFromJSON(json['type']),
|
|
72
|
-
'options': json['options'] == null ? undefined : json['options'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function OperationDefinitionToJSON(json: any): OperationDefinition {
|
|
77
|
-
return OperationDefinitionToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function OperationDefinitionToJSONTyped(value?: OperationDefinition | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'type': OperationTypeToJSON(value['type']),
|
|
88
|
-
'options': value['options'],
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
44
|
+
export declare function instanceOfOperationDefinition(value: object): value is OperationDefinition;
|
|
45
|
+
export declare function OperationDefinitionFromJSON(json: any): OperationDefinition;
|
|
46
|
+
export declare function OperationDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationDefinition;
|
|
47
|
+
export declare function OperationDefinitionToJSON(json: any): OperationDefinition;
|
|
48
|
+
export declare function OperationDefinitionToJSONTyped(value?: OperationDefinition | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { OperationTypeFromJSON, OperationTypeToJSON, } from './OperationType.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the OperationDefinition interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfOperationDefinition(value) {
|
|
19
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function OperationDefinitionFromJSON(json) {
|
|
24
|
+
return OperationDefinitionFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function OperationDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'type': OperationTypeFromJSON(json['type']),
|
|
32
|
+
'options': json['options'] == null ? undefined : json['options'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function OperationDefinitionToJSON(json) {
|
|
36
|
+
return OperationDefinitionToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function OperationDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'type': OperationTypeToJSON(value['type']),
|
|
44
|
+
'options': value['options'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 OperationDownload
|
|
16
|
+
*/
|
|
17
|
+
export interface OperationDownload {
|
|
18
|
+
/**
|
|
19
|
+
* Operation type that produced this file
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OperationDownload
|
|
22
|
+
*/
|
|
23
|
+
operation: string;
|
|
24
|
+
/**
|
|
25
|
+
* UUID v7 format identifier (time-ordered)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof OperationDownload
|
|
28
|
+
*/
|
|
29
|
+
operationId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Output filename
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OperationDownload
|
|
34
|
+
*/
|
|
35
|
+
filename: string;
|
|
36
|
+
/**
|
|
37
|
+
* Output file size in bytes
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof OperationDownload
|
|
40
|
+
*/
|
|
41
|
+
sizeBytes: number;
|
|
42
|
+
/**
|
|
43
|
+
* Pre-signed download URL
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof OperationDownload
|
|
46
|
+
*/
|
|
47
|
+
downloadUrl: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the OperationDownload interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfOperationDownload(value: object): value is OperationDownload;
|
|
53
|
+
export declare function OperationDownloadFromJSON(json: any): OperationDownload;
|
|
54
|
+
export declare function OperationDownloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationDownload;
|
|
55
|
+
export declare function OperationDownloadToJSON(json: any): OperationDownload;
|
|
56
|
+
export declare function OperationDownloadToJSONTyped(value?: OperationDownload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,77 +2,39 @@
|
|
|
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 OperationDownload
|
|
20
|
-
*/
|
|
21
|
-
export interface OperationDownload {
|
|
22
|
-
/**
|
|
23
|
-
* Operation type that produced this file
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof OperationDownload
|
|
26
|
-
*/
|
|
27
|
-
operation: string;
|
|
28
|
-
/**
|
|
29
|
-
* UUID v7 format identifier (time-ordered)
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof OperationDownload
|
|
32
|
-
*/
|
|
33
|
-
operationId: string;
|
|
34
|
-
/**
|
|
35
|
-
* Output filename
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof OperationDownload
|
|
38
|
-
*/
|
|
39
|
-
filename: string;
|
|
40
|
-
/**
|
|
41
|
-
* Output file size in bytes
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof OperationDownload
|
|
44
|
-
*/
|
|
45
|
-
sizeBytes: number;
|
|
46
|
-
/**
|
|
47
|
-
* Pre-signed download URL
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof OperationDownload
|
|
50
|
-
*/
|
|
51
|
-
downloadUrl: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
14
|
/**
|
|
55
15
|
* Check if a given object implements the OperationDownload interface.
|
|
56
16
|
*/
|
|
57
|
-
export function instanceOfOperationDownload(value
|
|
58
|
-
if (!('operation' in value) || value['operation'] === undefined)
|
|
59
|
-
|
|
60
|
-
if (!('
|
|
61
|
-
|
|
62
|
-
if (!('
|
|
17
|
+
export function instanceOfOperationDownload(value) {
|
|
18
|
+
if (!('operation' in value) || value['operation'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('operationId' in value) || value['operationId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('downloadUrl' in value) || value['downloadUrl'] === undefined)
|
|
27
|
+
return false;
|
|
63
28
|
return true;
|
|
64
29
|
}
|
|
65
|
-
|
|
66
|
-
export function OperationDownloadFromJSON(json: any): OperationDownload {
|
|
30
|
+
export function OperationDownloadFromJSON(json) {
|
|
67
31
|
return OperationDownloadFromJSONTyped(json, false);
|
|
68
32
|
}
|
|
69
|
-
|
|
70
|
-
export function OperationDownloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationDownload {
|
|
33
|
+
export function OperationDownloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
34
|
if (json == null) {
|
|
72
35
|
return json;
|
|
73
36
|
}
|
|
74
37
|
return {
|
|
75
|
-
|
|
76
38
|
'operation': json['operation'],
|
|
77
39
|
'operationId': json['operation_id'],
|
|
78
40
|
'filename': json['filename'],
|
|
@@ -80,18 +42,14 @@ export function OperationDownloadFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
80
42
|
'downloadUrl': json['download_url'],
|
|
81
43
|
};
|
|
82
44
|
}
|
|
83
|
-
|
|
84
|
-
export function OperationDownloadToJSON(json: any): OperationDownload {
|
|
45
|
+
export function OperationDownloadToJSON(json) {
|
|
85
46
|
return OperationDownloadToJSONTyped(json, false);
|
|
86
47
|
}
|
|
87
|
-
|
|
88
|
-
export function OperationDownloadToJSONTyped(value?: OperationDownload | null, ignoreDiscriminator: boolean = false): any {
|
|
48
|
+
export function OperationDownloadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
89
49
|
if (value == null) {
|
|
90
50
|
return value;
|
|
91
51
|
}
|
|
92
|
-
|
|
93
52
|
return {
|
|
94
|
-
|
|
95
53
|
'operation': value['operation'],
|
|
96
54
|
'operation_id': value['operationId'],
|
|
97
55
|
'filename': value['filename'],
|
|
@@ -99,4 +57,3 @@ export function OperationDownloadToJSONTyped(value?: OperationDownload | null, i
|
|
|
99
57
|
'download_url': value['downloadUrl'],
|
|
100
58
|
};
|
|
101
59
|
}
|
|
102
|
-
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
* Whether the operation accepts a single file or multiple files:
|
|
14
|
+
* - single: One input file (compress, thumbnail, watermark, convert)
|
|
15
|
+
* - multi: Multiple input files (merge, archive)
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const OperationInputModel: {
|
|
20
|
+
readonly single: "single";
|
|
21
|
+
readonly multi: "multi";
|
|
22
|
+
};
|
|
23
|
+
export type OperationInputModel = typeof OperationInputModel[keyof typeof OperationInputModel];
|
|
24
|
+
export declare function instanceOfOperationInputModel(value: any): boolean;
|
|
25
|
+
export declare function OperationInputModelFromJSON(json: any): OperationInputModel;
|
|
26
|
+
export declare function OperationInputModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationInputModel;
|
|
27
|
+
export declare function OperationInputModelToJSON(value?: OperationInputModel | null): any;
|
|
28
|
+
export declare function OperationInputModelToJSONTyped(value: any, ignoreDiscriminator: boolean): OperationInputModel;
|