@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,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
|
* Subject category:
|
|
18
16
|
* - general_enquiry: General questions
|
|
@@ -20,7 +18,7 @@
|
|
|
20
18
|
* - suggestion: Feature suggestion or improvement idea
|
|
21
19
|
* - complaint: Complaint about the service
|
|
22
20
|
* - business_enquiry: Business or partnership enquiry
|
|
23
|
-
*
|
|
21
|
+
*
|
|
24
22
|
* @export
|
|
25
23
|
*/
|
|
26
24
|
export const ContactSubject = {
|
|
@@ -29,34 +27,26 @@ export const ContactSubject = {
|
|
|
29
27
|
suggestion: 'suggestion',
|
|
30
28
|
complaint: 'complaint',
|
|
31
29
|
business_enquiry: 'business_enquiry'
|
|
32
|
-
}
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export function instanceOfContactSubject(value: any): boolean {
|
|
30
|
+
};
|
|
31
|
+
export function instanceOfContactSubject(value) {
|
|
37
32
|
for (const key in ContactSubject) {
|
|
38
33
|
if (Object.prototype.hasOwnProperty.call(ContactSubject, key)) {
|
|
39
|
-
if (ContactSubject[key
|
|
34
|
+
if (ContactSubject[key] === value) {
|
|
40
35
|
return true;
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
return false;
|
|
45
40
|
}
|
|
46
|
-
|
|
47
|
-
export function ContactSubjectFromJSON(json: any): ContactSubject {
|
|
41
|
+
export function ContactSubjectFromJSON(json) {
|
|
48
42
|
return ContactSubjectFromJSONTyped(json, false);
|
|
49
43
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return json as ContactSubject;
|
|
44
|
+
export function ContactSubjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
53
46
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return value as any;
|
|
47
|
+
export function ContactSubjectToJSON(value) {
|
|
48
|
+
return value;
|
|
57
49
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return value as ContactSubject;
|
|
50
|
+
export function ContactSubjectToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
61
52
|
}
|
|
62
|
-
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContactValidationErrorResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface ContactValidationErrorResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Map of field names to arrays of validation error messages.
|
|
20
|
+
*
|
|
21
|
+
* @type {{ [key: string]: Array<string>; }}
|
|
22
|
+
* @memberof ContactValidationErrorResponse
|
|
23
|
+
*/
|
|
24
|
+
errors: {
|
|
25
|
+
[key: string]: Array<string>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ContactValidationErrorResponse interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfContactValidationErrorResponse(value: object): value is ContactValidationErrorResponse;
|
|
32
|
+
export declare function ContactValidationErrorResponseFromJSON(json: any): ContactValidationErrorResponse;
|
|
33
|
+
export declare function ContactValidationErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactValidationErrorResponse;
|
|
34
|
+
export declare function ContactValidationErrorResponseToJSON(json: any): ContactValidationErrorResponse;
|
|
35
|
+
export declare function ContactValidationErrorResponseToJSONTyped(value?: ContactValidationErrorResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,66 +2,42 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ContactValidationErrorResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface ContactValidationErrorResponse {
|
|
22
|
-
/**
|
|
23
|
-
* Map of field names to arrays of validation error messages.
|
|
24
|
-
*
|
|
25
|
-
* @type {{ [key: string]: Array<string>; }}
|
|
26
|
-
* @memberof ContactValidationErrorResponse
|
|
27
|
-
*/
|
|
28
|
-
errors: { [key: string]: Array<string>; };
|
|
29
|
-
}
|
|
30
|
-
|
|
31
14
|
/**
|
|
32
15
|
* Check if a given object implements the ContactValidationErrorResponse interface.
|
|
33
16
|
*/
|
|
34
|
-
export function instanceOfContactValidationErrorResponse(value
|
|
35
|
-
if (!('errors' in value) || value['errors'] === undefined)
|
|
17
|
+
export function instanceOfContactValidationErrorResponse(value) {
|
|
18
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
19
|
+
return false;
|
|
36
20
|
return true;
|
|
37
21
|
}
|
|
38
|
-
|
|
39
|
-
export function ContactValidationErrorResponseFromJSON(json: any): ContactValidationErrorResponse {
|
|
22
|
+
export function ContactValidationErrorResponseFromJSON(json) {
|
|
40
23
|
return ContactValidationErrorResponseFromJSONTyped(json, false);
|
|
41
24
|
}
|
|
42
|
-
|
|
43
|
-
export function ContactValidationErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactValidationErrorResponse {
|
|
25
|
+
export function ContactValidationErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
26
|
if (json == null) {
|
|
45
27
|
return json;
|
|
46
28
|
}
|
|
47
29
|
return {
|
|
48
|
-
|
|
49
30
|
'errors': json['errors'],
|
|
50
31
|
};
|
|
51
32
|
}
|
|
52
|
-
|
|
53
|
-
export function ContactValidationErrorResponseToJSON(json: any): ContactValidationErrorResponse {
|
|
33
|
+
export function ContactValidationErrorResponseToJSON(json) {
|
|
54
34
|
return ContactValidationErrorResponseToJSONTyped(json, false);
|
|
55
35
|
}
|
|
56
|
-
|
|
57
|
-
export function ContactValidationErrorResponseToJSONTyped(value?: ContactValidationErrorResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
36
|
+
export function ContactValidationErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
37
|
if (value == null) {
|
|
59
38
|
return value;
|
|
60
39
|
}
|
|
61
|
-
|
|
62
40
|
return {
|
|
63
|
-
|
|
64
41
|
'errors': value['errors'],
|
|
65
42
|
};
|
|
66
43
|
}
|
|
67
|
-
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Error response envelope
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ErrorEnvelope
|
|
16
|
+
*/
|
|
17
|
+
export interface ErrorEnvelope {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ErrorEnvelope
|
|
22
|
+
*/
|
|
23
|
+
success: ErrorEnvelopeSuccessEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Human-readable error message
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ErrorEnvelope
|
|
28
|
+
*/
|
|
29
|
+
error: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ErrorEnvelopeSuccessEnum: {
|
|
35
|
+
readonly false: false;
|
|
36
|
+
};
|
|
37
|
+
export type ErrorEnvelopeSuccessEnum = typeof ErrorEnvelopeSuccessEnum[keyof typeof ErrorEnvelopeSuccessEnum];
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ErrorEnvelope interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfErrorEnvelope(value: object): value is ErrorEnvelope;
|
|
42
|
+
export declare function ErrorEnvelopeFromJSON(json: any): ErrorEnvelope;
|
|
43
|
+
export declare function ErrorEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorEnvelope;
|
|
44
|
+
export declare function ErrorEnvelopeToJSON(json: any): ErrorEnvelope;
|
|
45
|
+
export declare function ErrorEnvelopeToJSONTyped(value?: ErrorEnvelope | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,84 +2,52 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
* Error response envelope
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ErrorEnvelope
|
|
20
|
-
*/
|
|
21
|
-
export interface ErrorEnvelope {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
* @memberof ErrorEnvelope
|
|
26
|
-
*/
|
|
27
|
-
success: ErrorEnvelopeSuccessEnum;
|
|
28
|
-
/**
|
|
29
|
-
* Human-readable error message
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ErrorEnvelope
|
|
32
|
-
*/
|
|
33
|
-
error: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
14
|
/**
|
|
38
15
|
* @export
|
|
39
16
|
*/
|
|
40
17
|
export const ErrorEnvelopeSuccessEnum = {
|
|
41
18
|
false: false
|
|
42
|
-
}
|
|
43
|
-
export type ErrorEnvelopeSuccessEnum = typeof ErrorEnvelopeSuccessEnum[keyof typeof ErrorEnvelopeSuccessEnum];
|
|
44
|
-
|
|
45
|
-
|
|
19
|
+
};
|
|
46
20
|
/**
|
|
47
21
|
* Check if a given object implements the ErrorEnvelope interface.
|
|
48
22
|
*/
|
|
49
|
-
export function instanceOfErrorEnvelope(value
|
|
50
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
51
|
-
|
|
23
|
+
export function instanceOfErrorEnvelope(value) {
|
|
24
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
27
|
+
return false;
|
|
52
28
|
return true;
|
|
53
29
|
}
|
|
54
|
-
|
|
55
|
-
export function ErrorEnvelopeFromJSON(json: any): ErrorEnvelope {
|
|
30
|
+
export function ErrorEnvelopeFromJSON(json) {
|
|
56
31
|
return ErrorEnvelopeFromJSONTyped(json, false);
|
|
57
32
|
}
|
|
58
|
-
|
|
59
|
-
export function ErrorEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorEnvelope {
|
|
33
|
+
export function ErrorEnvelopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
34
|
if (json == null) {
|
|
61
35
|
return json;
|
|
62
36
|
}
|
|
63
37
|
return {
|
|
64
|
-
|
|
65
38
|
'success': json['success'],
|
|
66
39
|
'error': json['error'],
|
|
67
40
|
};
|
|
68
41
|
}
|
|
69
|
-
|
|
70
|
-
export function ErrorEnvelopeToJSON(json: any): ErrorEnvelope {
|
|
42
|
+
export function ErrorEnvelopeToJSON(json) {
|
|
71
43
|
return ErrorEnvelopeToJSONTyped(json, false);
|
|
72
44
|
}
|
|
73
|
-
|
|
74
|
-
export function ErrorEnvelopeToJSONTyped(value?: ErrorEnvelope | null, ignoreDiscriminator: boolean = false): any {
|
|
45
|
+
export function ErrorEnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
75
46
|
if (value == null) {
|
|
76
47
|
return value;
|
|
77
48
|
}
|
|
78
|
-
|
|
79
49
|
return {
|
|
80
|
-
|
|
81
50
|
'success': value['success'],
|
|
82
51
|
'error': value['error'],
|
|
83
52
|
};
|
|
84
53
|
}
|
|
85
|
-
|
|
@@ -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
|
* Export configuration. When set, all operation outputs are copied to the
|
|
18
14
|
* customer's destination in addition to GISL's own S3 storage.
|
|
19
15
|
* Currently supports AWS S3 via cross-account AssumeRole.
|
|
20
|
-
*
|
|
16
|
+
*
|
|
21
17
|
* @export
|
|
22
18
|
* @interface ExportConfig
|
|
23
19
|
*/
|
|
@@ -44,65 +40,24 @@ export interface ExportConfig {
|
|
|
44
40
|
* IAM role ARN in the customer's AWS account. GISL's Lambda assumes this
|
|
45
41
|
* role to write to the customer's bucket. The customer must configure a
|
|
46
42
|
* trust policy allowing GISL's execution role to assume it.
|
|
47
|
-
*
|
|
43
|
+
*
|
|
48
44
|
* @type {string}
|
|
49
45
|
* @memberof ExportConfig
|
|
50
46
|
*/
|
|
51
47
|
roleArn: string;
|
|
52
48
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
49
|
/**
|
|
56
50
|
* @export
|
|
57
51
|
*/
|
|
58
|
-
export const ExportConfigServiceEnum
|
|
59
|
-
s3:
|
|
60
|
-
}
|
|
52
|
+
export declare const ExportConfigServiceEnum: {
|
|
53
|
+
readonly s3: "s3";
|
|
54
|
+
};
|
|
61
55
|
export type ExportConfigServiceEnum = typeof ExportConfigServiceEnum[keyof typeof ExportConfigServiceEnum];
|
|
62
|
-
|
|
63
|
-
|
|
64
56
|
/**
|
|
65
57
|
* Check if a given object implements the ExportConfig interface.
|
|
66
58
|
*/
|
|
67
|
-
export function instanceOfExportConfig(value: object): value is ExportConfig
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function ExportConfigFromJSON(json: any): ExportConfig {
|
|
75
|
-
return ExportConfigFromJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function ExportConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportConfig {
|
|
79
|
-
if (json == null) {
|
|
80
|
-
return json;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
|
|
84
|
-
'service': json['service'],
|
|
85
|
-
'bucket': json['bucket'],
|
|
86
|
-
'keyPrefix': json['key_prefix'] == null ? undefined : json['key_prefix'],
|
|
87
|
-
'roleArn': json['role_arn'],
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function ExportConfigToJSON(json: any): ExportConfig {
|
|
92
|
-
return ExportConfigToJSONTyped(json, false);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function ExportConfigToJSONTyped(value?: ExportConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
-
if (value == null) {
|
|
97
|
-
return value;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return {
|
|
101
|
-
|
|
102
|
-
'service': value['service'],
|
|
103
|
-
'bucket': value['bucket'],
|
|
104
|
-
'key_prefix': value['keyPrefix'],
|
|
105
|
-
'role_arn': value['roleArn'],
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
59
|
+
export declare function instanceOfExportConfig(value: object): value is ExportConfig;
|
|
60
|
+
export declare function ExportConfigFromJSON(json: any): ExportConfig;
|
|
61
|
+
export declare function ExportConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportConfig;
|
|
62
|
+
export declare function ExportConfigToJSON(json: any): ExportConfig;
|
|
63
|
+
export declare function ExportConfigToJSONTyped(value?: ExportConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ExportConfigServiceEnum = {
|
|
18
|
+
s3: 's3'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the ExportConfig interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfExportConfig(value) {
|
|
24
|
+
if (!('service' in value) || value['service'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('bucket' in value) || value['bucket'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('roleArn' in value) || value['roleArn'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function ExportConfigFromJSON(json) {
|
|
33
|
+
return ExportConfigFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ExportConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'service': json['service'],
|
|
41
|
+
'bucket': json['bucket'],
|
|
42
|
+
'keyPrefix': json['key_prefix'] == null ? undefined : json['key_prefix'],
|
|
43
|
+
'roleArn': json['role_arn'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ExportConfigToJSON(json) {
|
|
47
|
+
return ExportConfigToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ExportConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'service': value['service'],
|
|
55
|
+
'bucket': value['bucket'],
|
|
56
|
+
'key_prefix': value['keyPrefix'],
|
|
57
|
+
'role_arn': value['roleArn'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -1,56 +1,32 @@
|
|
|
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
12
|
/**
|
|
16
13
|
* @type JobDefinition
|
|
17
14
|
* A job within a workflow. Each job must have exactly one source:
|
|
18
15
|
* - `file_id`: Direct reference to an uploaded file
|
|
19
16
|
* - `source`: Reference another job's output (single-input downstream)
|
|
20
17
|
* - `inputs`: Reference multiple job outputs (multi-input: merge/archive)
|
|
21
|
-
*
|
|
18
|
+
*
|
|
22
19
|
* Future versions will add `url` and `import` source types for external
|
|
23
20
|
* file references (V2).
|
|
24
|
-
*
|
|
21
|
+
*
|
|
25
22
|
* For single-input jobs with `file_id`, `operations` defaults to
|
|
26
23
|
* `[{ "type": "compress" }]` if omitted. Multi-input jobs must specify
|
|
27
24
|
* operations explicitly.
|
|
28
|
-
*
|
|
25
|
+
*
|
|
29
26
|
* @export
|
|
30
27
|
*/
|
|
31
28
|
export type JobDefinition = any;
|
|
32
|
-
|
|
33
|
-
export function
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
export function JobDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDefinition {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return {} as any;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function JobDefinitionToJSON(json: any): any {
|
|
46
|
-
return JobDefinitionToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function JobDefinitionToJSONTyped(value?: JobDefinition | null, ignoreDiscriminator: boolean = false): any {
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return {};
|
|
55
|
-
}
|
|
56
|
-
|
|
29
|
+
export declare function JobDefinitionFromJSON(json: any): JobDefinition;
|
|
30
|
+
export declare function JobDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDefinition;
|
|
31
|
+
export declare function JobDefinitionToJSON(json: any): any;
|
|
32
|
+
export declare function JobDefinitionToJSONTyped(value?: JobDefinition | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
export function JobDefinitionFromJSON(json) {
|
|
15
|
+
return JobDefinitionFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function JobDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if (json == null) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
|
+
export function JobDefinitionToJSON(json) {
|
|
24
|
+
return JobDefinitionToJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function JobDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
27
|
+
if (value == null) {
|
|
28
|
+
return value;
|
|
29
|
+
}
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { OperationDownload } from './OperationDownload.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface JobDownload
|
|
17
|
+
*/
|
|
18
|
+
export interface JobDownload {
|
|
19
|
+
/**
|
|
20
|
+
* Job reference label
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof JobDownload
|
|
23
|
+
*/
|
|
24
|
+
ref: string;
|
|
25
|
+
/**
|
|
26
|
+
* UUID v7 format identifier (time-ordered)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof JobDownload
|
|
29
|
+
*/
|
|
30
|
+
jobId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<OperationDownload>}
|
|
34
|
+
* @memberof JobDownload
|
|
35
|
+
*/
|
|
36
|
+
files: Array<OperationDownload>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the JobDownload interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfJobDownload(value: object): value is JobDownload;
|
|
42
|
+
export declare function JobDownloadFromJSON(json: any): JobDownload;
|
|
43
|
+
export declare function JobDownloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDownload;
|
|
44
|
+
export declare function JobDownloadToJSON(json: any): JobDownload;
|
|
45
|
+
export declare function JobDownloadToJSONTyped(value?: JobDownload | null, ignoreDiscriminator?: boolean): any;
|