Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat: bring back file type associations (#1688)

gbirman356449270121
diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/fileType.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/fileType.ts
index 2a13191ba3..4e284c29d9 100644
--- a/js/app/packages/service-clients/service-cognition/generated/schemas/fileType.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/fileType.ts
@@ -29,36 +29,357 @@ export const FileType = {
pdf: 'pdf',
md: 'md',
canvas: 'canvas',
- py: 'py',
+ coffee: 'coffee',
+ cson: 'cson',
+ iced: 'iced',
+ c: 'c',
+ i: 'i',
+ cpp: 'cpp',
+ cppm: 'cppm',
+ cc: 'cc',
+ ccm: 'ccm',
+ cxx: 'cxx',
+ cxxm: 'cxxm',
+ cplusplus: 'cplusplus',
+ cplusplusm: 'cplusplusm',
+ hpp: 'hpp',
+ hh: 'hh',
+ hxx: 'hxx',
+ hplusplus: 'hplusplus',
+ h: 'h',
+ ii: 'ii',
+ ino: 'ino',
+ inl: 'inl',
+ ipp: 'ipp',
+ ixx: 'ixx',
+ tpp: 'tpp',
+ txx: 'txx',
+ hppin: 'hppin',
+ hin: 'hin',
+ cu: 'cu',
+ cuh: 'cuh',
+ cs: 'cs',
+ csx: 'csx',
+ cake: 'cake',
+ css: 'css',
+ dart: 'dart',
+ diff: 'diff',
+ patch: 'patch',
+ rej: 'rej',
+ dockerfile: 'dockerfile',
+ containerfile: 'containerfile',
+ go: 'go',
+ handlebars: 'handlebars',
+ hbs: 'hbs',
+ hjs: 'hjs',
+ hlsl: 'hlsl',
+ hlsli: 'hlsli',
+ fx: 'fx',
+ fxh: 'fxh',
+ vsh: 'vsh',
+ psh: 'psh',
+ cginc: 'cginc',
+ compute: 'compute',
+ html: 'html',
+ htm: 'htm',
+ shtml: 'shtml',
+ xhtml: 'xhtml',
+ xht: 'xht',
+ mdoc: 'mdoc',
+ jsp: 'jsp',
+ asp: 'asp',
+ aspx: 'aspx',
+ jshtm: 'jshtm',
+ volt: 'volt',
+ ejs: 'ejs',
+ rhtml: 'rhtml',
+ ini: 'ini',
+ conf: 'conf',
+ properties: 'properties',
+ cfg: 'cfg',
+ directory: 'directory',
+ gitattributes: 'gitattributes',
+ gitconfig: 'gitconfig',
+ gitmodules: 'gitmodules',
+ editorconfig: 'editorconfig',
+ repo: 'repo',
+ java: 'java',
+ jav: 'jav',
+ jsx: 'jsx',
js: 'js',
+ es6: 'es6',
+ mjs: 'mjs',
+ cjs: 'cjs',
+ pac: 'pac',
+ json: 'json',
+ bowerrc: 'bowerrc',
+ jscsrc: 'jscsrc',
+ webmanifest: 'webmanifest',
+ jsmap: 'jsmap',
+ cssmap: 'cssmap',
+ tsmap: 'tsmap',
+ har: 'har',
+ jslintrc: 'jslintrc',
+ jsonld: 'jsonld',
+ geojson: 'geojson',
+ ipynb: 'ipynb',
+ vuerc: 'vuerc',
+ jsonc: 'jsonc',
+ eslintrc: 'eslintrc',
+ eslintrcjson: 'eslintrcjson',
+ jsfmtrc: 'jsfmtrc',
+ jshintrc: 'jshintrc',
+ swcrc: 'swcrc',
+ hintrc: 'hintrc',
+ babelrc: 'babelrc',
+ jsonl: 'jsonl',
+ ndjson: 'ndjson',
+ codesnippets: 'codesnippets',
+ jl: 'jl',
+ jmd: 'jmd',
+ sty: 'sty',
+ cls: 'cls',
+ bbx: 'bbx',
+ cbx: 'cbx',
+ tex: 'tex',
+ ltx: 'ltx',
+ ctx: 'ctx',
+ bib: 'bib',
+ less: 'less',
+ log: 'log',
+ lua: 'lua',
+ mak: 'mak',
+ mk: 'mk',
+ mkd: 'mkd',
+ mdwn: 'mdwn',
+ mdown: 'mdown',
+ markdown: 'markdown',
+ markdn: 'markdn',
+ mdtxt: 'mdtxt',
+ mdtext: 'mdtext',
+ workbook: 'workbook',
+ m: 'm',
+ mm: 'mm',
+ pl: 'pl',
+ pm: 'pm',
+ pod: 'pod',
+ t: 't',
+ psgi: 'psgi',
+ raku: 'raku',
+ rakumod: 'rakumod',
+ rakutest: 'rakutest',
+ rakudoc: 'rakudoc',
+ nqp: 'nqp',
+ p6: 'p6',
+ pl6: 'pl6',
+ pm6: 'pm6',
+ php: 'php',
+ php4: 'php4',
+ php5: 'php5',
+ phtml: 'phtml',
+ ctp: 'ctp',
+ ps1: 'ps1',
+ psm1: 'psm1',
+ psd1: 'psd1',
+ pssc: 'pssc',
+ psrc: 'psrc',
+ py: 'py',
+ rpy: 'rpy',
+ pyw: 'pyw',
+ cpy: 'cpy',
+ gyp: 'gyp',
+ gypi: 'gypi',
+ pyi: 'pyi',
+ ipy: 'ipy',
+ pyt: 'pyt',
+ r: 'r',
+ rhistory: 'rhistory',
+ rprofile: 'rprofile',
+ rt: 'rt',
+ cshtml: 'cshtml',
+ razor: 'razor',
+ rb: 'rb',
+ rbx: 'rbx',
+ rjs: 'rjs',
+ gemspec: 'gemspec',
+ rake: 'rake',
+ ru: 'ru',
+ erb: 'erb',
+ podspec: 'podspec',
+ rbi: 'rbi',
+ rs: 'rs',
+ scss: 'scss',
+ sass: 'sass',
+ shader: 'shader',
+ sh: 'sh',
+ bash: 'bash',
+ bashrc: 'bashrc',
+ bashaliases: 'bashaliases',
+ bashprofile: 'bashprofile',
+ bashlogin: 'bashlogin',
+ ebuild: 'ebuild',
+ eclass: 'eclass',
+ profile: 'profile',
+ bashlogout: 'bashlogout',
+ xprofile: 'xprofile',
+ xsession: 'xsession',
+ xsessionrc: 'xsessionrc',
+ zsh: 'zsh',
+ zshrc: 'zshrc',
+ zprofile: 'zprofile',
+ zlogin: 'zlogin',
+ zlogout: 'zlogout',
+ zshenv: 'zshenv',
+ zshtheme: 'zshtheme',
+ fish: 'fish',
+ ksh: 'ksh',
+ csh: 'csh',
+ cshrc: 'cshrc',
+ tcshrc: 'tcshrc',
+ yashrc: 'yashrc',
+ yashprofile: 'yashprofile',
+ sql: 'sql',
+ dsql: 'dsql',
+ swift: 'swift',
ts: 'ts',
- jsx: 'jsx',
+ cts: 'cts',
+ mts: 'mts',
tsx: 'tsx',
- json: 'json',
- html: 'html',
- css: 'css',
+ tsbuildinfo: 'tsbuildinfo',
xml: 'xml',
+ xsd: 'xsd',
+ ascx: 'ascx',
+ atom: 'atom',
+ axml: 'axml',
+ axaml: 'axaml',
+ bpmn: 'bpmn',
+ cpt: 'cpt',
+ csl: 'csl',
+ csproj: 'csproj',
+ csprojuser: 'csprojuser',
+ dita: 'dita',
+ ditamap: 'ditamap',
+ dtd: 'dtd',
+ ent: 'ent',
+ mod: 'mod',
+ dtml: 'dtml',
+ fsproj: 'fsproj',
+ fxml: 'fxml',
+ iml: 'iml',
+ isml: 'isml',
+ jmx: 'jmx',
+ launch: 'launch',
+ menu: 'menu',
+ mxml: 'mxml',
+ nuspec: 'nuspec',
+ opml: 'opml',
+ owl: 'owl',
+ proj: 'proj',
+ props: 'props',
+ pt: 'pt',
+ publishsettings: 'publishsettings',
+ pubxml: 'pubxml',
+ pubxmluser: 'pubxmluser',
+ rbxlx: 'rbxlx',
+ rbxmx: 'rbxmx',
+ rdf: 'rdf',
+ rng: 'rng',
+ rss: 'rss',
+ shproj: 'shproj',
+ storyboard: 'storyboard',
+ targets: 'targets',
+ tld: 'tld',
+ tmx: 'tmx',
+ vbproj: 'vbproj',
+ vbprojuser: 'vbprojuser',
+ vcxproj: 'vcxproj',
+ vcxprojfilters: 'vcxprojfilters',
+ wsdl: 'wsdl',
+ wxi: 'wxi',
+ wxl: 'wxl',
+ wxs: 'wxs',
+ xaml: 'xaml',
+ xbl: 'xbl',
+ xib: 'xib',
+ xlf: 'xlf',
+ xliff: 'xliff',
+ xpdl: 'xpdl',
+ xul: 'xul',
+ xoml: 'xoml',
+ xsl: 'xsl',
+ xslt: 'xslt',
yaml: 'yaml',
yml: 'yml',
- sql: 'sql',
- sh: 'sh',
- bash: 'bash',
- markdown: 'markdown',
+ eyaml: 'eyaml',
+ eyml: 'eyml',
+ cff: 'cff',
+ yamltmlanguage: 'yamltmlanguage',
+ yamltmpreferences: 'yamltmpreferences',
+ yamltmtheme: 'yamltmtheme',
+ winget: 'winget',
txt: 'txt',
csv: 'csv',
+ tsv: 'tsv',
jpeg: 'jpeg',
jpg: 'jpg',
png: 'png',
gif: 'gif',
svg: 'svg',
webp: 'webp',
+ avif: 'avif',
+ bmp: 'bmp',
+ ico: 'ico',
+ tiff: 'tiff',
+ tif: 'tif',
heic: 'heic',
heif: 'heif',
- zip: 'zip',
tar: 'tar',
targz: 'targz',
tgz: 'tgz',
gz: 'gz',
+ bz2: 'bz2',
+ tarbz2: 'tarbz2',
+ tbz2: 'tbz2',
+ z: 'z',
+ tarz: 'tarz',
+ lz: 'lz',
+ tarlz: 'tarlz',
+ xz: 'xz',
+ tarxz: 'tarxz',
+ txz: 'txz',
+ lzma: 'lzma',
+ tarlzma: 'tarlzma',
+ rar: 'rar',
+ sevenz: 'sevenz',
+ zst: 'zst',
+ tarzst: 'tarzst',
+ tzst: 'tzst',
+ zip: 'zip',
+ exe: 'exe',
+ msi: 'msi',
+ dll: 'dll',
+ bat: 'bat',
+ cmd: 'cmd',
+ com: 'com',
+ appimage: 'appimage',
+ app: 'app',
+ bin: 'bin',
+ deb: 'deb',
+ rpm: 'rpm',
+ apk: 'apk',
+ dmg: 'dmg',
+ pkg: 'pkg',
+ crx: 'crx',
+ xpi: 'xpi',
+ mp3: 'mp3',
+ wav: 'wav',
+ ogg: 'ogg',
+ flac: 'flac',
+ aac: 'aac',
+ m4a: 'm4a',
+ wma: 'wma',
+ mid: 'mid',
+ midi: 'midi',
mp4: 'mp4',
mkv: 'mkv',
webm: 'webm',
@@ -71,8 +392,59 @@ export const FileType = {
flv: 'flv',
f4v: 'f4v',
threegp: 'threegp',
+ ttf: 'ttf',
+ otf: 'otf',
+ woff: 'woff',
+ woff2: 'woff2',
+ eot: 'eot',
+ rtf: 'rtf',
+ odt: 'odt',
+ ods: 'ods',
+ odp: 'odp',
+ odg: 'odg',
+ odf: 'odf',
+ epub: 'epub',
+ mobi: 'mobi',
+ azw: 'azw',
+ azw3: 'azw3',
+ djvu: 'djvu',
xls: 'xls',
ppt: 'ppt',
pptx: 'pptx',
xlsx: 'xlsx',
+ db: 'db',
+ sqlite: 'sqlite',
+ sqlite3: 'sqlite3',
+ mdb: 'mdb',
+ accdb: 'accdb',
+ dbf: 'dbf',
+ plist: 'plist',
+ toml: 'toml',
+ env: 'env',
+ dot: 'dot',
+ gv: 'gv',
+ torrent: 'torrent',
+ ics: 'ics',
+ vcf: 'vcf',
+ ai: 'ai',
+ eps: 'eps',
+ ps: 'ps',
+ dxf: 'dxf',
+ dwg: 'dwg',
+ stl: 'stl',
+ obj: 'obj',
+ fbx: 'fbx',
+ blend: 'blend',
+ dae: 'dae',
+ threeds: 'threeds',
+ gltf: 'gltf',
+ glb: 'glb',
+ vhd: 'vhd',
+ vhdx: 'vhdx',
+ vmdk: 'vmdk',
+ ova: 'ova',
+ ovf: 'ovf',
+ iso: 'iso',
+ img: 'img',
+ swf: 'swf',
} as const;
diff --git a/js/app/packages/service-clients/service-cognition/openapi.json b/js/app/packages/service-clients/service-cognition/openapi.json
index 012fbad103..b176775645 100644
--- a/js/app/packages/service-clients/service-cognition/openapi.json
+++ b/js/app/packages/service-clients/service-cognition/openapi.json
@@ -1871,36 +1871,357 @@
"pdf",
"md",
"canvas",
- "py",
+ "coffee",
+ "cson",
+ "iced",
+ "c",
+ "i",
+ "cpp",
+ "cppm",
+ "cc",
+ "ccm",
+ "cxx",
+ "cxxm",
+ "cplusplus",
+ "cplusplusm",
+ "hpp",
+ "hh",
+ "hxx",
+ "hplusplus",
+ "h",
+ "ii",
+ "ino",
+ "inl",
+ "ipp",
+ "ixx",
+ "tpp",
+ "txx",
+ "hppin",
+ "hin",
+ "cu",
+ "cuh",
+ "cs",
+ "csx",
+ "cake",
+ "css",
+ "dart",
+ "diff",
+ "patch",
+ "rej",
+ "dockerfile",
+ "containerfile",
+ "go",
+ "handlebars",
+ "hbs",
+ "hjs",
+ "hlsl",
+ "hlsli",
+ "fx",
+ "fxh",
+ "vsh",
+ "psh",
+ "cginc",
+ "compute",
+ "html",
+ "htm",
+ "shtml",
+ "xhtml",
+ "xht",
+ "mdoc",
+ "jsp",
+ "asp",
+ "aspx",
+ "jshtm",
+ "volt",
+ "ejs",
+ "rhtml",
+ "ini",
+ "conf",
+ "properties",
+ "cfg",
+ "directory",
+ "gitattributes",
+ "gitconfig",
+ "gitmodules",
+ "editorconfig",
+ "repo",
+ "java",
+ "jav",
+ "jsx",
"js",
+ "es6",
+ "mjs",
+ "cjs",
+ "pac",
+ "json",
+ "bowerrc",
+ "jscsrc",
+ "webmanifest",
+ "jsmap",
+ "cssmap",
+ "tsmap",
+ "har",
+ "jslintrc",
+ "jsonld",
+ "geojson",
+ "ipynb",
+ "vuerc",
+ "jsonc",
+ "eslintrc",
+ "eslintrcjson",
+ "jsfmtrc",
+ "jshintrc",
+ "swcrc",
+ "hintrc",
+ "babelrc",
+ "jsonl",
+ "ndjson",
+ "codesnippets",
+ "jl",
+ "jmd",
+ "sty",
+ "cls",
+ "bbx",
+ "cbx",
+ "tex",
+ "ltx",
+ "ctx",
+ "bib",
+ "less",
+ "log",
+ "lua",
+ "mak",
+ "mk",
+ "mkd",
+ "mdwn",
+ "mdown",
+ "markdown",
+ "markdn",
+ "mdtxt",
+ "mdtext",
+ "workbook",
+ "m",
+ "mm",
+ "pl",
+ "pm",
+ "pod",
+ "t",
+ "psgi",
+ "raku",
+ "rakumod",
+ "rakutest",
+ "rakudoc",
+ "nqp",
+ "p6",
+ "pl6",
+ "pm6",
+ "php",
+ "php4",
+ "php5",
+ "phtml",
+ "ctp",
+ "ps1",
+ "psm1",
+ "psd1",
+ "pssc",
+ "psrc",
+ "py",
+ "rpy",
+ "pyw",
+ "cpy",
+ "gyp",
+ "gypi",
+ "pyi",
+ "ipy",
+ "pyt",
+ "r",
+ "rhistory",
+ "rprofile",
+ "rt",
+ "cshtml",
+ "razor",
+ "rb",
+ "rbx",
+ "rjs",
+ "gemspec",
+ "rake",
+ "ru",
+ "erb",
+ "podspec",
+ "rbi",
+ "rs",
+ "scss",
+ "sass",
+ "shader",
+ "sh",
+ "bash",
+ "bashrc",
+ "bashaliases",
+ "bashprofile",
+ "bashlogin",
+ "ebuild",
+ "eclass",
+ "profile",
+ "bashlogout",
+ "xprofile",
+ "xsession",
+ "xsessionrc",
+ "zsh",
+ "zshrc",
+ "zprofile",
+ "zlogin",
+ "zlogout",
+ "zshenv",
+ "zshtheme",
+ "fish",
+ "ksh",
+ "csh",
+ "cshrc",
+ "tcshrc",
+ "yashrc",
+ "yashprofile",
+ "sql",
+ "dsql",
+ "swift",
"ts",
- "jsx",
+ "cts",
+ "mts",
"tsx",
- "json",
- "html",
- "css",
+ "tsbuildinfo",
"xml",
+ "xsd",
+ "ascx",
+ "atom",
+ "axml",
+ "axaml",
+ "bpmn",
+ "cpt",
+ "csl",
+ "csproj",
+ "csprojuser",
+ "dita",
+ "ditamap",
+ "dtd",
+ "ent",
+ "mod",
+ "dtml",
+ "fsproj",
+ "fxml",
+ "iml",
+ "isml",
+ "jmx",
+ "launch",
+ "menu",
+ "mxml",
+ "nuspec",
+ "opml",
+ "owl",
+ "proj",
+ "props",
+ "pt",
+ "publishsettings",
+ "pubxml",
+ "pubxmluser",
+ "rbxlx",
+ "rbxmx",
+ "rdf",
+ "rng",
+ "rss",
+ "shproj",
+ "storyboard",
+ "targets",
+ "tld",
+ "tmx",
+ "vbproj",
+ "vbprojuser",
+ "vcxproj",
+ "vcxprojfilters",
+ "wsdl",
+ "wxi",
+ "wxl",
+ "wxs",
+ "xaml",
+ "xbl",
+ "xib",
+ "xlf",
+ "xliff",
+ "xpdl",
+ "xul",
+ "xoml",
+ "xsl",
+ "xslt",
"yaml",
"yml",
- "sql",
- "sh",
- "bash",
- "markdown",
+ "eyaml",
+ "eyml",
+ "cff",
+ "yamltmlanguage",
+ "yamltmpreferences",
+ "yamltmtheme",
+ "winget",
"txt",
"csv",
+ "tsv",
"jpeg",
"jpg",
"png",
"gif",
"svg",
"webp",
+ "avif",
+ "bmp",
+ "ico",
+ "tiff",
+ "tif",
"heic",
"heif",
- "zip",
"tar",
"targz",
"tgz",
"gz",
+ "bz2",
+ "tarbz2",
+ "tbz2",
+ "z",
+ "tarz",
+ "lz",
+ "tarlz",
+ "xz",
+ "tarxz",
+ "txz",
+ "lzma",
+ "tarlzma",
+ "rar",
+ "sevenz",
+ "zst",
+ "tarzst",
+ "tzst",
+ "zip",
+ "exe",
+ "msi",
+ "dll",
+ "bat",
+ "cmd",
+ "com",
+ "appimage",
+ "app",
+ "bin",
+ "deb",
+ "rpm",
+ "apk",
+ "dmg",
+ "pkg",
+ "crx",
+ "xpi",
+ "mp3",
+ "wav",
+ "ogg",
+ "flac",
+ "aac",
+ "m4a",
+ "wma",
+ "mid",
+ "midi",
"mp4",
"mkv",
"webm",
@@ -1913,10 +2234,61 @@
"flv",
"f4v",
"threegp",
+ "ttf",
+ "otf",
+ "woff",
+ "woff2",
+ "eot",
+ "rtf",
+ "odt",
+ "ods",
+ "odp",
+ "odg",
+ "odf",
+ "epub",
+ "mobi",
+ "azw",
+ "azw3",
+ "djvu",
"xls",
"ppt",
"pptx",
- "xlsx"
+ "xlsx",
+ "db",
+ "sqlite",
+ "sqlite3",
+ "mdb",
+ "accdb",
+ "dbf",
+ "plist",
+ "toml",
+ "env",
+ "dot",
+ "gv",
+ "torrent",
+ "ics",
+ "vcf",
+ "ai",
+ "eps",
+ "ps",
+ "dxf",
+ "dwg",
+ "stl",
+ "obj",
+ "fbx",
+ "blend",
+ "dae",
+ "threeds",
+ "gltf",
+ "glb",
+ "vhd",
+ "vhdx",
+ "vmdk",
+ "ova",
+ "ovf",
+ "iso",
+ "img",
+ "swf"
]
},
"GenericErrorResponse": {
diff --git a/js/app/packages/service-clients/service-search/generated/models/fileType.ts b/js/app/packages/service-clients/service-search/generated/models/fileType.ts
index e0c9e51634..c25be98748 100644
--- a/js/app/packages/service-clients/service-search/generated/models/fileType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/fileType.ts
@@ -29,36 +29,357 @@ export const FileType = {
pdf: 'pdf',
md: 'md',
canvas: 'canvas',
- py: 'py',
+ coffee: 'coffee',
+ cson: 'cson',
+ iced: 'iced',
+ c: 'c',
+ i: 'i',
+ cpp: 'cpp',
+ cppm: 'cppm',
+ cc: 'cc',
+ ccm: 'ccm',
+ cxx: 'cxx',
+ cxxm: 'cxxm',
+ cplusplus: 'cplusplus',
+ cplusplusm: 'cplusplusm',
+ hpp: 'hpp',
+ hh: 'hh',
+ hxx: 'hxx',
+ hplusplus: 'hplusplus',
+ h: 'h',
+ ii: 'ii',
+ ino: 'ino',
+ inl: 'inl',
+ ipp: 'ipp',
+ ixx: 'ixx',
+ tpp: 'tpp',
+ txx: 'txx',
+ hppin: 'hppin',
+ hin: 'hin',
+ cu: 'cu',
+ cuh: 'cuh',
+ cs: 'cs',
+ csx: 'csx',
+ cake: 'cake',
+ css: 'css',
+ dart: 'dart',
+ diff: 'diff',
+ patch: 'patch',
+ rej: 'rej',
+ dockerfile: 'dockerfile',
+ containerfile: 'containerfile',
+ go: 'go',
+ handlebars: 'handlebars',
+ hbs: 'hbs',
+ hjs: 'hjs',
+ hlsl: 'hlsl',
+ hlsli: 'hlsli',
+ fx: 'fx',
+ fxh: 'fxh',
+ vsh: 'vsh',
+ psh: 'psh',
+ cginc: 'cginc',
+ compute: 'compute',
+ html: 'html',
+ htm: 'htm',
+ shtml: 'shtml',
+ xhtml: 'xhtml',
+ xht: 'xht',
+ mdoc: 'mdoc',
+ jsp: 'jsp',
+ asp: 'asp',
+ aspx: 'aspx',
+ jshtm: 'jshtm',
+ volt: 'volt',
+ ejs: 'ejs',
+ rhtml: 'rhtml',
+ ini: 'ini',
+ conf: 'conf',
+ properties: 'properties',
+ cfg: 'cfg',
+ directory: 'directory',
+ gitattributes: 'gitattributes',
+ gitconfig: 'gitconfig',
+ gitmodules: 'gitmodules',
+ editorconfig: 'editorconfig',
+ repo: 'repo',
+ java: 'java',
+ jav: 'jav',
+ jsx: 'jsx',
js: 'js',
+ es6: 'es6',
+ mjs: 'mjs',
+ cjs: 'cjs',
+ pac: 'pac',
+ json: 'json',
+ bowerrc: 'bowerrc',
+ jscsrc: 'jscsrc',
+ webmanifest: 'webmanifest',
+ jsmap: 'jsmap',
+ cssmap: 'cssmap',
+ tsmap: 'tsmap',
+ har: 'har',
+ jslintrc: 'jslintrc',
+ jsonld: 'jsonld',
+ geojson: 'geojson',
+ ipynb: 'ipynb',
+ vuerc: 'vuerc',
+ jsonc: 'jsonc',
+ eslintrc: 'eslintrc',
+ eslintrcjson: 'eslintrcjson',
+ jsfmtrc: 'jsfmtrc',
+ jshintrc: 'jshintrc',
+ swcrc: 'swcrc',
+ hintrc: 'hintrc',
+ babelrc: 'babelrc',
+ jsonl: 'jsonl',
+ ndjson: 'ndjson',
+ codesnippets: 'codesnippets',
+ jl: 'jl',
+ jmd: 'jmd',
+ sty: 'sty',
+ cls: 'cls',
+ bbx: 'bbx',
+ cbx: 'cbx',
+ tex: 'tex',
+ ltx: 'ltx',
+ ctx: 'ctx',
+ bib: 'bib',
+ less: 'less',
+ log: 'log',
+ lua: 'lua',
+ mak: 'mak',
+ mk: 'mk',
+ mkd: 'mkd',
+ mdwn: 'mdwn',
+ mdown: 'mdown',
+ markdown: 'markdown',
+ markdn: 'markdn',
+ mdtxt: 'mdtxt',
+ mdtext: 'mdtext',
+ workbook: 'workbook',
+ m: 'm',
+ mm: 'mm',
+ pl: 'pl',
+ pm: 'pm',
+ pod: 'pod',
+ t: 't',
+ psgi: 'psgi',
+ raku: 'raku',
+ rakumod: 'rakumod',
+ rakutest: 'rakutest',
+ rakudoc: 'rakudoc',
+ nqp: 'nqp',
+ p6: 'p6',
+ pl6: 'pl6',
+ pm6: 'pm6',
+ php: 'php',
+ php4: 'php4',
+ php5: 'php5',
+ phtml: 'phtml',
+ ctp: 'ctp',
+ ps1: 'ps1',
+ psm1: 'psm1',
+ psd1: 'psd1',
+ pssc: 'pssc',
+ psrc: 'psrc',
+ py: 'py',
+ rpy: 'rpy',
+ pyw: 'pyw',
+ cpy: 'cpy',
+ gyp: 'gyp',
+ gypi: 'gypi',
+ pyi: 'pyi',
+ ipy: 'ipy',
+ pyt: 'pyt',
+ r: 'r',
+ rhistory: 'rhistory',
+ rprofile: 'rprofile',
+ rt: 'rt',
+ cshtml: 'cshtml',
+ razor: 'razor',
+ rb: 'rb',
+ rbx: 'rbx',
+ rjs: 'rjs',
+ gemspec: 'gemspec',
+ rake: 'rake',
+ ru: 'ru',
+ erb: 'erb',
+ podspec: 'podspec',
+ rbi: 'rbi',
+ rs: 'rs',
+ scss: 'scss',
+ sass: 'sass',
+ shader: 'shader',
+ sh: 'sh',
+ bash: 'bash',
+ bashrc: 'bashrc',
+ bashaliases: 'bashaliases',
+ bashprofile: 'bashprofile',
+ bashlogin: 'bashlogin',
+ ebuild: 'ebuild',
+ eclass: 'eclass',
+ profile: 'profile',
+ bashlogout: 'bashlogout',
+ xprofile: 'xprofile',
+ xsession: 'xsession',
+ xsessionrc: 'xsessionrc',
+ zsh: 'zsh',
+ zshrc: 'zshrc',
+ zprofile: 'zprofile',
+ zlogin: 'zlogin',
+ zlogout: 'zlogout',
+ zshenv: 'zshenv',
+ zshtheme: 'zshtheme',
+ fish: 'fish',
+ ksh: 'ksh',
+ csh: 'csh',
+ cshrc: 'cshrc',
+ tcshrc: 'tcshrc',
+ yashrc: 'yashrc',
+ yashprofile: 'yashprofile',
+ sql: 'sql',
+ dsql: 'dsql',
+ swift: 'swift',
ts: 'ts',
- jsx: 'jsx',
+ cts: 'cts',
+ mts: 'mts',
tsx: 'tsx',
- json: 'json',
- html: 'html',
- css: 'css',
+ tsbuildinfo: 'tsbuildinfo',
xml: 'xml',
+ xsd: 'xsd',
+ ascx: 'ascx',
+ atom: 'atom',
+ axml: 'axml',
+ axaml: 'axaml',
+ bpmn: 'bpmn',
+ cpt: 'cpt',
+ csl: 'csl',
+ csproj: 'csproj',
+ csprojuser: 'csprojuser',
+ dita: 'dita',
+ ditamap: 'ditamap',
+ dtd: 'dtd',
+ ent: 'ent',
+ mod: 'mod',
+ dtml: 'dtml',
+ fsproj: 'fsproj',
+ fxml: 'fxml',
+ iml: 'iml',
+ isml: 'isml',
+ jmx: 'jmx',
+ launch: 'launch',
+ menu: 'menu',
+ mxml: 'mxml',
+ nuspec: 'nuspec',
+ opml: 'opml',
+ owl: 'owl',
+ proj: 'proj',
+ props: 'props',
+ pt: 'pt',
+ publishsettings: 'publishsettings',
+ pubxml: 'pubxml',
+ pubxmluser: 'pubxmluser',
+ rbxlx: 'rbxlx',
+ rbxmx: 'rbxmx',
+ rdf: 'rdf',
+ rng: 'rng',
+ rss: 'rss',
+ shproj: 'shproj',
+ storyboard: 'storyboard',
+ targets: 'targets',
+ tld: 'tld',
+ tmx: 'tmx',
+ vbproj: 'vbproj',
+ vbprojuser: 'vbprojuser',
+ vcxproj: 'vcxproj',
+ vcxprojfilters: 'vcxprojfilters',
+ wsdl: 'wsdl',
+ wxi: 'wxi',
+ wxl: 'wxl',
+ wxs: 'wxs',
+ xaml: 'xaml',
+ xbl: 'xbl',
+ xib: 'xib',
+ xlf: 'xlf',
+ xliff: 'xliff',
+ xpdl: 'xpdl',
+ xul: 'xul',
+ xoml: 'xoml',
+ xsl: 'xsl',
+ xslt: 'xslt',
yaml: 'yaml',
yml: 'yml',
- sql: 'sql',
- sh: 'sh',
- bash: 'bash',
- markdown: 'markdown',
+ eyaml: 'eyaml',
+ eyml: 'eyml',
+ cff: 'cff',
+ yamltmlanguage: 'yamltmlanguage',
+ yamltmpreferences: 'yamltmpreferences',
+ yamltmtheme: 'yamltmtheme',
+ winget: 'winget',
txt: 'txt',
csv: 'csv',
+ tsv: 'tsv',
jpeg: 'jpeg',
jpg: 'jpg',
png: 'png',
gif: 'gif',
svg: 'svg',
webp: 'webp',
+ avif: 'avif',
+ bmp: 'bmp',
+ ico: 'ico',
+ tiff: 'tiff',
+ tif: 'tif',
heic: 'heic',
heif: 'heif',
- zip: 'zip',
tar: 'tar',
targz: 'targz',
tgz: 'tgz',
gz: 'gz',
+ bz2: 'bz2',
+ tarbz2: 'tarbz2',
+ tbz2: 'tbz2',
+ z: 'z',
+ tarz: 'tarz',
+ lz: 'lz',
+ tarlz: 'tarlz',
+ xz: 'xz',
+ tarxz: 'tarxz',
+ txz: 'txz',
+ lzma: 'lzma',
+ tarlzma: 'tarlzma',
+ rar: 'rar',
+ sevenz: 'sevenz',
+ zst: 'zst',
+ tarzst: 'tarzst',
+ tzst: 'tzst',
+ zip: 'zip',
+ exe: 'exe',
+ msi: 'msi',
+ dll: 'dll',
+ bat: 'bat',
+ cmd: 'cmd',
+ com: 'com',
+ appimage: 'appimage',
+ app: 'app',
+ bin: 'bin',
+ deb: 'deb',
+ rpm: 'rpm',
+ apk: 'apk',
+ dmg: 'dmg',
+ pkg: 'pkg',
+ crx: 'crx',
+ xpi: 'xpi',
+ mp3: 'mp3',
+ wav: 'wav',
+ ogg: 'ogg',
+ flac: 'flac',
+ aac: 'aac',
+ m4a: 'm4a',
+ wma: 'wma',
+ mid: 'mid',
+ midi: 'midi',
mp4: 'mp4',
mkv: 'mkv',
webm: 'webm',
@@ -71,8 +392,59 @@ export const FileType = {
flv: 'flv',
f4v: 'f4v',
threegp: 'threegp',
+ ttf: 'ttf',
+ otf: 'otf',
+ woff: 'woff',
+ woff2: 'woff2',
+ eot: 'eot',
+ rtf: 'rtf',
+ odt: 'odt',
+ ods: 'ods',
+ odp: 'odp',
+ odg: 'odg',
+ odf: 'odf',
+ epub: 'epub',
+ mobi: 'mobi',
+ azw: 'azw',
+ azw3: 'azw3',
+ djvu: 'djvu',
xls: 'xls',
ppt: 'ppt',
pptx: 'pptx',
xlsx: 'xlsx',
+ db: 'db',
+ sqlite: 'sqlite',
+ sqlite3: 'sqlite3',
+ mdb: 'mdb',
+ accdb: 'accdb',
+ dbf: 'dbf',
+ plist: 'plist',
+ toml: 'toml',
+ env: 'env',
+ dot: 'dot',
+ gv: 'gv',
+ torrent: 'torrent',
+ ics: 'ics',
+ vcf: 'vcf',
+ ai: 'ai',
+ eps: 'eps',
+ ps: 'ps',
+ dxf: 'dxf',
+ dwg: 'dwg',
+ stl: 'stl',
+ obj: 'obj',
+ fbx: 'fbx',
+ blend: 'blend',
+ dae: 'dae',
+ threeds: 'threeds',
+ gltf: 'gltf',
+ glb: 'glb',
+ vhd: 'vhd',
+ vhdx: 'vhdx',
+ vmdk: 'vmdk',
+ ova: 'ova',
+ ovf: 'ovf',
+ iso: 'iso',
+ img: 'img',
+ swf: 'swf',
} as const;
diff --git a/js/app/packages/service-clients/service-search/openapi.json b/js/app/packages/service-clients/service-search/openapi.json
index 37b525656f..118a4899f5 100644
--- a/js/app/packages/service-clients/service-search/openapi.json
+++ b/js/app/packages/service-clients/service-search/openapi.json
@@ -1208,36 +1208,357 @@
"pdf",
"md",
"canvas",
- "py",
+ "coffee",
+ "cson",
+ "iced",
+ "c",
+ "i",
+ "cpp",
+ "cppm",
+ "cc",
+ "ccm",
+ "cxx",
+ "cxxm",
+ "cplusplus",
+ "cplusplusm",
+ "hpp",
+ "hh",
+ "hxx",
+ "hplusplus",
+ "h",
+ "ii",
+ "ino",
+ "inl",
+ "ipp",
+ "ixx",
+ "tpp",
+ "txx",
+ "hppin",
+ "hin",
+ "cu",
+ "cuh",
+ "cs",
+ "csx",
+ "cake",
+ "css",
+ "dart",
+ "diff",
+ "patch",
+ "rej",
+ "dockerfile",
+ "containerfile",
+ "go",
+ "handlebars",
+ "hbs",
+ "hjs",
+ "hlsl",
+ "hlsli",
+ "fx",
+ "fxh",
+ "vsh",
+ "psh",
+ "cginc",
+ "compute",
+ "html",
+ "htm",
+ "shtml",
+ "xhtml",
+ "xht",
+ "mdoc",
+ "jsp",
+ "asp",
+ "aspx",
+ "jshtm",
+ "volt",
+ "ejs",
+ "rhtml",
+ "ini",
+ "conf",
+ "properties",
+ "cfg",
+ "directory",
+ "gitattributes",
+ "gitconfig",
+ "gitmodules",
+ "editorconfig",
+ "repo",
+ "java",
+ "jav",
+ "jsx",
"js",
+ "es6",
+ "mjs",
+ "cjs",
+ "pac",
+ "json",
+ "bowerrc",
+ "jscsrc",
+ "webmanifest",
+ "jsmap",
+ "cssmap",
+ "tsmap",
+ "har",
+ "jslintrc",
+ "jsonld",
+ "geojson",
+ "ipynb",
+ "vuerc",
+ "jsonc",
+ "eslintrc",
+ "eslintrcjson",
+ "jsfmtrc",
+ "jshintrc",
+ "swcrc",
+ "hintrc",
+ "babelrc",
+ "jsonl",
+ "ndjson",
+ "codesnippets",
+ "jl",
+ "jmd",
+ "sty",
+ "cls",
+ "bbx",
+ "cbx",
+ "tex",
+ "ltx",
+ "ctx",
+ "bib",
+ "less",
+ "log",
+ "lua",
+ "mak",
+ "mk",
+ "mkd",
+ "mdwn",
+ "mdown",
+ "markdown",
+ "markdn",
+ "mdtxt",
+ "mdtext",
+ "workbook",
+ "m",
+ "mm",
+ "pl",
+ "pm",
+ "pod",
+ "t",
+ "psgi",
+ "raku",
+ "rakumod",
+ "rakutest",
+ "rakudoc",
+ "nqp",
+ "p6",
+ "pl6",
+ "pm6",
+ "php",
+ "php4",
+ "php5",
+ "phtml",
+ "ctp",
+ "ps1",
+ "psm1",
+ "psd1",
+ "pssc",
+ "psrc",
+ "py",
+ "rpy",
+ "pyw",
+ "cpy",
+ "gyp",
+ "gypi",
+ "pyi",
+ "ipy",
+ "pyt",
+ "r",
+ "rhistory",
+ "rprofile",
+ "rt",
+ "cshtml",
+ "razor",
+ "rb",
+ "rbx",
+ "rjs",
+ "gemspec",
+ "rake",
+ "ru",
+ "erb",
+ "podspec",
+ "rbi",
+ "rs",
+ "scss",
+ "sass",
+ "shader",
+ "sh",
+ "bash",
+ "bashrc",
+ "bashaliases",
+ "bashprofile",
+ "bashlogin",
+ "ebuild",
+ "eclass",
+ "profile",
+ "bashlogout",
+ "xprofile",
+ "xsession",
+ "xsessionrc",
+ "zsh",
+ "zshrc",
+ "zprofile",
+ "zlogin",
+ "zlogout",
+ "zshenv",
+ "zshtheme",
+ "fish",
+ "ksh",
+ "csh",
+ "cshrc",
+ "tcshrc",
+ "yashrc",
+ "yashprofile",
+ "sql",
+ "dsql",
+ "swift",
"ts",
- "jsx",
+ "cts",
+ "mts",
"tsx",
- "json",
- "html",
- "css",
+ "tsbuildinfo",
"xml",
+ "xsd",
+ "ascx",
+ "atom",
+ "axml",
+ "axaml",
+ "bpmn",
+ "cpt",
+ "csl",
+ "csproj",
+ "csprojuser",
+ "dita",
+ "ditamap",
+ "dtd",
+ "ent",
+ "mod",
+ "dtml",
+ "fsproj",
+ "fxml",
+ "iml",
+ "isml",
+ "jmx",
+ "launch",
+ "menu",
+ "mxml",
+ "nuspec",
+ "opml",
+ "owl",
+ "proj",
+ "props",
+ "pt",
+ "publishsettings",
+ "pubxml",
+ "pubxmluser",
+ "rbxlx",
+ "rbxmx",
+ "rdf",
+ "rng",
+ "rss",
+ "shproj",
+ "storyboard",
+ "targets",
+ "tld",
+ "tmx",
+ "vbproj",
+ "vbprojuser",
+ "vcxproj",
+ "vcxprojfilters",
+ "wsdl",
+ "wxi",
+ "wxl",
+ "wxs",
+ "xaml",
+ "xbl",
+ "xib",
+ "xlf",
+ "xliff",
+ "xpdl",
+ "xul",
+ "xoml",
+ "xsl",
+ "xslt",
"yaml",
"yml",
- "sql",
- "sh",
- "bash",
- "markdown",
+ "eyaml",
+ "eyml",
+ "cff",
+ "yamltmlanguage",
+ "yamltmpreferences",
+ "yamltmtheme",
+ "winget",
"txt",
"csv",
+ "tsv",
"jpeg",
"jpg",
"png",
"gif",
"svg",
"webp",
+ "avif",
+ "bmp",
+ "ico",
+ "tiff",
+ "tif",
"heic",
"heif",
- "zip",
"tar",
"targz",
"tgz",
"gz",
+ "bz2",
+ "tarbz2",
+ "tbz2",
+ "z",
+ "tarz",
+ "lz",
+ "tarlz",
+ "xz",
+ "tarxz",
+ "txz",
+ "lzma",
+ "tarlzma",
+ "rar",
+ "sevenz",
+ "zst",
+ "tarzst",
+ "tzst",
+ "zip",
+ "exe",
+ "msi",
+ "dll",
+ "bat",
+ "cmd",
+ "com",
+ "appimage",
+ "app",
+ "bin",
+ "deb",
+ "rpm",
+ "apk",
+ "dmg",
+ "pkg",
+ "crx",
+ "xpi",
+ "mp3",
+ "wav",
+ "ogg",
+ "flac",
+ "aac",
+ "m4a",
+ "wma",
+ "mid",
+ "midi",
"mp4",
"mkv",
"webm",
@@ -1250,10 +1571,61 @@
"flv",
"f4v",
"threegp",
+ "ttf",
+ "otf",
+ "woff",
+ "woff2",
+ "eot",
+ "rtf",
+ "odt",
+ "ods",
+ "odp",
+ "odg",
+ "odf",
+ "epub",
+ "mobi",
+ "azw",
+ "azw3",
+ "djvu",
"xls",
"ppt",
"pptx",
- "xlsx"
+ "xlsx",
+ "db",
+ "sqlite",
+ "sqlite3",
+ "mdb",
+ "accdb",
+ "dbf",
+ "plist",
+ "toml",
+ "env",
+ "dot",
+ "gv",
+ "torrent",
+ "ics",
+ "vcf",
+ "ai",
+ "eps",
+ "ps",
+ "dxf",
+ "dwg",
+ "stl",
+ "obj",
+ "fbx",
+ "blend",
+ "dae",
+ "threeds",
+ "gltf",
+ "glb",
+ "vhd",
+ "vhdx",
+ "vmdk",
+ "ova",
+ "ovf",
+ "iso",
+ "img",
+ "swf"
]
},
"MatchType": {
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/fileType.ts b/js/app/packages/service-clients/service-storage/generated/schemas/fileType.ts
index c589fbadc0..abda6c0513 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/fileType.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/fileType.ts
@@ -29,36 +29,357 @@ export const FileType = {
pdf: 'pdf',
md: 'md',
canvas: 'canvas',
- py: 'py',
+ coffee: 'coffee',
+ cson: 'cson',
+ iced: 'iced',
+ c: 'c',
+ i: 'i',
+ cpp: 'cpp',
+ cppm: 'cppm',
+ cc: 'cc',
+ ccm: 'ccm',
+ cxx: 'cxx',
+ cxxm: 'cxxm',
+ cplusplus: 'cplusplus',
+ cplusplusm: 'cplusplusm',
+ hpp: 'hpp',
+ hh: 'hh',
+ hxx: 'hxx',
+ hplusplus: 'hplusplus',
+ h: 'h',
+ ii: 'ii',
+ ino: 'ino',
+ inl: 'inl',
+ ipp: 'ipp',
+ ixx: 'ixx',
+ tpp: 'tpp',
+ txx: 'txx',
+ hppin: 'hppin',
+ hin: 'hin',
+ cu: 'cu',
+ cuh: 'cuh',
+ cs: 'cs',
+ csx: 'csx',
+ cake: 'cake',
+ css: 'css',
+ dart: 'dart',
+ diff: 'diff',
+ patch: 'patch',
+ rej: 'rej',
+ dockerfile: 'dockerfile',
+ containerfile: 'containerfile',
+ go: 'go',
+ handlebars: 'handlebars',
+ hbs: 'hbs',
+ hjs: 'hjs',
+ hlsl: 'hlsl',
+ hlsli: 'hlsli',
+ fx: 'fx',
+ fxh: 'fxh',
+ vsh: 'vsh',
+ psh: 'psh',
+ cginc: 'cginc',
+ compute: 'compute',
+ html: 'html',
+ htm: 'htm',
+ shtml: 'shtml',
+ xhtml: 'xhtml',
+ xht: 'xht',
+ mdoc: 'mdoc',
+ jsp: 'jsp',
+ asp: 'asp',
+ aspx: 'aspx',
+ jshtm: 'jshtm',
+ volt: 'volt',
+ ejs: 'ejs',
+ rhtml: 'rhtml',
+ ini: 'ini',
+ conf: 'conf',
+ properties: 'properties',
+ cfg: 'cfg',
+ directory: 'directory',
+ gitattributes: 'gitattributes',
+ gitconfig: 'gitconfig',
+ gitmodules: 'gitmodules',
+ editorconfig: 'editorconfig',
+ repo: 'repo',
+ java: 'java',
+ jav: 'jav',
+ jsx: 'jsx',
js: 'js',
+ es6: 'es6',
+ mjs: 'mjs',
+ cjs: 'cjs',
+ pac: 'pac',
+ json: 'json',
+ bowerrc: 'bowerrc',
+ jscsrc: 'jscsrc',
+ webmanifest: 'webmanifest',
+ jsmap: 'jsmap',
+ cssmap: 'cssmap',
+ tsmap: 'tsmap',
+ har: 'har',
+ jslintrc: 'jslintrc',
+ jsonld: 'jsonld',
+ geojson: 'geojson',
+ ipynb: 'ipynb',
+ vuerc: 'vuerc',
+ jsonc: 'jsonc',
+ eslintrc: 'eslintrc',
+ eslintrcjson: 'eslintrcjson',
+ jsfmtrc: 'jsfmtrc',
+ jshintrc: 'jshintrc',
+ swcrc: 'swcrc',
+ hintrc: 'hintrc',
+ babelrc: 'babelrc',
+ jsonl: 'jsonl',
+ ndjson: 'ndjson',
+ codesnippets: 'codesnippets',
+ jl: 'jl',
+ jmd: 'jmd',
+ sty: 'sty',
+ cls: 'cls',
+ bbx: 'bbx',
+ cbx: 'cbx',
+ tex: 'tex',
+ ltx: 'ltx',
+ ctx: 'ctx',
+ bib: 'bib',
+ less: 'less',
+ log: 'log',
+ lua: 'lua',
+ mak: 'mak',
+ mk: 'mk',
+ mkd: 'mkd',
+ mdwn: 'mdwn',
+ mdown: 'mdown',
+ markdown: 'markdown',
+ markdn: 'markdn',
+ mdtxt: 'mdtxt',
+ mdtext: 'mdtext',
+ workbook: 'workbook',
+ m: 'm',
+ mm: 'mm',
+ pl: 'pl',
+ pm: 'pm',
+ pod: 'pod',
+ t: 't',
+ psgi: 'psgi',
+ raku: 'raku',
+ rakumod: 'rakumod',
+ rakutest: 'rakutest',
+ rakudoc: 'rakudoc',
+ nqp: 'nqp',
+ p6: 'p6',
+ pl6: 'pl6',
+ pm6: 'pm6',
+ php: 'php',
+ php4: 'php4',
+ php5: 'php5',
+ phtml: 'phtml',
+ ctp: 'ctp',
+ ps1: 'ps1',
+ psm1: 'psm1',
+ psd1: 'psd1',
+ pssc: 'pssc',
+ psrc: 'psrc',
+ py: 'py',
+ rpy: 'rpy',
+ pyw: 'pyw',
+ cpy: 'cpy',
+ gyp: 'gyp',
+ gypi: 'gypi',
+ pyi: 'pyi',
+ ipy: 'ipy',
+ pyt: 'pyt',
+ r: 'r',
+ rhistory: 'rhistory',
+ rprofile: 'rprofile',
+ rt: 'rt',
+ cshtml: 'cshtml',
+ razor: 'razor',
+ rb: 'rb',
+ rbx: 'rbx',
+ rjs: 'rjs',
+ gemspec: 'gemspec',
+ rake: 'rake',
+ ru: 'ru',
+ erb: 'erb',
+ podspec: 'podspec',
+ rbi: 'rbi',
+ rs: 'rs',
+ scss: 'scss',
+ sass: 'sass',
+ shader: 'shader',
+ sh: 'sh',
+ bash: 'bash',
+ bashrc: 'bashrc',
+ bashaliases: 'bashaliases',
+ bashprofile: 'bashprofile',
+ bashlogin: 'bashlogin',
+ ebuild: 'ebuild',
+ eclass: 'eclass',
+ profile: 'profile',
+ bashlogout: 'bashlogout',
+ xprofile: 'xprofile',
+ xsession: 'xsession',
+ xsessionrc: 'xsessionrc',
+ zsh: 'zsh',
+ zshrc: 'zshrc',
+ zprofile: 'zprofile',
+ zlogin: 'zlogin',
+ zlogout: 'zlogout',
+ zshenv: 'zshenv',
+ zshtheme: 'zshtheme',
+ fish: 'fish',
+ ksh: 'ksh',
+ csh: 'csh',
+ cshrc: 'cshrc',
+ tcshrc: 'tcshrc',
+ yashrc: 'yashrc',
+ yashprofile: 'yashprofile',
+ sql: 'sql',
+ dsql: 'dsql',
+ swift: 'swift',
ts: 'ts',
- jsx: 'jsx',
+ cts: 'cts',
+ mts: 'mts',
tsx: 'tsx',
- json: 'json',
- html: 'html',
- css: 'css',
+ tsbuildinfo: 'tsbuildinfo',
xml: 'xml',
+ xsd: 'xsd',
+ ascx: 'ascx',
+ atom: 'atom',
+ axml: 'axml',
+ axaml: 'axaml',
+ bpmn: 'bpmn',
+ cpt: 'cpt',
+ csl: 'csl',
+ csproj: 'csproj',
+ csprojuser: 'csprojuser',
+ dita: 'dita',
+ ditamap: 'ditamap',
+ dtd: 'dtd',
+ ent: 'ent',
+ mod: 'mod',
+ dtml: 'dtml',
+ fsproj: 'fsproj',
+ fxml: 'fxml',
+ iml: 'iml',
+ isml: 'isml',
+ jmx: 'jmx',
+ launch: 'launch',
+ menu: 'menu',
+ mxml: 'mxml',
+ nuspec: 'nuspec',
+ opml: 'opml',
+ owl: 'owl',
+ proj: 'proj',
+ props: 'props',
+ pt: 'pt',
+ publishsettings: 'publishsettings',
+ pubxml: 'pubxml',
+ pubxmluser: 'pubxmluser',
+ rbxlx: 'rbxlx',
+ rbxmx: 'rbxmx',
+ rdf: 'rdf',
+ rng: 'rng',
+ rss: 'rss',
+ shproj: 'shproj',
+ storyboard: 'storyboard',
+ targets: 'targets',
+ tld: 'tld',
+ tmx: 'tmx',
+ vbproj: 'vbproj',
+ vbprojuser: 'vbprojuser',
+ vcxproj: 'vcxproj',
+ vcxprojfilters: 'vcxprojfilters',
+ wsdl: 'wsdl',
+ wxi: 'wxi',
+ wxl: 'wxl',
+ wxs: 'wxs',
+ xaml: 'xaml',
+ xbl: 'xbl',
+ xib: 'xib',
+ xlf: 'xlf',
+ xliff: 'xliff',
+ xpdl: 'xpdl',
+ xul: 'xul',
+ xoml: 'xoml',
+ xsl: 'xsl',
+ xslt: 'xslt',
yaml: 'yaml',
yml: 'yml',
- sql: 'sql',
- sh: 'sh',
- bash: 'bash',
- markdown: 'markdown',
+ eyaml: 'eyaml',
+ eyml: 'eyml',
+ cff: 'cff',
+ yamltmlanguage: 'yamltmlanguage',
+ yamltmpreferences: 'yamltmpreferences',
+ yamltmtheme: 'yamltmtheme',
+ winget: 'winget',
txt: 'txt',
csv: 'csv',
+ tsv: 'tsv',
jpeg: 'jpeg',
jpg: 'jpg',
png: 'png',
gif: 'gif',
svg: 'svg',
webp: 'webp',
+ avif: 'avif',
+ bmp: 'bmp',
+ ico: 'ico',
+ tiff: 'tiff',
+ tif: 'tif',
heic: 'heic',
heif: 'heif',
- zip: 'zip',
tar: 'tar',
targz: 'targz',
tgz: 'tgz',
gz: 'gz',
+ bz2: 'bz2',
+ tarbz2: 'tarbz2',
+ tbz2: 'tbz2',
+ z: 'z',
+ tarz: 'tarz',
+ lz: 'lz',
+ tarlz: 'tarlz',
+ xz: 'xz',
+ tarxz: 'tarxz',
+ txz: 'txz',
+ lzma: 'lzma',
+ tarlzma: 'tarlzma',
+ rar: 'rar',
+ sevenz: 'sevenz',
+ zst: 'zst',
+ tarzst: 'tarzst',
+ tzst: 'tzst',
+ zip: 'zip',
+ exe: 'exe',
+ msi: 'msi',
+ dll: 'dll',
+ bat: 'bat',
+ cmd: 'cmd',
+ com: 'com',
+ appimage: 'appimage',
+ app: 'app',
+ bin: 'bin',
+ deb: 'deb',
+ rpm: 'rpm',
+ apk: 'apk',
+ dmg: 'dmg',
+ pkg: 'pkg',
+ crx: 'crx',
+ xpi: 'xpi',
+ mp3: 'mp3',
+ wav: 'wav',
+ ogg: 'ogg',
+ flac: 'flac',
+ aac: 'aac',
+ m4a: 'm4a',
+ wma: 'wma',
+ mid: 'mid',
+ midi: 'midi',
mp4: 'mp4',
mkv: 'mkv',
webm: 'webm',
@@ -71,8 +392,59 @@ export const FileType = {
flv: 'flv',
f4v: 'f4v',
threegp: 'threegp',
+ ttf: 'ttf',
+ otf: 'otf',
+ woff: 'woff',
+ woff2: 'woff2',
+ eot: 'eot',
+ rtf: 'rtf',
+ odt: 'odt',
+ ods: 'ods',
+ odp: 'odp',
+ odg: 'odg',
+ odf: 'odf',
+ epub: 'epub',
+ mobi: 'mobi',
+ azw: 'azw',
+ azw3: 'azw3',
+ djvu: 'djvu',
xls: 'xls',
ppt: 'ppt',
pptx: 'pptx',
xlsx: 'xlsx',
+ db: 'db',
+ sqlite: 'sqlite',
+ sqlite3: 'sqlite3',
+ mdb: 'mdb',
+ accdb: 'accdb',
+ dbf: 'dbf',
+ plist: 'plist',
+ toml: 'toml',
+ env: 'env',
+ dot: 'dot',
+ gv: 'gv',
+ torrent: 'torrent',
+ ics: 'ics',
+ vcf: 'vcf',
+ ai: 'ai',
+ eps: 'eps',
+ ps: 'ps',
+ dxf: 'dxf',
+ dwg: 'dwg',
+ stl: 'stl',
+ obj: 'obj',
+ fbx: 'fbx',
+ blend: 'blend',
+ dae: 'dae',
+ threeds: 'threeds',
+ gltf: 'gltf',
+ glb: 'glb',
+ vhd: 'vhd',
+ vhdx: 'vhdx',
+ vmdk: 'vmdk',
+ ova: 'ova',
+ ovf: 'ovf',
+ iso: 'iso',
+ img: 'img',
+ swf: 'swf',
} as const;
diff --git a/js/app/packages/service-clients/service-storage/generated/zod.ts b/js/app/packages/service-clients/service-storage/generated/zod.ts
index 34462668b5..f4093b60ef 100644
--- a/js/app/packages/service-clients/service-storage/generated/zod.ts
+++ b/js/app/packages/service-clients/service-storage/generated/zod.ts
@@ -6040,36 +6040,357 @@ export const uploadFolderHandlerBody = zod.object({
'pdf',
'md',
'canvas',
- 'py',
+ 'coffee',
+ 'cson',
+ 'iced',
+ 'c',
+ 'i',
+ 'cpp',
+ 'cppm',
+ 'cc',
+ 'ccm',
+ 'cxx',
+ 'cxxm',
+ 'cplusplus',
+ 'cplusplusm',
+ 'hpp',
+ 'hh',
+ 'hxx',
+ 'hplusplus',
+ 'h',
+ 'ii',
+ 'ino',
+ 'inl',
+ 'ipp',
+ 'ixx',
+ 'tpp',
+ 'txx',
+ 'hppin',
+ 'hin',
+ 'cu',
+ 'cuh',
+ 'cs',
+ 'csx',
+ 'cake',
+ 'css',
+ 'dart',
+ 'diff',
+ 'patch',
+ 'rej',
+ 'dockerfile',
+ 'containerfile',
+ 'go',
+ 'handlebars',
+ 'hbs',
+ 'hjs',
+ 'hlsl',
+ 'hlsli',
+ 'fx',
+ 'fxh',
+ 'vsh',
+ 'psh',
+ 'cginc',
+ 'compute',
+ 'html',
+ 'htm',
+ 'shtml',
+ 'xhtml',
+ 'xht',
+ 'mdoc',
+ 'jsp',
+ 'asp',
+ 'aspx',
+ 'jshtm',
+ 'volt',
+ 'ejs',
+ 'rhtml',
+ 'ini',
+ 'conf',
+ 'properties',
+ 'cfg',
+ 'directory',
+ 'gitattributes',
+ 'gitconfig',
+ 'gitmodules',
+ 'editorconfig',
+ 'repo',
+ 'java',
+ 'jav',
+ 'jsx',
'js',
+ 'es6',
+ 'mjs',
+ 'cjs',
+ 'pac',
+ 'json',
+ 'bowerrc',
+ 'jscsrc',
+ 'webmanifest',
+ 'jsmap',
+ 'cssmap',
+ 'tsmap',
+ 'har',
+ 'jslintrc',
+ 'jsonld',
+ 'geojson',
+ 'ipynb',
+ 'vuerc',
+ 'jsonc',
+ 'eslintrc',
+ 'eslintrcjson',
+ 'jsfmtrc',
+ 'jshintrc',
+ 'swcrc',
+ 'hintrc',
+ 'babelrc',
+ 'jsonl',
+ 'ndjson',
+ 'codesnippets',
+ 'jl',
+ 'jmd',
+ 'sty',
+ 'cls',
+ 'bbx',
+ 'cbx',
+ 'tex',
+ 'ltx',
+ 'ctx',
+ 'bib',
+ 'less',
+ 'log',
+ 'lua',
+ 'mak',
+ 'mk',
+ 'mkd',
+ 'mdwn',
+ 'mdown',
+ 'markdown',
+ 'markdn',
+ 'mdtxt',
+ 'mdtext',
+ 'workbook',
+ 'm',
+ 'mm',
+ 'pl',
+ 'pm',
+ 'pod',
+ 't',
+ 'psgi',
+ 'raku',
+ 'rakumod',
+ 'rakutest',
+ 'rakudoc',
+ 'nqp',
+ 'p6',
+ 'pl6',
+ 'pm6',
+ 'php',
+ 'php4',
+ 'php5',
+ 'phtml',
+ 'ctp',
+ 'ps1',
+ 'psm1',
+ 'psd1',
+ 'pssc',
+ 'psrc',
+ 'py',
+ 'rpy',
+ 'pyw',
+ 'cpy',
+ 'gyp',
+ 'gypi',
+ 'pyi',
+ 'ipy',
+ 'pyt',
+ 'r',
+ 'rhistory',
+ 'rprofile',
+ 'rt',
+ 'cshtml',
+ 'razor',
+ 'rb',
+ 'rbx',
+ 'rjs',
+ 'gemspec',
+ 'rake',
+ 'ru',
+ 'erb',
+ 'podspec',
+ 'rbi',
+ 'rs',
+ 'scss',
+ 'sass',
+ 'shader',
+ 'sh',
+ 'bash',
+ 'bashrc',
+ 'bashaliases',
+ 'bashprofile',
+ 'bashlogin',
+ 'ebuild',
+ 'eclass',
+ 'profile',
+ 'bashlogout',
+ 'xprofile',
+ 'xsession',
+ 'xsessionrc',
+ 'zsh',
+ 'zshrc',
+ 'zprofile',
+ 'zlogin',
+ 'zlogout',
+ 'zshenv',
+ 'zshtheme',
+ 'fish',
+ 'ksh',
+ 'csh',
+ 'cshrc',
+ 'tcshrc',
+ 'yashrc',
+ 'yashprofile',
+ 'sql',
+ 'dsql',
+ 'swift',
'ts',
- 'jsx',
+ 'cts',
+ 'mts',
'tsx',
- 'json',
- 'html',
- 'css',
+ 'tsbuildinfo',
'xml',
+ 'xsd',
+ 'ascx',
+ 'atom',
+ 'axml',
+ 'axaml',
+ 'bpmn',
+ 'cpt',
+ 'csl',
+ 'csproj',
+ 'csprojuser',
+ 'dita',
+ 'ditamap',
+ 'dtd',
+ 'ent',
+ 'mod',
+ 'dtml',
+ 'fsproj',
+ 'fxml',
+ 'iml',
+ 'isml',
+ 'jmx',
+ 'launch',
+ 'menu',
+ 'mxml',
+ 'nuspec',
+ 'opml',
+ 'owl',
+ 'proj',
+ 'props',
+ 'pt',
+ 'publishsettings',
+ 'pubxml',
+ 'pubxmluser',
+ 'rbxlx',
+ 'rbxmx',
+ 'rdf',
+ 'rng',
+ 'rss',
+ 'shproj',
+ 'storyboard',
+ 'targets',
+ 'tld',
+ 'tmx',
+ 'vbproj',
+ 'vbprojuser',
+ 'vcxproj',
+ 'vcxprojfilters',
+ 'wsdl',
+ 'wxi',
+ 'wxl',
+ 'wxs',
+ 'xaml',
+ 'xbl',
+ 'xib',
+ 'xlf',
+ 'xliff',
+ 'xpdl',
+ 'xul',
+ 'xoml',
+ 'xsl',
+ 'xslt',
'yaml',
'yml',
- 'sql',
- 'sh',
- 'bash',
- 'markdown',
+ 'eyaml',
+ 'eyml',
+ 'cff',
+ 'yamltmlanguage',
+ 'yamltmpreferences',
+ 'yamltmtheme',
+ 'winget',
'txt',
'csv',
+ 'tsv',
'jpeg',
'jpg',
'png',
'gif',
'svg',
'webp',
+ 'avif',
+ 'bmp',
+ 'ico',
+ 'tiff',
+ 'tif',
'heic',
'heif',
- 'zip',
'tar',
'targz',
'tgz',
'gz',
+ 'bz2',
+ 'tarbz2',
+ 'tbz2',
+ 'z',
+ 'tarz',
+ 'lz',
+ 'tarlz',
+ 'xz',
+ 'tarxz',
+ 'txz',
+ 'lzma',
+ 'tarlzma',
+ 'rar',
+ 'sevenz',
+ 'zst',
+ 'tarzst',
+ 'tzst',
+ 'zip',
+ 'exe',
+ 'msi',
+ 'dll',
+ 'bat',
+ 'cmd',
+ 'com',
+ 'appimage',
+ 'app',
+ 'bin',
+ 'deb',
+ 'rpm',
+ 'apk',
+ 'dmg',
+ 'pkg',
+ 'crx',
+ 'xpi',
+ 'mp3',
+ 'wav',
+ 'ogg',
+ 'flac',
+ 'aac',
+ 'm4a',
+ 'wma',
+ 'mid',
+ 'midi',
'mp4',
'mkv',
'webm',
@@ -6082,10 +6403,61 @@ export const uploadFolderHandlerBody = zod.object({
'flv',
'f4v',
'threegp',
+ 'ttf',
+ 'otf',
+ 'woff',
+ 'woff2',
+ 'eot',
+ 'rtf',
+ 'odt',
+ 'ods',
+ 'odp',
+ 'odg',
+ 'odf',
+ 'epub',
+ 'mobi',
+ 'azw',
+ 'azw3',
+ 'djvu',
'xls',
'ppt',
'pptx',
'xlsx',
+ 'db',
+ 'sqlite',
+ 'sqlite3',
+ 'mdb',
+ 'accdb',
+ 'dbf',
+ 'plist',
+ 'toml',
+ 'env',
+ 'dot',
+ 'gv',
+ 'torrent',
+ 'ics',
+ 'vcf',
+ 'ai',
+ 'eps',
+ 'ps',
+ 'dxf',
+ 'dwg',
+ 'stl',
+ 'obj',
+ 'fbx',
+ 'blend',
+ 'dae',
+ 'threeds',
+ 'gltf',
+ 'glb',
+ 'vhd',
+ 'vhdx',
+ 'vmdk',
+ 'ova',
+ 'ovf',
+ 'iso',
+ 'img',
+ 'swf',
])
.describe(
'Generates a FileType enum and associated ContentType enum with their implementations.\n\nThis macro takes a list of tuples in the format:\n(Variant, \"extension\", \"mime_type\", CONTENT_TYPE_VARIANT)\n\nFor each tuple it generates:\n- A variant in the FileType enum\n- A variant in the ContentType enum\n- Implementations for:\n - FileType::to_str() - Converts FileType to extension string\n - FileType::from_str() - Converts extension string to FileType\n - From<FileType> for ContentType - Maps FileType to ContentType\n - ContentType::mime_type() - Gets MIME type for ContentType\n'
@@ -6162,36 +6534,357 @@ export const uploadFolderHandlerResponse = zod.object({
'pdf',
'md',
'canvas',
- 'py',
+ 'coffee',
+ 'cson',
+ 'iced',
+ 'c',
+ 'i',
+ 'cpp',
+ 'cppm',
+ 'cc',
+ 'ccm',
+ 'cxx',
+ 'cxxm',
+ 'cplusplus',
+ 'cplusplusm',
+ 'hpp',
+ 'hh',
+ 'hxx',
+ 'hplusplus',
+ 'h',
+ 'ii',
+ 'ino',
+ 'inl',
+ 'ipp',
+ 'ixx',
+ 'tpp',
+ 'txx',
+ 'hppin',
+ 'hin',
+ 'cu',
+ 'cuh',
+ 'cs',
+ 'csx',
+ 'cake',
+ 'css',
+ 'dart',
+ 'diff',
+ 'patch',
+ 'rej',
+ 'dockerfile',
+ 'containerfile',
+ 'go',
+ 'handlebars',
+ 'hbs',
+ 'hjs',
+ 'hlsl',
+ 'hlsli',
+ 'fx',
+ 'fxh',
+ 'vsh',
+ 'psh',
+ 'cginc',
+ 'compute',
+ 'html',
+ 'htm',
+ 'shtml',
+ 'xhtml',
+ 'xht',
+ 'mdoc',
+ 'jsp',
+ 'asp',
+ 'aspx',
+ 'jshtm',
+ 'volt',
+ 'ejs',
+ 'rhtml',
+ 'ini',
+ 'conf',
+ 'properties',
+ 'cfg',
+ 'directory',
+ 'gitattributes',
+ 'gitconfig',
+ 'gitmodules',
+ 'editorconfig',
+ 'repo',
+ 'java',
+ 'jav',
+ 'jsx',
'js',
+ 'es6',
+ 'mjs',
+ 'cjs',
+ 'pac',
+ 'json',
+ 'bowerrc',
+ 'jscsrc',
+ 'webmanifest',
+ 'jsmap',
+ 'cssmap',
+ 'tsmap',
+ 'har',
+ 'jslintrc',
+ 'jsonld',
+ 'geojson',
+ 'ipynb',
+ 'vuerc',
+ 'jsonc',
+ 'eslintrc',
+ 'eslintrcjson',
+ 'jsfmtrc',
+ 'jshintrc',
+ 'swcrc',
+ 'hintrc',
+ 'babelrc',
+ 'jsonl',
+ 'ndjson',
+ 'codesnippets',
+ 'jl',
+ 'jmd',
+ 'sty',
+ 'cls',
+ 'bbx',
+ 'cbx',
+ 'tex',
+ 'ltx',
+ 'ctx',
+ 'bib',
+ 'less',
+ 'log',
+ 'lua',
+ 'mak',
+ 'mk',
+ 'mkd',
+ 'mdwn',
+ 'mdown',
+ 'markdown',
+ 'markdn',
+ 'mdtxt',
+ 'mdtext',
+ 'workbook',
+ 'm',
+ 'mm',
+ 'pl',
+ 'pm',
+ 'pod',
+ 't',
+ 'psgi',
+ 'raku',
+ 'rakumod',
+ 'rakutest',
+ 'rakudoc',
+ 'nqp',
+ 'p6',
+ 'pl6',
+ 'pm6',
+ 'php',
+ 'php4',
+ 'php5',
+ 'phtml',
+ 'ctp',
+ 'ps1',
+ 'psm1',
+ 'psd1',
+ 'pssc',
+ 'psrc',
+ 'py',
+ 'rpy',
+ 'pyw',
+ 'cpy',
+ 'gyp',
+ 'gypi',
+ 'pyi',
+ 'ipy',
+ 'pyt',
+ 'r',
+ 'rhistory',
+ 'rprofile',
+ 'rt',
+ 'cshtml',
+ 'razor',
+ 'rb',
+ 'rbx',
+ 'rjs',
+ 'gemspec',
+ 'rake',
+ 'ru',
+ 'erb',
+ 'podspec',
+ 'rbi',
+ 'rs',
+ 'scss',
+ 'sass',
+ 'shader',
+ 'sh',
+ 'bash',
+ 'bashrc',
+ 'bashaliases',
+ 'bashprofile',
+ 'bashlogin',
+ 'ebuild',
+ 'eclass',
+ 'profile',
+ 'bashlogout',
+ 'xprofile',
+ 'xsession',
+ 'xsessionrc',
+ 'zsh',
+ 'zshrc',
+ 'zprofile',
+ 'zlogin',
+ 'zlogout',
+ 'zshenv',
+ 'zshtheme',
+ 'fish',
+ 'ksh',
+ 'csh',
+ 'cshrc',
+ 'tcshrc',
+ 'yashrc',
+ 'yashprofile',
+ 'sql',
+ 'dsql',
+ 'swift',
'ts',
- 'jsx',
+ 'cts',
+ 'mts',
'tsx',
- 'json',
- 'html',
- 'css',
+ 'tsbuildinfo',
'xml',
+ 'xsd',
+ 'ascx',
+ 'atom',
+ 'axml',
+ 'axaml',
+ 'bpmn',
+ 'cpt',
+ 'csl',
+ 'csproj',
+ 'csprojuser',
+ 'dita',
+ 'ditamap',
+ 'dtd',
+ 'ent',
+ 'mod',
+ 'dtml',
+ 'fsproj',
+ 'fxml',
+ 'iml',
+ 'isml',
+ 'jmx',
+ 'launch',
+ 'menu',
+ 'mxml',
+ 'nuspec',
+ 'opml',
+ 'owl',
+ 'proj',
+ 'props',
+ 'pt',
+ 'publishsettings',
+ 'pubxml',
+ 'pubxmluser',
+ 'rbxlx',
+ 'rbxmx',
+ 'rdf',
+ 'rng',
+ 'rss',
+ 'shproj',
+ 'storyboard',
+ 'targets',
+ 'tld',
+ 'tmx',
+ 'vbproj',
+ 'vbprojuser',
+ 'vcxproj',
+ 'vcxprojfilters',
+ 'wsdl',
+ 'wxi',
+ 'wxl',
+ 'wxs',
+ 'xaml',
+ 'xbl',
+ 'xib',
+ 'xlf',
+ 'xliff',
+ 'xpdl',
+ 'xul',
+ 'xoml',
+ 'xsl',
+ 'xslt',
'yaml',
'yml',
- 'sql',
- 'sh',
- 'bash',
- 'markdown',
+ 'eyaml',
+ 'eyml',
+ 'cff',
+ 'yamltmlanguage',
+ 'yamltmpreferences',
+ 'yamltmtheme',
+ 'winget',
'txt',
'csv',
+ 'tsv',
'jpeg',
'jpg',
'png',
'gif',
'svg',
'webp',
+ 'avif',
+ 'bmp',
+ 'ico',
+ 'tiff',
+ 'tif',
'heic',
'heif',
- 'zip',
'tar',
'targz',
'tgz',
'gz',
+ 'bz2',
+ 'tarbz2',
+ 'tbz2',
+ 'z',
+ 'tarz',
+ 'lz',
+ 'tarlz',
+ 'xz',
+ 'tarxz',
+ 'txz',
+ 'lzma',
+ 'tarlzma',
+ 'rar',
+ 'sevenz',
+ 'zst',
+ 'tarzst',
+ 'tzst',
+ 'zip',
+ 'exe',
+ 'msi',
+ 'dll',
+ 'bat',
+ 'cmd',
+ 'com',
+ 'appimage',
+ 'app',
+ 'bin',
+ 'deb',
+ 'rpm',
+ 'apk',
+ 'dmg',
+ 'pkg',
+ 'crx',
+ 'xpi',
+ 'mp3',
+ 'wav',
+ 'ogg',
+ 'flac',
+ 'aac',
+ 'm4a',
+ 'wma',
+ 'mid',
+ 'midi',
'mp4',
'mkv',
'webm',
@@ -6204,10 +6897,61 @@ export const uploadFolderHandlerResponse = zod.object({
'flv',
'f4v',
'threegp',
+ 'ttf',
+ 'otf',
+ 'woff',
+ 'woff2',
+ 'eot',
+ 'rtf',
+ 'odt',
+ 'ods',
+ 'odp',
+ 'odg',
+ 'odf',
+ 'epub',
+ 'mobi',
+ 'azw',
+ 'azw3',
+ 'djvu',
'xls',
'ppt',
'pptx',
'xlsx',
+ 'db',
+ 'sqlite',
+ 'sqlite3',
+ 'mdb',
+ 'accdb',
+ 'dbf',
+ 'plist',
+ 'toml',
+ 'env',
+ 'dot',
+ 'gv',
+ 'torrent',
+ 'ics',
+ 'vcf',
+ 'ai',
+ 'eps',
+ 'ps',
+ 'dxf',
+ 'dwg',
+ 'stl',
+ 'obj',
+ 'fbx',
+ 'blend',
+ 'dae',
+ 'threeds',
+ 'gltf',
+ 'glb',
+ 'vhd',
+ 'vhdx',
+ 'vmdk',
+ 'ova',
+ 'ovf',
+ 'iso',
+ 'img',
+ 'swf',
])
.describe(
'Generates a FileType enum and associated ContentType enum with their implementations.\n\nThis macro takes a list of tuples in the format:\n(Variant, \"extension\", \"mime_type\", CONTENT_TYPE_VARIANT)\n\nFor each tuple it generates:\n- A variant in the FileType enum\n- A variant in the ContentType enum\n- Implementations for:\n - FileType::to_str() - Converts FileType to extension string\n - FileType::from_str() - Converts extension string to FileType\n - From<FileType> for ContentType - Maps FileType to ContentType\n - ContentType::mime_type() - Gets MIME type for ContentType\n'
diff --git a/js/app/packages/service-clients/service-storage/openapi.json b/js/app/packages/service-clients/service-storage/openapi.json
index 9346b9c6e2..925cb0944b 100644
--- a/js/app/packages/service-clients/service-storage/openapi.json
+++ b/js/app/packages/service-clients/service-storage/openapi.json
@@ -7025,36 +7025,357 @@
"pdf",
"md",
"canvas",
- "py",
+ "coffee",
+ "cson",
+ "iced",
+ "c",
+ "i",
+ "cpp",
+ "cppm",
+ "cc",
+ "ccm",
+ "cxx",
+ "cxxm",
+ "cplusplus",
+ "cplusplusm",
+ "hpp",
+ "hh",
+ "hxx",
+ "hplusplus",
+ "h",
+ "ii",
+ "ino",
+ "inl",
+ "ipp",
+ "ixx",
+ "tpp",
+ "txx",
+ "hppin",
+ "hin",
+ "cu",
+ "cuh",
+ "cs",
+ "csx",
+ "cake",
+ "css",
+ "dart",
+ "diff",
+ "patch",
+ "rej",
+ "dockerfile",
+ "containerfile",
+ "go",
+ "handlebars",
+ "hbs",
+ "hjs",
+ "hlsl",
+ "hlsli",
+ "fx",
+ "fxh",
+ "vsh",
+ "psh",
+ "cginc",
+ "compute",
+ "html",
+ "htm",
+ "shtml",
+ "xhtml",
+ "xht",
+ "mdoc",
+ "jsp",
+ "asp",
+ "aspx",
+ "jshtm",
+ "volt",
+ "ejs",
+ "rhtml",
+ "ini",
+ "conf",
+ "properties",
+ "cfg",
+ "directory",
+ "gitattributes",
+ "gitconfig",
+ "gitmodules",
+ "editorconfig",
+ "repo",
+ "java",
+ "jav",
+ "jsx",
"js",
+ "es6",
+ "mjs",
+ "cjs",
+ "pac",
+ "json",
+ "bowerrc",
+ "jscsrc",
+ "webmanifest",
+ "jsmap",
+ "cssmap",
+ "tsmap",
+ "har",
+ "jslintrc",
+ "jsonld",
+ "geojson",
+ "ipynb",
+ "vuerc",
+ "jsonc",
+ "eslintrc",
+ "eslintrcjson",
+ "jsfmtrc",
+ "jshintrc",
+ "swcrc",
+ "hintrc",
+ "babelrc",
+ "jsonl",
+ "ndjson",
+ "codesnippets",
+ "jl",
+ "jmd",
+ "sty",
+ "cls",
+ "bbx",
+ "cbx",
+ "tex",
+ "ltx",
+ "ctx",
+ "bib",
+ "less",
+ "log",
+ "lua",
+ "mak",
+ "mk",
+ "mkd",
+ "mdwn",
+ "mdown",
+ "markdown",
+ "markdn",
+ "mdtxt",
+ "mdtext",
+ "workbook",
+ "m",
+ "mm",
+ "pl",
+ "pm",
+ "pod",
+ "t",
+ "psgi",
+ "raku",
+ "rakumod",
+ "rakutest",
+ "rakudoc",
+ "nqp",
+ "p6",
+ "pl6",
+ "pm6",
+ "php",
+ "php4",
+ "php5",
+ "phtml",
+ "ctp",
+ "ps1",
+ "psm1",
+ "psd1",
+ "pssc",
+ "psrc",
+ "py",
+ "rpy",
+ "pyw",
+ "cpy",
+ "gyp",
+ "gypi",
+ "pyi",
+ "ipy",
+ "pyt",
+ "r",
+ "rhistory",
+ "rprofile",
+ "rt",
+ "cshtml",
+ "razor",
+ "rb",
+ "rbx",
+ "rjs",
+ "gemspec",
+ "rake",
+ "ru",
+ "erb",
+ "podspec",
+ "rbi",
+ "rs",
+ "scss",
+ "sass",
+ "shader",
+ "sh",
+ "bash",
+ "bashrc",
+ "bashaliases",
+ "bashprofile",
+ "bashlogin",
+ "ebuild",
+ "eclass",
+ "profile",
+ "bashlogout",
+ "xprofile",
+ "xsession",
+ "xsessionrc",
+ "zsh",
+ "zshrc",
+ "zprofile",
+ "zlogin",
+ "zlogout",
+ "zshenv",
+ "zshtheme",
+ "fish",
+ "ksh",
+ "csh",
+ "cshrc",
+ "tcshrc",
+ "yashrc",
+ "yashprofile",
+ "sql",
+ "dsql",
+ "swift",
"ts",
- "jsx",
+ "cts",
+ "mts",
"tsx",
- "json",
- "html",
- "css",
+ "tsbuildinfo",
"xml",
+ "xsd",
+ "ascx",
+ "atom",
+ "axml",
+ "axaml",
+ "bpmn",
+ "cpt",
+ "csl",
+ "csproj",
+ "csprojuser",
+ "dita",
+ "ditamap",
+ "dtd",
+ "ent",
+ "mod",
+ "dtml",
+ "fsproj",
+ "fxml",
+ "iml",
+ "isml",
+ "jmx",
+ "launch",
+ "menu",
+ "mxml",
+ "nuspec",
+ "opml",
+ "owl",
+ "proj",
+ "props",
+ "pt",
+ "publishsettings",
+ "pubxml",
+ "pubxmluser",
+ "rbxlx",
+ "rbxmx",
+ "rdf",
+ "rng",
+ "rss",
+ "shproj",
+ "storyboard",
+ "targets",
+ "tld",
+ "tmx",
+ "vbproj",
+ "vbprojuser",
+ "vcxproj",
+ "vcxprojfilters",
+ "wsdl",
+ "wxi",
+ "wxl",
+ "wxs",
+ "xaml",
+ "xbl",
+ "xib",
+ "xlf",
+ "xliff",
+ "xpdl",
+ "xul",
+ "xoml",
+ "xsl",
+ "xslt",
"yaml",
"yml",
- "sql",
- "sh",
- "bash",
- "markdown",
+ "eyaml",
+ "eyml",
+ "cff",
+ "yamltmlanguage",
+ "yamltmpreferences",
+ "yamltmtheme",
+ "winget",
"txt",
"csv",
+ "tsv",
"jpeg",
"jpg",
"png",
"gif",
"svg",
"webp",
+ "avif",
+ "bmp",
+ "ico",
+ "tiff",
+ "tif",
"heic",
"heif",
- "zip",
"tar",
"targz",
"tgz",
"gz",
+ "bz2",
+ "tarbz2",
+ "tbz2",
+ "z",
+ "tarz",
+ "lz",
+ "tarlz",
+ "xz",
+ "tarxz",
+ "txz",
+ "lzma",
+ "tarlzma",
+ "rar",
+ "sevenz",
+ "zst",
+ "tarzst",
+ "tzst",
+ "zip",
+ "exe",
+ "msi",
+ "dll",
+ "bat",
+ "cmd",
+ "com",
+ "appimage",
+ "app",
+ "bin",
+ "deb",
+ "rpm",
+ "apk",
+ "dmg",
+ "pkg",
+ "crx",
+ "xpi",
+ "mp3",
+ "wav",
+ "ogg",
+ "flac",
+ "aac",
+ "m4a",
+ "wma",
+ "mid",
+ "midi",
"mp4",
"mkv",
"webm",
@@ -7067,10 +7388,61 @@
"flv",
"f4v",
"threegp",
+ "ttf",
+ "otf",
+ "woff",
+ "woff2",
+ "eot",
+ "rtf",
+ "odt",
+ "ods",
+ "odp",
+ "odg",
+ "odf",
+ "epub",
+ "mobi",
+ "azw",
+ "azw3",
+ "djvu",
"xls",
"ppt",
"pptx",
- "xlsx"
+ "xlsx",
+ "db",
+ "sqlite",
+ "sqlite3",
+ "mdb",
+ "accdb",
+ "dbf",
+ "plist",
+ "toml",
+ "env",
+ "dot",
+ "gv",
+ "torrent",
+ "ics",
+ "vcf",
+ "ai",
+ "eps",
+ "ps",
+ "dxf",
+ "dwg",
+ "stl",
+ "obj",
+ "fbx",
+ "blend",
+ "dae",
+ "threeds",
+ "gltf",
+ "glb",
+ "vhd",
+ "vhdx",
+ "vmdk",
+ "ova",
+ "ovf",
+ "iso",
+ "img",
+ "swf"
]
},
"FolderItem": {
diff --git a/rust/cloud-storage/item_filters/src/ast/document.rs b/rust/cloud-storage/item_filters/src/ast/document.rs
index 5f0f82d5f4..5354b23567 100644
--- a/rust/cloud-storage/item_filters/src/ast/document.rs
+++ b/rust/cloud-storage/item_filters/src/ast/document.rs
@@ -3,8 +3,8 @@ use either::Either;
use filter_ast::{ExpandFrame, Expr, FoldTree, TryExpandNode};
use macro_user_id::{cowlike::CowLike, user_id::MacroUserIdStr};
use model_file_type::{
- Archive, Canvas, Code, Document, FileAssociation, FileType, Image, Md, Pdf, ValueError, Video,
- Write,
+ Archive, Audio, Canvas, Code, Data, Database, Document, Executable, FileAssociation, FileType,
+ Font, Image, Md, Media, Pdf, ThreeD, ValueError, Vector, Video, Vm, Write,
};
use nom::{
IResult, Parser, branch::alt, bytes::complete::tag, combinator::eof, sequence::separated_pair,
@@ -60,8 +60,17 @@ fn file_association(s: &str) -> IResult<&str, FileAssociation> {
assotiation::<Code>("code").map(FileAssociation::from),
assotiation::<Image>("image").map(FileAssociation::from),
assotiation::<Archive>("archive").map(FileAssociation::from),
+ assotiation::<Executable>("executable").map(FileAssociation::from),
+ assotiation::<Audio>("audio").map(FileAssociation::from),
assotiation::<Video>("video").map(FileAssociation::from),
+ assotiation::<Font>("font").map(FileAssociation::from),
assotiation::<Document>("document").map(FileAssociation::from),
+ assotiation::<Database>("database").map(FileAssociation::from),
+ assotiation::<Data>("data").map(FileAssociation::from),
+ assotiation::<Vector>("vector").map(FileAssociation::from),
+ assotiation::<ThreeD>("3d").map(FileAssociation::from),
+ assotiation::<Vm>("vm").map(FileAssociation::from),
+ assotiation::<Media>("media").map(FileAssociation::from),
))
.parse(s)
}
diff --git a/rust/cloud-storage/item_filters/src/ast/tests.rs b/rust/cloud-storage/item_filters/src/ast/tests.rs
index 74f7fb1d61..fbe0e4629d 100644
--- a/rust/cloud-storage/item_filters/src/ast/tests.rs
+++ b/rust/cloud-storage/item_filters/src/ast/tests.rs
@@ -100,7 +100,6 @@ fn it_expands_filters() {
}
#[test]
-#[ignore]
fn it_expands_file_associations() {
let f = EntityFilters {
document_filters: DocumentFilters {
@@ -108,7 +107,6 @@ fn it_expands_file_associations() {
document_ids: vec![],
project_ids: vec![],
owners: vec![],
- importance: Some(true),
..Default::default()
},
..Default::default()
@@ -171,7 +169,6 @@ fn it_expands_file_associations() {
}
#[test]
-#[ignore]
fn it_expands_other_association() {
let f = EntityFilters {
document_filters: DocumentFilters {
@@ -179,7 +176,6 @@ fn it_expands_other_association() {
document_ids: vec![],
project_ids: vec![],
owners: vec![],
- importance: Some(true),
..Default::default()
},
..Default::default()
diff --git a/rust/cloud-storage/model/src/document/file_type/tests.rs b/rust/cloud-storage/model/src/document/file_type/tests.rs
index ed57ecac3f..e5f532262c 100644
--- a/rust/cloud-storage/model/src/document/file_type/tests.rs
+++ b/rust/cloud-storage/model/src/document/file_type/tests.rs
@@ -1,6 +1,5 @@
use super::*;
-#[ignore]
#[test]
fn test_clean_document_name() {
assert_eq!(
@@ -53,7 +52,6 @@ fn test_clean_document_name() {
);
}
-#[ignore]
#[test]
fn test_is_suffix_match() {
assert!(FileType::is_suffix_match("testing.docx"));
@@ -87,7 +85,6 @@ fn test_is_suffix_match_false() {
assert!(!FileType::is_suffix_match(".testing"));
}
-#[ignore]
#[test]
fn test_split_suffix_match() {
assert_eq!(FileType::split_suffix_match("testing"), None);
diff --git a/rust/cloud-storage/model_file_type/src/lib.rs b/rust/cloud-storage/model_file_type/src/lib.rs
index 3f1da0cb88..c12c897a68 100644
--- a/rust/cloud-storage/model_file_type/src/lib.rs
+++ b/rust/cloud-storage/model_file_type/src/lib.rs
@@ -234,8 +234,17 @@ define_file_associations!(
(Code, "code", "Code editor file association"),
(Image, "image", "Image viewer file association"),
(Archive, "archive", "Archive file association"),
+ (Executable, "executable", "Executable file association"),
+ (Audio, "audio", "Audio player file association"),
(Video, "video", "Video player file association"),
+ (Font, "font", "Font viewer file association"),
(Document, "document", "Document viewer file association"),
+ (Database, "database", "Database file association"),
+ (Data, "data", "Data file association"),
+ (Vector, "vector", "Vector graphics file association"),
+ (ThreeD, "3d", "3D model file association"),
+ (Vm, "vm", "Virtual machine file association"),
+ (Media, "media", "Media file association"),
);
generate_file_types!(
@@ -248,24 +257,299 @@ generate_file_types!(
(Pdf, "pdf", "application/pdf", Pdf),
(Md, "md", "text/markdown", Md),
(Canvas, "canvas", "application/x-macro-canvas", Canvas),
- // Code files
- (Py, "py", "text/plain", Code),
+ // Code block: generated from VS Code extensions {
+ (Coffee, "coffee", "text/plain", Code),
+ (Cson, "cson", "text/plain", Code),
+ (Iced, "iced", "text/plain", Code),
+ (C, "c", "text/plain", Code),
+ (I, "i", "text/plain", Code),
+ (Cpp, "cpp", "text/plain", Code),
+ (Cppm, "cppm", "text/plain", Code),
+ (Cc, "cc", "text/plain", Code),
+ (Ccm, "ccm", "text/plain", Code),
+ (Cxx, "cxx", "text/plain", Code),
+ (Cxxm, "cxxm", "text/plain", Code),
+ (CPlusPlus, "c++", "text/plain", Code),
+ (CPlusPlusm, "c++m", "text/plain", Code),
+ (Hpp, "hpp", "text/plain", Code),
+ (Hh, "hh", "text/plain", Code),
+ (Hxx, "hxx", "text/plain", Code),
+ (HPlusPlus, "h++", "text/plain", Code),
+ (H, "h", "text/plain", Code),
+ (Ii, "ii", "text/plain", Code),
+ (Ino, "ino", "text/plain", Code),
+ (Inl, "inl", "text/plain", Code),
+ (Ipp, "ipp", "text/plain", Code),
+ (Ixx, "ixx", "text/plain", Code),
+ (Tpp, "tpp", "text/plain", Code),
+ (Txx, "txx", "text/plain", Code),
+ (HppIn, "hpp.in", "text/plain", Code),
+ (HIn, "h.in", "text/plain", Code),
+ (Cu, "cu", "text/plain", Code),
+ (Cuh, "cuh", "text/plain", Code),
+ (Cs, "cs", "text/plain", Code),
+ (Csx, "csx", "text/plain", Code),
+ (Cake, "cake", "text/plain", Code),
+ (Css, "css", "text/plain", Code),
+ (Dart, "dart", "text/plain", Code),
+ (Diff, "diff", "text/plain", Code),
+ (Patch, "patch", "text/plain", Code),
+ (Rej, "rej", "text/plain", Code),
+ (Dockerfile, "dockerfile", "text/plain", Code),
+ (Containerfile, "containerfile", "text/plain", Code),
+ (Go, "go", "text/plain", Code),
+ (Handlebars, "handlebars", "text/plain", Code),
+ (Hbs, "hbs", "text/plain", Code),
+ (Hjs, "hjs", "text/plain", Code),
+ (Hlsl, "hlsl", "text/plain", Code),
+ (Hlsli, "hlsli", "text/plain", Code),
+ (Fx, "fx", "text/plain", Code),
+ (Fxh, "fxh", "text/plain", Code),
+ (Vsh, "vsh", "text/plain", Code),
+ (Psh, "psh", "text/plain", Code),
+ (Cginc, "cginc", "text/plain", Code),
+ (Compute, "compute", "text/plain", Code),
+ (Html, "html", "text/plain", Code),
+ (Htm, "htm", "text/plain", Code),
+ (Shtml, "shtml", "text/plain", Code),
+ (Xhtml, "xhtml", "text/plain", Code),
+ (Xht, "xht", "text/plain", Code),
+ (Mdoc, "mdoc", "text/plain", Code),
+ (Jsp, "jsp", "text/plain", Code),
+ (Asp, "asp", "text/plain", Code),
+ (Aspx, "aspx", "text/plain", Code),
+ (Jshtm, "jshtm", "text/plain", Code),
+ (Volt, "volt", "text/plain", Code),
+ (Ejs, "ejs", "text/plain", Code),
+ (Rhtml, "rhtml", "text/plain", Code),
+ (Ini, "ini", "text/plain", Code),
+ (Conf, "conf", "text/plain", Code),
+ (Properties, "properties", "text/plain", Code),
+ (Cfg, "cfg", "text/plain", Code),
+ (Directory, "directory", "text/plain", Code),
+ (Gitattributes, "gitattributes", "text/plain", Code),
+ (Gitconfig, "gitconfig", "text/plain", Code),
+ (Gitmodules, "gitmodules", "text/plain", Code),
+ (Editorconfig, "editorconfig", "text/plain", Code),
+ (Repo, "repo", "text/plain", Code),
+ (Java, "java", "text/plain", Code),
+ (Jav, "jav", "text/plain", Code),
+ (Jsx, "jsx", "text/plain", Code),
(Js, "js", "text/plain", Code),
+ (Es6, "es6", "text/plain", Code),
+ (Mjs, "mjs", "text/plain", Code),
+ (Cjs, "cjs", "text/plain", Code),
+ (Pac, "pac", "text/plain", Code),
+ (Json, "json", "text/plain", Code),
+ (Bowerrc, "bowerrc", "text/plain", Code),
+ (Jscsrc, "jscsrc", "text/plain", Code),
+ (Webmanifest, "webmanifest", "text/plain", Code),
+ (JsMap, "js.map", "text/plain", Code),
+ (CssMap, "css.map", "text/plain", Code),
+ (TsMap, "ts.map", "text/plain", Code),
+ (Har, "har", "text/plain", Code),
+ (Jslintrc, "jslintrc", "text/plain", Code),
+ (Jsonld, "jsonld", "text/plain", Code),
+ (Geojson, "geojson", "text/plain", Code),
+ (Ipynb, "ipynb", "text/plain", Code),
+ (Vuerc, "vuerc", "text/plain", Code),
+ (Jsonc, "jsonc", "text/plain", Code),
+ (Eslintrc, "eslintrc", "text/plain", Code),
+ (EslintrcJson, "eslintrc.json", "text/plain", Code),
+ (Jsfmtrc, "jsfmtrc", "text/plain", Code),
+ (Jshintrc, "jshintrc", "text/plain", Code),
+ (Swcrc, "swcrc", "text/plain", Code),
+ (Hintrc, "hintrc", "text/plain", Code),
+ (Babelrc, "babelrc", "text/plain", Code),
+ (Jsonl, "jsonl", "text/plain", Code),
+ (Ndjson, "ndjson", "text/plain", Code),
+ (CodeSnippets, "code-snippets", "text/plain", Code),
+ (Jl, "jl", "text/plain", Code),
+ (Jmd, "jmd", "text/plain", Code),
+ (Sty, "sty", "text/plain", Code),
+ (Cls, "cls", "text/plain", Code),
+ (Bbx, "bbx", "text/plain", Code),
+ (Cbx, "cbx", "text/plain", Code),
+ (Tex, "tex", "text/plain", Code),
+ (Ltx, "ltx", "text/plain", Code),
+ (Ctx, "ctx", "text/plain", Code),
+ (Bib, "bib", "text/plain", Code),
+ (Less, "less", "text/plain", Code),
+ (Log, "log", "text/plain", Code),
+ (Lua, "lua", "text/plain", Code),
+ (Mak, "mak", "text/plain", Code),
+ (Mk, "mk", "text/plain", Code),
+ (Mkd, "mkd", "text/plain", Code),
+ (Mdwn, "mdwn", "text/plain", Code),
+ (Mdown, "mdown", "text/plain", Code),
+ (Markdown, "markdown", "text/plain", Code),
+ (Markdn, "markdn", "text/plain", Code),
+ (Mdtxt, "mdtxt", "text/plain", Code),
+ (Mdtext, "mdtext", "text/plain", Code),
+ (Workbook, "workbook", "text/plain", Code),
+ (M, "m", "text/plain", Code),
+ (Mm, "mm", "text/plain", Code),
+ (Pl, "pl", "text/plain", Code),
+ (Pm, "pm", "text/plain", Code),
+ (Pod, "pod", "text/plain", Code),
+ (T, "t", "text/plain", Code),
+ (Psgi, "psgi", "text/plain", Code),
+ (Raku, "raku", "text/plain", Code),
+ (Rakumod, "rakumod", "text/plain", Code),
+ (Rakutest, "rakutest", "text/plain", Code),
+ (Rakudoc, "rakudoc", "text/plain", Code),
+ (Nqp, "nqp", "text/plain", Code),
+ (P6, "p6", "text/plain", Code),
+ (Pl6, "pl6", "text/plain", Code),
+ (Pm6, "pm6", "text/plain", Code),
+ (Php, "php", "text/plain", Code),
+ (Php4, "php4", "text/plain", Code),
+ (Php5, "php5", "text/plain", Code),
+ (Phtml, "phtml", "text/plain", Code),
+ (Ctp, "ctp", "text/plain", Code),
+ (Ps1, "ps1", "text/plain", Code),
+ (Psm1, "psm1", "text/plain", Code),
+ (Psd1, "psd1", "text/plain", Code),
+ (Pssc, "pssc", "text/plain", Code),
+ (Psrc, "psrc", "text/plain", Code),
+ (Py, "py", "text/plain", Code),
+ (Rpy, "rpy", "text/plain", Code),
+ (Pyw, "pyw", "text/plain", Code),
+ (Cpy, "cpy", "text/plain", Code),
+ (Gyp, "gyp", "text/plain", Code),
+ (Gypi, "gypi", "text/plain", Code),
+ (Pyi, "pyi", "text/plain", Code),
+ (Ipy, "ipy", "text/plain", Code),
+ (Pyt, "pyt", "text/plain", Code),
+ (R, "r", "text/plain", Code),
+ (Rhistory, "rhistory", "text/plain", Code),
+ (Rprofile, "rprofile", "text/plain", Code),
+ (Rt, "rt", "text/plain", Code),
+ (Cshtml, "cshtml", "text/plain", Code),
+ (Razor, "razor", "text/plain", Code),
+ (Rb, "rb", "text/plain", Code),
+ (Rbx, "rbx", "text/plain", Code),
+ (Rjs, "rjs", "text/plain", Code),
+ (Gemspec, "gemspec", "text/plain", Code),
+ (Rake, "rake", "text/plain", Code),
+ (Ru, "ru", "text/plain", Code),
+ (Erb, "erb", "text/plain", Code),
+ (Podspec, "podspec", "text/plain", Code),
+ (Rbi, "rbi", "text/plain", Code),
+ (Rs, "rs", "text/plain", Code),
+ (Scss, "scss", "text/plain", Code),
+ (Sass, "sass", "text/plain", Code),
+ (Shader, "shader", "text/plain", Code),
+ (Sh, "sh", "text/plain", Code),
+ (Bash, "bash", "text/plain", Code),
+ (Bashrc, "bashrc", "text/plain", Code),
+ (BashAliases, "bash_aliases", "text/plain", Code),
+ (BashProfile, "bash_profile", "text/plain", Code),
+ (BashLogin, "bash_login", "text/plain", Code),
+ (Ebuild, "ebuild", "text/plain", Code),
+ (Eclass, "eclass", "text/plain", Code),
+ (Profile, "profile", "text/plain", Code),
+ (BashLogout, "bash_logout", "text/plain", Code),
+ (Xprofile, "xprofile", "text/plain", Code),
+ (Xsession, "xsession", "text/plain", Code),
+ (Xsessionrc, "xsessionrc", "text/plain", Code),
+ (Zsh, "zsh", "text/plain", Code),
+ (Zshrc, "zshrc", "text/plain", Code),
+ (Zprofile, "zprofile", "text/plain", Code),
+ (Zlogin, "zlogin", "text/plain", Code),
+ (Zlogout, "zlogout", "text/plain", Code),
+ (Zshenv, "zshenv", "text/plain", Code),
+ (ZshTheme, "zsh-theme", "text/plain", Code),
+ (Fish, "fish", "text/plain", Code),
+ (Ksh, "ksh", "text/plain", Code),
+ (Csh, "csh", "text/plain", Code),
+ (Cshrc, "cshrc", "text/plain", Code),
+ (Tcshrc, "tcshrc", "text/plain", Code),
+ (Yashrc, "yashrc", "text/plain", Code),
+ (YashProfile, "yash_profile", "text/plain", Code),
+ (Sql, "sql", "text/plain", Code),
+ (Dsql, "dsql", "text/plain", Code),
+ (Swift, "swift", "text/plain", Code),
(Ts, "ts", "text/plain", Code),
- (Jsx, "jsx", "text/plain", Code),
+ (Cts, "cts", "text/plain", Code),
+ (Mts, "mts", "text/plain", Code),
(Tsx, "tsx", "text/plain", Code),
- (Json, "json", "text/plain", Code),
- (Html, "html", "text/plain", Code),
- (Css, "css", "text/plain", Code),
+ (Tsbuildinfo, "tsbuildinfo", "text/plain", Code),
(Xml, "xml", "text/plain", Code),
+ (Xsd, "xsd", "text/plain", Code),
+ (Ascx, "ascx", "text/plain", Code),
+ (Atom, "atom", "text/plain", Code),
+ (Axml, "axml", "text/plain", Code),
+ (Axaml, "axaml", "text/plain", Code),
+ (Bpmn, "bpmn", "text/plain", Code),
+ (Cpt, "cpt", "text/plain", Code),
+ (Csl, "csl", "text/plain", Code),
+ (Csproj, "csproj", "text/plain", Code),
+ (CsprojUser, "csproj.user", "text/plain", Code),
+ (Dita, "dita", "text/plain", Code),
+ (Ditamap, "ditamap", "text/plain", Code),
+ (Dtd, "dtd", "text/plain", Code),
+ (Ent, "ent", "text/plain", Code),
+ (Mod, "mod", "text/plain", Code),
+ (Dtml, "dtml", "text/plain", Code),
+ (Fsproj, "fsproj", "text/plain", Code),
+ (Fxml, "fxml", "text/plain", Code),
+ (Iml, "iml", "text/plain", Code),
+ (Isml, "isml", "text/plain", Code),
+ (Jmx, "jmx", "text/plain", Code),
+ (Launch, "launch", "text/plain", Code),
+ (Menu, "menu", "text/plain", Code),
+ (Mxml, "mxml", "text/plain", Code),
+ (Nuspec, "nuspec", "text/plain", Code),
+ (Opml, "opml", "text/plain", Code),
+ (Owl, "owl", "text/plain", Code),
+ (Proj, "proj", "text/plain", Code),
+ (Props, "props", "text/plain", Code),
+ (Pt, "pt", "text/plain", Code),
+ (Publishsettings, "publishsettings", "text/plain", Code),
+ (Pubxml, "pubxml", "text/plain", Code),
+ (PubxmlUser, "pubxml.user", "text/plain", Code),
+ (Rbxlx, "rbxlx", "text/plain", Code),
+ (Rbxmx, "rbxmx", "text/plain", Code),
+ (Rdf, "rdf", "text/plain", Code),
+ (Rng, "rng", "text/plain", Code),
+ (Rss, "rss", "text/plain", Code),
+ (Shproj, "shproj", "text/plain", Code),
+ (Storyboard, "storyboard", "text/plain", Code),
+ (Targets, "targets", "text/plain", Code),
+ (Tld, "tld", "text/plain", Code),
+ (Tmx, "tmx", "text/plain", Code),
+ (Vbproj, "vbproj", "text/plain", Code),
+ (VbprojUser, "vbproj.user", "text/plain", Code),
+ (Vcxproj, "vcxproj", "text/plain", Code),
+ (VcxprojFilters, "vcxproj.filters", "text/plain", Code),
+ (Wsdl, "wsdl", "text/plain", Code),
+ (Wxi, "wxi", "text/plain", Code),
+ (Wxl, "wxl", "text/plain", Code),
+ (Wxs, "wxs", "text/plain", Code),
+ (Xaml, "xaml", "text/plain", Code),
+ (Xbl, "xbl", "text/plain", Code),
+ (Xib, "xib", "text/plain", Code),
+ (Xlf, "xlf", "text/plain", Code),
+ (Xliff, "xliff", "text/plain", Code),
+ (Xpdl, "xpdl", "text/plain", Code),
+ (Xul, "xul", "text/plain", Code),
+ (Xoml, "xoml", "text/plain", Code),
+ (Xsl, "xsl", "text/plain", Code),
+ (Xslt, "xslt", "text/plain", Code),
(Yaml, "yaml", "text/plain", Code),
(Yml, "yml", "text/plain", Code),
- (Sql, "sql", "text/plain", Code),
- (Sh, "sh", "text/plain", Code),
- (Bash, "bash", "text/plain", Code),
- (Markdown, "markdown", "text/plain", Code),
+ (Eyaml, "eyaml", "text/plain", Code),
+ (Eyml, "eyml", "text/plain", Code),
+ (Cff, "cff", "text/plain", Code),
+ (YamlTmlanguage, "yaml-tmlanguage", "text/plain", Code),
+ (YamlTmpreferences, "yaml-tmpreferences", "text/plain", Code),
+ (YamlTmtheme, "yaml-tmtheme", "text/plain", Code),
+ (Winget, "winget", "text/plain", Code),
(Txt, "txt", "text/plain", Code),
(Csv, "csv", "text/plain", Code),
+ (Tsv, "tsv", "text/plain", Code),
+ // } Code block
// images
(Jpeg, "jpeg", "image/jpeg", Image),
(Jpg, "jpg", "image/jpeg", Image),
@@ -273,14 +557,80 @@ generate_file_types!(
(Gif, "gif", "image/gif", Image),
(Svg, "svg", "image/svg+xml", Image),
(Webp, "webp", "image/webp", Image),
+ (Avif, "avif", "image/avif", Image),
+ (Bmp, "bmp", "image/bmp", Image),
+ (Ico, "ico", "image/x-icon", Image),
+ (Tiff, "tiff", "image/tiff", Image),
+ (Tif, "tif", "image/tiff", Image),
(Heic, "heic", "image/heic", Image),
(Heif, "heif", "image/heif", Image),
- // Archives
- (Zip, "zip", "application/zip", Archive),
+ // NOT SUPPORTED BLOCKS
+
+ // Archives and compressed files
(Tar, "tar", "application/x-tar", Archive),
(TarGz, "tar.gz", "application/gzip", Archive),
(Tgz, "tgz", "application/gzip", Archive),
(Gz, "gz", "application/gzip", Archive),
+ (Bz2, "bz2", "application/x-bzip2", Archive),
+ (TarBz2, "tar.bz2", "application/x-bzip2", Archive),
+ (Tbz2, "tbz2", "application/x-bzip2", Archive),
+ (Z, "z", "application/x-compress", Archive),
+ (TarZ, "tar.z", "application/x-compress", Archive),
+ (Lz, "lz", "application/x-lzip", Archive),
+ (TarLz, "tar.lz", "application/x-lzip", Archive),
+ (Xz, "xz", "application/x-xz", Archive),
+ (TarXz, "tar.xz", "application/x-xz", Archive),
+ (Txz, "txz", "application/x-xz", Archive),
+ (Lzma, "lzma", "application/x-lzma", Archive),
+ (TarLzma, "tar.lzma", "application/x-lzma", Archive),
+ (Rar, "rar", "application/vnd.rar", Archive),
+ (SevenZ, "7z", "application/x-7z-compressed", Archive),
+ (Zst, "zst", "application/zstd", Archive),
+ (TarZst, "tar.zst", "application/zstd", Archive),
+ (Tzst, "tzst", "application/zstd", Archive),
+ (Zip, "zip", "application/zip", Archive),
+ // Executable files
+ (Exe, "exe", "application/x-msdownload", Executable),
+ (Msi, "msi", "application/x-msi", Executable),
+ (Dll, "dll", "application/x-msdownload", Executable),
+ (Bat, "bat", "application/x-bat", Executable),
+ (Cmd, "cmd", "application/x-cmd", Executable),
+ (Com, "com", "application/x-msdownload", Executable),
+ (AppImage, "appimage", "application/x-executable", Executable),
+ (App, "app", "application/x-executable", Executable),
+ (Bin, "bin", "application/octet-stream", Executable),
+ (
+ Deb,
+ "deb",
+ "application/vnd.debian.binary-package",
+ Executable
+ ),
+ (Rpm, "rpm", "application/x-rpm", Executable),
+ (
+ Apk,
+ "apk",
+ "application/vnd.android.package-archive",
+ Executable
+ ),
+ (Dmg, "dmg", "application/x-apple-diskimage", Executable),
+ (
+ Pkg,
+ "pkg",
+ "application/vnd.apple.installer+xml",
+ Executable
+ ),
+ (Crx, "crx", "application/x-chrome-extension", Executable),
+ (Xpi, "xpi", "application/x-xpinstall", Executable),
+ // Audio files
+ (Mp3, "mp3", "audio/mpeg", Audio),
+ (Wav, "wav", "audio/wav", Audio),
+ (Ogg, "ogg", "audio/ogg", Audio),
+ (Flac, "flac", "audio/flac", Audio),
+ (Aac, "aac", "audio/aac", Audio),
+ (M4a, "m4a", "audio/mp4", Audio),
+ (Wma, "wma", "audio/x-ms-wma", Audio),
+ (Mid, "mid", "audio/midi", Audio),
+ (Midi, "midi", "audio/midi", Audio),
// Video files
(Mp4, "mp4", "video/mp4", Video),
(Mkv, "mkv", "video/x-matroska", Video),
@@ -294,9 +644,92 @@ generate_file_types!(
(Flv, "flv", "video/x-flv", Video),
(F4v, "f4v", "video/mp4", Video),
(ThreeGp, "3gp", "video/3gpp", Video),
+ // Font files
+ (Ttf, "ttf", "font/ttf", Font),
+ (Otf, "otf", "font/otf", Font),
+ (Woff, "woff", "font/woff", Font),
+ (Woff2, "woff2", "font/woff2", Font),
+ (Eot, "eot", "application/vnd.ms-fontobject", Font),
// Document formats
+ (Rtf, "rtf", "application/rtf", Document),
+ (
+ Odt,
+ "odt",
+ "application/vnd.oasis.opendocument.text",
+ Document
+ ),
+ (
+ Ods,
+ "ods",
+ "application/vnd.oasis.opendocument.spreadsheet",
+ Document
+ ),
+ (
+ Odp,
+ "odp",
+ "application/vnd.oasis.opendocument.presentation",
+ Document
+ ),
+ (
+ Odg,
+ "odg",
+ "application/vnd.oasis.opendocument.graphics",
+ Document
+ ),
+ (
+ Odf,
+ "odf",
+ "application/vnd.oasis.opendocument.formula",
+ Document
+ ),
+ (Epub, "epub", "application/epub+zip", Document),
+ (Mobi, "mobi", "application/x-mobipocket-ebook", Document),
+ (Azw, "azw", "application/vnd.amazon.ebook", Document),
+ (Azw3, "azw3", "application/vnd.amazon.ebook", Document),
+ (Djvu, "djvu", "image/vnd.djvu", Document),
(Xls, "xls", "application/vnd.ms-excel", Document),
(Ppt, "ppt", "application/vnd.ms-powerpoint", Document),
(Pptx, "pptx", "application/xml", Document),
(Xlsx, "xlsx", "application/xml", Document),
+ // Database files
+ (Db, "db", "application/octet-stream", Database),
+ (Sqlite, "sqlite", "application/vnd.sqlite3", Database),
+ (Sqlite3, "sqlite3", "application/vnd.sqlite3", Database),
+ (Mdb, "mdb", "application/vnd.ms-access", Database),
+ (Accdb, "accdb", "application/vnd.ms-access", Database),
+ (Dbf, "dbf", "application/x-dbf", Database),
+ // Data and config files
+ (Plist, "plist", "application/xml", Data),
+ (Toml, "toml", "application/toml", Data),
+ (Env, "env", "text/plain", Data),
+ (Dot, "dot", "text/vnd.graphviz", Data),
+ (Gv, "gv", "text/vnd.graphviz", Data),
+ (Torrent, "torrent", "application/x-bittorrent", Data),
+ (Ics, "ics", "text/calendar", Data),
+ (Vcf, "vcf", "text/vcard", Data),
+ // Vector graphics
+ (Ai, "ai", "application/postscript", Vector),
+ (Eps, "eps", "application/postscript", Vector),
+ (Ps, "ps", "application/postscript", Vector),
+ (Dxf, "dxf", "image/vnd.dxf", Vector),
+ (Dwg, "dwg", "image/vnd.dwg", Vector),
+ // 3D files
+ (Stl, "stl", "model/stl", ThreeD),
+ (Obj, "obj", "model/obj", ThreeD),
+ (Fbx, "fbx", "application/octet-stream", ThreeD),
+ (Blend, "blend", "application/x-blender", ThreeD),
+ (Dae, "dae", "model/vnd.collada+xml", ThreeD),
+ (ThreeDs, "3ds", "application/x-3ds", ThreeD),
+ (Gltf, "gltf", "model/gltf+json", ThreeD),
+ (Glb, "glb", "model/gltf-binary", ThreeD),
+ // Virtual machine and container files
+ (Vhd, "vhd", "application/x-virtualbox-vhd", Vm),
+ (Vhdx, "vhdx", "application/x-virtualbox-vhdx", Vm),
+ (Vmdk, "vmdk", "application/x-vmdk", Vm),
+ (Ova, "ova", "application/x-virtualbox-ova", Vm),
+ (Ovf, "ovf", "application/x-virtualbox-ovf", Vm),
+ (Iso, "iso", "application/x-iso9660-image", Vm),
+ (Img, "img", "application/octet-stream", Vm),
+ // Miscellaneous
+ (Swf, "swf", "application/x-shockwave-flash", Media),
);