@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,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
|
+
* Operation lifecycle status:
|
|
14
|
+
* - pending: Created, waiting to start
|
|
15
|
+
* - in_progress: Currently processing
|
|
16
|
+
* - completed: Finished successfully
|
|
17
|
+
* - failed: Encountered an error
|
|
18
|
+
* - retried: Failed and replaced by a new retry operation
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const OperationStatus: {
|
|
23
|
+
readonly pending: "pending";
|
|
24
|
+
readonly in_progress: "in_progress";
|
|
25
|
+
readonly completed: "completed";
|
|
26
|
+
readonly failed: "failed";
|
|
27
|
+
readonly retried: "retried";
|
|
28
|
+
};
|
|
29
|
+
export type OperationStatus = typeof OperationStatus[keyof typeof OperationStatus];
|
|
30
|
+
export declare function instanceOfOperationStatus(value: any): boolean;
|
|
31
|
+
export declare function OperationStatusFromJSON(json: any): OperationStatus;
|
|
32
|
+
export declare function OperationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationStatus;
|
|
33
|
+
export declare function OperationStatusToJSON(value?: OperationStatus | null): any;
|
|
34
|
+
export declare function OperationStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): OperationStatus;
|
|
@@ -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
|
* Operation lifecycle status:
|
|
18
16
|
* - pending: Created, waiting to start
|
|
@@ -20,7 +18,7 @@
|
|
|
20
18
|
* - completed: Finished successfully
|
|
21
19
|
* - failed: Encountered an error
|
|
22
20
|
* - retried: Failed and replaced by a new retry operation
|
|
23
|
-
*
|
|
21
|
+
*
|
|
24
22
|
* @export
|
|
25
23
|
*/
|
|
26
24
|
export const OperationStatus = {
|
|
@@ -29,34 +27,26 @@ export const OperationStatus = {
|
|
|
29
27
|
completed: 'completed',
|
|
30
28
|
failed: 'failed',
|
|
31
29
|
retried: 'retried'
|
|
32
|
-
}
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export function instanceOfOperationStatus(value: any): boolean {
|
|
30
|
+
};
|
|
31
|
+
export function instanceOfOperationStatus(value) {
|
|
37
32
|
for (const key in OperationStatus) {
|
|
38
33
|
if (Object.prototype.hasOwnProperty.call(OperationStatus, key)) {
|
|
39
|
-
if (OperationStatus[key
|
|
34
|
+
if (OperationStatus[key] === value) {
|
|
40
35
|
return true;
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
return false;
|
|
45
40
|
}
|
|
46
|
-
|
|
47
|
-
export function OperationStatusFromJSON(json: any): OperationStatus {
|
|
41
|
+
export function OperationStatusFromJSON(json) {
|
|
48
42
|
return OperationStatusFromJSONTyped(json, false);
|
|
49
43
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return json as OperationStatus;
|
|
44
|
+
export function OperationStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
53
46
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return value as any;
|
|
47
|
+
export function OperationStatusToJSON(value) {
|
|
48
|
+
return value;
|
|
57
49
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return value as OperationStatus;
|
|
50
|
+
export function OperationStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
61
52
|
}
|
|
62
|
-
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* Available operation types:
|
|
14
|
+
* - compress: Reduce file size (images, audio, video, documents)
|
|
15
|
+
* - thumbnail: Generate preview image (images, video, documents)
|
|
16
|
+
* - watermark: Apply branding/protection (images, video, audio, documents)
|
|
17
|
+
* - merge: Concatenate/combine multiple files into one (images, video, audio, documents/PDF). Multi-input.
|
|
18
|
+
* - archive: Bundle files into ZIP/tar.gz (all types). Multi-input.
|
|
19
|
+
* - convert: Change file format (all types)
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const OperationType: {
|
|
24
|
+
readonly compress: "compress";
|
|
25
|
+
readonly thumbnail: "thumbnail";
|
|
26
|
+
readonly watermark: "watermark";
|
|
27
|
+
readonly merge: "merge";
|
|
28
|
+
readonly archive: "archive";
|
|
29
|
+
readonly convert: "convert";
|
|
30
|
+
};
|
|
31
|
+
export type OperationType = typeof OperationType[keyof typeof OperationType];
|
|
32
|
+
export declare function instanceOfOperationType(value: any): boolean;
|
|
33
|
+
export declare function OperationTypeFromJSON(json: any): OperationType;
|
|
34
|
+
export declare function OperationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationType;
|
|
35
|
+
export declare function OperationTypeToJSON(value?: OperationType | null): any;
|
|
36
|
+
export declare function OperationTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): OperationType;
|
|
@@ -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
|
* Available operation types:
|
|
18
16
|
* - compress: Reduce file size (images, audio, video, documents)
|
|
@@ -21,7 +19,7 @@
|
|
|
21
19
|
* - merge: Concatenate/combine multiple files into one (images, video, audio, documents/PDF). Multi-input.
|
|
22
20
|
* - archive: Bundle files into ZIP/tar.gz (all types). Multi-input.
|
|
23
21
|
* - convert: Change file format (all types)
|
|
24
|
-
*
|
|
22
|
+
*
|
|
25
23
|
* @export
|
|
26
24
|
*/
|
|
27
25
|
export const OperationType = {
|
|
@@ -31,34 +29,26 @@ export const OperationType = {
|
|
|
31
29
|
merge: 'merge',
|
|
32
30
|
archive: 'archive',
|
|
33
31
|
convert: 'convert'
|
|
34
|
-
}
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export function instanceOfOperationType(value: any): boolean {
|
|
32
|
+
};
|
|
33
|
+
export function instanceOfOperationType(value) {
|
|
39
34
|
for (const key in OperationType) {
|
|
40
35
|
if (Object.prototype.hasOwnProperty.call(OperationType, key)) {
|
|
41
|
-
if (OperationType[key
|
|
36
|
+
if (OperationType[key] === value) {
|
|
42
37
|
return true;
|
|
43
38
|
}
|
|
44
39
|
}
|
|
45
40
|
}
|
|
46
41
|
return false;
|
|
47
42
|
}
|
|
48
|
-
|
|
49
|
-
export function OperationTypeFromJSON(json: any): OperationType {
|
|
43
|
+
export function OperationTypeFromJSON(json) {
|
|
50
44
|
return OperationTypeFromJSONTyped(json, false);
|
|
51
45
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return json as OperationType;
|
|
46
|
+
export function OperationTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
55
48
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return value as any;
|
|
49
|
+
export function OperationTypeToJSON(value) {
|
|
50
|
+
return value;
|
|
59
51
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return value as OperationType;
|
|
52
|
+
export function OperationTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
63
54
|
}
|
|
64
|
-
|
|
@@ -1,35 +1,24 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
1
|
/**
|
|
4
2
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
4
|
*
|
|
7
5
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
6
|
+
*
|
|
9
7
|
*
|
|
10
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
9
|
* https://openapi-generator.tech
|
|
12
10
|
* Do not edit the class manually.
|
|
13
11
|
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { OperationSchemaDefinition } from './OperationSchemaDefinition';
|
|
17
|
-
import {
|
|
18
|
-
OperationSchemaDefinitionFromJSON,
|
|
19
|
-
OperationSchemaDefinitionFromJSONTyped,
|
|
20
|
-
OperationSchemaDefinitionToJSON,
|
|
21
|
-
OperationSchemaDefinitionToJSONTyped,
|
|
22
|
-
} from './OperationSchemaDefinition';
|
|
23
|
-
|
|
12
|
+
import type { OperationSchemaDefinition } from './OperationSchemaDefinition.js';
|
|
24
13
|
/**
|
|
25
14
|
* Operations meta-schema. Describes all available operation types, their options,
|
|
26
15
|
* constraints, defaults, and MIME type applicability. Returned raw (no envelope)
|
|
27
16
|
* for CDN cacheability.
|
|
28
|
-
*
|
|
17
|
+
*
|
|
29
18
|
* Each operation defines options with types, constraints, and conditional
|
|
30
19
|
* dependencies (via `depends_on`). Clients use this to build dynamic forms
|
|
31
20
|
* and validate options before submission.
|
|
32
|
-
*
|
|
21
|
+
*
|
|
33
22
|
* @export
|
|
34
23
|
* @interface OperationsSchemaResponse
|
|
35
24
|
*/
|
|
@@ -45,46 +34,15 @@ export interface OperationsSchemaResponse {
|
|
|
45
34
|
* @type {{ [key: string]: OperationSchemaDefinition; }}
|
|
46
35
|
* @memberof OperationsSchemaResponse
|
|
47
36
|
*/
|
|
48
|
-
operations: {
|
|
37
|
+
operations: {
|
|
38
|
+
[key: string]: OperationSchemaDefinition;
|
|
39
|
+
};
|
|
49
40
|
}
|
|
50
|
-
|
|
51
41
|
/**
|
|
52
42
|
* Check if a given object implements the OperationsSchemaResponse interface.
|
|
53
43
|
*/
|
|
54
|
-
export function instanceOfOperationsSchemaResponse(value: object): value is OperationsSchemaResponse
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export function OperationsSchemaResponseFromJSON(json: any): OperationsSchemaResponse {
|
|
61
|
-
return OperationsSchemaResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function OperationsSchemaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationsSchemaResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'schemaVersion': json['schema_version'],
|
|
71
|
-
'operations': (mapValues(json['operations'], OperationSchemaDefinitionFromJSON)),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function OperationsSchemaResponseToJSON(json: any): OperationsSchemaResponse {
|
|
76
|
-
return OperationsSchemaResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function OperationsSchemaResponseToJSONTyped(value?: OperationsSchemaResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'schema_version': value['schemaVersion'],
|
|
87
|
-
'operations': (mapValues(value['operations'], OperationSchemaDefinitionToJSON)),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
44
|
+
export declare function instanceOfOperationsSchemaResponse(value: object): value is OperationsSchemaResponse;
|
|
45
|
+
export declare function OperationsSchemaResponseFromJSON(json: any): OperationsSchemaResponse;
|
|
46
|
+
export declare function OperationsSchemaResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OperationsSchemaResponse;
|
|
47
|
+
export declare function OperationsSchemaResponseToJSON(json: any): OperationsSchemaResponse;
|
|
48
|
+
export declare function OperationsSchemaResponseToJSONTyped(value?: OperationsSchemaResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { mapValues } from '../runtime.js';
|
|
15
|
+
import { OperationSchemaDefinitionFromJSON, OperationSchemaDefinitionToJSON, } from './OperationSchemaDefinition.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the OperationsSchemaResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfOperationsSchemaResponse(value) {
|
|
20
|
+
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('operations' in value) || value['operations'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function OperationsSchemaResponseFromJSON(json) {
|
|
27
|
+
return OperationsSchemaResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function OperationsSchemaResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'schemaVersion': json['schema_version'],
|
|
35
|
+
'operations': (mapValues(json['operations'], OperationSchemaDefinitionFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function OperationsSchemaResponseToJSON(json) {
|
|
39
|
+
return OperationsSchemaResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function OperationsSchemaResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'schema_version': value['schemaVersion'],
|
|
47
|
+
'operations': (mapValues(value['operations'], OperationSchemaDefinitionToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -1,18 +1,14 @@
|
|
|
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
|
* Schema for a single operation option
|
|
18
14
|
* @export
|
|
@@ -38,7 +34,7 @@ export interface OptionSchema {
|
|
|
38
34
|
*/
|
|
39
35
|
required?: boolean;
|
|
40
36
|
/**
|
|
41
|
-
*
|
|
37
|
+
*
|
|
42
38
|
* @type {any}
|
|
43
39
|
* @memberof OptionSchema
|
|
44
40
|
*/
|
|
@@ -52,7 +48,7 @@ export interface OptionSchema {
|
|
|
52
48
|
/**
|
|
53
49
|
* Actual type of enum values when not strings (e.g. "integer" for numeric bitrate enums).
|
|
54
50
|
* Consumers should parse/display values as this type rather than as strings.
|
|
55
|
-
*
|
|
51
|
+
*
|
|
56
52
|
* @type {string}
|
|
57
53
|
* @memberof OptionSchema
|
|
58
54
|
*/
|
|
@@ -75,86 +71,38 @@ export interface OptionSchema {
|
|
|
75
71
|
* Multi-value: `{ "output_format": ["jpeg", "webp"] }` — option applies when output_format is any listed value.
|
|
76
72
|
* Set condition: `{ "width": "set", "height": "set", "logic": "or" }` — option applies when width or height is provided.
|
|
77
73
|
* The "set" sentinel means the option has any value. "logic" can be "and" (default) or "or".
|
|
78
|
-
*
|
|
74
|
+
*
|
|
79
75
|
* @type {{ [key: string]: any; }}
|
|
80
76
|
* @memberof OptionSchema
|
|
81
77
|
*/
|
|
82
|
-
dependsOn?: {
|
|
78
|
+
dependsOn?: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
};
|
|
83
81
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
82
|
/**
|
|
87
83
|
* @export
|
|
88
84
|
*/
|
|
89
|
-
export const OptionSchemaTypeEnum
|
|
90
|
-
integer:
|
|
91
|
-
float:
|
|
92
|
-
boolean:
|
|
93
|
-
enum:
|
|
94
|
-
string:
|
|
95
|
-
}
|
|
85
|
+
export declare const OptionSchemaTypeEnum: {
|
|
86
|
+
readonly integer: "integer";
|
|
87
|
+
readonly float: "float";
|
|
88
|
+
readonly boolean: "boolean";
|
|
89
|
+
readonly enum: "enum";
|
|
90
|
+
readonly string: "string";
|
|
91
|
+
};
|
|
96
92
|
export type OptionSchemaTypeEnum = typeof OptionSchemaTypeEnum[keyof typeof OptionSchemaTypeEnum];
|
|
97
|
-
|
|
98
93
|
/**
|
|
99
94
|
* @export
|
|
100
95
|
*/
|
|
101
|
-
export const OptionSchemaValueTypeEnum
|
|
102
|
-
integer:
|
|
103
|
-
float:
|
|
104
|
-
}
|
|
96
|
+
export declare const OptionSchemaValueTypeEnum: {
|
|
97
|
+
readonly integer: "integer";
|
|
98
|
+
readonly float: "float";
|
|
99
|
+
};
|
|
105
100
|
export type OptionSchemaValueTypeEnum = typeof OptionSchemaValueTypeEnum[keyof typeof OptionSchemaValueTypeEnum];
|
|
106
|
-
|
|
107
|
-
|
|
108
101
|
/**
|
|
109
102
|
* Check if a given object implements the OptionSchema interface.
|
|
110
103
|
*/
|
|
111
|
-
export function instanceOfOptionSchema(value: object): value is OptionSchema
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
export function OptionSchemaFromJSON(json: any): OptionSchema {
|
|
117
|
-
return OptionSchemaFromJSONTyped(json, false);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export function OptionSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): OptionSchema {
|
|
121
|
-
if (json == null) {
|
|
122
|
-
return json;
|
|
123
|
-
}
|
|
124
|
-
return {
|
|
125
|
-
|
|
126
|
-
'type': json['type'],
|
|
127
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
128
|
-
'required': json['required'] == null ? undefined : json['required'],
|
|
129
|
-
'_default': json['default'] == null ? undefined : json['default'],
|
|
130
|
-
'values': json['values'] == null ? undefined : json['values'],
|
|
131
|
-
'valueType': json['value_type'] == null ? undefined : json['value_type'],
|
|
132
|
-
'min': json['min'] == null ? undefined : json['min'],
|
|
133
|
-
'max': json['max'] == null ? undefined : json['max'],
|
|
134
|
-
'dependsOn': json['depends_on'] == null ? undefined : json['depends_on'],
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export function OptionSchemaToJSON(json: any): OptionSchema {
|
|
139
|
-
return OptionSchemaToJSONTyped(json, false);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function OptionSchemaToJSONTyped(value?: OptionSchema | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
-
if (value == null) {
|
|
144
|
-
return value;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return {
|
|
148
|
-
|
|
149
|
-
'type': value['type'],
|
|
150
|
-
'description': value['description'],
|
|
151
|
-
'required': value['required'],
|
|
152
|
-
'default': value['_default'],
|
|
153
|
-
'values': value['values'],
|
|
154
|
-
'value_type': value['valueType'],
|
|
155
|
-
'min': value['min'],
|
|
156
|
-
'max': value['max'],
|
|
157
|
-
'depends_on': value['dependsOn'],
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
|
|
104
|
+
export declare function instanceOfOptionSchema(value: object): value is OptionSchema;
|
|
105
|
+
export declare function OptionSchemaFromJSON(json: any): OptionSchema;
|
|
106
|
+
export declare function OptionSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): OptionSchema;
|
|
107
|
+
export declare function OptionSchemaToJSON(json: any): OptionSchema;
|
|
108
|
+
export declare function OptionSchemaToJSONTyped(value?: OptionSchema | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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 OptionSchemaTypeEnum = {
|
|
18
|
+
integer: 'integer',
|
|
19
|
+
float: 'float',
|
|
20
|
+
boolean: 'boolean',
|
|
21
|
+
enum: 'enum',
|
|
22
|
+
string: 'string'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const OptionSchemaValueTypeEnum = {
|
|
28
|
+
integer: 'integer',
|
|
29
|
+
float: 'float'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the OptionSchema interface.
|
|
33
|
+
*/
|
|
34
|
+
export function instanceOfOptionSchema(value) {
|
|
35
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function OptionSchemaFromJSON(json) {
|
|
40
|
+
return OptionSchemaFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function OptionSchemaFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': json['type'],
|
|
48
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
49
|
+
'required': json['required'] == null ? undefined : json['required'],
|
|
50
|
+
'_default': json['default'] == null ? undefined : json['default'],
|
|
51
|
+
'values': json['values'] == null ? undefined : json['values'],
|
|
52
|
+
'valueType': json['value_type'] == null ? undefined : json['value_type'],
|
|
53
|
+
'min': json['min'] == null ? undefined : json['min'],
|
|
54
|
+
'max': json['max'] == null ? undefined : json['max'],
|
|
55
|
+
'dependsOn': json['depends_on'] == null ? undefined : json['depends_on'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function OptionSchemaToJSON(json) {
|
|
59
|
+
return OptionSchemaToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function OptionSchemaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'description': value['description'],
|
|
68
|
+
'required': value['required'],
|
|
69
|
+
'default': value['_default'],
|
|
70
|
+
'values': value['values'],
|
|
71
|
+
'value_type': value['valueType'],
|
|
72
|
+
'min': value['min'],
|
|
73
|
+
'max': value['max'],
|
|
74
|
+
'depends_on': value['dependsOn'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PresignedUrlPart
|
|
16
|
+
*/
|
|
17
|
+
export interface PresignedUrlPart {
|
|
18
|
+
/**
|
|
19
|
+
* S3 multipart part number (starts at 2, API handled part 1)
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PresignedUrlPart
|
|
22
|
+
*/
|
|
23
|
+
partNumber: number;
|
|
24
|
+
/**
|
|
25
|
+
* Pre-signed S3 PUT URL. Send PUT with raw binary chunk as body.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PresignedUrlPart
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
/**
|
|
31
|
+
* ISO 8601 expiry timestamp. TTL is dynamic: estimated_upload_duration * 2,
|
|
32
|
+
* clamped between 900s and 3600s.
|
|
33
|
+
*
|
|
34
|
+
* @type {Date}
|
|
35
|
+
* @memberof PresignedUrlPart
|
|
36
|
+
*/
|
|
37
|
+
expiresAt: Date;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PresignedUrlPart interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfPresignedUrlPart(value: object): value is PresignedUrlPart;
|
|
43
|
+
export declare function PresignedUrlPartFromJSON(json: any): PresignedUrlPart;
|
|
44
|
+
export declare function PresignedUrlPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): PresignedUrlPart;
|
|
45
|
+
export declare function PresignedUrlPartToJSON(json: any): PresignedUrlPart;
|
|
46
|
+
export declare function PresignedUrlPartToJSONTyped(value?: PresignedUrlPart | null, ignoreDiscriminator?: boolean): any;
|