@aeriajs/builtins 0.0.115 → 0.0.117

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.
@@ -1,5 +1,6 @@
1
1
  export declare const description: {
2
2
  readonly $id: "file";
3
+ readonly icon: "file";
3
4
  readonly owned: "always";
4
5
  readonly presets: readonly ["owned"];
5
6
  readonly indexes: readonly ["name", "link", "type"];
@@ -12,6 +12,7 @@ const timestamp = (lastModified) => lastModified
12
12
  : 'fresh';
13
13
  exports.description = (0, core_1.defineDescription)({
14
14
  $id: 'file',
15
+ icon: 'file',
15
16
  owned: 'always',
16
17
  presets: ['owned'],
17
18
  indexes: [
@@ -8,6 +8,7 @@ const link = async (_id) => {
8
8
  const timestamp = (lastModified) => lastModified ? new Date(lastModified).getTime() : "fresh";
9
9
  export const description = defineDescription({
10
10
  $id: "file",
11
+ icon: "file",
11
12
  owned: "always",
12
13
  presets: ["owned"],
13
14
  indexes: [
@@ -1,11 +1,10 @@
1
- /// <reference types="node" />
2
1
  import type { Context } from '@aeriajs/types';
3
2
  import type { description } from './description.js';
4
3
  import { HTTPStatus, ACError } from '@aeriajs/types';
5
4
  import * as fs from 'fs';
6
5
  export declare const download: (payload: {
7
6
  fileId: string;
8
- options: readonly ('picture' | 'download')[];
7
+ options: readonly ("picture" | "download")[];
9
8
  noHeaders?: boolean;
10
9
  }, context: Context<typeof description>) => Promise<import("@aeriajs/types").Result.Error<{
11
10
  readonly code: ACError.ResourceNotFound;