@giveitsmaller/contracts 0.1.0
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/asyncapi/ErrorCode.ts +19 -0
- package/asyncapi/MergeOutputType.ts +9 -0
- package/asyncapi/NotificationsOperationsQueue.ts +4 -0
- package/asyncapi/OperationMetrics.ts +12 -0
- package/asyncapi/OperationProgress.ts +12 -0
- package/asyncapi/OperationRequest.ts +21 -0
- package/asyncapi/OperationResult.ts +20 -0
- package/asyncapi/OperationType.ts +10 -0
- package/asyncapi/ProgressStatus.ts +8 -0
- package/asyncapi/README.md +16 -0
- package/asyncapi/ResultStatus.ts +6 -0
- package/asyncapi/SourceEntry.ts +9 -0
- package/asyncapi/index.ts +11 -0
- package/index.ts +5 -0
- package/openapi/.openapi-generator-ignore +26 -0
- package/openapi/README.md +17 -0
- package/openapi/index.ts +4 -0
- package/openapi/models/CallbackEventType.ts +60 -0
- package/openapi/models/ContactRequest.ts +113 -0
- package/openapi/models/ContactSubject.ts +62 -0
- package/openapi/models/ContactValidationErrorResponse.ts +67 -0
- package/openapi/models/ErrorEnvelope.ts +85 -0
- package/openapi/models/ExportConfig.ts +108 -0
- package/openapi/models/JobDefinition.ts +56 -0
- package/openapi/models/JobDownload.ts +92 -0
- package/openapi/models/JobInput.ts +89 -0
- package/openapi/models/JobResponse.ts +119 -0
- package/openapi/models/JobSource.ts +79 -0
- package/openapi/models/JobStatus.ts +62 -0
- package/openapi/models/JobType.ts +60 -0
- package/openapi/models/LivenessResponse.ts +66 -0
- package/openapi/models/MetadataResponse.ts +223 -0
- package/openapi/models/MetadataResponseDimensions.ts +73 -0
- package/openapi/models/MetadataResponseExif.ts +97 -0
- package/openapi/models/MetadataResponseExifGps.ts +73 -0
- package/openapi/models/MetadataSuccessEnvelope.ts +93 -0
- package/openapi/models/MimeGroupSchema.ts +91 -0
- package/openapi/models/MultipartCompleteRequest.ts +85 -0
- package/openapi/models/MultipartCompleteRequestPartsInner.ts +75 -0
- package/openapi/models/MultipartInitiateResponse.ts +137 -0
- package/openapi/models/MultipartInitiateSuccessEnvelope.ts +93 -0
- package/openapi/models/OperationDefinition.ts +91 -0
- package/openapi/models/OperationDownload.ts +102 -0
- package/openapi/models/OperationInputModel.ts +56 -0
- package/openapi/models/OperationResponse.ts +124 -0
- package/openapi/models/OperationResult.ts +100 -0
- package/openapi/models/OperationResultMetrics.ts +73 -0
- package/openapi/models/OperationSchemaDefinition.ts +163 -0
- package/openapi/models/OperationStatus.ts +62 -0
- package/openapi/models/OperationType.ts +64 -0
- package/openapi/models/OperationsSchemaResponse.ts +90 -0
- package/openapi/models/OptionSchema.ts +160 -0
- package/openapi/models/PresignedUrlPart.ts +86 -0
- package/openapi/models/ReadinessResponse.ts +73 -0
- package/openapi/models/ResponseEnvelope.ts +70 -0
- package/openapi/models/RetryResponse.ts +94 -0
- package/openapi/models/RetrySuccessEnvelope.ts +93 -0
- package/openapi/models/SseEventType.ts +68 -0
- package/openapi/models/SseJobCompletedData.ts +94 -0
- package/openapi/models/SseJobFailedData.ts +94 -0
- package/openapi/models/SseOperationCompletedData.ts +143 -0
- package/openapi/models/SseOperationFailedData.ts +129 -0
- package/openapi/models/SseOperationProgressData.ts +103 -0
- package/openapi/models/SseWorkflowTerminalData.ts +89 -0
- package/openapi/models/UploadResponse.ts +93 -0
- package/openapi/models/UploadSuccessEnvelope.ts +93 -0
- package/openapi/models/ValidationErrorEnvelope.ts +104 -0
- package/openapi/models/ValidationErrorEnvelopeDetailsInner.ts +90 -0
- package/openapi/models/WebhookOperationContext.ts +77 -0
- package/openapi/models/WebhookPayload.ts +132 -0
- package/openapi/models/WorkflowCreateRequest.ts +143 -0
- package/openapi/models/WorkflowCreateResponse.ts +114 -0
- package/openapi/models/WorkflowCreateSuccessEnvelope.ts +93 -0
- package/openapi/models/WorkflowDownloadResponse.ts +74 -0
- package/openapi/models/WorkflowDownloadSuccessEnvelope.ts +93 -0
- package/openapi/models/WorkflowEdge.ts +77 -0
- package/openapi/models/WorkflowStatus.ts +62 -0
- package/openapi/models/WorkflowStatusResponse.ts +101 -0
- package/openapi/models/WorkflowStatusSuccessEnvelope.ts +93 -0
- package/openapi/models/index.ts +64 -0
- package/openapi/runtime.ts +432 -0
- package/operations/README.md +17 -0
- package/operations/archive.ts +16 -0
- package/operations/compress.ts +177 -0
- package/operations/convert.ts +69 -0
- package/operations/index.ts +7 -0
- package/operations/merge.ts +95 -0
- package/operations/thumbnail.ts +66 -0
- package/package.json +19 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# TypeScript -- Operation Option Models
|
|
2
|
+
|
|
3
|
+
> **Auto-generated** -- do not edit manually. Changes will be overwritten on the next generation run.
|
|
4
|
+
>
|
|
5
|
+
> Regenerate with: `make project/generate-tests`
|
|
6
|
+
|
|
7
|
+
## Source
|
|
8
|
+
|
|
9
|
+
- **Spec:** `compression_contracts/schemas/operations/*.yaml` (custom schema format)
|
|
10
|
+
- **Generator:** Custom Python emitter (`scripts/generators/operation_schema/typescript.py`)
|
|
11
|
+
- **Files:** 6
|
|
12
|
+
|
|
13
|
+
## Contents
|
|
14
|
+
|
|
15
|
+
TypeScript enums and interfaces for per-operation options (compression quality, thumbnail dimensions, conversion formats, etc.).
|
|
16
|
+
|
|
17
|
+
Operation types covered: compress, convert, merge, thumbnail, archive.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Auto-generated from archive.yaml -- do not edit
|
|
2
|
+
|
|
3
|
+
export enum ArchiveFormat {
|
|
4
|
+
Zip = 'zip',
|
|
5
|
+
TarGz = 'tar.gz',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum ArchiveFolderStructure {
|
|
9
|
+
Flat = 'flat',
|
|
10
|
+
ByJob = 'by_job',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ArchiveOptions {
|
|
14
|
+
format?: ArchiveFormat;
|
|
15
|
+
folder_structure?: ArchiveFolderStructure;
|
|
16
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// Auto-generated from compress.yaml -- do not edit
|
|
2
|
+
|
|
3
|
+
export enum CompressImageMode {
|
|
4
|
+
Lossy = 'lossy',
|
|
5
|
+
Lossless = 'lossless',
|
|
6
|
+
Auto = 'auto',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum CompressImageFit {
|
|
10
|
+
Max = 'max',
|
|
11
|
+
Crop = 'crop',
|
|
12
|
+
Scale = 'scale',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum CompressImageMetadata {
|
|
16
|
+
All = 'all',
|
|
17
|
+
None = 'none',
|
|
18
|
+
Copyright = 'copyright',
|
|
19
|
+
Sensitive = 'sensitive',
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum CompressImageIccProfile {
|
|
23
|
+
Preserve = 'preserve',
|
|
24
|
+
Strip = 'strip',
|
|
25
|
+
Srgb = 'srgb',
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum CompressImageOutputFormat {
|
|
29
|
+
Original = 'original',
|
|
30
|
+
Auto = 'auto',
|
|
31
|
+
Smallest = 'smallest',
|
|
32
|
+
Jpeg = 'jpeg',
|
|
33
|
+
Png = 'png',
|
|
34
|
+
Webp = 'webp',
|
|
35
|
+
Avif = 'avif',
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface CompressImageOptions {
|
|
39
|
+
mode?: CompressImageMode;
|
|
40
|
+
quality?: number;
|
|
41
|
+
width?: number;
|
|
42
|
+
height?: number;
|
|
43
|
+
fit?: CompressImageFit;
|
|
44
|
+
metadata?: CompressImageMetadata;
|
|
45
|
+
icc_profile?: CompressImageIccProfile;
|
|
46
|
+
auto_orient?: boolean;
|
|
47
|
+
progressive?: boolean;
|
|
48
|
+
output_format?: CompressImageOutputFormat;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export enum CompressAudioBitrate {
|
|
52
|
+
_64 = 64,
|
|
53
|
+
_96 = 96,
|
|
54
|
+
_128 = 128,
|
|
55
|
+
_192 = 192,
|
|
56
|
+
_256 = 256,
|
|
57
|
+
_320 = 320,
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export enum CompressAudioSampleRate {
|
|
61
|
+
_22050 = 22050,
|
|
62
|
+
_44100 = 44100,
|
|
63
|
+
_48000 = 48000,
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface CompressAudioOptions {
|
|
67
|
+
bitrate?: CompressAudioBitrate;
|
|
68
|
+
channels?: number;
|
|
69
|
+
sample_rate?: CompressAudioSampleRate;
|
|
70
|
+
normalize?: boolean;
|
|
71
|
+
trim_start?: number;
|
|
72
|
+
trim_end?: number;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export enum CompressVideoCodec {
|
|
76
|
+
H264 = 'h264',
|
|
77
|
+
H265 = 'h265',
|
|
78
|
+
Vp9 = 'vp9',
|
|
79
|
+
Av1 = 'av1',
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export enum CompressVideoEncodingMode {
|
|
83
|
+
Crf = 'crf',
|
|
84
|
+
TargetSize = 'target_size',
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export enum CompressVideoPreset {
|
|
88
|
+
Ultrafast = 'ultrafast',
|
|
89
|
+
Superfast = 'superfast',
|
|
90
|
+
Veryfast = 'veryfast',
|
|
91
|
+
Faster = 'faster',
|
|
92
|
+
Fast = 'fast',
|
|
93
|
+
Medium = 'medium',
|
|
94
|
+
Slow = 'slow',
|
|
95
|
+
Slower = 'slower',
|
|
96
|
+
Veryslow = 'veryslow',
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export enum CompressVideoFit {
|
|
100
|
+
Max = 'max',
|
|
101
|
+
Crop = 'crop',
|
|
102
|
+
Scale = 'scale',
|
|
103
|
+
Pad = 'pad',
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export enum CompressVideoAudioCodec {
|
|
107
|
+
Aac = 'aac',
|
|
108
|
+
Opus = 'opus',
|
|
109
|
+
Vorbis = 'vorbis',
|
|
110
|
+
Copy = 'copy',
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export enum CompressVideoAudioBitrate {
|
|
114
|
+
_64 = 64,
|
|
115
|
+
_96 = 96,
|
|
116
|
+
_128 = 128,
|
|
117
|
+
_192 = 192,
|
|
118
|
+
_256 = 256,
|
|
119
|
+
_320 = 320,
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface CompressVideoOptions {
|
|
123
|
+
codec?: CompressVideoCodec;
|
|
124
|
+
encoding_mode?: CompressVideoEncodingMode;
|
|
125
|
+
crf?: number;
|
|
126
|
+
target_size_bytes?: number;
|
|
127
|
+
preset?: CompressVideoPreset;
|
|
128
|
+
width?: number;
|
|
129
|
+
height?: number;
|
|
130
|
+
fit?: CompressVideoFit;
|
|
131
|
+
fps?: number;
|
|
132
|
+
faststart?: boolean;
|
|
133
|
+
audio_codec?: CompressVideoAudioCodec;
|
|
134
|
+
audio_bitrate?: CompressVideoAudioBitrate;
|
|
135
|
+
trim_start?: number;
|
|
136
|
+
trim_end?: number;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export enum CompressDocumentPdfProfile {
|
|
140
|
+
Web = 'web',
|
|
141
|
+
Print = 'print',
|
|
142
|
+
Archive = 'archive',
|
|
143
|
+
Max = 'max',
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export enum CompressDocumentPdfColorspace {
|
|
147
|
+
Unchanged = 'unchanged',
|
|
148
|
+
Rgb = 'rgb',
|
|
149
|
+
Cmyk = 'cmyk',
|
|
150
|
+
Grayscale = 'grayscale',
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface CompressDocumentPdfOptions {
|
|
154
|
+
profile?: CompressDocumentPdfProfile;
|
|
155
|
+
colorspace?: CompressDocumentPdfColorspace;
|
|
156
|
+
pages?: string;
|
|
157
|
+
flatten_forms?: boolean;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface CompressDocumentOfficeOptions {
|
|
161
|
+
image_quality?: number;
|
|
162
|
+
strip_macros?: boolean;
|
|
163
|
+
strip_hidden_data?: boolean;
|
|
164
|
+
strip_unused_fonts?: boolean;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface CompressDocumentOdfOptions {
|
|
168
|
+
image_quality?: number;
|
|
169
|
+
strip_metadata?: boolean;
|
|
170
|
+
strip_unused_styles?: boolean;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface CompressDocumentEpubOptions {
|
|
174
|
+
image_quality?: number;
|
|
175
|
+
font_subsetting?: boolean;
|
|
176
|
+
strip_unused_css?: boolean;
|
|
177
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Auto-generated from convert.yaml -- do not edit
|
|
2
|
+
|
|
3
|
+
export enum ConvertImageOutputFormat {
|
|
4
|
+
Jpeg = 'jpeg',
|
|
5
|
+
Png = 'png',
|
|
6
|
+
Webp = 'webp',
|
|
7
|
+
Avif = 'avif',
|
|
8
|
+
Gif = 'gif',
|
|
9
|
+
Tiff = 'tiff',
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ConvertImageOptions {
|
|
13
|
+
output_format: ConvertImageOutputFormat;
|
|
14
|
+
quality?: number;
|
|
15
|
+
background?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum ConvertVideoOutputFormat {
|
|
19
|
+
Mp4 = 'mp4',
|
|
20
|
+
Webm = 'webm',
|
|
21
|
+
Ogg = 'ogg',
|
|
22
|
+
Gif = 'gif',
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export enum ConvertVideoCodec {
|
|
26
|
+
H264 = 'h264',
|
|
27
|
+
H265 = 'h265',
|
|
28
|
+
Vp9 = 'vp9',
|
|
29
|
+
Av1 = 'av1',
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ConvertVideoOptions {
|
|
33
|
+
output_format: ConvertVideoOutputFormat;
|
|
34
|
+
codec?: ConvertVideoCodec;
|
|
35
|
+
quality?: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export enum ConvertAudioOutputFormat {
|
|
39
|
+
Mp3 = 'mp3',
|
|
40
|
+
Aac = 'aac',
|
|
41
|
+
Ogg = 'ogg',
|
|
42
|
+
Flac = 'flac',
|
|
43
|
+
Wav = 'wav',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export enum ConvertAudioBitrate {
|
|
47
|
+
_64 = 64,
|
|
48
|
+
_96 = 96,
|
|
49
|
+
_128 = 128,
|
|
50
|
+
_192 = 192,
|
|
51
|
+
_256 = 256,
|
|
52
|
+
_320 = 320,
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ConvertAudioOptions {
|
|
56
|
+
output_format: ConvertAudioOutputFormat;
|
|
57
|
+
bitrate?: ConvertAudioBitrate;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export enum ConvertDocumentPdfOutputFormat {
|
|
61
|
+
Png = 'png',
|
|
62
|
+
Jpeg = 'jpeg',
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface ConvertDocumentPdfOptions {
|
|
66
|
+
output_format: ConvertDocumentPdfOutputFormat;
|
|
67
|
+
pages?: string;
|
|
68
|
+
dpi?: number;
|
|
69
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Auto-generated from merge.yaml -- do not edit
|
|
2
|
+
|
|
3
|
+
export enum MergeImageOutputType {
|
|
4
|
+
Image = 'image',
|
|
5
|
+
Gif = 'gif',
|
|
6
|
+
Video = 'video',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum MergeImageLayout {
|
|
10
|
+
Grid = 'grid',
|
|
11
|
+
Horizontal = 'horizontal',
|
|
12
|
+
Vertical = 'vertical',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum MergeImageResizeMode {
|
|
16
|
+
Fit = 'fit',
|
|
17
|
+
Fill = 'fill',
|
|
18
|
+
None = 'none',
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum MergeImageImageFormat {
|
|
22
|
+
Jpeg = 'jpeg',
|
|
23
|
+
Png = 'png',
|
|
24
|
+
Webp = 'webp',
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum MergeImageTransition {
|
|
28
|
+
None = 'none',
|
|
29
|
+
Fade = 'fade',
|
|
30
|
+
Slide = 'slide',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export enum MergeImageVideoFormat {
|
|
34
|
+
Mp4 = 'mp4',
|
|
35
|
+
Webm = 'webm',
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface MergeImageOptions {
|
|
39
|
+
output_type?: MergeImageOutputType;
|
|
40
|
+
layout?: MergeImageLayout;
|
|
41
|
+
columns?: number;
|
|
42
|
+
resize_mode?: MergeImageResizeMode;
|
|
43
|
+
spacing?: number;
|
|
44
|
+
background?: string;
|
|
45
|
+
image_format?: MergeImageImageFormat;
|
|
46
|
+
delay?: number;
|
|
47
|
+
loop_count?: number;
|
|
48
|
+
duration_per_image?: number;
|
|
49
|
+
transition?: MergeImageTransition;
|
|
50
|
+
transition_duration?: number;
|
|
51
|
+
fps?: number;
|
|
52
|
+
video_format?: MergeImageVideoFormat;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export enum MergeVideoTransition {
|
|
56
|
+
None = 'none',
|
|
57
|
+
Crossfade = 'crossfade',
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface MergeVideoOptions {
|
|
61
|
+
transition?: MergeVideoTransition;
|
|
62
|
+
crossfade_duration?: number;
|
|
63
|
+
normalize_audio?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface MergeVideoPerInputOptions {
|
|
67
|
+
transition?: MergeVideoTransition;
|
|
68
|
+
crossfade_duration?: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export enum MergeAudioTransition {
|
|
72
|
+
None = 'none',
|
|
73
|
+
Crossfade = 'crossfade',
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface MergeAudioOptions {
|
|
77
|
+
transition?: MergeAudioTransition;
|
|
78
|
+
crossfade_duration?: number;
|
|
79
|
+
gap_duration?: number;
|
|
80
|
+
normalize_audio?: boolean;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface MergeAudioPerInputOptions {
|
|
84
|
+
transition?: MergeAudioTransition;
|
|
85
|
+
crossfade_duration?: number;
|
|
86
|
+
gap_duration?: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface MergeDocumentOptions {
|
|
90
|
+
page_range?: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface MergeDocumentPerInputOptions {
|
|
94
|
+
page_range?: string;
|
|
95
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// Auto-generated from thumbnail.yaml -- do not edit
|
|
2
|
+
|
|
3
|
+
export enum ThumbnailImageFit {
|
|
4
|
+
Max = 'max',
|
|
5
|
+
Crop = 'crop',
|
|
6
|
+
Scale = 'scale',
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum ThumbnailImageFormat {
|
|
10
|
+
Jpg = 'jpg',
|
|
11
|
+
Png = 'png',
|
|
12
|
+
Webp = 'webp',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ThumbnailImageOptions {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
fit?: ThumbnailImageFit;
|
|
19
|
+
format?: ThumbnailImageFormat;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum ThumbnailVideoFit {
|
|
23
|
+
Max = 'max',
|
|
24
|
+
Crop = 'crop',
|
|
25
|
+
Scale = 'scale',
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum ThumbnailVideoFormat {
|
|
29
|
+
Jpg = 'jpg',
|
|
30
|
+
Png = 'png',
|
|
31
|
+
Webp = 'webp',
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface ThumbnailVideoOptions {
|
|
35
|
+
timestamp?: string;
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
fit?: ThumbnailVideoFit;
|
|
39
|
+
format?: ThumbnailVideoFormat;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export enum ThumbnailDocumentSource {
|
|
43
|
+
Page = 'page',
|
|
44
|
+
Cover = 'cover',
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export enum ThumbnailDocumentFit {
|
|
48
|
+
Max = 'max',
|
|
49
|
+
Crop = 'crop',
|
|
50
|
+
Scale = 'scale',
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export enum ThumbnailDocumentFormat {
|
|
54
|
+
Jpg = 'jpg',
|
|
55
|
+
Png = 'png',
|
|
56
|
+
Webp = 'webp',
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface ThumbnailDocumentOptions {
|
|
60
|
+
source?: ThumbnailDocumentSource;
|
|
61
|
+
page?: number;
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
fit?: ThumbnailDocumentFit;
|
|
65
|
+
format?: ThumbnailDocumentFormat;
|
|
66
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@giveitsmaller/contracts",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Generated contract types for GISL (Give It Smaller)",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"types": "index.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./index.ts",
|
|
9
|
+
"./openapi": "./openapi/index.ts",
|
|
10
|
+
"./asyncapi": "./asyncapi/index.ts",
|
|
11
|
+
"./operations": "./operations/index.ts"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"openapi/",
|
|
15
|
+
"asyncapi/",
|
|
16
|
+
"operations/",
|
|
17
|
+
"index.ts"
|
|
18
|
+
]
|
|
19
|
+
}
|