@giveitsmaller/contracts 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asyncapi/ErrorCode.d.ts +18 -0
- package/dist/asyncapi/ErrorCode.js +19 -0
- package/dist/asyncapi/MergeOutputType.d.ts +8 -0
- package/dist/asyncapi/MergeOutputType.js +9 -0
- package/{asyncapi/NotificationsOperationsQueue.ts → dist/asyncapi/NotificationsOperationsQueue.d.ts} +2 -2
- package/dist/asyncapi/NotificationsOperationsQueue.js +1 -0
- package/dist/asyncapi/OperationMetrics.d.ts +11 -0
- package/dist/asyncapi/OperationMetrics.js +1 -0
- package/dist/asyncapi/OperationProgress.d.ts +12 -0
- package/dist/asyncapi/OperationProgress.js +1 -0
- package/dist/asyncapi/OperationRequest.d.ts +21 -0
- package/dist/asyncapi/OperationRequest.js +1 -0
- package/dist/asyncapi/OperationResult.d.ts +20 -0
- package/dist/asyncapi/OperationResult.js +1 -0
- package/dist/asyncapi/OperationType.d.ts +9 -0
- package/dist/asyncapi/OperationType.js +10 -0
- package/dist/asyncapi/ProgressStatus.d.ts +7 -0
- package/dist/asyncapi/ProgressStatus.js +8 -0
- package/dist/asyncapi/ResultStatus.d.ts +5 -0
- package/dist/asyncapi/ResultStatus.js +6 -0
- package/dist/asyncapi/SourceEntry.d.ts +8 -0
- package/dist/asyncapi/SourceEntry.js +1 -0
- package/dist/asyncapi/index.d.ts +11 -0
- package/dist/asyncapi/index.js +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/openapi/index.d.ts +2 -0
- package/dist/openapi/index.js +4 -0
- package/dist/openapi/models/CallbackEventType.d.ts +32 -0
- package/{openapi/models/CallbackEventType.ts → dist/openapi/models/CallbackEventType.js} +13 -23
- package/dist/openapi/models/ContactRequest.d.ts +60 -0
- package/{openapi/models/ContactRequest.ts → dist/openapi/models/ContactRequest.js} +14 -71
- package/dist/openapi/models/ContactSubject.d.ts +34 -0
- package/{openapi/models/ContactSubject.ts → dist/openapi/models/ContactSubject.js} +13 -23
- package/dist/openapi/models/ContactValidationErrorResponse.d.ts +35 -0
- package/{openapi/models/ContactValidationErrorResponse.ts → dist/openapi/models/ContactValidationErrorResponse.js} +9 -33
- package/dist/openapi/models/ErrorEnvelope.d.ts +45 -0
- package/{openapi/models/ErrorEnvelope.ts → dist/openapi/models/ErrorEnvelope.js} +12 -44
- package/{openapi/models/ExportConfig.ts → dist/openapi/models/ExportConfig.d.ts} +12 -57
- package/dist/openapi/models/ExportConfig.js +59 -0
- package/{openapi/models/JobDefinition.ts → dist/openapi/models/JobDefinition.d.ts} +9 -33
- package/dist/openapi/models/JobDefinition.js +31 -0
- package/dist/openapi/models/JobDownload.d.ts +45 -0
- package/dist/openapi/models/JobDownload.js +52 -0
- package/{openapi/models/JobInput.ts → dist/openapi/models/JobInput.d.ts} +13 -49
- package/dist/openapi/models/JobInput.js +47 -0
- package/dist/openapi/models/JobResponse.d.ts +58 -0
- package/dist/openapi/models/JobResponse.js +61 -0
- package/{openapi/models/JobSource.ts → dist/openapi/models/JobSource.d.ts} +9 -45
- package/dist/openapi/models/JobSource.js +45 -0
- package/dist/openapi/models/JobStatus.d.ts +34 -0
- package/{openapi/models/JobStatus.ts → dist/openapi/models/JobStatus.js} +13 -23
- package/dist/openapi/models/JobType.d.ts +32 -0
- package/{openapi/models/JobType.ts → dist/openapi/models/JobType.js} +13 -23
- package/dist/openapi/models/LivenessResponse.d.ts +32 -0
- package/{openapi/models/LivenessResponse.ts → dist/openapi/models/LivenessResponse.js} +9 -32
- package/dist/openapi/models/MetadataResponse.d.ts +139 -0
- package/dist/openapi/models/MetadataResponse.js +85 -0
- package/dist/openapi/models/MetadataResponseDimensions.d.ts +38 -0
- package/{openapi/models/MetadataResponseDimensions.ts → dist/openapi/models/MetadataResponseDimensions.js} +7 -37
- package/dist/openapi/models/MetadataResponseExif.d.ts +51 -0
- package/{openapi/models/MetadataResponseExif.ts → dist/openapi/models/MetadataResponseExif.js} +8 -57
- package/dist/openapi/models/MetadataResponseExifGps.d.ts +38 -0
- package/{openapi/models/MetadataResponseExifGps.ts → dist/openapi/models/MetadataResponseExifGps.js} +7 -37
- package/dist/openapi/models/MetadataSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/MetadataSuccessEnvelope.ts → dist/openapi/models/MetadataSuccessEnvelope.js} +13 -52
- package/dist/openapi/models/MimeGroupSchema.d.ts +49 -0
- package/{openapi/models/MimeGroupSchema.ts → dist/openapi/models/MimeGroupSchema.js} +13 -53
- package/dist/openapi/models/MultipartCompleteRequest.d.ts +41 -0
- package/dist/openapi/models/MultipartCompleteRequest.js +48 -0
- package/dist/openapi/models/MultipartCompleteRequestPartsInner.d.ts +38 -0
- package/{openapi/models/MultipartCompleteRequestPartsInner.ts → dist/openapi/models/MultipartCompleteRequestPartsInner.js} +11 -39
- package/dist/openapi/models/MultipartInitiateResponse.d.ts +78 -0
- package/dist/openapi/models/MultipartInitiateResponse.js +68 -0
- package/dist/openapi/models/MultipartInitiateSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/MultipartInitiateSuccessEnvelope.ts → dist/openapi/models/MultipartInitiateSuccessEnvelope.js} +13 -52
- package/{openapi/models/OperationDefinition.ts → dist/openapi/models/OperationDefinition.d.ts} +14 -57
- package/dist/openapi/models/OperationDefinition.js +46 -0
- package/dist/openapi/models/OperationDownload.d.ts +56 -0
- package/{openapi/models/OperationDownload.ts → dist/openapi/models/OperationDownload.js} +17 -60
- package/dist/openapi/models/OperationInputModel.d.ts +28 -0
- package/{openapi/models/OperationInputModel.ts → dist/openapi/models/OperationInputModel.js} +13 -23
- package/dist/openapi/models/OperationResponse.d.ts +59 -0
- package/dist/openapi/models/OperationResponse.js +58 -0
- package/dist/openapi/models/OperationResult.d.ts +52 -0
- package/{openapi/models/OperationResult.ts → dist/openapi/models/OperationResult.js} +12 -60
- package/dist/openapi/models/OperationResultMetrics.d.ts +38 -0
- package/{openapi/models/OperationResultMetrics.ts → dist/openapi/models/OperationResultMetrics.js} +7 -37
- package/dist/openapi/models/OperationSchemaDefinition.d.ts +96 -0
- package/dist/openapi/models/OperationSchemaDefinition.js +67 -0
- package/dist/openapi/models/OperationStatus.d.ts +34 -0
- package/{openapi/models/OperationStatus.ts → dist/openapi/models/OperationStatus.js} +13 -23
- package/dist/openapi/models/OperationType.d.ts +36 -0
- package/{openapi/models/OperationType.ts → dist/openapi/models/OperationType.js} +13 -23
- package/{openapi/models/OperationsSchemaResponse.ts → dist/openapi/models/OperationsSchemaResponse.d.ts} +13 -55
- package/dist/openapi/models/OperationsSchemaResponse.js +49 -0
- package/{openapi/models/OptionSchema.ts → dist/openapi/models/OptionSchema.d.ts} +24 -76
- package/dist/openapi/models/OptionSchema.js +76 -0
- package/dist/openapi/models/PresignedUrlPart.d.ts +46 -0
- package/{openapi/models/PresignedUrlPart.ts → dist/openapi/models/PresignedUrlPart.js} +13 -48
- package/dist/openapi/models/ReadinessResponse.d.ts +38 -0
- package/{openapi/models/ReadinessResponse.ts → dist/openapi/models/ReadinessResponse.js} +7 -37
- package/dist/openapi/models/ResponseEnvelope.d.ts +36 -0
- package/{openapi/models/ResponseEnvelope.ts → dist/openapi/models/ResponseEnvelope.js} +9 -36
- package/dist/openapi/models/RetryResponse.d.ts +51 -0
- package/{openapi/models/RetryResponse.ts → dist/openapi/models/RetryResponse.js} +14 -51
- package/dist/openapi/models/RetrySuccessEnvelope.d.ts +46 -0
- package/{openapi/models/RetrySuccessEnvelope.ts → dist/openapi/models/RetrySuccessEnvelope.js} +13 -52
- package/dist/openapi/models/SseEventType.d.ts +40 -0
- package/{openapi/models/SseEventType.ts → dist/openapi/models/SseEventType.js} +13 -23
- package/{openapi/models/SseJobCompletedData.ts → dist/openapi/models/SseJobCompletedData.d.ts} +12 -55
- package/dist/openapi/models/SseJobCompletedData.js +57 -0
- package/dist/openapi/models/SseJobFailedData.d.ts +51 -0
- package/{openapi/models/SseJobFailedData.ts → dist/openapi/models/SseJobFailedData.js} +14 -51
- package/dist/openapi/models/SseOperationCompletedData.d.ts +78 -0
- package/dist/openapi/models/SseOperationCompletedData.js +75 -0
- package/dist/openapi/models/SseOperationFailedData.d.ts +70 -0
- package/dist/openapi/models/SseOperationFailedData.js +70 -0
- package/dist/openapi/models/SseOperationProgressData.d.ts +51 -0
- package/{openapi/models/SseOperationProgressData.ts → dist/openapi/models/SseOperationProgressData.js} +16 -63
- package/dist/openapi/models/SseWorkflowTerminalData.d.ts +49 -0
- package/{openapi/models/SseWorkflowTerminalData.ts → dist/openapi/models/SseWorkflowTerminalData.js} +12 -46
- package/dist/openapi/models/UploadResponse.d.ts +50 -0
- package/{openapi/models/UploadResponse.ts → dist/openapi/models/UploadResponse.js} +15 -53
- package/dist/openapi/models/UploadSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/UploadSuccessEnvelope.ts → dist/openapi/models/UploadSuccessEnvelope.js} +13 -52
- package/dist/openapi/models/ValidationErrorEnvelope.d.ts +54 -0
- package/dist/openapi/models/ValidationErrorEnvelope.js +58 -0
- package/dist/openapi/models/ValidationErrorEnvelopeDetailsInner.d.ts +50 -0
- package/{openapi/models/ValidationErrorEnvelopeDetailsInner.ts → dist/openapi/models/ValidationErrorEnvelopeDetailsInner.js} +9 -50
- package/dist/openapi/models/WebhookOperationContext.d.ts +40 -0
- package/{openapi/models/WebhookOperationContext.ts → dist/openapi/models/WebhookOperationContext.js} +11 -41
- package/dist/openapi/models/WebhookPayload.d.ts +66 -0
- package/dist/openapi/models/WebhookPayload.js +60 -0
- package/dist/openapi/models/WorkflowCreateRequest.d.ts +76 -0
- package/dist/openapi/models/WorkflowCreateRequest.js +55 -0
- package/dist/openapi/models/WorkflowCreateResponse.d.ts +58 -0
- package/dist/openapi/models/WorkflowCreateResponse.js +54 -0
- package/dist/openapi/models/WorkflowCreateSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/WorkflowCreateSuccessEnvelope.ts → dist/openapi/models/WorkflowCreateSuccessEnvelope.js} +13 -52
- package/dist/openapi/models/WorkflowDownloadResponse.d.ts +33 -0
- package/{openapi/models/WorkflowDownloadResponse.ts → dist/openapi/models/WorkflowDownloadResponse.js} +12 -42
- package/dist/openapi/models/WorkflowDownloadSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/WorkflowDownloadSuccessEnvelope.ts → dist/openapi/models/WorkflowDownloadSuccessEnvelope.js} +13 -52
- package/{openapi/models/WorkflowEdge.ts → dist/openapi/models/WorkflowEdge.d.ts} +8 -45
- package/dist/openapi/models/WorkflowEdge.js +47 -0
- package/dist/openapi/models/WorkflowStatus.d.ts +34 -0
- package/{openapi/models/WorkflowStatus.ts → dist/openapi/models/WorkflowStatus.js} +13 -23
- package/dist/openapi/models/WorkflowStatusResponse.d.ts +46 -0
- package/dist/openapi/models/WorkflowStatusResponse.js +53 -0
- package/dist/openapi/models/WorkflowStatusSuccessEnvelope.d.ts +46 -0
- package/{openapi/models/WorkflowStatusSuccessEnvelope.ts → dist/openapi/models/WorkflowStatusSuccessEnvelope.js} +13 -52
- package/dist/openapi/models/index.d.ts +62 -0
- package/dist/openapi/models/index.js +64 -0
- package/dist/openapi/runtime.d.ts +184 -0
- package/{openapi/runtime.ts → dist/openapi/runtime.js} +107 -206
- package/dist/operations/archive.d.ts +12 -0
- package/dist/operations/archive.js +11 -0
- package/dist/operations/compress.d.ts +154 -0
- package/dist/operations/compress.js +112 -0
- package/dist/operations/convert.d.ts +58 -0
- package/dist/operations/convert.js +46 -0
- package/dist/operations/index.d.ts +5 -0
- package/dist/operations/index.js +6 -0
- package/dist/operations/merge.d.ts +79 -0
- package/dist/operations/merge.js +46 -0
- package/dist/operations/thumbnail.d.ts +55 -0
- package/dist/operations/thumbnail.js +42 -0
- package/package.json +29 -11
- package/asyncapi/ErrorCode.ts +0 -19
- package/asyncapi/MergeOutputType.ts +0 -9
- package/asyncapi/OperationMetrics.ts +0 -12
- package/asyncapi/OperationProgress.ts +0 -12
- package/asyncapi/OperationRequest.ts +0 -21
- package/asyncapi/OperationResult.ts +0 -20
- package/asyncapi/OperationType.ts +0 -10
- package/asyncapi/ProgressStatus.ts +0 -8
- package/asyncapi/README.md +0 -16
- package/asyncapi/ResultStatus.ts +0 -6
- package/asyncapi/SourceEntry.ts +0 -9
- package/asyncapi/index.ts +0 -11
- package/index.ts +0 -5
- package/openapi/.openapi-generator-ignore +0 -26
- package/openapi/README.md +0 -17
- package/openapi/index.ts +0 -4
- package/openapi/models/JobDownload.ts +0 -92
- package/openapi/models/JobResponse.ts +0 -119
- package/openapi/models/MetadataResponse.ts +0 -223
- package/openapi/models/MultipartCompleteRequest.ts +0 -85
- package/openapi/models/MultipartInitiateResponse.ts +0 -137
- package/openapi/models/OperationResponse.ts +0 -124
- package/openapi/models/OperationSchemaDefinition.ts +0 -163
- package/openapi/models/SseOperationCompletedData.ts +0 -143
- package/openapi/models/SseOperationFailedData.ts +0 -129
- package/openapi/models/ValidationErrorEnvelope.ts +0 -104
- package/openapi/models/WebhookPayload.ts +0 -132
- package/openapi/models/WorkflowCreateRequest.ts +0 -143
- package/openapi/models/WorkflowCreateResponse.ts +0 -114
- package/openapi/models/WorkflowStatusResponse.ts +0 -101
- package/openapi/models/index.ts +0 -64
- package/operations/README.md +0 -17
- package/operations/archive.ts +0 -16
- package/operations/compress.ts +0 -177
- package/operations/convert.ts +0 -69
- package/operations/index.ts +0 -7
- package/operations/merge.ts +0 -95
- package/operations/thumbnail.ts +0 -66
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare enum ErrorCode {
|
|
2
|
+
S3_DOWNLOAD_FAILED = "s3_download_failed",
|
|
3
|
+
S3_UPLOAD_FAILED = "s3_upload_failed",
|
|
4
|
+
S3_ACCESS_DENIED = "s3_access_denied",
|
|
5
|
+
OUT_OF_MEMORY = "out_of_memory",
|
|
6
|
+
TIMEOUT = "timeout",
|
|
7
|
+
INVALID_FORMAT = "invalid_format",
|
|
8
|
+
FORMAT_MISMATCH = "format_mismatch",
|
|
9
|
+
DECODE_FAILED = "decode_failed",
|
|
10
|
+
PROCESSING_FAILED = "processing_failed",
|
|
11
|
+
OUTPUT_TOO_LARGE = "output_too_large",
|
|
12
|
+
INVALID_OPTIONS = "invalid_options",
|
|
13
|
+
MISSING_SOURCE = "missing_source",
|
|
14
|
+
INVALID_KEY = "invalid_key",
|
|
15
|
+
INVALID_REQUEST = "invalid_request",
|
|
16
|
+
UNKNOWN = "unknown"
|
|
17
|
+
}
|
|
18
|
+
export default ErrorCode;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var ErrorCode;
|
|
2
|
+
(function (ErrorCode) {
|
|
3
|
+
ErrorCode["S3_DOWNLOAD_FAILED"] = "s3_download_failed";
|
|
4
|
+
ErrorCode["S3_UPLOAD_FAILED"] = "s3_upload_failed";
|
|
5
|
+
ErrorCode["S3_ACCESS_DENIED"] = "s3_access_denied";
|
|
6
|
+
ErrorCode["OUT_OF_MEMORY"] = "out_of_memory";
|
|
7
|
+
ErrorCode["TIMEOUT"] = "timeout";
|
|
8
|
+
ErrorCode["INVALID_FORMAT"] = "invalid_format";
|
|
9
|
+
ErrorCode["FORMAT_MISMATCH"] = "format_mismatch";
|
|
10
|
+
ErrorCode["DECODE_FAILED"] = "decode_failed";
|
|
11
|
+
ErrorCode["PROCESSING_FAILED"] = "processing_failed";
|
|
12
|
+
ErrorCode["OUTPUT_TOO_LARGE"] = "output_too_large";
|
|
13
|
+
ErrorCode["INVALID_OPTIONS"] = "invalid_options";
|
|
14
|
+
ErrorCode["MISSING_SOURCE"] = "missing_source";
|
|
15
|
+
ErrorCode["INVALID_KEY"] = "invalid_key";
|
|
16
|
+
ErrorCode["INVALID_REQUEST"] = "invalid_request";
|
|
17
|
+
ErrorCode["UNKNOWN"] = "unknown";
|
|
18
|
+
})(ErrorCode || (ErrorCode = {}));
|
|
19
|
+
export default ErrorCode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var MergeOutputType;
|
|
2
|
+
(function (MergeOutputType) {
|
|
3
|
+
MergeOutputType["RESERVED_IMAGE"] = "image";
|
|
4
|
+
MergeOutputType["GIF"] = "gif";
|
|
5
|
+
MergeOutputType["VIDEO"] = "video";
|
|
6
|
+
MergeOutputType["AUDIO"] = "audio";
|
|
7
|
+
MergeOutputType["RESERVED_DOCUMENT"] = "document";
|
|
8
|
+
})(MergeOutputType || (MergeOutputType = {}));
|
|
9
|
+
export default MergeOutputType;
|
package/{asyncapi/NotificationsOperationsQueue.ts → dist/asyncapi/NotificationsOperationsQueue.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import OperationProgress from './OperationProgress';
|
|
2
|
-
import OperationResult from './OperationResult';
|
|
1
|
+
import OperationProgress from './OperationProgress.js';
|
|
2
|
+
import OperationResult from './OperationResult.js';
|
|
3
3
|
type NotificationsOperationsQueue = OperationProgress | OperationResult;
|
|
4
4
|
export default NotificationsOperationsQueue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface OperationMetrics {
|
|
2
|
+
'original_size_bytes'?: number;
|
|
3
|
+
'output_size_bytes'?: number;
|
|
4
|
+
'compression_ratio'?: number;
|
|
5
|
+
'duration_ms'?: number;
|
|
6
|
+
'input_count'?: number;
|
|
7
|
+
'file_count'?: number;
|
|
8
|
+
'total_input_size_bytes'?: number;
|
|
9
|
+
'additionalProperties'?: Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
export default OperationMetrics;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import OperationType from './OperationType.js';
|
|
2
|
+
import ProgressStatus from './ProgressStatus.js';
|
|
3
|
+
interface OperationProgress {
|
|
4
|
+
'job_id': string;
|
|
5
|
+
'operation_id': string;
|
|
6
|
+
'operation_type': OperationType;
|
|
7
|
+
'status': ProgressStatus;
|
|
8
|
+
'progress': number;
|
|
9
|
+
'stage'?: string;
|
|
10
|
+
'additionalProperties'?: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
export default OperationProgress;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import OperationType from './OperationType.js';
|
|
2
|
+
import SourceEntry from './SourceEntry.js';
|
|
3
|
+
import MergeOutputType from './MergeOutputType.js';
|
|
4
|
+
interface OperationRequest {
|
|
5
|
+
'job_id': string;
|
|
6
|
+
'operation_id': string;
|
|
7
|
+
'operation_type': OperationType;
|
|
8
|
+
'workflow_id'?: string;
|
|
9
|
+
'file_type'?: string;
|
|
10
|
+
'source_bucket'?: string;
|
|
11
|
+
'source_key'?: string;
|
|
12
|
+
'sources'?: SourceEntry[];
|
|
13
|
+
'output_bucket': string;
|
|
14
|
+
'output_key_prefix': string;
|
|
15
|
+
'output_type'?: MergeOutputType;
|
|
16
|
+
'options'?: Record<string, any>;
|
|
17
|
+
'source_credentials'?: Record<string, any>;
|
|
18
|
+
'export'?: Record<string, any>;
|
|
19
|
+
'additionalProperties'?: Record<string, any>;
|
|
20
|
+
}
|
|
21
|
+
export default OperationRequest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import OperationType from './OperationType.js';
|
|
2
|
+
import ResultStatus from './ResultStatus.js';
|
|
3
|
+
import OperationMetrics from './OperationMetrics.js';
|
|
4
|
+
import ErrorCode from './ErrorCode.js';
|
|
5
|
+
interface OperationResult {
|
|
6
|
+
'job_id': string;
|
|
7
|
+
'operation_id': string;
|
|
8
|
+
'operation_type': OperationType;
|
|
9
|
+
'status': ResultStatus;
|
|
10
|
+
'output_bucket'?: string;
|
|
11
|
+
'output_key'?: string;
|
|
12
|
+
'output_size_bytes'?: number;
|
|
13
|
+
'metrics'?: OperationMetrics;
|
|
14
|
+
'error_code'?: ErrorCode;
|
|
15
|
+
'error_message'?: string;
|
|
16
|
+
'is_retryable'?: boolean;
|
|
17
|
+
'last_progress'?: number;
|
|
18
|
+
'additionalProperties'?: Record<string, any>;
|
|
19
|
+
}
|
|
20
|
+
export default OperationResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var OperationType;
|
|
2
|
+
(function (OperationType) {
|
|
3
|
+
OperationType["COMPRESS"] = "compress";
|
|
4
|
+
OperationType["THUMBNAIL"] = "thumbnail";
|
|
5
|
+
OperationType["WATERMARK"] = "watermark";
|
|
6
|
+
OperationType["CONVERT"] = "convert";
|
|
7
|
+
OperationType["MERGE"] = "merge";
|
|
8
|
+
OperationType["ARCHIVE"] = "archive";
|
|
9
|
+
})(OperationType || (OperationType = {}));
|
|
10
|
+
export default OperationType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var ProgressStatus;
|
|
2
|
+
(function (ProgressStatus) {
|
|
3
|
+
ProgressStatus["STARTED"] = "started";
|
|
4
|
+
ProgressStatus["DOWNLOADING"] = "downloading";
|
|
5
|
+
ProgressStatus["PROCESSING"] = "processing";
|
|
6
|
+
ProgressStatus["UPLOADING"] = "uploading";
|
|
7
|
+
})(ProgressStatus || (ProgressStatus = {}));
|
|
8
|
+
export default ProgressStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as ErrorCode } from './ErrorCode.js';
|
|
2
|
+
export { default as MergeOutputType } from './MergeOutputType.js';
|
|
3
|
+
export { default as NotificationsOperationsQueue } from './NotificationsOperationsQueue.js';
|
|
4
|
+
export { default as OperationMetrics } from './OperationMetrics.js';
|
|
5
|
+
export { default as OperationProgress } from './OperationProgress.js';
|
|
6
|
+
export { default as OperationRequest } from './OperationRequest.js';
|
|
7
|
+
export { default as OperationResult } from './OperationResult.js';
|
|
8
|
+
export { default as OperationType } from './OperationType.js';
|
|
9
|
+
export { default as ProgressStatus } from './ProgressStatus.js';
|
|
10
|
+
export { default as ResultStatus } from './ResultStatus.js';
|
|
11
|
+
export { default as SourceEntry } from './SourceEntry.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as ErrorCode } from './ErrorCode.js';
|
|
2
|
+
export { default as MergeOutputType } from './MergeOutputType.js';
|
|
3
|
+
export { default as OperationType } from './OperationType.js';
|
|
4
|
+
export { default as ProgressStatus } from './ProgressStatus.js';
|
|
5
|
+
export { default as ResultStatus } from './ResultStatus.js';
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Events that can trigger a webhook callback:
|
|
14
|
+
* - workflow.completed: All jobs done successfully
|
|
15
|
+
* - workflow.failed: At least one job failed, none in progress
|
|
16
|
+
* - workflow.partially_failed: Some succeeded, some failed
|
|
17
|
+
* - operation.completed: Individual operation done (opt-in for granular progress)
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const CallbackEventType: {
|
|
22
|
+
readonly workflow_completed: "workflow.completed";
|
|
23
|
+
readonly workflow_failed: "workflow.failed";
|
|
24
|
+
readonly workflow_partially_failed: "workflow.partially_failed";
|
|
25
|
+
readonly operation_completed: "operation.completed";
|
|
26
|
+
};
|
|
27
|
+
export type CallbackEventType = typeof CallbackEventType[keyof typeof CallbackEventType];
|
|
28
|
+
export declare function instanceOfCallbackEventType(value: any): boolean;
|
|
29
|
+
export declare function CallbackEventTypeFromJSON(json: any): CallbackEventType;
|
|
30
|
+
export declare function CallbackEventTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallbackEventType;
|
|
31
|
+
export declare function CallbackEventTypeToJSON(value?: CallbackEventType | null): any;
|
|
32
|
+
export declare function CallbackEventTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): CallbackEventType;
|
|
@@ -2,24 +2,22 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* GISL Compression API
|
|
5
|
-
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
5
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 2.0.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
14
|
/**
|
|
17
15
|
* Events that can trigger a webhook callback:
|
|
18
16
|
* - workflow.completed: All jobs done successfully
|
|
19
17
|
* - workflow.failed: At least one job failed, none in progress
|
|
20
18
|
* - workflow.partially_failed: Some succeeded, some failed
|
|
21
19
|
* - operation.completed: Individual operation done (opt-in for granular progress)
|
|
22
|
-
*
|
|
20
|
+
*
|
|
23
21
|
* @export
|
|
24
22
|
*/
|
|
25
23
|
export const CallbackEventType = {
|
|
@@ -27,34 +25,26 @@ export const CallbackEventType = {
|
|
|
27
25
|
workflow_failed: 'workflow.failed',
|
|
28
26
|
workflow_partially_failed: 'workflow.partially_failed',
|
|
29
27
|
operation_completed: 'operation.completed'
|
|
30
|
-
}
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export function instanceOfCallbackEventType(value: any): boolean {
|
|
28
|
+
};
|
|
29
|
+
export function instanceOfCallbackEventType(value) {
|
|
35
30
|
for (const key in CallbackEventType) {
|
|
36
31
|
if (Object.prototype.hasOwnProperty.call(CallbackEventType, key)) {
|
|
37
|
-
if (CallbackEventType[key
|
|
32
|
+
if (CallbackEventType[key] === value) {
|
|
38
33
|
return true;
|
|
39
34
|
}
|
|
40
35
|
}
|
|
41
36
|
}
|
|
42
37
|
return false;
|
|
43
38
|
}
|
|
44
|
-
|
|
45
|
-
export function CallbackEventTypeFromJSON(json: any): CallbackEventType {
|
|
39
|
+
export function CallbackEventTypeFromJSON(json) {
|
|
46
40
|
return CallbackEventTypeFromJSONTyped(json, false);
|
|
47
41
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
return json as CallbackEventType;
|
|
42
|
+
export function CallbackEventTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
51
44
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return value as any;
|
|
45
|
+
export function CallbackEventTypeToJSON(value) {
|
|
46
|
+
return value;
|
|
55
47
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return value as CallbackEventType;
|
|
48
|
+
export function CallbackEventTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
59
50
|
}
|
|
60
|
-
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { ContactSubject } from './ContactSubject.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContactRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ContactRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Sender's name (optional)
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ContactRequest
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Sender's email address
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ContactRequest
|
|
29
|
+
*/
|
|
30
|
+
email: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ContactSubject}
|
|
34
|
+
* @memberof ContactRequest
|
|
35
|
+
*/
|
|
36
|
+
subject: ContactSubject;
|
|
37
|
+
/**
|
|
38
|
+
* Message body
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ContactRequest
|
|
41
|
+
*/
|
|
42
|
+
message: string;
|
|
43
|
+
/**
|
|
44
|
+
* Honeypot field for bot detection. Hidden from real users via CSS.
|
|
45
|
+
* Legitimate submissions must omit this field or send an empty string.
|
|
46
|
+
* The API rejects any request where this field is non-empty.
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ContactRequest
|
|
50
|
+
*/
|
|
51
|
+
website?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ContactRequest interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfContactRequest(value: object): value is ContactRequest;
|
|
57
|
+
export declare function ContactRequestFromJSON(json: any): ContactRequest;
|
|
58
|
+
export declare function ContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactRequest;
|
|
59
|
+
export declare function ContactRequestToJSON(json: any): ContactRequest;
|
|
60
|
+
export declare function ContactRequestToJSONTyped(value?: ContactRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -2,88 +2,36 @@
|
|
|
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 { ContactSubject } from './ContactSubject';
|
|
17
|
-
import {
|
|
18
|
-
ContactSubjectFromJSON,
|
|
19
|
-
ContactSubjectFromJSONTyped,
|
|
20
|
-
ContactSubjectToJSON,
|
|
21
|
-
ContactSubjectToJSONTyped,
|
|
22
|
-
} from './ContactSubject';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface ContactRequest
|
|
28
|
-
*/
|
|
29
|
-
export interface ContactRequest {
|
|
30
|
-
/**
|
|
31
|
-
* Sender's name (optional)
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ContactRequest
|
|
34
|
-
*/
|
|
35
|
-
name?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Sender's email address
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof ContactRequest
|
|
40
|
-
*/
|
|
41
|
-
email: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {ContactSubject}
|
|
45
|
-
* @memberof ContactRequest
|
|
46
|
-
*/
|
|
47
|
-
subject: ContactSubject;
|
|
48
|
-
/**
|
|
49
|
-
* Message body
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof ContactRequest
|
|
52
|
-
*/
|
|
53
|
-
message: string;
|
|
54
|
-
/**
|
|
55
|
-
* Honeypot field for bot detection. Hidden from real users via CSS.
|
|
56
|
-
* Legitimate submissions must omit this field or send an empty string.
|
|
57
|
-
* The API rejects any request where this field is non-empty.
|
|
58
|
-
*
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof ContactRequest
|
|
61
|
-
*/
|
|
62
|
-
website?: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
14
|
+
import { ContactSubjectFromJSON, ContactSubjectToJSON, } from './ContactSubject.js';
|
|
67
15
|
/**
|
|
68
16
|
* Check if a given object implements the ContactRequest interface.
|
|
69
17
|
*/
|
|
70
|
-
export function instanceOfContactRequest(value
|
|
71
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
72
|
-
|
|
73
|
-
if (!('
|
|
18
|
+
export function instanceOfContactRequest(value) {
|
|
19
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
24
|
+
return false;
|
|
74
25
|
return true;
|
|
75
26
|
}
|
|
76
|
-
|
|
77
|
-
export function ContactRequestFromJSON(json: any): ContactRequest {
|
|
27
|
+
export function ContactRequestFromJSON(json) {
|
|
78
28
|
return ContactRequestFromJSONTyped(json, false);
|
|
79
29
|
}
|
|
80
|
-
|
|
81
|
-
export function ContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactRequest {
|
|
30
|
+
export function ContactRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
82
31
|
if (json == null) {
|
|
83
32
|
return json;
|
|
84
33
|
}
|
|
85
34
|
return {
|
|
86
|
-
|
|
87
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
88
36
|
'email': json['email'],
|
|
89
37
|
'subject': ContactSubjectFromJSON(json['subject']),
|
|
@@ -91,18 +39,14 @@ export function ContactRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
91
39
|
'website': json['website'] == null ? undefined : json['website'],
|
|
92
40
|
};
|
|
93
41
|
}
|
|
94
|
-
|
|
95
|
-
export function ContactRequestToJSON(json: any): ContactRequest {
|
|
42
|
+
export function ContactRequestToJSON(json) {
|
|
96
43
|
return ContactRequestToJSONTyped(json, false);
|
|
97
44
|
}
|
|
98
|
-
|
|
99
|
-
export function ContactRequestToJSONTyped(value?: ContactRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
45
|
+
export function ContactRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
100
46
|
if (value == null) {
|
|
101
47
|
return value;
|
|
102
48
|
}
|
|
103
|
-
|
|
104
49
|
return {
|
|
105
|
-
|
|
106
50
|
'name': value['name'],
|
|
107
51
|
'email': value['email'],
|
|
108
52
|
'subject': ContactSubjectToJSON(value['subject']),
|
|
@@ -110,4 +54,3 @@ export function ContactRequestToJSONTyped(value?: ContactRequest | null, ignoreD
|
|
|
110
54
|
'website': value['website'],
|
|
111
55
|
};
|
|
112
56
|
}
|
|
113
|
-
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GISL Compression API
|
|
3
|
+
* REST API for the GISL (Give It Smaller) file compression and processing service. **Architecture:** - Upload files to get a `file_id` - Create workflows referencing uploaded files with operations (compress, thumbnail, watermark, merge, archive, convert) - Poll status, stream SSE events, or receive webhook callbacks - Download results per operation output **Response envelope:** All mutation and query endpoints return `{ success: true, data: {...} }` on success and `{ success: false, error: \"...\", details: [...] }` on failure. Exceptions: `GET /api/operations/schema` returns raw JSON (CDN-cacheable), health probes return flat objects, and `POST /api/contact` returns 204 with no body.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Subject category:
|
|
14
|
+
* - general_enquiry: General questions
|
|
15
|
+
* - bug_report: Report a bug or issue
|
|
16
|
+
* - suggestion: Feature suggestion or improvement idea
|
|
17
|
+
* - complaint: Complaint about the service
|
|
18
|
+
* - business_enquiry: Business or partnership enquiry
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const ContactSubject: {
|
|
23
|
+
readonly general_enquiry: "general_enquiry";
|
|
24
|
+
readonly bug_report: "bug_report";
|
|
25
|
+
readonly suggestion: "suggestion";
|
|
26
|
+
readonly complaint: "complaint";
|
|
27
|
+
readonly business_enquiry: "business_enquiry";
|
|
28
|
+
};
|
|
29
|
+
export type ContactSubject = typeof ContactSubject[keyof typeof ContactSubject];
|
|
30
|
+
export declare function instanceOfContactSubject(value: any): boolean;
|
|
31
|
+
export declare function ContactSubjectFromJSON(json: any): ContactSubject;
|
|
32
|
+
export declare function ContactSubjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContactSubject;
|
|
33
|
+
export declare function ContactSubjectToJSON(value?: ContactSubject | null): any;
|
|
34
|
+
export declare function ContactSubjectToJSONTyped(value: any, ignoreDiscriminator: boolean): ContactSubject;
|