@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
|
@@ -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 { WorkflowDownloadResponse } from './WorkflowDownloadResponse';
|
|
17
|
-
import {
|
|
18
|
-
WorkflowDownloadResponseFromJSON,
|
|
19
|
-
WorkflowDownloadResponseFromJSONTyped,
|
|
20
|
-
WorkflowDownloadResponseToJSON,
|
|
21
|
-
WorkflowDownloadResponseToJSONTyped,
|
|
22
|
-
} from './WorkflowDownloadResponse';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface WorkflowDownloadSuccessEnvelope
|
|
28
|
-
*/
|
|
29
|
-
export interface WorkflowDownloadSuccessEnvelope {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof WorkflowDownloadSuccessEnvelope
|
|
34
|
-
*/
|
|
35
|
-
success: WorkflowDownloadSuccessEnvelopeSuccessEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {WorkflowDownloadResponse}
|
|
39
|
-
* @memberof WorkflowDownloadSuccessEnvelope
|
|
40
|
-
*/
|
|
41
|
-
data: WorkflowDownloadResponse;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
import { WorkflowDownloadResponseFromJSON, WorkflowDownloadResponseToJSON, } from './WorkflowDownloadResponse.js';
|
|
45
15
|
/**
|
|
46
16
|
* @export
|
|
47
17
|
*/
|
|
48
18
|
export const WorkflowDownloadSuccessEnvelopeSuccessEnum = {
|
|
49
19
|
true: true
|
|
50
|
-
}
|
|
51
|
-
export type WorkflowDownloadSuccessEnvelopeSuccessEnum = typeof WorkflowDownloadSuccessEnvelopeSuccessEnum[keyof typeof WorkflowDownloadSuccessEnvelopeSuccessEnum];
|
|
52
|
-
|
|
53
|
-
|
|
20
|
+
};
|
|
54
21
|
/**
|
|
55
22
|
* Check if a given object implements the WorkflowDownloadSuccessEnvelope interface.
|
|
56
23
|
*/
|
|
57
|
-
export function instanceOfWorkflowDownloadSuccessEnvelope(value
|
|
58
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
59
|
-
|
|
24
|
+
export function instanceOfWorkflowDownloadSuccessEnvelope(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 WorkflowDownloadSuccessEnvelopeFromJSON(json: any): WorkflowDownloadSuccessEnvelope {
|
|
31
|
+
export function WorkflowDownloadSuccessEnvelopeFromJSON(json) {
|
|
64
32
|
return WorkflowDownloadSuccessEnvelopeFromJSONTyped(json, false);
|
|
65
33
|
}
|
|
66
|
-
|
|
67
|
-
export function WorkflowDownloadSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDownloadSuccessEnvelope {
|
|
34
|
+
export function WorkflowDownloadSuccessEnvelopeFromJSONTyped(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': WorkflowDownloadResponseFromJSON(json['data']),
|
|
75
41
|
};
|
|
76
42
|
}
|
|
77
|
-
|
|
78
|
-
export function WorkflowDownloadSuccessEnvelopeToJSON(json: any): WorkflowDownloadSuccessEnvelope {
|
|
43
|
+
export function WorkflowDownloadSuccessEnvelopeToJSON(json) {
|
|
79
44
|
return WorkflowDownloadSuccessEnvelopeToJSONTyped(json, false);
|
|
80
45
|
}
|
|
81
|
-
|
|
82
|
-
export function WorkflowDownloadSuccessEnvelopeToJSONTyped(value?: WorkflowDownloadSuccessEnvelope | null, ignoreDiscriminator: boolean = false): any {
|
|
46
|
+
export function WorkflowDownloadSuccessEnvelopeToJSONTyped(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': WorkflowDownloadResponseToJSON(value['data']),
|
|
91
53
|
};
|
|
92
54
|
}
|
|
93
|
-
|
|
@@ -1,22 +1,18 @@
|
|
|
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
12
|
/**
|
|
17
13
|
* Directed edge in the workflow DAG. Defines that the downstream job
|
|
18
14
|
* depends on the upstream job completing successfully.
|
|
19
|
-
*
|
|
15
|
+
*
|
|
20
16
|
* @export
|
|
21
17
|
* @interface WorkflowEdge
|
|
22
18
|
*/
|
|
@@ -34,44 +30,11 @@ export interface WorkflowEdge {
|
|
|
34
30
|
*/
|
|
35
31
|
to: string;
|
|
36
32
|
}
|
|
37
|
-
|
|
38
33
|
/**
|
|
39
34
|
* Check if a given object implements the WorkflowEdge interface.
|
|
40
35
|
*/
|
|
41
|
-
export function instanceOfWorkflowEdge(value: object): value is WorkflowEdge
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
export function WorkflowEdgeFromJSON(json: any): WorkflowEdge {
|
|
48
|
-
return WorkflowEdgeFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function WorkflowEdgeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowEdge {
|
|
52
|
-
if (json == null) {
|
|
53
|
-
return json;
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
|
|
57
|
-
'from': json['from'],
|
|
58
|
-
'to': json['to'],
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function WorkflowEdgeToJSON(json: any): WorkflowEdge {
|
|
63
|
-
return WorkflowEdgeToJSONTyped(json, false);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function WorkflowEdgeToJSONTyped(value?: WorkflowEdge | null, ignoreDiscriminator: boolean = false): any {
|
|
67
|
-
if (value == null) {
|
|
68
|
-
return value;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return {
|
|
72
|
-
|
|
73
|
-
'from': value['from'],
|
|
74
|
-
'to': value['to'],
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
|
|
36
|
+
export declare function instanceOfWorkflowEdge(value: object): value is WorkflowEdge;
|
|
37
|
+
export declare function WorkflowEdgeFromJSON(json: any): WorkflowEdge;
|
|
38
|
+
export declare function WorkflowEdgeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowEdge;
|
|
39
|
+
export declare function WorkflowEdgeToJSON(json: any): WorkflowEdge;
|
|
40
|
+
export declare function WorkflowEdgeToJSONTyped(value?: WorkflowEdge | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GISL Compression API
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the WorkflowEdge interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfWorkflowEdge(value) {
|
|
18
|
+
if (!('from' in value) || value['from'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('to' in value) || value['to'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function WorkflowEdgeFromJSON(json) {
|
|
25
|
+
return WorkflowEdgeFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function WorkflowEdgeFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'from': json['from'],
|
|
33
|
+
'to': json['to'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function WorkflowEdgeToJSON(json) {
|
|
37
|
+
return WorkflowEdgeToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function WorkflowEdgeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'from': value['from'],
|
|
45
|
+
'to': value['to'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
* Workflow lifecycle status:
|
|
14
|
+
* - pending: Created but no jobs have started
|
|
15
|
+
* - in_progress: At least one job is running
|
|
16
|
+
* - completed: All jobs completed successfully
|
|
17
|
+
* - failed: All jobs finished, at least one failed, none succeeded
|
|
18
|
+
* - partially_failed: Some jobs succeeded, some failed
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const WorkflowStatus: {
|
|
23
|
+
readonly pending: "pending";
|
|
24
|
+
readonly in_progress: "in_progress";
|
|
25
|
+
readonly completed: "completed";
|
|
26
|
+
readonly failed: "failed";
|
|
27
|
+
readonly partially_failed: "partially_failed";
|
|
28
|
+
};
|
|
29
|
+
export type WorkflowStatus = typeof WorkflowStatus[keyof typeof WorkflowStatus];
|
|
30
|
+
export declare function instanceOfWorkflowStatus(value: any): boolean;
|
|
31
|
+
export declare function WorkflowStatusFromJSON(json: any): WorkflowStatus;
|
|
32
|
+
export declare function WorkflowStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowStatus;
|
|
33
|
+
export declare function WorkflowStatusToJSON(value?: WorkflowStatus | null): any;
|
|
34
|
+
export declare function WorkflowStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowStatus;
|
|
@@ -2,17 +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
|
-
|
|
16
14
|
/**
|
|
17
15
|
* Workflow lifecycle status:
|
|
18
16
|
* - pending: Created but no jobs have started
|
|
@@ -20,7 +18,7 @@
|
|
|
20
18
|
* - completed: All jobs completed successfully
|
|
21
19
|
* - failed: All jobs finished, at least one failed, none succeeded
|
|
22
20
|
* - partially_failed: Some jobs succeeded, some failed
|
|
23
|
-
*
|
|
21
|
+
*
|
|
24
22
|
* @export
|
|
25
23
|
*/
|
|
26
24
|
export const WorkflowStatus = {
|
|
@@ -29,34 +27,26 @@ export const WorkflowStatus = {
|
|
|
29
27
|
completed: 'completed',
|
|
30
28
|
failed: 'failed',
|
|
31
29
|
partially_failed: 'partially_failed'
|
|
32
|
-
}
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export function instanceOfWorkflowStatus(value: any): boolean {
|
|
30
|
+
};
|
|
31
|
+
export function instanceOfWorkflowStatus(value) {
|
|
37
32
|
for (const key in WorkflowStatus) {
|
|
38
33
|
if (Object.prototype.hasOwnProperty.call(WorkflowStatus, key)) {
|
|
39
|
-
if (WorkflowStatus[key
|
|
34
|
+
if (WorkflowStatus[key] === value) {
|
|
40
35
|
return true;
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
return false;
|
|
45
40
|
}
|
|
46
|
-
|
|
47
|
-
export function WorkflowStatusFromJSON(json: any): WorkflowStatus {
|
|
41
|
+
export function WorkflowStatusFromJSON(json) {
|
|
48
42
|
return WorkflowStatusFromJSONTyped(json, false);
|
|
49
43
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return json as WorkflowStatus;
|
|
44
|
+
export function WorkflowStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
53
46
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return value as any;
|
|
47
|
+
export function WorkflowStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
57
49
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return value as WorkflowStatus;
|
|
50
|
+
export function WorkflowStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
61
52
|
}
|
|
62
|
-
|
|
@@ -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 { JobResponse } from './JobResponse.js';
|
|
13
|
+
import type { WorkflowStatus } from './WorkflowStatus.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WorkflowStatusResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface WorkflowStatusResponse {
|
|
20
|
+
/**
|
|
21
|
+
* UUID v7 format identifier (time-ordered)
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof WorkflowStatusResponse
|
|
24
|
+
*/
|
|
25
|
+
workflowId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {WorkflowStatus}
|
|
29
|
+
* @memberof WorkflowStatusResponse
|
|
30
|
+
*/
|
|
31
|
+
status: WorkflowStatus;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<JobResponse>}
|
|
35
|
+
* @memberof WorkflowStatusResponse
|
|
36
|
+
*/
|
|
37
|
+
jobs: Array<JobResponse>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the WorkflowStatusResponse interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfWorkflowStatusResponse(value: object): value is WorkflowStatusResponse;
|
|
43
|
+
export declare function WorkflowStatusResponseFromJSON(json: any): WorkflowStatusResponse;
|
|
44
|
+
export declare function WorkflowStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowStatusResponse;
|
|
45
|
+
export declare function WorkflowStatusResponseToJSON(json: any): WorkflowStatusResponse;
|
|
46
|
+
export declare function WorkflowStatusResponseToJSONTyped(value?: WorkflowStatusResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { JobResponseFromJSON, JobResponseToJSON, } from './JobResponse.js';
|
|
15
|
+
import { WorkflowStatusFromJSON, WorkflowStatusToJSON, } from './WorkflowStatus.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the WorkflowStatusResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfWorkflowStatusResponse(value) {
|
|
20
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('jobs' in value) || value['jobs'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function WorkflowStatusResponseFromJSON(json) {
|
|
29
|
+
return WorkflowStatusResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function WorkflowStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'workflowId': json['workflow_id'],
|
|
37
|
+
'status': WorkflowStatusFromJSON(json['status']),
|
|
38
|
+
'jobs': (json['jobs'].map(JobResponseFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function WorkflowStatusResponseToJSON(json) {
|
|
42
|
+
return WorkflowStatusResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function WorkflowStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'workflow_id': value['workflowId'],
|
|
50
|
+
'status': WorkflowStatusToJSON(value['status']),
|
|
51
|
+
'jobs': (value['jobs'].map(JobResponseToJSON)),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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 { WorkflowStatusResponse } from './WorkflowStatusResponse.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WorkflowStatusSuccessEnvelope
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkflowStatusSuccessEnvelope {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof WorkflowStatusSuccessEnvelope
|
|
23
|
+
*/
|
|
24
|
+
success: WorkflowStatusSuccessEnvelopeSuccessEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {WorkflowStatusResponse}
|
|
28
|
+
* @memberof WorkflowStatusSuccessEnvelope
|
|
29
|
+
*/
|
|
30
|
+
data: WorkflowStatusResponse;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const WorkflowStatusSuccessEnvelopeSuccessEnum: {
|
|
36
|
+
readonly true: true;
|
|
37
|
+
};
|
|
38
|
+
export type WorkflowStatusSuccessEnvelopeSuccessEnum = typeof WorkflowStatusSuccessEnvelopeSuccessEnum[keyof typeof WorkflowStatusSuccessEnvelopeSuccessEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the WorkflowStatusSuccessEnvelope interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfWorkflowStatusSuccessEnvelope(value: object): value is WorkflowStatusSuccessEnvelope;
|
|
43
|
+
export declare function WorkflowStatusSuccessEnvelopeFromJSON(json: any): WorkflowStatusSuccessEnvelope;
|
|
44
|
+
export declare function WorkflowStatusSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowStatusSuccessEnvelope;
|
|
45
|
+
export declare function WorkflowStatusSuccessEnvelopeToJSON(json: any): WorkflowStatusSuccessEnvelope;
|
|
46
|
+
export declare function WorkflowStatusSuccessEnvelopeToJSONTyped(value?: WorkflowStatusSuccessEnvelope | 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 { WorkflowStatusResponse } from './WorkflowStatusResponse';
|
|
17
|
-
import {
|
|
18
|
-
WorkflowStatusResponseFromJSON,
|
|
19
|
-
WorkflowStatusResponseFromJSONTyped,
|
|
20
|
-
WorkflowStatusResponseToJSON,
|
|
21
|
-
WorkflowStatusResponseToJSONTyped,
|
|
22
|
-
} from './WorkflowStatusResponse';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface WorkflowStatusSuccessEnvelope
|
|
28
|
-
*/
|
|
29
|
-
export interface WorkflowStatusSuccessEnvelope {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof WorkflowStatusSuccessEnvelope
|
|
34
|
-
*/
|
|
35
|
-
success: WorkflowStatusSuccessEnvelopeSuccessEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {WorkflowStatusResponse}
|
|
39
|
-
* @memberof WorkflowStatusSuccessEnvelope
|
|
40
|
-
*/
|
|
41
|
-
data: WorkflowStatusResponse;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
import { WorkflowStatusResponseFromJSON, WorkflowStatusResponseToJSON, } from './WorkflowStatusResponse.js';
|
|
45
15
|
/**
|
|
46
16
|
* @export
|
|
47
17
|
*/
|
|
48
18
|
export const WorkflowStatusSuccessEnvelopeSuccessEnum = {
|
|
49
19
|
true: true
|
|
50
|
-
}
|
|
51
|
-
export type WorkflowStatusSuccessEnvelopeSuccessEnum = typeof WorkflowStatusSuccessEnvelopeSuccessEnum[keyof typeof WorkflowStatusSuccessEnvelopeSuccessEnum];
|
|
52
|
-
|
|
53
|
-
|
|
20
|
+
};
|
|
54
21
|
/**
|
|
55
22
|
* Check if a given object implements the WorkflowStatusSuccessEnvelope interface.
|
|
56
23
|
*/
|
|
57
|
-
export function instanceOfWorkflowStatusSuccessEnvelope(value
|
|
58
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
59
|
-
|
|
24
|
+
export function instanceOfWorkflowStatusSuccessEnvelope(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 WorkflowStatusSuccessEnvelopeFromJSON(json: any): WorkflowStatusSuccessEnvelope {
|
|
31
|
+
export function WorkflowStatusSuccessEnvelopeFromJSON(json) {
|
|
64
32
|
return WorkflowStatusSuccessEnvelopeFromJSONTyped(json, false);
|
|
65
33
|
}
|
|
66
|
-
|
|
67
|
-
export function WorkflowStatusSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowStatusSuccessEnvelope {
|
|
34
|
+
export function WorkflowStatusSuccessEnvelopeFromJSONTyped(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': WorkflowStatusResponseFromJSON(json['data']),
|
|
75
41
|
};
|
|
76
42
|
}
|
|
77
|
-
|
|
78
|
-
export function WorkflowStatusSuccessEnvelopeToJSON(json: any): WorkflowStatusSuccessEnvelope {
|
|
43
|
+
export function WorkflowStatusSuccessEnvelopeToJSON(json) {
|
|
79
44
|
return WorkflowStatusSuccessEnvelopeToJSONTyped(json, false);
|
|
80
45
|
}
|
|
81
|
-
|
|
82
|
-
export function WorkflowStatusSuccessEnvelopeToJSONTyped(value?: WorkflowStatusSuccessEnvelope | null, ignoreDiscriminator: boolean = false): any {
|
|
46
|
+
export function WorkflowStatusSuccessEnvelopeToJSONTyped(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': WorkflowStatusResponseToJSON(value['data']),
|
|
91
53
|
};
|
|
92
54
|
}
|
|
93
|
-
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export * from './CallbackEventType.js';
|
|
2
|
+
export * from './ContactRequest.js';
|
|
3
|
+
export * from './ContactSubject.js';
|
|
4
|
+
export * from './ContactValidationErrorResponse.js';
|
|
5
|
+
export * from './ErrorEnvelope.js';
|
|
6
|
+
export * from './ExportConfig.js';
|
|
7
|
+
export * from './JobDefinition.js';
|
|
8
|
+
export * from './JobDownload.js';
|
|
9
|
+
export * from './JobInput.js';
|
|
10
|
+
export * from './JobResponse.js';
|
|
11
|
+
export * from './JobSource.js';
|
|
12
|
+
export * from './JobStatus.js';
|
|
13
|
+
export * from './JobType.js';
|
|
14
|
+
export * from './LivenessResponse.js';
|
|
15
|
+
export * from './MetadataResponse.js';
|
|
16
|
+
export * from './MetadataResponseDimensions.js';
|
|
17
|
+
export * from './MetadataResponseExif.js';
|
|
18
|
+
export * from './MetadataResponseExifGps.js';
|
|
19
|
+
export * from './MetadataSuccessEnvelope.js';
|
|
20
|
+
export * from './MimeGroupSchema.js';
|
|
21
|
+
export * from './MultipartCompleteRequest.js';
|
|
22
|
+
export * from './MultipartCompleteRequestPartsInner.js';
|
|
23
|
+
export * from './MultipartInitiateResponse.js';
|
|
24
|
+
export * from './MultipartInitiateSuccessEnvelope.js';
|
|
25
|
+
export * from './OperationDefinition.js';
|
|
26
|
+
export * from './OperationDownload.js';
|
|
27
|
+
export * from './OperationInputModel.js';
|
|
28
|
+
export * from './OperationResponse.js';
|
|
29
|
+
export * from './OperationResult.js';
|
|
30
|
+
export * from './OperationResultMetrics.js';
|
|
31
|
+
export * from './OperationSchemaDefinition.js';
|
|
32
|
+
export * from './OperationStatus.js';
|
|
33
|
+
export * from './OperationType.js';
|
|
34
|
+
export * from './OperationsSchemaResponse.js';
|
|
35
|
+
export * from './OptionSchema.js';
|
|
36
|
+
export * from './PresignedUrlPart.js';
|
|
37
|
+
export * from './ReadinessResponse.js';
|
|
38
|
+
export * from './ResponseEnvelope.js';
|
|
39
|
+
export * from './RetryResponse.js';
|
|
40
|
+
export * from './RetrySuccessEnvelope.js';
|
|
41
|
+
export * from './SseEventType.js';
|
|
42
|
+
export * from './SseJobCompletedData.js';
|
|
43
|
+
export * from './SseJobFailedData.js';
|
|
44
|
+
export * from './SseOperationCompletedData.js';
|
|
45
|
+
export * from './SseOperationFailedData.js';
|
|
46
|
+
export * from './SseOperationProgressData.js';
|
|
47
|
+
export * from './SseWorkflowTerminalData.js';
|
|
48
|
+
export * from './UploadResponse.js';
|
|
49
|
+
export * from './UploadSuccessEnvelope.js';
|
|
50
|
+
export * from './ValidationErrorEnvelope.js';
|
|
51
|
+
export * from './ValidationErrorEnvelopeDetailsInner.js';
|
|
52
|
+
export * from './WebhookOperationContext.js';
|
|
53
|
+
export * from './WebhookPayload.js';
|
|
54
|
+
export * from './WorkflowCreateRequest.js';
|
|
55
|
+
export * from './WorkflowCreateResponse.js';
|
|
56
|
+
export * from './WorkflowCreateSuccessEnvelope.js';
|
|
57
|
+
export * from './WorkflowDownloadResponse.js';
|
|
58
|
+
export * from './WorkflowDownloadSuccessEnvelope.js';
|
|
59
|
+
export * from './WorkflowEdge.js';
|
|
60
|
+
export * from './WorkflowStatus.js';
|
|
61
|
+
export * from './WorkflowStatusResponse.js';
|
|
62
|
+
export * from './WorkflowStatusSuccessEnvelope.js';
|