@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,52 @@
|
|
|
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 { OperationDownloadFromJSON, OperationDownloadToJSON, } from './OperationDownload.js';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the JobDownload interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfJobDownload(value) {
|
|
19
|
+
if (!('ref' in value) || value['ref'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('jobId' in value) || value['jobId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function JobDownloadFromJSON(json) {
|
|
28
|
+
return JobDownloadFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function JobDownloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'ref': json['ref'],
|
|
36
|
+
'jobId': json['job_id'],
|
|
37
|
+
'files': (json['files'].map(OperationDownloadFromJSON)),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function JobDownloadToJSON(json) {
|
|
41
|
+
return JobDownloadToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function JobDownloadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'ref': value['ref'],
|
|
49
|
+
'job_id': value['jobId'],
|
|
50
|
+
'files': (value['files'].map(OperationDownloadToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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
|
* Single input reference for multi-input operations. Each references a
|
|
18
14
|
* specific job and optionally a specific operation output from that job.
|
|
19
|
-
*
|
|
15
|
+
*
|
|
20
16
|
* @export
|
|
21
17
|
* @interface JobInput
|
|
22
18
|
*/
|
|
@@ -30,7 +26,7 @@ export interface JobInput {
|
|
|
30
26
|
/**
|
|
31
27
|
* Specific operation output to use. If omitted, uses the last
|
|
32
28
|
* operation's output.
|
|
33
|
-
*
|
|
29
|
+
*
|
|
34
30
|
* @type {string}
|
|
35
31
|
* @memberof JobInput
|
|
36
32
|
*/
|
|
@@ -39,51 +35,19 @@ export interface JobInput {
|
|
|
39
35
|
* Per-input option overrides. For merge operations, individual inputs
|
|
40
36
|
* can override global transition settings for the join point preceding
|
|
41
37
|
* this input. Keys are option names, values are the override values.
|
|
42
|
-
*
|
|
38
|
+
*
|
|
43
39
|
* @type {{ [key: string]: any; }}
|
|
44
40
|
* @memberof JobInput
|
|
45
41
|
*/
|
|
46
|
-
perInputOptions?: {
|
|
42
|
+
perInputOptions?: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
47
45
|
}
|
|
48
|
-
|
|
49
46
|
/**
|
|
50
47
|
* Check if a given object implements the JobInput interface.
|
|
51
48
|
*/
|
|
52
|
-
export function instanceOfJobInput(value: object): value is JobInput
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
export function JobInputFromJSON(json: any): JobInput {
|
|
58
|
-
return JobInputFromJSONTyped(json, false);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function JobInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobInput {
|
|
62
|
-
if (json == null) {
|
|
63
|
-
return json;
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
|
|
67
|
-
'ref': json['ref'],
|
|
68
|
-
'operation': json['operation'] == null ? undefined : json['operation'],
|
|
69
|
-
'perInputOptions': json['per_input_options'] == null ? undefined : json['per_input_options'],
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function JobInputToJSON(json: any): JobInput {
|
|
74
|
-
return JobInputToJSONTyped(json, false);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function JobInputToJSONTyped(value?: JobInput | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
-
if (value == null) {
|
|
79
|
-
return value;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return {
|
|
83
|
-
|
|
84
|
-
'ref': value['ref'],
|
|
85
|
-
'operation': value['operation'],
|
|
86
|
-
'per_input_options': value['perInputOptions'],
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|
|
49
|
+
export declare function instanceOfJobInput(value: object): value is JobInput;
|
|
50
|
+
export declare function JobInputFromJSON(json: any): JobInput;
|
|
51
|
+
export declare function JobInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobInput;
|
|
52
|
+
export declare function JobInputToJSON(json: any): JobInput;
|
|
53
|
+
export declare function JobInputToJSONTyped(value?: JobInput | 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 JobInput interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfJobInput(value) {
|
|
18
|
+
if (!('ref' in value) || value['ref'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function JobInputFromJSON(json) {
|
|
23
|
+
return JobInputFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function JobInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'ref': json['ref'],
|
|
31
|
+
'operation': json['operation'] == null ? undefined : json['operation'],
|
|
32
|
+
'perInputOptions': json['per_input_options'] == null ? undefined : json['per_input_options'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function JobInputToJSON(json) {
|
|
36
|
+
return JobInputToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function JobInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'ref': value['ref'],
|
|
44
|
+
'operation': value['operation'],
|
|
45
|
+
'per_input_options': value['perInputOptions'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { JobStatus } from './JobStatus.js';
|
|
13
|
+
import type { OperationResponse } from './OperationResponse.js';
|
|
14
|
+
/**
|
|
15
|
+
* Job status within a workflow response
|
|
16
|
+
* @export
|
|
17
|
+
* @interface JobResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface JobResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Job reference label
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof JobResponse
|
|
24
|
+
*/
|
|
25
|
+
ref: string;
|
|
26
|
+
/**
|
|
27
|
+
* UUID v7 format identifier (time-ordered)
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof JobResponse
|
|
30
|
+
*/
|
|
31
|
+
jobId: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {JobStatus}
|
|
35
|
+
* @memberof JobResponse
|
|
36
|
+
*/
|
|
37
|
+
status: JobStatus;
|
|
38
|
+
/**
|
|
39
|
+
* List of upstream job refs this job depends on
|
|
40
|
+
* @type {Array<string>}
|
|
41
|
+
* @memberof JobResponse
|
|
42
|
+
*/
|
|
43
|
+
dependsOn: Array<string>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<OperationResponse>}
|
|
47
|
+
* @memberof JobResponse
|
|
48
|
+
*/
|
|
49
|
+
operations: Array<OperationResponse>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the JobResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfJobResponse(value: object): value is JobResponse;
|
|
55
|
+
export declare function JobResponseFromJSON(json: any): JobResponse;
|
|
56
|
+
export declare function JobResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobResponse;
|
|
57
|
+
export declare function JobResponseToJSON(json: any): JobResponse;
|
|
58
|
+
export declare function JobResponseToJSONTyped(value?: JobResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { JobStatusFromJSON, JobStatusToJSON, } from './JobStatus.js';
|
|
15
|
+
import { OperationResponseFromJSON, OperationResponseToJSON, } from './OperationResponse.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the JobResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfJobResponse(value) {
|
|
20
|
+
if (!('ref' in value) || value['ref'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('jobId' in value) || value['jobId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('dependsOn' in value) || value['dependsOn'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('operations' in value) || value['operations'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function JobResponseFromJSON(json) {
|
|
33
|
+
return JobResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function JobResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'ref': json['ref'],
|
|
41
|
+
'jobId': json['job_id'],
|
|
42
|
+
'status': JobStatusFromJSON(json['status']),
|
|
43
|
+
'dependsOn': json['depends_on'],
|
|
44
|
+
'operations': (json['operations'].map(OperationResponseFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function JobResponseToJSON(json) {
|
|
48
|
+
return JobResponseToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
export function JobResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'ref': value['ref'],
|
|
56
|
+
'job_id': value['jobId'],
|
|
57
|
+
'status': JobStatusToJSON(value['status']),
|
|
58
|
+
'depends_on': value['dependsOn'],
|
|
59
|
+
'operations': (value['operations'].map(OperationResponseToJSON)),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -1,23 +1,19 @@
|
|
|
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
|
* Reference to another job's output for single-input downstream jobs.
|
|
18
14
|
* The input is the referenced job's output, resolved via the incoming
|
|
19
15
|
* workflow edge.
|
|
20
|
-
*
|
|
16
|
+
*
|
|
21
17
|
* @export
|
|
22
18
|
* @interface JobSource
|
|
23
19
|
*/
|
|
@@ -31,49 +27,17 @@ export interface JobSource {
|
|
|
31
27
|
/**
|
|
32
28
|
* Specific operation output to use from the upstream job.
|
|
33
29
|
* If omitted, uses the last operation's output.
|
|
34
|
-
*
|
|
30
|
+
*
|
|
35
31
|
* @type {string}
|
|
36
32
|
* @memberof JobSource
|
|
37
33
|
*/
|
|
38
34
|
operation?: string;
|
|
39
35
|
}
|
|
40
|
-
|
|
41
36
|
/**
|
|
42
37
|
* Check if a given object implements the JobSource interface.
|
|
43
38
|
*/
|
|
44
|
-
export function instanceOfJobSource(value: object): value is JobSource
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export function JobSourceFromJSON(json: any): JobSource {
|
|
50
|
-
return JobSourceFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function JobSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobSource {
|
|
54
|
-
if (json == null) {
|
|
55
|
-
return json;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
|
|
59
|
-
'ref': json['ref'],
|
|
60
|
-
'operation': json['operation'] == null ? undefined : json['operation'],
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function JobSourceToJSON(json: any): JobSource {
|
|
65
|
-
return JobSourceToJSONTyped(json, false);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function JobSourceToJSONTyped(value?: JobSource | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
-
if (value == null) {
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return {
|
|
74
|
-
|
|
75
|
-
'ref': value['ref'],
|
|
76
|
-
'operation': value['operation'],
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
39
|
+
export declare function instanceOfJobSource(value: object): value is JobSource;
|
|
40
|
+
export declare function JobSourceFromJSON(json: any): JobSource;
|
|
41
|
+
export declare function JobSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobSource;
|
|
42
|
+
export declare function JobSourceToJSON(json: any): JobSource;
|
|
43
|
+
export declare function JobSourceToJSONTyped(value?: JobSource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 JobSource interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfJobSource(value) {
|
|
18
|
+
if (!('ref' in value) || value['ref'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function JobSourceFromJSON(json) {
|
|
23
|
+
return JobSourceFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function JobSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'ref': json['ref'],
|
|
31
|
+
'operation': json['operation'] == null ? undefined : json['operation'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function JobSourceToJSON(json) {
|
|
35
|
+
return JobSourceToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function JobSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'ref': value['ref'],
|
|
43
|
+
'operation': value['operation'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -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
|
+
* Job lifecycle status:
|
|
14
|
+
* - pending: Created, waiting to be scheduled
|
|
15
|
+
* - waiting: Blocked by upstream job dependencies (workflow_edges)
|
|
16
|
+
* - in_progress: At least one operation is running
|
|
17
|
+
* - completed: All operations completed successfully
|
|
18
|
+
* - failed: Job failed (at least one operation failed)
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const JobStatus: {
|
|
23
|
+
readonly pending: "pending";
|
|
24
|
+
readonly waiting: "waiting";
|
|
25
|
+
readonly in_progress: "in_progress";
|
|
26
|
+
readonly completed: "completed";
|
|
27
|
+
readonly failed: "failed";
|
|
28
|
+
};
|
|
29
|
+
export type JobStatus = typeof JobStatus[keyof typeof JobStatus];
|
|
30
|
+
export declare function instanceOfJobStatus(value: any): boolean;
|
|
31
|
+
export declare function JobStatusFromJSON(json: any): JobStatus;
|
|
32
|
+
export declare function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus;
|
|
33
|
+
export declare function JobStatusToJSON(value?: JobStatus | null): any;
|
|
34
|
+
export declare function JobStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): JobStatus;
|
|
@@ -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
|
* Job lifecycle status:
|
|
18
16
|
* - pending: Created, waiting to be scheduled
|
|
@@ -20,7 +18,7 @@
|
|
|
20
18
|
* - in_progress: At least one operation is running
|
|
21
19
|
* - completed: All operations completed successfully
|
|
22
20
|
* - failed: Job failed (at least one operation failed)
|
|
23
|
-
*
|
|
21
|
+
*
|
|
24
22
|
* @export
|
|
25
23
|
*/
|
|
26
24
|
export const JobStatus = {
|
|
@@ -29,34 +27,26 @@ export const JobStatus = {
|
|
|
29
27
|
in_progress: 'in_progress',
|
|
30
28
|
completed: 'completed',
|
|
31
29
|
failed: 'failed'
|
|
32
|
-
}
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export function instanceOfJobStatus(value: any): boolean {
|
|
30
|
+
};
|
|
31
|
+
export function instanceOfJobStatus(value) {
|
|
37
32
|
for (const key in JobStatus) {
|
|
38
33
|
if (Object.prototype.hasOwnProperty.call(JobStatus, key)) {
|
|
39
|
-
if (JobStatus[key
|
|
34
|
+
if (JobStatus[key] === value) {
|
|
40
35
|
return true;
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
return false;
|
|
45
40
|
}
|
|
46
|
-
|
|
47
|
-
export function JobStatusFromJSON(json: any): JobStatus {
|
|
41
|
+
export function JobStatusFromJSON(json) {
|
|
48
42
|
return JobStatusFromJSONTyped(json, false);
|
|
49
43
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return json as JobStatus;
|
|
44
|
+
export function JobStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
53
46
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return value as any;
|
|
47
|
+
export function JobStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
57
49
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return value as JobStatus;
|
|
50
|
+
export function JobStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
61
52
|
}
|
|
62
|
-
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Media type category derived from MIME type. Used for SNS routing:
|
|
14
|
+
* - image/* -> image
|
|
15
|
+
* - video/* -> video
|
|
16
|
+
* - audio/* -> audio
|
|
17
|
+
* - document types -> document (PDF, DOCX, XLSX, PPTX, ODT, ODS, ODP, EPUB)
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const JobType: {
|
|
22
|
+
readonly image: "image";
|
|
23
|
+
readonly video: "video";
|
|
24
|
+
readonly audio: "audio";
|
|
25
|
+
readonly document: "document";
|
|
26
|
+
};
|
|
27
|
+
export type JobType = typeof JobType[keyof typeof JobType];
|
|
28
|
+
export declare function instanceOfJobType(value: any): boolean;
|
|
29
|
+
export declare function JobTypeFromJSON(json: any): JobType;
|
|
30
|
+
export declare function JobTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobType;
|
|
31
|
+
export declare function JobTypeToJSON(value?: JobType | null): any;
|
|
32
|
+
export declare function JobTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): JobType;
|
|
@@ -2,24 +2,22 @@
|
|
|
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
|
* Media type category derived from MIME type. Used for SNS routing:
|
|
18
16
|
* - image/* -> image
|
|
19
17
|
* - video/* -> video
|
|
20
18
|
* - audio/* -> audio
|
|
21
19
|
* - document types -> document (PDF, DOCX, XLSX, PPTX, ODT, ODS, ODP, EPUB)
|
|
22
|
-
*
|
|
20
|
+
*
|
|
23
21
|
* @export
|
|
24
22
|
*/
|
|
25
23
|
export const JobType = {
|
|
@@ -27,34 +25,26 @@ export const JobType = {
|
|
|
27
25
|
video: 'video',
|
|
28
26
|
audio: 'audio',
|
|
29
27
|
document: 'document'
|
|
30
|
-
}
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export function instanceOfJobType(value: any): boolean {
|
|
28
|
+
};
|
|
29
|
+
export function instanceOfJobType(value) {
|
|
35
30
|
for (const key in JobType) {
|
|
36
31
|
if (Object.prototype.hasOwnProperty.call(JobType, key)) {
|
|
37
|
-
if (JobType[key
|
|
32
|
+
if (JobType[key] === value) {
|
|
38
33
|
return true;
|
|
39
34
|
}
|
|
40
35
|
}
|
|
41
36
|
}
|
|
42
37
|
return false;
|
|
43
38
|
}
|
|
44
|
-
|
|
45
|
-
export function JobTypeFromJSON(json: any): JobType {
|
|
39
|
+
export function JobTypeFromJSON(json) {
|
|
46
40
|
return JobTypeFromJSONTyped(json, false);
|
|
47
41
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return json as JobType;
|
|
42
|
+
export function JobTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
51
44
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return value as any;
|
|
45
|
+
export function JobTypeToJSON(value) {
|
|
46
|
+
return value;
|
|
55
47
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return value as JobType;
|
|
48
|
+
export function JobTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
59
50
|
}
|
|
60
|
-
|