@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
package/{openapi/models/UploadSuccessEnvelope.ts → dist/openapi/models/UploadSuccessEnvelope.js}
RENAMED
|
@@ -2,92 +2,53 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { UploadResponse } from './UploadResponse';
|
|
17
|
-
import {
|
|
18
|
-
UploadResponseFromJSON,
|
|
19
|
-
UploadResponseFromJSONTyped,
|
|
20
|
-
UploadResponseToJSON,
|
|
21
|
-
UploadResponseToJSONTyped,
|
|
22
|
-
} from './UploadResponse';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface UploadSuccessEnvelope
|
|
28
|
-
*/
|
|
29
|
-
export interface UploadSuccessEnvelope {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof UploadSuccessEnvelope
|
|
34
|
-
*/
|
|
35
|
-
success: UploadSuccessEnvelopeSuccessEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {UploadResponse}
|
|
39
|
-
* @memberof UploadSuccessEnvelope
|
|
40
|
-
*/
|
|
41
|
-
data: UploadResponse;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
import { UploadResponseFromJSON, UploadResponseToJSON, } from './UploadResponse.js';
|
|
45
15
|
/**
|
|
46
16
|
* @export
|
|
47
17
|
*/
|
|
48
18
|
export const UploadSuccessEnvelopeSuccessEnum = {
|
|
49
19
|
true: true
|
|
50
|
-
}
|
|
51
|
-
export type UploadSuccessEnvelopeSuccessEnum = typeof UploadSuccessEnvelopeSuccessEnum[keyof typeof UploadSuccessEnvelopeSuccessEnum];
|
|
52
|
-
|
|
53
|
-
|
|
20
|
+
};
|
|
54
21
|
/**
|
|
55
22
|
* Check if a given object implements the UploadSuccessEnvelope interface.
|
|
56
23
|
*/
|
|
57
|
-
export function instanceOfUploadSuccessEnvelope(value
|
|
58
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
59
|
-
|
|
24
|
+
export function instanceOfUploadSuccessEnvelope(value) {
|
|
25
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
60
29
|
return true;
|
|
61
30
|
}
|
|
62
|
-
|
|
63
|
-
export function UploadSuccessEnvelopeFromJSON(json: any): UploadSuccessEnvelope {
|
|
31
|
+
export function UploadSuccessEnvelopeFromJSON(json) {
|
|
64
32
|
return UploadSuccessEnvelopeFromJSONTyped(json, false);
|
|
65
33
|
}
|
|
66
|
-
|
|
67
|
-
export function UploadSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadSuccessEnvelope {
|
|
34
|
+
export function UploadSuccessEnvelopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
68
35
|
if (json == null) {
|
|
69
36
|
return json;
|
|
70
37
|
}
|
|
71
38
|
return {
|
|
72
|
-
|
|
73
39
|
'success': json['success'],
|
|
74
40
|
'data': UploadResponseFromJSON(json['data']),
|
|
75
41
|
};
|
|
76
42
|
}
|
|
77
|
-
|
|
78
|
-
export function UploadSuccessEnvelopeToJSON(json: any): UploadSuccessEnvelope {
|
|
43
|
+
export function UploadSuccessEnvelopeToJSON(json) {
|
|
79
44
|
return UploadSuccessEnvelopeToJSONTyped(json, false);
|
|
80
45
|
}
|
|
81
|
-
|
|
82
|
-
export function UploadSuccessEnvelopeToJSONTyped(value?: UploadSuccessEnvelope | null, ignoreDiscriminator: boolean = false): any {
|
|
46
|
+
export function UploadSuccessEnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
83
47
|
if (value == null) {
|
|
84
48
|
return value;
|
|
85
49
|
}
|
|
86
|
-
|
|
87
50
|
return {
|
|
88
|
-
|
|
89
51
|
'success': value['success'],
|
|
90
52
|
'data': UploadResponseToJSON(value['data']),
|
|
91
53
|
};
|
|
92
54
|
}
|
|
93
|
-
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { ValidationErrorEnvelopeDetailsInner } from './ValidationErrorEnvelopeDetailsInner.js';
|
|
13
|
+
/**
|
|
14
|
+
* Validation error response with structured details.
|
|
15
|
+
* Used for 422 responses where multiple validation issues are reported.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ValidationErrorEnvelope
|
|
19
|
+
*/
|
|
20
|
+
export interface ValidationErrorEnvelope {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof ValidationErrorEnvelope
|
|
25
|
+
*/
|
|
26
|
+
success: ValidationErrorEnvelopeSuccessEnum;
|
|
27
|
+
/**
|
|
28
|
+
* Error code (e.g. "INVALID_OPTIONS")
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ValidationErrorEnvelope
|
|
31
|
+
*/
|
|
32
|
+
error: string;
|
|
33
|
+
/**
|
|
34
|
+
* List of individual validation errors
|
|
35
|
+
* @type {Array<ValidationErrorEnvelopeDetailsInner>}
|
|
36
|
+
* @memberof ValidationErrorEnvelope
|
|
37
|
+
*/
|
|
38
|
+
details: Array<ValidationErrorEnvelopeDetailsInner>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export declare const ValidationErrorEnvelopeSuccessEnum: {
|
|
44
|
+
readonly false: false;
|
|
45
|
+
};
|
|
46
|
+
export type ValidationErrorEnvelopeSuccessEnum = typeof ValidationErrorEnvelopeSuccessEnum[keyof typeof ValidationErrorEnvelopeSuccessEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ValidationErrorEnvelope interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfValidationErrorEnvelope(value: object): value is ValidationErrorEnvelope;
|
|
51
|
+
export declare function ValidationErrorEnvelopeFromJSON(json: any): ValidationErrorEnvelope;
|
|
52
|
+
export declare function ValidationErrorEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorEnvelope;
|
|
53
|
+
export declare function ValidationErrorEnvelopeToJSON(json: any): ValidationErrorEnvelope;
|
|
54
|
+
export declare function ValidationErrorEnvelopeToJSONTyped(value?: ValidationErrorEnvelope | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { ValidationErrorEnvelopeDetailsInnerFromJSON, ValidationErrorEnvelopeDetailsInnerToJSON, } from './ValidationErrorEnvelopeDetailsInner.js';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ValidationErrorEnvelopeSuccessEnum = {
|
|
19
|
+
false: false
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ValidationErrorEnvelope interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfValidationErrorEnvelope(value) {
|
|
25
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('error' in value) || value['error'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function ValidationErrorEnvelopeFromJSON(json) {
|
|
34
|
+
return ValidationErrorEnvelopeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ValidationErrorEnvelopeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'success': json['success'],
|
|
42
|
+
'error': json['error'],
|
|
43
|
+
'details': (json['details'].map(ValidationErrorEnvelopeDetailsInnerFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function ValidationErrorEnvelopeToJSON(json) {
|
|
47
|
+
return ValidationErrorEnvelopeToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function ValidationErrorEnvelopeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'success': value['success'],
|
|
55
|
+
'error': value['error'],
|
|
56
|
+
'details': (value['details'].map(ValidationErrorEnvelopeDetailsInnerToJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ValidationErrorEnvelopeDetailsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ValidationErrorEnvelopeDetailsInner {
|
|
18
|
+
/**
|
|
19
|
+
* Operation type where the error occurred
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ValidationErrorEnvelopeDetailsInner
|
|
22
|
+
*/
|
|
23
|
+
operation?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Option name that failed validation
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ValidationErrorEnvelopeDetailsInner
|
|
28
|
+
*/
|
|
29
|
+
option?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Field path for non-operation validation errors
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ValidationErrorEnvelopeDetailsInner
|
|
34
|
+
*/
|
|
35
|
+
field?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Human-readable error message
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ValidationErrorEnvelopeDetailsInner
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ValidationErrorEnvelopeDetailsInner interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfValidationErrorEnvelopeDetailsInner(value: object): value is ValidationErrorEnvelopeDetailsInner;
|
|
47
|
+
export declare function ValidationErrorEnvelopeDetailsInnerFromJSON(json: any): ValidationErrorEnvelopeDetailsInner;
|
|
48
|
+
export declare function ValidationErrorEnvelopeDetailsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorEnvelopeDetailsInner;
|
|
49
|
+
export declare function ValidationErrorEnvelopeDetailsInnerToJSON(json: any): ValidationErrorEnvelopeDetailsInner;
|
|
50
|
+
export declare function ValidationErrorEnvelopeDetailsInnerToJSONTyped(value?: ValidationErrorEnvelopeDetailsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,89 +2,48 @@
|
|
|
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 ValidationErrorEnvelopeDetailsInner
|
|
20
|
-
*/
|
|
21
|
-
export interface ValidationErrorEnvelopeDetailsInner {
|
|
22
|
-
/**
|
|
23
|
-
* Operation type where the error occurred
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ValidationErrorEnvelopeDetailsInner
|
|
26
|
-
*/
|
|
27
|
-
operation?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Option name that failed validation
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ValidationErrorEnvelopeDetailsInner
|
|
32
|
-
*/
|
|
33
|
-
option?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Field path for non-operation validation errors
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ValidationErrorEnvelopeDetailsInner
|
|
38
|
-
*/
|
|
39
|
-
field?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Human-readable error message
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof ValidationErrorEnvelopeDetailsInner
|
|
44
|
-
*/
|
|
45
|
-
message: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
14
|
/**
|
|
49
15
|
* Check if a given object implements the ValidationErrorEnvelopeDetailsInner interface.
|
|
50
16
|
*/
|
|
51
|
-
export function instanceOfValidationErrorEnvelopeDetailsInner(value
|
|
52
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
17
|
+
export function instanceOfValidationErrorEnvelopeDetailsInner(value) {
|
|
18
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
19
|
+
return false;
|
|
53
20
|
return true;
|
|
54
21
|
}
|
|
55
|
-
|
|
56
|
-
export function ValidationErrorEnvelopeDetailsInnerFromJSON(json: any): ValidationErrorEnvelopeDetailsInner {
|
|
22
|
+
export function ValidationErrorEnvelopeDetailsInnerFromJSON(json) {
|
|
57
23
|
return ValidationErrorEnvelopeDetailsInnerFromJSONTyped(json, false);
|
|
58
24
|
}
|
|
59
|
-
|
|
60
|
-
export function ValidationErrorEnvelopeDetailsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorEnvelopeDetailsInner {
|
|
25
|
+
export function ValidationErrorEnvelopeDetailsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
26
|
if (json == null) {
|
|
62
27
|
return json;
|
|
63
28
|
}
|
|
64
29
|
return {
|
|
65
|
-
|
|
66
30
|
'operation': json['operation'] == null ? undefined : json['operation'],
|
|
67
31
|
'option': json['option'] == null ? undefined : json['option'],
|
|
68
32
|
'field': json['field'] == null ? undefined : json['field'],
|
|
69
33
|
'message': json['message'],
|
|
70
34
|
};
|
|
71
35
|
}
|
|
72
|
-
|
|
73
|
-
export function ValidationErrorEnvelopeDetailsInnerToJSON(json: any): ValidationErrorEnvelopeDetailsInner {
|
|
36
|
+
export function ValidationErrorEnvelopeDetailsInnerToJSON(json) {
|
|
74
37
|
return ValidationErrorEnvelopeDetailsInnerToJSONTyped(json, false);
|
|
75
38
|
}
|
|
76
|
-
|
|
77
|
-
export function ValidationErrorEnvelopeDetailsInnerToJSONTyped(value?: ValidationErrorEnvelopeDetailsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
39
|
+
export function ValidationErrorEnvelopeDetailsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
78
40
|
if (value == null) {
|
|
79
41
|
return value;
|
|
80
42
|
}
|
|
81
|
-
|
|
82
43
|
return {
|
|
83
|
-
|
|
84
44
|
'operation': value['operation'],
|
|
85
45
|
'option': value['option'],
|
|
86
46
|
'field': value['field'],
|
|
87
47
|
'message': value['message'],
|
|
88
48
|
};
|
|
89
49
|
}
|
|
90
|
-
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* Identifies which operation triggered the callback. Present only for
|
|
14
|
+
* `operation.completed` events; null for workflow-level events.
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WebhookOperationContext
|
|
18
|
+
*/
|
|
19
|
+
export interface WebhookOperationContext {
|
|
20
|
+
/**
|
|
21
|
+
* Reference label of the job containing the operation
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof WebhookOperationContext
|
|
24
|
+
*/
|
|
25
|
+
jobRef: string;
|
|
26
|
+
/**
|
|
27
|
+
* UUID v7 format identifier (time-ordered)
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof WebhookOperationContext
|
|
30
|
+
*/
|
|
31
|
+
operationId: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the WebhookOperationContext interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfWebhookOperationContext(value: object): value is WebhookOperationContext;
|
|
37
|
+
export declare function WebhookOperationContextFromJSON(json: any): WebhookOperationContext;
|
|
38
|
+
export declare function WebhookOperationContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookOperationContext;
|
|
39
|
+
export declare function WebhookOperationContextToJSON(json: any): WebhookOperationContext;
|
|
40
|
+
export declare function WebhookOperationContextToJSONTyped(value?: WebhookOperationContext | null, ignoreDiscriminator?: boolean): any;
|
package/{openapi/models/WebhookOperationContext.ts → dist/openapi/models/WebhookOperationContext.js}
RENAMED
|
@@ -2,76 +2,46 @@
|
|
|
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
|
-
* Identifies which operation triggered the callback. Present only for
|
|
18
|
-
* `operation.completed` events; null for workflow-level events.
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
* @interface WebhookOperationContext
|
|
22
|
-
*/
|
|
23
|
-
export interface WebhookOperationContext {
|
|
24
|
-
/**
|
|
25
|
-
* Reference label of the job containing the operation
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof WebhookOperationContext
|
|
28
|
-
*/
|
|
29
|
-
jobRef: string;
|
|
30
|
-
/**
|
|
31
|
-
* UUID v7 format identifier (time-ordered)
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof WebhookOperationContext
|
|
34
|
-
*/
|
|
35
|
-
operationId: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
14
|
/**
|
|
39
15
|
* Check if a given object implements the WebhookOperationContext interface.
|
|
40
16
|
*/
|
|
41
|
-
export function instanceOfWebhookOperationContext(value
|
|
42
|
-
if (!('jobRef' in value) || value['jobRef'] === undefined)
|
|
43
|
-
|
|
17
|
+
export function instanceOfWebhookOperationContext(value) {
|
|
18
|
+
if (!('jobRef' in value) || value['jobRef'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('operationId' in value) || value['operationId'] === undefined)
|
|
21
|
+
return false;
|
|
44
22
|
return true;
|
|
45
23
|
}
|
|
46
|
-
|
|
47
|
-
export function WebhookOperationContextFromJSON(json: any): WebhookOperationContext {
|
|
24
|
+
export function WebhookOperationContextFromJSON(json) {
|
|
48
25
|
return WebhookOperationContextFromJSONTyped(json, false);
|
|
49
26
|
}
|
|
50
|
-
|
|
51
|
-
export function WebhookOperationContextFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookOperationContext {
|
|
27
|
+
export function WebhookOperationContextFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
28
|
if (json == null) {
|
|
53
29
|
return json;
|
|
54
30
|
}
|
|
55
31
|
return {
|
|
56
|
-
|
|
57
32
|
'jobRef': json['job_ref'],
|
|
58
33
|
'operationId': json['operation_id'],
|
|
59
34
|
};
|
|
60
35
|
}
|
|
61
|
-
|
|
62
|
-
export function WebhookOperationContextToJSON(json: any): WebhookOperationContext {
|
|
36
|
+
export function WebhookOperationContextToJSON(json) {
|
|
63
37
|
return WebhookOperationContextToJSONTyped(json, false);
|
|
64
38
|
}
|
|
65
|
-
|
|
66
|
-
export function WebhookOperationContextToJSONTyped(value?: WebhookOperationContext | null, ignoreDiscriminator: boolean = false): any {
|
|
39
|
+
export function WebhookOperationContextToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
40
|
if (value == null) {
|
|
68
41
|
return value;
|
|
69
42
|
}
|
|
70
|
-
|
|
71
43
|
return {
|
|
72
|
-
|
|
73
44
|
'job_ref': value['jobRef'],
|
|
74
45
|
'operation_id': value['operationId'],
|
|
75
46
|
};
|
|
76
47
|
}
|
|
77
|
-
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { CallbackEventType } from './CallbackEventType.js';
|
|
13
|
+
import type { WebhookOperationContext } from './WebhookOperationContext.js';
|
|
14
|
+
import type { WorkflowStatusResponse } from './WorkflowStatusResponse.js';
|
|
15
|
+
/**
|
|
16
|
+
* Payload POSTed to the `callback_url` when a subscribed event occurs.
|
|
17
|
+
* The `workflow` field contains the full current state including all jobs
|
|
18
|
+
* and their operation results, matching the `WorkflowStatusResponse` shape.
|
|
19
|
+
*
|
|
20
|
+
* For `operation.completed` events, the `operation` field identifies which
|
|
21
|
+
* specific operation triggered the callback, so consumers do not need to
|
|
22
|
+
* scan the entire workflow to find the change.
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
* @interface WebhookPayload
|
|
26
|
+
*/
|
|
27
|
+
export interface WebhookPayload {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CallbackEventType}
|
|
31
|
+
* @memberof WebhookPayload
|
|
32
|
+
*/
|
|
33
|
+
eventType: CallbackEventType;
|
|
34
|
+
/**
|
|
35
|
+
* UUID v7 format identifier (time-ordered)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof WebhookPayload
|
|
38
|
+
*/
|
|
39
|
+
deliveryId: string;
|
|
40
|
+
/**
|
|
41
|
+
* ISO 8601 timestamp of when the event occurred
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof WebhookPayload
|
|
44
|
+
*/
|
|
45
|
+
timestamp: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {WorkflowStatusResponse}
|
|
49
|
+
* @memberof WebhookPayload
|
|
50
|
+
*/
|
|
51
|
+
workflow: WorkflowStatusResponse;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {WebhookOperationContext}
|
|
55
|
+
* @memberof WebhookPayload
|
|
56
|
+
*/
|
|
57
|
+
operation?: WebhookOperationContext;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the WebhookPayload interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfWebhookPayload(value: object): value is WebhookPayload;
|
|
63
|
+
export declare function WebhookPayloadFromJSON(json: any): WebhookPayload;
|
|
64
|
+
export declare function WebhookPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookPayload;
|
|
65
|
+
export declare function WebhookPayloadToJSON(json: any): WebhookPayload;
|
|
66
|
+
export declare function WebhookPayloadToJSONTyped(value?: WebhookPayload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { CallbackEventTypeFromJSON, CallbackEventTypeToJSON, } from './CallbackEventType.js';
|
|
15
|
+
import { WebhookOperationContextFromJSON, WebhookOperationContextToJSON, } from './WebhookOperationContext.js';
|
|
16
|
+
import { WorkflowStatusResponseFromJSON, WorkflowStatusResponseToJSON, } from './WorkflowStatusResponse.js';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the WebhookPayload interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfWebhookPayload(value) {
|
|
21
|
+
if (!('eventType' in value) || value['eventType'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('deliveryId' in value) || value['deliveryId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('workflow' in value) || value['workflow'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function WebhookPayloadFromJSON(json) {
|
|
32
|
+
return WebhookPayloadFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function WebhookPayloadFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'eventType': CallbackEventTypeFromJSON(json['event_type']),
|
|
40
|
+
'deliveryId': json['delivery_id'],
|
|
41
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
42
|
+
'workflow': WorkflowStatusResponseFromJSON(json['workflow']),
|
|
43
|
+
'operation': json['operation'] == null ? undefined : WebhookOperationContextFromJSON(json['operation']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function WebhookPayloadToJSON(json) {
|
|
47
|
+
return WebhookPayloadToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function WebhookPayloadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'event_type': CallbackEventTypeToJSON(value['eventType']),
|
|
55
|
+
'delivery_id': value['deliveryId'],
|
|
56
|
+
'timestamp': ((value['timestamp']).toISOString()),
|
|
57
|
+
'workflow': WorkflowStatusResponseToJSON(value['workflow']),
|
|
58
|
+
'operation': WebhookOperationContextToJSON(value['operation']),
|
|
59
|
+
};
|
|
60
|
+
}
|