@giveitsmaller/contracts 0.1.0 → 0.1.1
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,70 @@
|
|
|
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
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SseOperationFailedDataStatusEnum = {
|
|
19
|
+
failed: 'failed'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SseOperationFailedData interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfSseOperationFailedData(value) {
|
|
25
|
+
if (!('jobRef' in value) || value['jobRef'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('operationId' in value) || value['operationId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('errorCode' in value) || value['errorCode'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('errorMessage' in value) || value['errorMessage'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function SseOperationFailedDataFromJSON(json) {
|
|
40
|
+
return SseOperationFailedDataFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function SseOperationFailedDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'jobRef': json['job_ref'],
|
|
48
|
+
'operationId': json['operation_id'],
|
|
49
|
+
'type': OperationTypeFromJSON(json['type']),
|
|
50
|
+
'status': json['status'],
|
|
51
|
+
'errorCode': json['error_code'],
|
|
52
|
+
'errorMessage': json['error_message'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export function SseOperationFailedDataToJSON(json) {
|
|
56
|
+
return SseOperationFailedDataToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
export function SseOperationFailedDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'job_ref': value['jobRef'],
|
|
64
|
+
'operation_id': value['operationId'],
|
|
65
|
+
'type': OperationTypeToJSON(value['type']),
|
|
66
|
+
'status': value['status'],
|
|
67
|
+
'error_code': value['errorCode'],
|
|
68
|
+
'error_message': value['errorMessage'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OperationType } from './OperationType.js';
|
|
13
|
+
/**
|
|
14
|
+
* Payload for `operation.progress` events
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SseOperationProgressData
|
|
17
|
+
*/
|
|
18
|
+
export interface SseOperationProgressData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof SseOperationProgressData
|
|
23
|
+
*/
|
|
24
|
+
jobRef: string;
|
|
25
|
+
/**
|
|
26
|
+
* UUID v7 format identifier (time-ordered)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SseOperationProgressData
|
|
29
|
+
*/
|
|
30
|
+
operationId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {OperationType}
|
|
34
|
+
* @memberof SseOperationProgressData
|
|
35
|
+
*/
|
|
36
|
+
type: OperationType;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof SseOperationProgressData
|
|
41
|
+
*/
|
|
42
|
+
progress: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the SseOperationProgressData interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfSseOperationProgressData(value: object): value is SseOperationProgressData;
|
|
48
|
+
export declare function SseOperationProgressDataFromJSON(json: any): SseOperationProgressData;
|
|
49
|
+
export declare function SseOperationProgressDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SseOperationProgressData;
|
|
50
|
+
export declare function SseOperationProgressDataToJSON(json: any): SseOperationProgressData;
|
|
51
|
+
export declare function SseOperationProgressDataToJSONTyped(value?: SseOperationProgressData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,102 +2,55 @@
|
|
|
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 { OperationType } from './OperationType';
|
|
17
|
-
import {
|
|
18
|
-
OperationTypeFromJSON,
|
|
19
|
-
OperationTypeFromJSONTyped,
|
|
20
|
-
OperationTypeToJSON,
|
|
21
|
-
OperationTypeToJSONTyped,
|
|
22
|
-
} from './OperationType';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Payload for `operation.progress` events
|
|
26
|
-
* @export
|
|
27
|
-
* @interface SseOperationProgressData
|
|
28
|
-
*/
|
|
29
|
-
export interface SseOperationProgressData {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SseOperationProgressData
|
|
34
|
-
*/
|
|
35
|
-
jobRef: string;
|
|
36
|
-
/**
|
|
37
|
-
* UUID v7 format identifier (time-ordered)
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SseOperationProgressData
|
|
40
|
-
*/
|
|
41
|
-
operationId: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {OperationType}
|
|
45
|
-
* @memberof SseOperationProgressData
|
|
46
|
-
*/
|
|
47
|
-
type: OperationType;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof SseOperationProgressData
|
|
52
|
-
*/
|
|
53
|
-
progress: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
14
|
+
import { OperationTypeFromJSON, OperationTypeToJSON, } from './OperationType.js';
|
|
58
15
|
/**
|
|
59
16
|
* Check if a given object implements the SseOperationProgressData interface.
|
|
60
17
|
*/
|
|
61
|
-
export function instanceOfSseOperationProgressData(value
|
|
62
|
-
if (!('jobRef' in value) || value['jobRef'] === undefined)
|
|
63
|
-
|
|
64
|
-
if (!('
|
|
65
|
-
|
|
18
|
+
export function instanceOfSseOperationProgressData(value) {
|
|
19
|
+
if (!('jobRef' in value) || value['jobRef'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('operationId' in value) || value['operationId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('progress' in value) || value['progress'] === undefined)
|
|
26
|
+
return false;
|
|
66
27
|
return true;
|
|
67
28
|
}
|
|
68
|
-
|
|
69
|
-
export function SseOperationProgressDataFromJSON(json: any): SseOperationProgressData {
|
|
29
|
+
export function SseOperationProgressDataFromJSON(json) {
|
|
70
30
|
return SseOperationProgressDataFromJSONTyped(json, false);
|
|
71
31
|
}
|
|
72
|
-
|
|
73
|
-
export function SseOperationProgressDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SseOperationProgressData {
|
|
32
|
+
export function SseOperationProgressDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
33
|
if (json == null) {
|
|
75
34
|
return json;
|
|
76
35
|
}
|
|
77
36
|
return {
|
|
78
|
-
|
|
79
37
|
'jobRef': json['job_ref'],
|
|
80
38
|
'operationId': json['operation_id'],
|
|
81
39
|
'type': OperationTypeFromJSON(json['type']),
|
|
82
40
|
'progress': json['progress'],
|
|
83
41
|
};
|
|
84
42
|
}
|
|
85
|
-
|
|
86
|
-
export function SseOperationProgressDataToJSON(json: any): SseOperationProgressData {
|
|
43
|
+
export function SseOperationProgressDataToJSON(json) {
|
|
87
44
|
return SseOperationProgressDataToJSONTyped(json, false);
|
|
88
45
|
}
|
|
89
|
-
|
|
90
|
-
export function SseOperationProgressDataToJSONTyped(value?: SseOperationProgressData | null, ignoreDiscriminator: boolean = false): any {
|
|
46
|
+
export function SseOperationProgressDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
91
47
|
if (value == null) {
|
|
92
48
|
return value;
|
|
93
49
|
}
|
|
94
|
-
|
|
95
50
|
return {
|
|
96
|
-
|
|
97
51
|
'job_ref': value['jobRef'],
|
|
98
52
|
'operation_id': value['operationId'],
|
|
99
53
|
'type': OperationTypeToJSON(value['type']),
|
|
100
54
|
'progress': value['progress'],
|
|
101
55
|
};
|
|
102
56
|
}
|
|
103
|
-
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
* Payload for workflow terminal events
|
|
14
|
+
* (workflow.completed, workflow.failed, workflow.partially_failed)
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SseWorkflowTerminalData
|
|
18
|
+
*/
|
|
19
|
+
export interface SseWorkflowTerminalData {
|
|
20
|
+
/**
|
|
21
|
+
* UUID v7 format identifier (time-ordered)
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SseWorkflowTerminalData
|
|
24
|
+
*/
|
|
25
|
+
workflowId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SseWorkflowTerminalData
|
|
30
|
+
*/
|
|
31
|
+
status: SseWorkflowTerminalDataStatusEnum;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export declare const SseWorkflowTerminalDataStatusEnum: {
|
|
37
|
+
readonly completed: "completed";
|
|
38
|
+
readonly failed: "failed";
|
|
39
|
+
readonly partially_failed: "partially_failed";
|
|
40
|
+
};
|
|
41
|
+
export type SseWorkflowTerminalDataStatusEnum = typeof SseWorkflowTerminalDataStatusEnum[keyof typeof SseWorkflowTerminalDataStatusEnum];
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SseWorkflowTerminalData interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfSseWorkflowTerminalData(value: object): value is SseWorkflowTerminalData;
|
|
46
|
+
export declare function SseWorkflowTerminalDataFromJSON(json: any): SseWorkflowTerminalData;
|
|
47
|
+
export declare function SseWorkflowTerminalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SseWorkflowTerminalData;
|
|
48
|
+
export declare function SseWorkflowTerminalDataToJSON(json: any): SseWorkflowTerminalData;
|
|
49
|
+
export declare function SseWorkflowTerminalDataToJSONTyped(value?: SseWorkflowTerminalData | null, ignoreDiscriminator?: boolean): any;
|
package/{openapi/models/SseWorkflowTerminalData.ts → dist/openapi/models/SseWorkflowTerminalData.js}
RENAMED
|
@@ -2,40 +2,15 @@
|
|
|
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
|
-
* Payload for workflow terminal events
|
|
18
|
-
* (workflow.completed, workflow.failed, workflow.partially_failed)
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface SseWorkflowTerminalData
|
|
22
|
-
*/
|
|
23
|
-
export interface SseWorkflowTerminalData {
|
|
24
|
-
/**
|
|
25
|
-
* UUID v7 format identifier (time-ordered)
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SseWorkflowTerminalData
|
|
28
|
-
*/
|
|
29
|
-
workflowId: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SseWorkflowTerminalData
|
|
34
|
-
*/
|
|
35
|
-
status: SseWorkflowTerminalDataStatusEnum;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
14
|
/**
|
|
40
15
|
* @export
|
|
41
16
|
*/
|
|
@@ -43,47 +18,38 @@ export const SseWorkflowTerminalDataStatusEnum = {
|
|
|
43
18
|
completed: 'completed',
|
|
44
19
|
failed: 'failed',
|
|
45
20
|
partially_failed: 'partially_failed'
|
|
46
|
-
}
|
|
47
|
-
export type SseWorkflowTerminalDataStatusEnum = typeof SseWorkflowTerminalDataStatusEnum[keyof typeof SseWorkflowTerminalDataStatusEnum];
|
|
48
|
-
|
|
49
|
-
|
|
21
|
+
};
|
|
50
22
|
/**
|
|
51
23
|
* Check if a given object implements the SseWorkflowTerminalData interface.
|
|
52
24
|
*/
|
|
53
|
-
export function instanceOfSseWorkflowTerminalData(value
|
|
54
|
-
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
55
|
-
|
|
25
|
+
export function instanceOfSseWorkflowTerminalData(value) {
|
|
26
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
29
|
+
return false;
|
|
56
30
|
return true;
|
|
57
31
|
}
|
|
58
|
-
|
|
59
|
-
export function SseWorkflowTerminalDataFromJSON(json: any): SseWorkflowTerminalData {
|
|
32
|
+
export function SseWorkflowTerminalDataFromJSON(json) {
|
|
60
33
|
return SseWorkflowTerminalDataFromJSONTyped(json, false);
|
|
61
34
|
}
|
|
62
|
-
|
|
63
|
-
export function SseWorkflowTerminalDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SseWorkflowTerminalData {
|
|
35
|
+
export function SseWorkflowTerminalDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
36
|
if (json == null) {
|
|
65
37
|
return json;
|
|
66
38
|
}
|
|
67
39
|
return {
|
|
68
|
-
|
|
69
40
|
'workflowId': json['workflow_id'],
|
|
70
41
|
'status': json['status'],
|
|
71
42
|
};
|
|
72
43
|
}
|
|
73
|
-
|
|
74
|
-
export function SseWorkflowTerminalDataToJSON(json: any): SseWorkflowTerminalData {
|
|
44
|
+
export function SseWorkflowTerminalDataToJSON(json) {
|
|
75
45
|
return SseWorkflowTerminalDataToJSONTyped(json, false);
|
|
76
46
|
}
|
|
77
|
-
|
|
78
|
-
export function SseWorkflowTerminalDataToJSONTyped(value?: SseWorkflowTerminalData | null, ignoreDiscriminator: boolean = false): any {
|
|
47
|
+
export function SseWorkflowTerminalDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
79
48
|
if (value == null) {
|
|
80
49
|
return value;
|
|
81
50
|
}
|
|
82
|
-
|
|
83
51
|
return {
|
|
84
|
-
|
|
85
52
|
'workflow_id': value['workflowId'],
|
|
86
53
|
'status': value['status'],
|
|
87
54
|
};
|
|
88
55
|
}
|
|
89
|
-
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Upload result data (same shape for single and multipart complete)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UploadResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface UploadResponse {
|
|
18
|
+
/**
|
|
19
|
+
* UUID v7 format identifier (time-ordered)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UploadResponse
|
|
22
|
+
*/
|
|
23
|
+
fileId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Original filename
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UploadResponse
|
|
28
|
+
*/
|
|
29
|
+
originalName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Detected MIME type
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UploadResponse
|
|
34
|
+
*/
|
|
35
|
+
mimeType: string;
|
|
36
|
+
/**
|
|
37
|
+
* File size in bytes
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UploadResponse
|
|
40
|
+
*/
|
|
41
|
+
sizeBytes: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the UploadResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfUploadResponse(value: object): value is UploadResponse;
|
|
47
|
+
export declare function UploadResponseFromJSON(json: any): UploadResponse;
|
|
48
|
+
export declare function UploadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadResponse;
|
|
49
|
+
export declare function UploadResponseToJSON(json: any): UploadResponse;
|
|
50
|
+
export declare function UploadResponseToJSONTyped(value?: UploadResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,92 +2,54 @@
|
|
|
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
|
-
* Upload result data (same shape for single and multipart complete)
|
|
18
|
-
* @export
|
|
19
|
-
* @interface UploadResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface UploadResponse {
|
|
22
|
-
/**
|
|
23
|
-
* UUID v7 format identifier (time-ordered)
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof UploadResponse
|
|
26
|
-
*/
|
|
27
|
-
fileId: string;
|
|
28
|
-
/**
|
|
29
|
-
* Original filename
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UploadResponse
|
|
32
|
-
*/
|
|
33
|
-
originalName: string;
|
|
34
|
-
/**
|
|
35
|
-
* Detected MIME type
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UploadResponse
|
|
38
|
-
*/
|
|
39
|
-
mimeType: string;
|
|
40
|
-
/**
|
|
41
|
-
* File size in bytes
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof UploadResponse
|
|
44
|
-
*/
|
|
45
|
-
sizeBytes: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
14
|
/**
|
|
49
15
|
* Check if a given object implements the UploadResponse interface.
|
|
50
16
|
*/
|
|
51
|
-
export function instanceOfUploadResponse(value
|
|
52
|
-
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
53
|
-
|
|
54
|
-
if (!('
|
|
55
|
-
|
|
17
|
+
export function instanceOfUploadResponse(value) {
|
|
18
|
+
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('originalName' in value) || value['originalName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
25
|
+
return false;
|
|
56
26
|
return true;
|
|
57
27
|
}
|
|
58
|
-
|
|
59
|
-
export function UploadResponseFromJSON(json: any): UploadResponse {
|
|
28
|
+
export function UploadResponseFromJSON(json) {
|
|
60
29
|
return UploadResponseFromJSONTyped(json, false);
|
|
61
30
|
}
|
|
62
|
-
|
|
63
|
-
export function UploadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadResponse {
|
|
31
|
+
export function UploadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
32
|
if (json == null) {
|
|
65
33
|
return json;
|
|
66
34
|
}
|
|
67
35
|
return {
|
|
68
|
-
|
|
69
36
|
'fileId': json['file_id'],
|
|
70
37
|
'originalName': json['original_name'],
|
|
71
38
|
'mimeType': json['mime_type'],
|
|
72
39
|
'sizeBytes': json['size_bytes'],
|
|
73
40
|
};
|
|
74
41
|
}
|
|
75
|
-
|
|
76
|
-
export function UploadResponseToJSON(json: any): UploadResponse {
|
|
42
|
+
export function UploadResponseToJSON(json) {
|
|
77
43
|
return UploadResponseToJSONTyped(json, false);
|
|
78
44
|
}
|
|
79
|
-
|
|
80
|
-
export function UploadResponseToJSONTyped(value?: UploadResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
45
|
+
export function UploadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
81
46
|
if (value == null) {
|
|
82
47
|
return value;
|
|
83
48
|
}
|
|
84
|
-
|
|
85
49
|
return {
|
|
86
|
-
|
|
87
50
|
'file_id': value['fileId'],
|
|
88
51
|
'original_name': value['originalName'],
|
|
89
52
|
'mime_type': value['mimeType'],
|
|
90
53
|
'size_bytes': value['sizeBytes'],
|
|
91
54
|
};
|
|
92
55
|
}
|
|
93
|
-
|
|
@@ -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 { UploadResponse } from './UploadResponse.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UploadSuccessEnvelope
|
|
17
|
+
*/
|
|
18
|
+
export interface UploadSuccessEnvelope {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof UploadSuccessEnvelope
|
|
23
|
+
*/
|
|
24
|
+
success: UploadSuccessEnvelopeSuccessEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {UploadResponse}
|
|
28
|
+
* @memberof UploadSuccessEnvelope
|
|
29
|
+
*/
|
|
30
|
+
data: UploadResponse;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const UploadSuccessEnvelopeSuccessEnum: {
|
|
36
|
+
readonly true: true;
|
|
37
|
+
};
|
|
38
|
+
export type UploadSuccessEnvelopeSuccessEnum = typeof UploadSuccessEnvelopeSuccessEnum[keyof typeof UploadSuccessEnvelopeSuccessEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the UploadSuccessEnvelope interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfUploadSuccessEnvelope(value: object): value is UploadSuccessEnvelope;
|
|
43
|
+
export declare function UploadSuccessEnvelopeFromJSON(json: any): UploadSuccessEnvelope;
|
|
44
|
+
export declare function UploadSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadSuccessEnvelope;
|
|
45
|
+
export declare function UploadSuccessEnvelopeToJSON(json: any): UploadSuccessEnvelope;
|
|
46
|
+
export declare function UploadSuccessEnvelopeToJSONTyped(value?: UploadSuccessEnvelope | null, ignoreDiscriminator?: boolean): any;
|