@giveitsmaller/contracts 0.1.0 → 0.1.2
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,76 @@
|
|
|
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 { WorkflowEdge } from './WorkflowEdge.js';
|
|
13
|
+
import type { CallbackEventType } from './CallbackEventType.js';
|
|
14
|
+
import type { ExportConfig } from './ExportConfig.js';
|
|
15
|
+
import type { JobDefinition } from './JobDefinition.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface WorkflowCreateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface WorkflowCreateRequest {
|
|
22
|
+
/**
|
|
23
|
+
* List of jobs in this workflow
|
|
24
|
+
* @type {Array<JobDefinition>}
|
|
25
|
+
* @memberof WorkflowCreateRequest
|
|
26
|
+
*/
|
|
27
|
+
jobs: Array<JobDefinition>;
|
|
28
|
+
/**
|
|
29
|
+
* DAG dependency edges between jobs. Each edge defines that a downstream
|
|
30
|
+
* job depends on an upstream job's output. Jobs with no incoming edges
|
|
31
|
+
* start immediately. Jobs with dependencies wait for all upstream jobs.
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<WorkflowEdge>}
|
|
34
|
+
* @memberof WorkflowCreateRequest
|
|
35
|
+
*/
|
|
36
|
+
workflowEdges?: Array<WorkflowEdge>;
|
|
37
|
+
/**
|
|
38
|
+
* Webhook URL (HTTPS only). The API POSTs a `WebhookPayload` JSON body to
|
|
39
|
+
* this URL when matching events occur. The payload includes event type,
|
|
40
|
+
* delivery ID, timestamp, and full workflow state with job results and
|
|
41
|
+
* download URLs. Must use HTTPS to prevent credential leakage and SSRF
|
|
42
|
+
* against internal endpoints.
|
|
43
|
+
*
|
|
44
|
+
* **Signature verification:**
|
|
45
|
+
* Each request includes an `X-GIS-Signature` header containing an
|
|
46
|
+
* HMAC-SHA256 hex digest of the raw request body, using the per-workflow
|
|
47
|
+
* `webhook_secret` (returned in the workflow creation response) as the key.
|
|
48
|
+
* Header format: `sha256=<hex(hmac-sha256(webhook_secret, raw_body))>`.
|
|
49
|
+
* Consumers MUST verify the signature before processing the payload.
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof WorkflowCreateRequest
|
|
53
|
+
*/
|
|
54
|
+
callbackUrl?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Which events trigger the webhook callback. Defaults to terminal events only.
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<CallbackEventType>}
|
|
59
|
+
* @memberof WorkflowCreateRequest
|
|
60
|
+
*/
|
|
61
|
+
callbackEvents?: Array<CallbackEventType>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ExportConfig}
|
|
65
|
+
* @memberof WorkflowCreateRequest
|
|
66
|
+
*/
|
|
67
|
+
_export?: ExportConfig;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the WorkflowCreateRequest interface.
|
|
71
|
+
*/
|
|
72
|
+
export declare function instanceOfWorkflowCreateRequest(value: object): value is WorkflowCreateRequest;
|
|
73
|
+
export declare function WorkflowCreateRequestFromJSON(json: any): WorkflowCreateRequest;
|
|
74
|
+
export declare function WorkflowCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCreateRequest;
|
|
75
|
+
export declare function WorkflowCreateRequestToJSON(json: any): WorkflowCreateRequest;
|
|
76
|
+
export declare function WorkflowCreateRequestToJSONTyped(value?: WorkflowCreateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { WorkflowEdgeFromJSON, WorkflowEdgeToJSON, } from './WorkflowEdge.js';
|
|
15
|
+
import { CallbackEventTypeFromJSON, CallbackEventTypeToJSON, } from './CallbackEventType.js';
|
|
16
|
+
import { ExportConfigFromJSON, ExportConfigToJSON, } from './ExportConfig.js';
|
|
17
|
+
import { JobDefinitionFromJSON, JobDefinitionToJSON, } from './JobDefinition.js';
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the WorkflowCreateRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfWorkflowCreateRequest(value) {
|
|
22
|
+
if (!('jobs' in value) || value['jobs'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function WorkflowCreateRequestFromJSON(json) {
|
|
27
|
+
return WorkflowCreateRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function WorkflowCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'jobs': (json['jobs'].map(JobDefinitionFromJSON)),
|
|
35
|
+
'workflowEdges': json['workflow_edges'] == null ? undefined : (json['workflow_edges'].map(WorkflowEdgeFromJSON)),
|
|
36
|
+
'callbackUrl': json['callback_url'] == null ? undefined : json['callback_url'],
|
|
37
|
+
'callbackEvents': json['callback_events'] == null ? undefined : (json['callback_events'].map(CallbackEventTypeFromJSON)),
|
|
38
|
+
'_export': json['export'] == null ? undefined : ExportConfigFromJSON(json['export']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function WorkflowCreateRequestToJSON(json) {
|
|
42
|
+
return WorkflowCreateRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function WorkflowCreateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'jobs': (value['jobs'].map(JobDefinitionToJSON)),
|
|
50
|
+
'workflow_edges': value['workflowEdges'] == null ? undefined : (value['workflowEdges'].map(WorkflowEdgeToJSON)),
|
|
51
|
+
'callback_url': value['callbackUrl'],
|
|
52
|
+
'callback_events': value['callbackEvents'] == null ? undefined : (value['callbackEvents'].map(CallbackEventTypeToJSON)),
|
|
53
|
+
'export': ExportConfigToJSON(value['_export']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { JobResponse } from './JobResponse.js';
|
|
13
|
+
import type { WorkflowStatus } from './WorkflowStatus.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WorkflowCreateResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface WorkflowCreateResponse {
|
|
20
|
+
/**
|
|
21
|
+
* UUID v7 format identifier (time-ordered)
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof WorkflowCreateResponse
|
|
24
|
+
*/
|
|
25
|
+
workflowId: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {WorkflowStatus}
|
|
29
|
+
* @memberof WorkflowCreateResponse
|
|
30
|
+
*/
|
|
31
|
+
status: WorkflowStatus;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<JobResponse>}
|
|
35
|
+
* @memberof WorkflowCreateResponse
|
|
36
|
+
*/
|
|
37
|
+
jobs: Array<JobResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* HMAC-SHA256 signing key for webhook verification. Present only when
|
|
40
|
+
* `callback_url` was provided in the request. This is the only time the
|
|
41
|
+
* secret is exposed — it does not appear in status queries.
|
|
42
|
+
*
|
|
43
|
+
* Use this key to verify the `X-GIS-Signature` header on incoming webhook
|
|
44
|
+
* requests: `sha256=<hex(hmac-sha256(webhook_secret, raw_body))>`.
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof WorkflowCreateResponse
|
|
48
|
+
*/
|
|
49
|
+
readonly webhookSecret?: string | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the WorkflowCreateResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfWorkflowCreateResponse(value: object): value is WorkflowCreateResponse;
|
|
55
|
+
export declare function WorkflowCreateResponseFromJSON(json: any): WorkflowCreateResponse;
|
|
56
|
+
export declare function WorkflowCreateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCreateResponse;
|
|
57
|
+
export declare function WorkflowCreateResponseToJSON(json: any): WorkflowCreateResponse;
|
|
58
|
+
export declare function WorkflowCreateResponseToJSONTyped(value?: Omit<WorkflowCreateResponse, 'webhook_secret'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* GISL Compression API
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { JobResponseFromJSON, JobResponseToJSON, } from './JobResponse.js';
|
|
15
|
+
import { WorkflowStatusFromJSON, WorkflowStatusToJSON, } from './WorkflowStatus.js';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the WorkflowCreateResponse interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfWorkflowCreateResponse(value) {
|
|
20
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('jobs' in value) || value['jobs'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function WorkflowCreateResponseFromJSON(json) {
|
|
29
|
+
return WorkflowCreateResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function WorkflowCreateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'workflowId': json['workflow_id'],
|
|
37
|
+
'status': WorkflowStatusFromJSON(json['status']),
|
|
38
|
+
'jobs': (json['jobs'].map(JobResponseFromJSON)),
|
|
39
|
+
'webhookSecret': json['webhook_secret'] == null ? undefined : json['webhook_secret'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function WorkflowCreateResponseToJSON(json) {
|
|
43
|
+
return WorkflowCreateResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function WorkflowCreateResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'workflow_id': value['workflowId'],
|
|
51
|
+
'status': WorkflowStatusToJSON(value['status']),
|
|
52
|
+
'jobs': (value['jobs'].map(JobResponseToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { WorkflowCreateResponse } from './WorkflowCreateResponse.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WorkflowCreateSuccessEnvelope
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkflowCreateSuccessEnvelope {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof WorkflowCreateSuccessEnvelope
|
|
23
|
+
*/
|
|
24
|
+
success: WorkflowCreateSuccessEnvelopeSuccessEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {WorkflowCreateResponse}
|
|
28
|
+
* @memberof WorkflowCreateSuccessEnvelope
|
|
29
|
+
*/
|
|
30
|
+
data: WorkflowCreateResponse;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const WorkflowCreateSuccessEnvelopeSuccessEnum: {
|
|
36
|
+
readonly true: true;
|
|
37
|
+
};
|
|
38
|
+
export type WorkflowCreateSuccessEnvelopeSuccessEnum = typeof WorkflowCreateSuccessEnvelopeSuccessEnum[keyof typeof WorkflowCreateSuccessEnvelopeSuccessEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the WorkflowCreateSuccessEnvelope interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfWorkflowCreateSuccessEnvelope(value: object): value is WorkflowCreateSuccessEnvelope;
|
|
43
|
+
export declare function WorkflowCreateSuccessEnvelopeFromJSON(json: any): WorkflowCreateSuccessEnvelope;
|
|
44
|
+
export declare function WorkflowCreateSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCreateSuccessEnvelope;
|
|
45
|
+
export declare function WorkflowCreateSuccessEnvelopeToJSON(json: any): WorkflowCreateSuccessEnvelope;
|
|
46
|
+
export declare function WorkflowCreateSuccessEnvelopeToJSONTyped(value?: WorkflowCreateSuccessEnvelope | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,92 +2,53 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { WorkflowCreateResponse } from './WorkflowCreateResponse';
|
|
17
|
-
import {
|
|
18
|
-
WorkflowCreateResponseFromJSON,
|
|
19
|
-
WorkflowCreateResponseFromJSONTyped,
|
|
20
|
-
WorkflowCreateResponseToJSON,
|
|
21
|
-
WorkflowCreateResponseToJSONTyped,
|
|
22
|
-
} from './WorkflowCreateResponse';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface WorkflowCreateSuccessEnvelope
|
|
28
|
-
*/
|
|
29
|
-
export interface WorkflowCreateSuccessEnvelope {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof WorkflowCreateSuccessEnvelope
|
|
34
|
-
*/
|
|
35
|
-
success: WorkflowCreateSuccessEnvelopeSuccessEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {WorkflowCreateResponse}
|
|
39
|
-
* @memberof WorkflowCreateSuccessEnvelope
|
|
40
|
-
*/
|
|
41
|
-
data: WorkflowCreateResponse;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
14
|
+
import { WorkflowCreateResponseFromJSON, WorkflowCreateResponseToJSON, } from './WorkflowCreateResponse.js';
|
|
45
15
|
/**
|
|
46
16
|
* @export
|
|
47
17
|
*/
|
|
48
18
|
export const WorkflowCreateSuccessEnvelopeSuccessEnum = {
|
|
49
19
|
true: true
|
|
50
|
-
}
|
|
51
|
-
export type WorkflowCreateSuccessEnvelopeSuccessEnum = typeof WorkflowCreateSuccessEnvelopeSuccessEnum[keyof typeof WorkflowCreateSuccessEnvelopeSuccessEnum];
|
|
52
|
-
|
|
53
|
-
|
|
20
|
+
};
|
|
54
21
|
/**
|
|
55
22
|
* Check if a given object implements the WorkflowCreateSuccessEnvelope interface.
|
|
56
23
|
*/
|
|
57
|
-
export function instanceOfWorkflowCreateSuccessEnvelope(value
|
|
58
|
-
if (!('success' in value) || value['success'] === undefined)
|
|
59
|
-
|
|
24
|
+
export function instanceOfWorkflowCreateSuccessEnvelope(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 WorkflowCreateSuccessEnvelopeFromJSON(json: any): WorkflowCreateSuccessEnvelope {
|
|
31
|
+
export function WorkflowCreateSuccessEnvelopeFromJSON(json) {
|
|
64
32
|
return WorkflowCreateSuccessEnvelopeFromJSONTyped(json, false);
|
|
65
33
|
}
|
|
66
|
-
|
|
67
|
-
export function WorkflowCreateSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCreateSuccessEnvelope {
|
|
34
|
+
export function WorkflowCreateSuccessEnvelopeFromJSONTyped(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': WorkflowCreateResponseFromJSON(json['data']),
|
|
75
41
|
};
|
|
76
42
|
}
|
|
77
|
-
|
|
78
|
-
export function WorkflowCreateSuccessEnvelopeToJSON(json: any): WorkflowCreateSuccessEnvelope {
|
|
43
|
+
export function WorkflowCreateSuccessEnvelopeToJSON(json) {
|
|
79
44
|
return WorkflowCreateSuccessEnvelopeToJSONTyped(json, false);
|
|
80
45
|
}
|
|
81
|
-
|
|
82
|
-
export function WorkflowCreateSuccessEnvelopeToJSONTyped(value?: WorkflowCreateSuccessEnvelope | null, ignoreDiscriminator: boolean = false): any {
|
|
46
|
+
export function WorkflowCreateSuccessEnvelopeToJSONTyped(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': WorkflowCreateResponseToJSON(value['data']),
|
|
91
53
|
};
|
|
92
54
|
}
|
|
93
|
-
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { JobDownload } from './JobDownload.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WorkflowDownloadResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkflowDownloadResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<JobDownload>}
|
|
22
|
+
* @memberof WorkflowDownloadResponse
|
|
23
|
+
*/
|
|
24
|
+
downloads: Array<JobDownload>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the WorkflowDownloadResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfWorkflowDownloadResponse(value: object): value is WorkflowDownloadResponse;
|
|
30
|
+
export declare function WorkflowDownloadResponseFromJSON(json: any): WorkflowDownloadResponse;
|
|
31
|
+
export declare function WorkflowDownloadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDownloadResponse;
|
|
32
|
+
export declare function WorkflowDownloadResponseToJSON(json: any): WorkflowDownloadResponse;
|
|
33
|
+
export declare function WorkflowDownloadResponseToJSONTyped(value?: WorkflowDownloadResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,73 +2,43 @@
|
|
|
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 { JobDownload } from './JobDownload';
|
|
17
|
-
import {
|
|
18
|
-
JobDownloadFromJSON,
|
|
19
|
-
JobDownloadFromJSONTyped,
|
|
20
|
-
JobDownloadToJSON,
|
|
21
|
-
JobDownloadToJSONTyped,
|
|
22
|
-
} from './JobDownload';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface WorkflowDownloadResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface WorkflowDownloadResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<JobDownload>}
|
|
33
|
-
* @memberof WorkflowDownloadResponse
|
|
34
|
-
*/
|
|
35
|
-
downloads: Array<JobDownload>;
|
|
36
|
-
}
|
|
37
|
-
|
|
14
|
+
import { JobDownloadFromJSON, JobDownloadToJSON, } from './JobDownload.js';
|
|
38
15
|
/**
|
|
39
16
|
* Check if a given object implements the WorkflowDownloadResponse interface.
|
|
40
17
|
*/
|
|
41
|
-
export function instanceOfWorkflowDownloadResponse(value
|
|
42
|
-
if (!('downloads' in value) || value['downloads'] === undefined)
|
|
18
|
+
export function instanceOfWorkflowDownloadResponse(value) {
|
|
19
|
+
if (!('downloads' in value) || value['downloads'] === undefined)
|
|
20
|
+
return false;
|
|
43
21
|
return true;
|
|
44
22
|
}
|
|
45
|
-
|
|
46
|
-
export function WorkflowDownloadResponseFromJSON(json: any): WorkflowDownloadResponse {
|
|
23
|
+
export function WorkflowDownloadResponseFromJSON(json) {
|
|
47
24
|
return WorkflowDownloadResponseFromJSONTyped(json, false);
|
|
48
25
|
}
|
|
49
|
-
|
|
50
|
-
export function WorkflowDownloadResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDownloadResponse {
|
|
26
|
+
export function WorkflowDownloadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
27
|
if (json == null) {
|
|
52
28
|
return json;
|
|
53
29
|
}
|
|
54
30
|
return {
|
|
55
|
-
|
|
56
|
-
'downloads': ((json['downloads'] as Array<any>).map(JobDownloadFromJSON)),
|
|
31
|
+
'downloads': (json['downloads'].map(JobDownloadFromJSON)),
|
|
57
32
|
};
|
|
58
33
|
}
|
|
59
|
-
|
|
60
|
-
export function WorkflowDownloadResponseToJSON(json: any): WorkflowDownloadResponse {
|
|
34
|
+
export function WorkflowDownloadResponseToJSON(json) {
|
|
61
35
|
return WorkflowDownloadResponseToJSONTyped(json, false);
|
|
62
36
|
}
|
|
63
|
-
|
|
64
|
-
export function WorkflowDownloadResponseToJSONTyped(value?: WorkflowDownloadResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
37
|
+
export function WorkflowDownloadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
38
|
if (value == null) {
|
|
66
39
|
return value;
|
|
67
40
|
}
|
|
68
|
-
|
|
69
41
|
return {
|
|
70
|
-
|
|
71
|
-
'downloads': ((value['downloads'] as Array<any>).map(JobDownloadToJSON)),
|
|
42
|
+
'downloads': (value['downloads'].map(JobDownloadToJSON)),
|
|
72
43
|
};
|
|
73
44
|
}
|
|
74
|
-
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { WorkflowDownloadResponse } from './WorkflowDownloadResponse.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WorkflowDownloadSuccessEnvelope
|
|
17
|
+
*/
|
|
18
|
+
export interface WorkflowDownloadSuccessEnvelope {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof WorkflowDownloadSuccessEnvelope
|
|
23
|
+
*/
|
|
24
|
+
success: WorkflowDownloadSuccessEnvelopeSuccessEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {WorkflowDownloadResponse}
|
|
28
|
+
* @memberof WorkflowDownloadSuccessEnvelope
|
|
29
|
+
*/
|
|
30
|
+
data: WorkflowDownloadResponse;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const WorkflowDownloadSuccessEnvelopeSuccessEnum: {
|
|
36
|
+
readonly true: true;
|
|
37
|
+
};
|
|
38
|
+
export type WorkflowDownloadSuccessEnvelopeSuccessEnum = typeof WorkflowDownloadSuccessEnvelopeSuccessEnum[keyof typeof WorkflowDownloadSuccessEnvelopeSuccessEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the WorkflowDownloadSuccessEnvelope interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfWorkflowDownloadSuccessEnvelope(value: object): value is WorkflowDownloadSuccessEnvelope;
|
|
43
|
+
export declare function WorkflowDownloadSuccessEnvelopeFromJSON(json: any): WorkflowDownloadSuccessEnvelope;
|
|
44
|
+
export declare function WorkflowDownloadSuccessEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowDownloadSuccessEnvelope;
|
|
45
|
+
export declare function WorkflowDownloadSuccessEnvelopeToJSON(json: any): WorkflowDownloadSuccessEnvelope;
|
|
46
|
+
export declare function WorkflowDownloadSuccessEnvelopeToJSONTyped(value?: WorkflowDownloadSuccessEnvelope | null, ignoreDiscriminator?: boolean): any;
|