@beeintel/batch-image 0.0.0-stage → 1.0.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/FONT-LICENSE.txt +93 -0
- package/README.md +181 -2
- package/dist/assets/11st-D7qGO5e4.webp +0 -0
- package/dist/assets/UPNG-CPfdwFSy.js +2298 -0
- package/dist/assets/adjust-card-B63b81iV.webp +0 -0
- package/dist/assets/adjust-final.worker-C2JbTvv5.js +6945 -0
- package/dist/assets/amazon-CjTtpZTq.webp +0 -0
- package/dist/assets/ascii_art-B4UGbtGs.webp +0 -0
- package/dist/assets/auction-j26eVUQO.webp +0 -0
- package/dist/assets/background-DGdZUdkL.webp +0 -0
- package/dist/assets/background-card-wK7DRpvM.png +0 -0
- package/dist/assets/body-CUFdRg8w.webp +0 -0
- package/dist/assets/bounded-cutout.worker-BZR6mbaI.js +9615 -0
- package/dist/assets/brand-mark-card-cFUeDeO2.webp +0 -0
- package/dist/assets/buyma-dAxYNjow.webp +0 -0
- package/dist/assets/codec.worker-7W6hmsm6.js +7349 -0
- package/dist/assets/contour_lines-C_CqrgV1.webp +0 -0
- package/dist/assets/creema-B1tWyCPx.webp +0 -0
- package/dist/assets/crop-final.worker-Owin7TvX.js +7035 -0
- package/dist/assets/cutout-CzMvV5An.webp +0 -0
- package/dist/assets/cutout-card-CN4gNFBz.png +0 -0
- package/dist/assets/cutout.worker-DyH6Prbn.js +3894 -0
- package/dist/assets/depop-CkVC5Fn1.webp +0 -0
- package/dist/assets/dewrinkle-kFzP6LqD.webp +0 -0
- package/dist/assets/dither-CcxmO2e6.webp +0 -0
- package/dist/assets/douyin-CP_HwBDF.webp +0 -0
- package/dist/assets/download.worker-DnGSB6P_.js +17779 -0
- package/dist/assets/duotone-Cdg_3fQf.webp +0 -0
- package/dist/assets/ebay-CxLfrRAf.webp +0 -0
- package/dist/assets/edit-Cv-txfZm.webp +0 -0
- package/dist/assets/effect.worker-qu1eCcII.js +9227 -0
- package/dist/assets/engraving-BENh1O2O.webp +0 -0
- package/dist/assets/etsy-CSvz9GpY.webp +0 -0
- package/dist/assets/expand-C60VE9nK.webp +0 -0
- package/dist/assets/facebook-Ca2nJJiQ.webp +0 -0
- package/dist/assets/film_stock-Bqauwcq4.webp +0 -0
- package/dist/assets/final.worker-BnzJ3N5C.js +7035 -0
- package/dist/assets/final.worker-Csc1zoYS.js +7054 -0
- package/dist/assets/final.worker-DzBFT9xk.js +6922 -0
- package/dist/assets/final.worker-XpgKnlaz.js +7217 -0
- package/dist/assets/flatlay-CPiVmlAa.webp +0 -0
- package/dist/assets/flatlay-fold-B-CRYy87.webp +0 -0
- package/dist/assets/flatlay-open-Dzas8okC.webp +0 -0
- package/dist/assets/g-market-DXuYK_JH.webp +0 -0
- package/dist/assets/ghost-BCEAx_Zx.webp +0 -0
- package/dist/assets/ghost-front-WFgA4sUo.webp +0 -0
- package/dist/assets/ghost-three-quarter-Rt8cXj34.webp +0 -0
- package/dist/assets/gif-CObOIITx.js +303 -0
- package/dist/assets/glass_tiles-3IXP-Hmg.webp +0 -0
- package/dist/assets/glitch_art-D1i3qben.webp +0 -0
- package/dist/assets/glitch_blur-C4q_9zyq.webp +0 -0
- package/dist/assets/glow-Bv9EHBU5.webp +0 -0
- package/dist/assets/gradient_map-BR-UVYMP.webp +0 -0
- package/dist/assets/halftone-CWdKu2_6.webp +0 -0
- package/dist/assets/holo_sticker-BQDikLg2.webp +0 -0
- package/dist/assets/idus-7diqRNPs.webp +0 -0
- package/dist/assets/imagetracer.worker-CgunQTPG.js +7096 -0
- package/dist/assets/instagram-Bf0IVidT.webp +0 -0
- package/dist/assets/kakao-talk-Df79L_Mv.webp +0 -0
- package/dist/assets/kaleidoscope-BxqMZuWo.webp +0 -0
- package/dist/assets/karrot-BXFPhDwt.webp +0 -0
- package/dist/assets/kaufland-BDDy6e0C.webp +0 -0
- package/dist/assets/lazada-ConR4e1O.webp +0 -0
- package/dist/assets/lens_flare-DgyiAv_j.webp +0 -0
- package/dist/assets/light_leak-kUdpoFuC.webp +0 -0
- package/dist/assets/line-Dr1j___B.webp +0 -0
- package/dist/assets/linkedin-4s_9Wh03.webp +0 -0
- package/dist/assets/lo_fi-DSdl3yY_.webp +0 -0
- package/dist/assets/logo-preparation.worker-D9oa7SME.js +420 -0
- package/dist/assets/mercado-libre-C8CskEiS.webp +0 -0
- package/dist/assets/mercari-jp-DHj7nz4O.webp +0 -0
- package/dist/assets/metadata.worker-B_9_BgN1.js +6456 -0
- package/dist/assets/mirror_collage-JtSKCeSh.webp +0 -0
- package/dist/assets/model-BbeF-fsf.webp +0 -0
- package/dist/assets/model-BjWhieit.webp +0 -0
- package/dist/assets/momo-BWXO_8Df.webp +0 -0
- package/dist/assets/motion_blur-B8YUHeSg.webp +0 -0
- package/dist/assets/naver-xQKL8lWg.webp +0 -0
- package/dist/assets/nuvemshop-DPt6rnA-.webp +0 -0
- package/dist/assets/olx-B87gp-Il.webp +0 -0
- package/dist/assets/orient-card-Da0ii6mX.webp +0 -0
- package/dist/assets/orient-final.worker-CdF5Y5zD.js +6909 -0
- package/dist/assets/orientation-preview.worker-B7uFzz3J.js +6865 -0
- package/dist/assets/ort.bundle.min-CreFV8V1.js +9311 -0
- package/dist/assets/ort.webgpu.bundle.min-CAudaHZO.js +9311 -0
- package/dist/assets/otto-market-DWZyNKJn.webp +0 -0
- package/dist/assets/paper_texture-CXphyIrs.webp +0 -0
- package/dist/assets/pinterest-ByZqih2J.webp +0 -0
- package/dist/assets/polish-DFy6LNG7.webp +0 -0
- package/dist/assets/poshmark-DnZi2vA1.webp +0 -0
- package/dist/assets/posterize-SpLVGq1s.webp +0 -0
- package/dist/assets/preview.worker-DcrCKKWl.js +380 -0
- package/dist/assets/qoo10-C1pq81Jx.webp +0 -0
- package/dist/assets/rakuten-ulYog1hL.webp +0 -0
- package/dist/assets/recolor-mBX7vdFT.webp +0 -0
- package/dist/assets/resize-DVEAl0Um.webp +0 -0
- package/dist/assets/runtime-0663b902fb3937883a34.wasm +0 -0
- package/dist/assets/runtime-355a5c80c7bfdf8737de.mjs +2817 -0
- package/dist/assets/runtime-49871f5a4409519797e1.wasm +0 -0
- package/dist/assets/runtime-74cf72f9a2b7befc115a.mjs +2817 -0
- package/dist/assets/shadow-card-DTZEH60r.png +0 -0
- package/dist/assets/shopee-Bxfei6sj.webp +0 -0
- package/dist/assets/shopify-wVaBafcF.webp +0 -0
- package/dist/assets/shopline-DMoaJ7Bh.webp +0 -0
- package/dist/assets/sparkle-CD5GSGip.webp +0 -0
- package/dist/assets/ssg-DQoFx5u5.webp +0 -0
- package/dist/assets/staging-CIc8pQJ6.webp +0 -0
- package/dist/assets/standard-cutout.worker-BYLzdpR-.js +1261 -0
- package/dist/assets/text-DQW2mBGp.webp +0 -0
- package/dist/assets/textured_glass-D2coxp7n.webp +0 -0
- package/dist/assets/tga-VGxWDes0.js +752 -0
- package/dist/assets/tilt_shift-BKs46yeX.webp +0 -0
- package/dist/assets/transformers.web-DB57cIO5.js +28891 -0
- package/dist/assets/tritone-CcR4qizk.webp +0 -0
- package/dist/assets/upscale-BrLadyUk.webp +0 -0
- package/dist/assets/upscale-creative-DnZnQufJ.webp +0 -0
- package/dist/assets/upscale-crisp-Ckdmbsnn.webp +0 -0
- package/dist/assets/vinted-1QDsxvC6.webp +0 -0
- package/dist/assets/watercolor-CV67zYNE.webp +0 -0
- package/dist/assets/watermark-CpPrxaT5.webp +0 -0
- package/dist/assets/wave_distortion-CV5jVfK4.webp +0 -0
- package/dist/assets/whatsapp-CWJxqzR6.webp +0 -0
- package/dist/assets/worker-DfrCFP3O.js +55 -0
- package/dist/assets/xerox_noise-CbbHY1S1.webp +0 -0
- package/dist/assets/youtube-DS12d5mi.webp +0 -0
- package/dist/assets/zalando-CenfWOwz.webp +0 -0
- package/dist/browser-adapter.d.ts +4 -0
- package/dist/browser-cutout-capability.d.ts +4 -0
- package/dist/browser-cutout-resources.d.ts +3 -0
- package/dist/browser-local-capabilities.d.ts +5 -0
- package/dist/capabilities.d.ts +18 -0
- package/dist/chunks/AdjustToolPanel-B6dtlFlj.js +195 -0
- package/dist/chunks/BackgroundToolPanel-C3Rr9d4S.js +41 -0
- package/dist/chunks/BatchMaterials-DDoJTaS5.js +806 -0
- package/dist/chunks/BatchModeChoices-DeBARgvY.js +111 -0
- package/dist/chunks/BatchOutputColorPicker-D7WIDS4_.js +75 -0
- package/dist/chunks/BatchReferenceFields-Cr5WgFRJ.js +316 -0
- package/dist/chunks/BeautifyToolPanel-DDZXDQKM.js +215 -0
- package/dist/chunks/BrandMarkToolPanel-vKobk_R3.js +1179 -0
- package/dist/chunks/ContentTrimControl-BKCJEst5.js +297 -0
- package/dist/chunks/CropToolPanel-C_sW5tWL.js +218 -0
- package/dist/chunks/CutoutToolPanel-B7ObmiWd.js +73 -0
- package/dist/chunks/DisclosureToolPanel-F3ccFJIF.js +76 -0
- package/dist/chunks/ExpandToolPanel-BKjj5UJA.js +67 -0
- package/dist/chunks/ImageEffectsToolPanel-CsDIBpT6.js +966 -0
- package/dist/chunks/IpAuditToolPanel-CduDfFh-.js +96 -0
- package/dist/chunks/ListingToolPanel-8pJ2_zvI.js +783 -0
- package/dist/chunks/MaterialSelectionPlate-CW7HaS6v.js +30 -0
- package/dist/chunks/MetadataToolPanel-C8XJOamN.js +104 -0
- package/dist/chunks/OrientToolPanel-C1AzQchm.js +161 -0
- package/dist/chunks/PluginActionFooter.vue_vue_type_script_setup_true_lang-BGe419qz.js +102 -0
- package/dist/chunks/ResizeToolPanel-DWikcj2G.js +1178 -0
- package/dist/chunks/RetouchToolPanel-B4eQKk2W.js +350 -0
- package/dist/chunks/ShadowToolPanel-Bbj76hQd.js +254 -0
- package/dist/chunks/SvgExportToolPanel-BRxpzd7q.js +219 -0
- package/dist/chunks/TranslationToolPanel-Bxv8U2WY.js +125 -0
- package/dist/chunks/UpscaleToolPanel-BRIgpszs.js +127 -0
- package/dist/chunks/engine-D-T-1RSx.js +69 -0
- package/dist/chunks/entry-CboOSe2r.js +42945 -0
- package/dist/chunks/gpu-CScw5MNG.js +231 -0
- package/dist/chunks/hosted-resources-COzZ7nZY.js +8196 -0
- package/dist/chunks/loader-circle-CylCgDqP.js +16 -0
- package/dist/chunks/motionFeatures-D67ghPG1.js +4405 -0
- package/dist/chunks/search-BwsDnulU.js +18 -0
- package/dist/chunks/standard-cutout-vPpP6xBc.js +45 -0
- package/dist/chunks/static-logo-2F9ORZWc.js +34 -0
- package/dist/config.d.ts +66 -0
- package/dist/contracts.d.ts +272 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +13 -0
- package/dist/node/catalog.mjs +45 -0
- package/dist/node/cli.mjs +11 -0
- package/dist/node/index.d.mts +20 -0
- package/dist/node/index.mjs +2 -0
- package/dist/node/prepare.mjs +114 -0
- package/dist/node/vite.mjs +46 -0
- package/dist/processing.d.ts +1 -0
- package/dist/processing.js +12105 -0
- package/dist/remote-contracts.d.ts +114 -0
- package/dist/resource-contracts.d.ts +40 -0
- package/dist/resources/cutout/9ae2e5375a34fa413530954dc20d085d175faffc86108c13619220d0557f80bf.json +1 -0
- package/dist/resources/cutout/f119dabecc64bc436d3d08425dde96ec2598fd40541eba97d8d53a4e8bbdcaea.json +1 -0
- package/dist/resources/cutout/resources.json +195 -0
- package/dist/resources/cutout/sources.json +294 -0
- package/dist/resources.json +1191 -0
- package/dist/service-contracts.d.ts +43 -0
- package/dist/slots.d.ts +21 -0
- package/dist/style.css +1 -0
- package/dist/types/batch/api.d.ts +89 -0
- package/dist/types/batch/cutout-output.d.ts +2 -0
- package/dist/types/batch/features/background/engine.d.mts +12 -0
- package/dist/types/batch/features/basic-edit/contracts.d.ts +87 -0
- package/dist/types/batch/features/basic-edit/engine.d.mts +96 -0
- package/dist/types/batch/features/brand-mark/contracts.d.ts +84 -0
- package/dist/types/batch/features/brand-mark/engine.d.mts +68 -0
- package/dist/types/batch/features/export-compression/contracts.d.ts +44 -0
- package/dist/types/batch/features/export-compression/gifenc.d.ts +33 -0
- package/dist/types/batch/features/export-compression/plan.d.ts +45 -0
- package/dist/types/batch/features/export-compression/presentation.d.ts +70 -0
- package/dist/types/batch/features/export-compression/upng.d.ts +6 -0
- package/dist/types/batch/features/final-image/resize.d.mts +15 -0
- package/dist/types/batch/features/image-effects/contracts.d.ts +58 -0
- package/dist/types/batch/features/image-effects/gpu-pixel-runtime.d.ts +15 -0
- package/dist/types/batch/features/image-effects/photo-audit.d.ts +21 -0
- package/dist/types/batch/features/image-effects/photo-v7-cpu.d.ts +9 -0
- package/dist/types/batch/features/image-effects/profiles-v4.d.ts +157 -0
- package/dist/types/batch/features/image-effects/profiles-v5.d.ts +20 -0
- package/dist/types/batch/features/image-effects/profiles-v6.d.ts +14 -0
- package/dist/types/batch/features/image-effects/profiles-v7.d.ts +53 -0
- package/dist/types/batch/features/image-effects/profiles-v8.d.ts +113 -0
- package/dist/types/batch/features/image-effects/profiles-v9.d.ts +20 -0
- package/dist/types/batch/features/image-translation/params.d.ts +257 -0
- package/dist/types/batch/features/listing-remake/transport.d.ts +21 -0
- package/dist/types/batch/features/metadata/bytes.d.mts +13 -0
- package/dist/types/batch/features/metadata/containers.d.mts +20 -0
- package/dist/types/batch/features/metadata/declaration.d.mts +5 -0
- package/dist/types/batch/features/metadata/engine.d.mts +9 -0
- package/dist/types/batch/features/metadata/exchange.d.mts +48 -0
- package/dist/types/batch/features/shadow/contracts.d.ts +43 -0
- package/dist/types/batch/features/shadow/engine.d.mts +33 -0
- package/dist/types/batch/features/svg-export/download-contract.d.ts +33 -0
- package/dist/types/batch/features/svg-export/download-prepare.d.ts +2 -0
- package/dist/types/batch/features/svg-export/download.d.ts +7 -0
- package/dist/types/batch/features/svg-export/imagetracer.d.ts +6 -0
- package/dist/types/batch/features/svg-export/optimizer.d.ts +2 -0
- package/dist/types/batch/ids.d.ts +1 -0
- package/dist/types/batch/model.d.ts +317 -0
- package/dist/types/batch/public/config.d.ts +66 -0
- package/dist/types/batch/public/contracts.d.ts +272 -0
- package/dist/types/batch/public/remote-contracts.d.ts +114 -0
- package/dist/types/batch/public/resource-contracts.d.ts +40 -0
- package/dist/types/batch/public/service-contracts.d.ts +43 -0
- package/dist/types/batch/queue.d.ts +34 -0
- package/dist/types/batch/receipts.d.ts +85 -0
- package/dist/types/batch/retention.d.ts +13 -0
- package/dist/types/onnxruntime-web.d.ts +5 -0
- package/dist/types/plugins/cutout/core/hosted-resources.d.ts +11 -0
- package/dist/types/processing.d.ts +18 -0
- package/dist/types/shared/svg-security.d.mts +4 -0
- package/dist/types/workspace-worker.d.ts +2 -0
- package/package.json +91 -3
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
export declare const MAX_TRANSLATION_REGIONS = 12;
|
|
2
|
+
export declare const TRANSLATION_LANGUAGES: {
|
|
3
|
+
readonly en: "英语";
|
|
4
|
+
readonly de: "德语";
|
|
5
|
+
readonly fr: "法语";
|
|
6
|
+
readonly es: "西班牙语";
|
|
7
|
+
readonly ja: "日语";
|
|
8
|
+
readonly it: "意大利语";
|
|
9
|
+
readonly pt: "葡萄牙语";
|
|
10
|
+
readonly nl: "荷兰语";
|
|
11
|
+
readonly pl: "波兰语";
|
|
12
|
+
readonly sv: "瑞典语";
|
|
13
|
+
readonly ru: "俄语";
|
|
14
|
+
};
|
|
15
|
+
export type TranslationLanguage = keyof typeof TRANSLATION_LANGUAGES;
|
|
16
|
+
export declare const TRANSLATION_TARGETS: readonly [{
|
|
17
|
+
readonly locale: "en-US";
|
|
18
|
+
readonly language: "en";
|
|
19
|
+
readonly flag: "🇺🇸";
|
|
20
|
+
readonly country: "US";
|
|
21
|
+
}, {
|
|
22
|
+
readonly locale: "fr-FR";
|
|
23
|
+
readonly language: "fr";
|
|
24
|
+
readonly flag: "🇫🇷";
|
|
25
|
+
readonly country: "FR";
|
|
26
|
+
}, {
|
|
27
|
+
readonly locale: "de-DE";
|
|
28
|
+
readonly language: "de";
|
|
29
|
+
readonly flag: "🇩🇪";
|
|
30
|
+
readonly country: "DE";
|
|
31
|
+
}, {
|
|
32
|
+
readonly locale: "ja-JP";
|
|
33
|
+
readonly language: "ja";
|
|
34
|
+
readonly flag: "🇯🇵";
|
|
35
|
+
readonly country: "JP";
|
|
36
|
+
}, {
|
|
37
|
+
readonly locale: "es-ES";
|
|
38
|
+
readonly language: "es";
|
|
39
|
+
readonly flag: "🇪🇸";
|
|
40
|
+
readonly country: "ES";
|
|
41
|
+
}, {
|
|
42
|
+
readonly locale: "es-MX";
|
|
43
|
+
readonly language: "es";
|
|
44
|
+
readonly flag: "🇲🇽";
|
|
45
|
+
readonly country: "MX";
|
|
46
|
+
}, {
|
|
47
|
+
readonly locale: "en-CA";
|
|
48
|
+
readonly language: "en";
|
|
49
|
+
readonly flag: "🇨🇦";
|
|
50
|
+
readonly country: "CA";
|
|
51
|
+
}, {
|
|
52
|
+
readonly locale: "en-GB";
|
|
53
|
+
readonly language: "en";
|
|
54
|
+
readonly flag: "🇬🇧";
|
|
55
|
+
readonly country: "UK";
|
|
56
|
+
}, {
|
|
57
|
+
readonly locale: "fr-CA";
|
|
58
|
+
readonly language: "fr";
|
|
59
|
+
readonly flag: "🇨🇦";
|
|
60
|
+
readonly country: "CA";
|
|
61
|
+
}, {
|
|
62
|
+
readonly locale: "es-US";
|
|
63
|
+
readonly language: "es";
|
|
64
|
+
readonly flag: "🇺🇸";
|
|
65
|
+
readonly country: "US";
|
|
66
|
+
}, {
|
|
67
|
+
readonly locale: "it-IT";
|
|
68
|
+
readonly language: "it";
|
|
69
|
+
readonly flag: "🇮🇹";
|
|
70
|
+
readonly country: "IT";
|
|
71
|
+
}, {
|
|
72
|
+
readonly locale: "en-AU";
|
|
73
|
+
readonly language: "en";
|
|
74
|
+
readonly flag: "🇦🇺";
|
|
75
|
+
readonly country: "AU";
|
|
76
|
+
}, {
|
|
77
|
+
readonly locale: "en-IN";
|
|
78
|
+
readonly language: "en";
|
|
79
|
+
readonly flag: "🇮🇳";
|
|
80
|
+
readonly country: "IN";
|
|
81
|
+
}, {
|
|
82
|
+
readonly locale: "fr-BE";
|
|
83
|
+
readonly language: "fr";
|
|
84
|
+
readonly flag: "🇧🇪";
|
|
85
|
+
readonly country: "BE";
|
|
86
|
+
}, {
|
|
87
|
+
readonly locale: "pt-BR";
|
|
88
|
+
readonly language: "pt";
|
|
89
|
+
readonly flag: "🇧🇷";
|
|
90
|
+
readonly country: "BR";
|
|
91
|
+
}, {
|
|
92
|
+
readonly locale: "nl-NL";
|
|
93
|
+
readonly language: "nl";
|
|
94
|
+
readonly flag: "🇳🇱";
|
|
95
|
+
readonly country: "NL";
|
|
96
|
+
}, {
|
|
97
|
+
readonly locale: "pl-PL";
|
|
98
|
+
readonly language: "pl";
|
|
99
|
+
readonly flag: "🇵🇱";
|
|
100
|
+
readonly country: "PL";
|
|
101
|
+
}, {
|
|
102
|
+
readonly locale: "sv-SE";
|
|
103
|
+
readonly language: "sv";
|
|
104
|
+
readonly flag: "🇸🇪";
|
|
105
|
+
readonly country: "SE";
|
|
106
|
+
}, {
|
|
107
|
+
readonly locale: "nl-BE";
|
|
108
|
+
readonly language: "nl";
|
|
109
|
+
readonly flag: "🇧🇪";
|
|
110
|
+
readonly country: "BE";
|
|
111
|
+
}, {
|
|
112
|
+
readonly locale: "ru-RU";
|
|
113
|
+
readonly language: "ru";
|
|
114
|
+
readonly flag: "🇷🇺";
|
|
115
|
+
readonly country: "RU";
|
|
116
|
+
}];
|
|
117
|
+
export type TranslationLocale = (typeof TRANSLATION_TARGETS)[number]['locale'];
|
|
118
|
+
export declare const translationTarget: (locale: unknown) => {
|
|
119
|
+
readonly locale: "en-US";
|
|
120
|
+
readonly language: "en";
|
|
121
|
+
readonly flag: "🇺🇸";
|
|
122
|
+
readonly country: "US";
|
|
123
|
+
} | {
|
|
124
|
+
readonly locale: "fr-FR";
|
|
125
|
+
readonly language: "fr";
|
|
126
|
+
readonly flag: "🇫🇷";
|
|
127
|
+
readonly country: "FR";
|
|
128
|
+
} | {
|
|
129
|
+
readonly locale: "de-DE";
|
|
130
|
+
readonly language: "de";
|
|
131
|
+
readonly flag: "🇩🇪";
|
|
132
|
+
readonly country: "DE";
|
|
133
|
+
} | {
|
|
134
|
+
readonly locale: "ja-JP";
|
|
135
|
+
readonly language: "ja";
|
|
136
|
+
readonly flag: "🇯🇵";
|
|
137
|
+
readonly country: "JP";
|
|
138
|
+
} | {
|
|
139
|
+
readonly locale: "es-ES";
|
|
140
|
+
readonly language: "es";
|
|
141
|
+
readonly flag: "🇪🇸";
|
|
142
|
+
readonly country: "ES";
|
|
143
|
+
} | {
|
|
144
|
+
readonly locale: "es-MX";
|
|
145
|
+
readonly language: "es";
|
|
146
|
+
readonly flag: "🇲🇽";
|
|
147
|
+
readonly country: "MX";
|
|
148
|
+
} | {
|
|
149
|
+
readonly locale: "en-CA";
|
|
150
|
+
readonly language: "en";
|
|
151
|
+
readonly flag: "🇨🇦";
|
|
152
|
+
readonly country: "CA";
|
|
153
|
+
} | {
|
|
154
|
+
readonly locale: "en-GB";
|
|
155
|
+
readonly language: "en";
|
|
156
|
+
readonly flag: "🇬🇧";
|
|
157
|
+
readonly country: "UK";
|
|
158
|
+
} | {
|
|
159
|
+
readonly locale: "fr-CA";
|
|
160
|
+
readonly language: "fr";
|
|
161
|
+
readonly flag: "🇨🇦";
|
|
162
|
+
readonly country: "CA";
|
|
163
|
+
} | {
|
|
164
|
+
readonly locale: "es-US";
|
|
165
|
+
readonly language: "es";
|
|
166
|
+
readonly flag: "🇺🇸";
|
|
167
|
+
readonly country: "US";
|
|
168
|
+
} | {
|
|
169
|
+
readonly locale: "it-IT";
|
|
170
|
+
readonly language: "it";
|
|
171
|
+
readonly flag: "🇮🇹";
|
|
172
|
+
readonly country: "IT";
|
|
173
|
+
} | {
|
|
174
|
+
readonly locale: "en-AU";
|
|
175
|
+
readonly language: "en";
|
|
176
|
+
readonly flag: "🇦🇺";
|
|
177
|
+
readonly country: "AU";
|
|
178
|
+
} | {
|
|
179
|
+
readonly locale: "en-IN";
|
|
180
|
+
readonly language: "en";
|
|
181
|
+
readonly flag: "🇮🇳";
|
|
182
|
+
readonly country: "IN";
|
|
183
|
+
} | {
|
|
184
|
+
readonly locale: "fr-BE";
|
|
185
|
+
readonly language: "fr";
|
|
186
|
+
readonly flag: "🇧🇪";
|
|
187
|
+
readonly country: "BE";
|
|
188
|
+
} | {
|
|
189
|
+
readonly locale: "pt-BR";
|
|
190
|
+
readonly language: "pt";
|
|
191
|
+
readonly flag: "🇧🇷";
|
|
192
|
+
readonly country: "BR";
|
|
193
|
+
} | {
|
|
194
|
+
readonly locale: "nl-NL";
|
|
195
|
+
readonly language: "nl";
|
|
196
|
+
readonly flag: "🇳🇱";
|
|
197
|
+
readonly country: "NL";
|
|
198
|
+
} | {
|
|
199
|
+
readonly locale: "pl-PL";
|
|
200
|
+
readonly language: "pl";
|
|
201
|
+
readonly flag: "🇵🇱";
|
|
202
|
+
readonly country: "PL";
|
|
203
|
+
} | {
|
|
204
|
+
readonly locale: "sv-SE";
|
|
205
|
+
readonly language: "sv";
|
|
206
|
+
readonly flag: "🇸🇪";
|
|
207
|
+
readonly country: "SE";
|
|
208
|
+
} | {
|
|
209
|
+
readonly locale: "nl-BE";
|
|
210
|
+
readonly language: "nl";
|
|
211
|
+
readonly flag: "🇧🇪";
|
|
212
|
+
readonly country: "BE";
|
|
213
|
+
} | {
|
|
214
|
+
readonly locale: "ru-RU";
|
|
215
|
+
readonly language: "ru";
|
|
216
|
+
readonly flag: "🇷🇺";
|
|
217
|
+
readonly country: "RU";
|
|
218
|
+
};
|
|
219
|
+
export declare const translationTargetLabel: (locale: unknown, language: TranslationLanguage) => string;
|
|
220
|
+
export declare function selectedTranslationLocale(draft: TranslationDraft): string;
|
|
221
|
+
export type TranslationDraft = {
|
|
222
|
+
targetCode?: string;
|
|
223
|
+
targetLanguage: TranslationLanguage | null;
|
|
224
|
+
targetLocale?: TranslationLocale;
|
|
225
|
+
termsText: string;
|
|
226
|
+
notes: string;
|
|
227
|
+
};
|
|
228
|
+
export type TranslationParams = {
|
|
229
|
+
targetLanguage: TranslationLanguage;
|
|
230
|
+
targetLocale?: TranslationLocale;
|
|
231
|
+
preserveTerms: string[];
|
|
232
|
+
notes: string;
|
|
233
|
+
};
|
|
234
|
+
export type TranslationDetails = {
|
|
235
|
+
sourceLanguage: string;
|
|
236
|
+
targetLanguage: TranslationLanguage;
|
|
237
|
+
targetLocale?: TranslationLocale | null;
|
|
238
|
+
promptVersion: string;
|
|
239
|
+
replacements: {
|
|
240
|
+
source: string;
|
|
241
|
+
target: string;
|
|
242
|
+
box: [number, number, number, number];
|
|
243
|
+
}[];
|
|
244
|
+
verification?: {
|
|
245
|
+
passed: boolean;
|
|
246
|
+
reason: string;
|
|
247
|
+
remainingSourceText: string[];
|
|
248
|
+
preservationIssues: string[];
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
export declare const newTranslationDraft: () => TranslationDraft;
|
|
252
|
+
export declare function translationLanguageLabel(value: string): string;
|
|
253
|
+
export declare function translationParams(draft: TranslationDraft): TranslationParams | {
|
|
254
|
+
targetCode: string;
|
|
255
|
+
};
|
|
256
|
+
export declare function translationError(draft: TranslationDraft): string;
|
|
257
|
+
export declare function translationSkipLabel(code: 'already_target_language' | 'no_editable_text' | undefined): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type TaskResponse } from '../../receipts';
|
|
2
|
+
export type PinnedAsset = {
|
|
3
|
+
assetId: string;
|
|
4
|
+
assetVersionId: string;
|
|
5
|
+
sha256: string;
|
|
6
|
+
};
|
|
7
|
+
export type LirSegmentSubmission = {
|
|
8
|
+
operationId: string;
|
|
9
|
+
serviceEpoch?: string;
|
|
10
|
+
params: Record<string, unknown>;
|
|
11
|
+
references: {
|
|
12
|
+
clientRequestId: string;
|
|
13
|
+
itemId: string;
|
|
14
|
+
inputVersionId: string;
|
|
15
|
+
asset: PinnedAsset;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
export declare function parseLirSegment(value: unknown, body: LirSegmentSubmission): {
|
|
19
|
+
segmentId: string;
|
|
20
|
+
tasks: TaskResponse[];
|
|
21
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const MAX_INPUT: number;
|
|
2
|
+
export const MAX_PACKET: number;
|
|
3
|
+
export function invalid(detail?: string): never;
|
|
4
|
+
export function ascii(bytes: Uint8Array, start?: number, end?: number): string;
|
|
5
|
+
export function starts(bytes: Uint8Array, at: number, text: string): boolean;
|
|
6
|
+
export function encode(value: string): Uint8Array<ArrayBuffer>;
|
|
7
|
+
export function utf8(bytes: Uint8Array): string;
|
|
8
|
+
export function join(parts: ReadonlyArray<Uint8Array>): Uint8Array<ArrayBuffer>;
|
|
9
|
+
export function view(bytes: Uint8Array): DataView<ArrayBufferLike>;
|
|
10
|
+
export function uint32(value: number, little?: boolean): Uint8Array<ArrayBuffer>;
|
|
11
|
+
export function crc32(bytes: Uint8Array): number;
|
|
12
|
+
export function pngChunk(type: string, data: Uint8Array): Uint8Array<ArrayBuffer>;
|
|
13
|
+
export function riffChunk(type: string, data: Uint8Array): Uint8Array<ArrayBuffer>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface PngVisitor {
|
|
2
|
+
header?(header: { width: number; height: number }): void;
|
|
3
|
+
chunk?(type: string, data: Uint8Array): void;
|
|
4
|
+
exif?(data: Uint8Array): Uint8Array | undefined;
|
|
5
|
+
pngText?(text: {
|
|
6
|
+
type: string;
|
|
7
|
+
key: string;
|
|
8
|
+
data: Uint8Array;
|
|
9
|
+
payload: number;
|
|
10
|
+
compressed: boolean;
|
|
11
|
+
}): Uint8Array | undefined;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function cleanPng(
|
|
15
|
+
bytes: Uint8Array,
|
|
16
|
+
params: Record<string, boolean>,
|
|
17
|
+
removed: Record<string, number>,
|
|
18
|
+
registerXmp: () => void,
|
|
19
|
+
visitor?: PngVisitor,
|
|
20
|
+
): Uint8Array;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { MetadataCleanResult, DeclarationParams } from './contracts';
|
|
2
|
+
export function declarePerson(bytes: Uint8Array): MetadataCleanResult;
|
|
3
|
+
export function hasPersonDeclaration(bytes: Uint8Array): boolean;
|
|
4
|
+
|
|
5
|
+
export function validateDeclaration(value: unknown): DeclarationParams;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MetadataParams, MetadataCleanResult } from './contracts';
|
|
2
|
+
export type { MetadataParams, MetadataCleanResult, MetadataCategory } from './contracts';
|
|
3
|
+
|
|
4
|
+
export const DEFAULT_METADATA: Readonly<MetadataParams>;
|
|
5
|
+
export function validateMetadata(value: unknown): MetadataParams;
|
|
6
|
+
/** Selectively remove supported standard fields without decoding or re-encoding pixels.
|
|
7
|
+
* Malformed containers and unsupported ambiguous metadata fail without modifying input.
|
|
8
|
+
*/
|
|
9
|
+
export function cleanMetadata(bytes: Uint8Array, params: MetadataParams): MetadataCleanResult;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { MetadataParams } from './contracts';
|
|
2
|
+
|
|
3
|
+
export type MetadataFormat = 'png' | 'jpeg' | 'webp';
|
|
4
|
+
export type MetadataMime = 'image/png' | 'image/jpeg' | 'image/webp';
|
|
5
|
+
export interface ImageHeader {
|
|
6
|
+
readonly format: MetadataFormat;
|
|
7
|
+
readonly mime: MetadataMime;
|
|
8
|
+
readonly width: number;
|
|
9
|
+
readonly height: number;
|
|
10
|
+
readonly orientation: number;
|
|
11
|
+
readonly displayWidth: number;
|
|
12
|
+
readonly displayHeight: number;
|
|
13
|
+
readonly byteLength: number;
|
|
14
|
+
readonly pixelCount: number;
|
|
15
|
+
readonly withinBudget: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface MetadataText {
|
|
18
|
+
readonly keyword: string;
|
|
19
|
+
readonly text: string;
|
|
20
|
+
}
|
|
21
|
+
export interface MetadataSnapshot extends ImageHeader {
|
|
22
|
+
readonly schemaVersion: 1;
|
|
23
|
+
readonly packets: {
|
|
24
|
+
readonly exif: ReadonlyArray<number> | null;
|
|
25
|
+
readonly xmp: string | null;
|
|
26
|
+
readonly text: ReadonlyArray<MetadataText>;
|
|
27
|
+
readonly comments: ReadonlyArray<ReadonlyArray<number>>;
|
|
28
|
+
readonly photoshop: ReadonlyArray<number> | null;
|
|
29
|
+
readonly iptc: ReadonlyArray<ReadonlyArray<number>>;
|
|
30
|
+
readonly opaque: ReadonlyArray<{ readonly kind: string; readonly data: ReadonlyArray<number> }>;
|
|
31
|
+
};
|
|
32
|
+
readonly sourceColor: { readonly iccPresent: boolean; readonly iccBytes: number };
|
|
33
|
+
readonly conversion: { readonly supported: boolean; readonly reasons: ReadonlyArray<string> };
|
|
34
|
+
}
|
|
35
|
+
export interface MetadataRewriteOptions {
|
|
36
|
+
width: number;
|
|
37
|
+
height: number;
|
|
38
|
+
orientation: 1;
|
|
39
|
+
colorSpace: 'srgb';
|
|
40
|
+
privacy?: MetadataParams;
|
|
41
|
+
}
|
|
42
|
+
export function inspectImageHeader(bytes: Uint8Array): ImageHeader;
|
|
43
|
+
export function readMetadata(bytes: Uint8Array): MetadataSnapshot;
|
|
44
|
+
export function rewriteMetadata(
|
|
45
|
+
encodedBytes: Uint8Array,
|
|
46
|
+
snapshot: MetadataSnapshot,
|
|
47
|
+
options: MetadataRewriteOptions,
|
|
48
|
+
): Uint8Array;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface ShadowParams {
|
|
2
|
+
version: 1;
|
|
3
|
+
color: `#${string}`;
|
|
4
|
+
offsetX: number;
|
|
5
|
+
offsetY: number;
|
|
6
|
+
blur: number;
|
|
7
|
+
opacity: number;
|
|
8
|
+
lockSize?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface AlphaBounds {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}
|
|
16
|
+
export interface ShadowAlphaInspection {
|
|
17
|
+
bounds?: AlphaBounds;
|
|
18
|
+
hasTransparency: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ShadowGeometry {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
sourceX: number;
|
|
24
|
+
sourceY: number;
|
|
25
|
+
padding: {
|
|
26
|
+
top: number;
|
|
27
|
+
right: number;
|
|
28
|
+
bottom: number;
|
|
29
|
+
left: number;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export type ShadowPixelsResult = {
|
|
33
|
+
kind: 'analysis';
|
|
34
|
+
skipped: true;
|
|
35
|
+
reason: string;
|
|
36
|
+
} | {
|
|
37
|
+
kind: 'image';
|
|
38
|
+
data: Uint8ClampedArray;
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
sourceX: number;
|
|
42
|
+
sourceY: number;
|
|
43
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ShadowParams,
|
|
3
|
+
ShadowGeometry,
|
|
4
|
+
ShadowPixelsResult,
|
|
5
|
+
AlphaBounds,
|
|
6
|
+
ShadowAlphaInspection,
|
|
7
|
+
} from './contracts';
|
|
8
|
+
export type {
|
|
9
|
+
ShadowParams,
|
|
10
|
+
ShadowGeometry,
|
|
11
|
+
ShadowPixelsResult,
|
|
12
|
+
AlphaBounds,
|
|
13
|
+
ShadowAlphaInspection,
|
|
14
|
+
} from './contracts';
|
|
15
|
+
export const DEFAULT_SHADOW: Readonly<ShadowParams>;
|
|
16
|
+
export function validateShadow(value: unknown): ShadowParams;
|
|
17
|
+
export function inspectShadowAlpha(
|
|
18
|
+
rgba: Uint8ClampedArray,
|
|
19
|
+
width: number,
|
|
20
|
+
height: number,
|
|
21
|
+
): ShadowAlphaInspection;
|
|
22
|
+
export function computeShadowGeometry(
|
|
23
|
+
width: number,
|
|
24
|
+
height: number,
|
|
25
|
+
params: ShadowParams,
|
|
26
|
+
bounds?: AlphaBounds,
|
|
27
|
+
): ShadowGeometry;
|
|
28
|
+
export function shadowPixels(
|
|
29
|
+
rgba: Uint8ClampedArray,
|
|
30
|
+
width: number,
|
|
31
|
+
height: number,
|
|
32
|
+
params: ShadowParams,
|
|
33
|
+
): ShadowPixelsResult;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Attempt } from '../../model';
|
|
2
|
+
export type SvgDownloadEntry = {
|
|
3
|
+
attempt: Readonly<Pick<Attempt, 'id' | 'status' | 'exportArtifact' | 'submittedParams'>>;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export type SvgDownloadIssue = {
|
|
7
|
+
attemptId: string;
|
|
8
|
+
name: string;
|
|
9
|
+
kind: 'excluded' | 'preparation';
|
|
10
|
+
reason: string;
|
|
11
|
+
};
|
|
12
|
+
export type SvgDownloadResult = {
|
|
13
|
+
kind: 'ready';
|
|
14
|
+
blob: Blob;
|
|
15
|
+
filename: string;
|
|
16
|
+
issues: SvgDownloadIssue[];
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'unavailable';
|
|
19
|
+
issues: SvgDownloadIssue[];
|
|
20
|
+
} | {
|
|
21
|
+
kind: 'cancelled';
|
|
22
|
+
};
|
|
23
|
+
export type SvgExportChoice = 'raw' | 'p3' | 'p2' | 'p1';
|
|
24
|
+
export type SvgDownloadVariant = 'raw' | 'optimized';
|
|
25
|
+
export declare function svgDownloadEligibility(entry: SvgDownloadEntry, variant: SvgDownloadVariant, exportChoice?: SvgExportChoice): "failed" | "cancelled" | "waiting_dependency" | "blocked_dependency" | "waiting_source" | "ready_to_submit" | "submitting" | "submission_unknown" | "accepted" | "queued" | "running" | "optimization_disabled";
|
|
26
|
+
export type SvgDownloadInput = {
|
|
27
|
+
entries: readonly SvgDownloadEntry[];
|
|
28
|
+
variant: SvgDownloadVariant;
|
|
29
|
+
container: 'single' | 'zip';
|
|
30
|
+
readonly exportChoice?: SvgExportChoice;
|
|
31
|
+
signal?: AbortSignal;
|
|
32
|
+
};
|
|
33
|
+
export type SvgAssetReader = (reference: import('../../public/contracts').WorkspaceAssetReference, signal?: AbortSignal) => Promise<Blob>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SvgDownloadInput, SvgDownloadResult, SvgAssetReader } from './download-contract';
|
|
2
|
+
export { svgDownloadEligibility } from './download-contract';
|
|
3
|
+
export type { SvgDownloadEntry, SvgDownloadIssue, SvgDownloadResult, SvgDownloadVariant, } from './download-contract';
|
|
4
|
+
export declare function prepareSvgDownload(input: SvgDownloadInput, readAsset?: SvgAssetReader): Promise<SvgDownloadResult>;
|
|
5
|
+
export declare function saveSvgDownload(result: Extract<SvgDownloadResult, {
|
|
6
|
+
kind: 'ready';
|
|
7
|
+
}>): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const newId: (prefix: string) => string;
|