@eik/core 2.1.46 → 2.1.47

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/lib/classes/http-incoming.js +4 -0
  3. package/lib/classes/http-outgoing.js +4 -0
  4. package/lib/classes/package.js +8 -0
  5. package/lib/classes/versions.js +16 -2
  6. package/lib/handlers/alias.delete.js +13 -4
  7. package/lib/handlers/alias.get-v2.js +22 -10
  8. package/lib/handlers/alias.get.js +10 -1
  9. package/lib/handlers/alias.post.js +19 -4
  10. package/lib/handlers/alias.put.js +19 -4
  11. package/lib/handlers/auth.post.js +7 -1
  12. package/lib/handlers/map.get.js +20 -10
  13. package/lib/handlers/map.put.js +38 -13
  14. package/lib/handlers/pkg.get.js +22 -10
  15. package/lib/handlers/pkg.log.js +21 -10
  16. package/lib/handlers/pkg.put.js +26 -4
  17. package/lib/handlers/versions.get.js +20 -10
  18. package/lib/multipart/form-file.js +3 -0
  19. package/lib/multipart/parser.js +65 -37
  20. package/lib/sinks/mem-entry.js +3 -0
  21. package/lib/sinks/test.js +40 -10
  22. package/lib/utils/healthcheck.js +16 -2
  23. package/lib/utils/utils.js +25 -0
  24. package/package.json +16 -20
  25. package/types/classes/alias.d.ts +4 -4
  26. package/types/classes/asset.d.ts +5 -5
  27. package/types/classes/author.d.ts +2 -2
  28. package/types/classes/http-incoming.d.ts +4 -4
  29. package/types/classes/http-outgoing.d.ts +7 -3
  30. package/types/classes/meta.d.ts +2 -2
  31. package/types/classes/package.d.ts +136 -11
  32. package/types/classes/versions.d.ts +14 -4
  33. package/types/handlers/alias.delete.d.ts +13 -6
  34. package/types/handlers/alias.get-v2.d.ts +16 -9
  35. package/types/handlers/alias.get.d.ts +15 -8
  36. package/types/handlers/alias.post.d.ts +24 -11
  37. package/types/handlers/alias.put.d.ts +24 -11
  38. package/types/handlers/auth.post.d.ts +15 -9
  39. package/types/handlers/map.get.d.ts +14 -9
  40. package/types/handlers/map.put.d.ts +32 -13
  41. package/types/handlers/pkg.get.d.ts +16 -9
  42. package/types/handlers/pkg.log.d.ts +15 -9
  43. package/types/handlers/pkg.put.d.ts +35 -15
  44. package/types/handlers/versions.get.d.ts +14 -9
  45. package/types/main.d.ts +2 -0
  46. package/types/multipart/form-field.d.ts +2 -2
  47. package/types/multipart/parser.d.ts +18 -6
  48. package/types/sinks/test.d.ts +26 -13
  49. package/types/utils/healthcheck.d.ts +6 -4
  50. package/types/utils/path-builders-fs.d.ts +27 -27
  51. package/types/utils/path-builders-uri.d.ts +16 -16
  52. package/types/utils/utils.d.ts +26 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eik/core",
3
- "version": "2.1.46",
3
+ "version": "2.1.47",
4
4
  "description": "Core server package",
5
5
  "main": "lib/main.js",
6
6
  "types": "./types/main.d.ts",
@@ -12,7 +12,7 @@
12
12
  "types"
13
13
  ],
14
14
  "scripts": {
15
- "clean": "rimraf .tap node_modules types",
15
+ "clean": "node -e \"['.tap', 'node_modules', 'types'].forEach(d => require('fs').rmSync(d, {recursive: true, force: true}))\"",
16
16
  "lint": "eslint .",
17
17
  "lint:fix": "eslint --fix .",
18
18
  "test": "tap --disable-coverage --allow-empty-coverage",
@@ -29,10 +29,10 @@
29
29
  "author": "",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@eik/common": "5.1.27",
33
- "@eik/sink": "1.2.5",
34
- "@eik/sink-file-system": "2.0.32",
35
- "@eik/sink-memory": "2.0.29",
32
+ "@eik/common": "5.1.28",
33
+ "@eik/sink": "1.2.6",
34
+ "@eik/sink-file-system": "2.0.33",
35
+ "@eik/sink-memory": "2.0.30",
36
36
  "@metrics/client": "2.5.5",
37
37
  "abslog": "2.4.4",
38
38
  "busboy": "1.6.0",
@@ -40,25 +40,21 @@
40
40
  "mime": "4.1.0",
41
41
  "original-url": "1.2.3",
42
42
  "semver": "7.8.1",
43
- "ssri": "12.0.0",
44
- "tar": "7.5.15",
45
- "unique-slug": "5.0.0"
43
+ "ssri": "14.0.0",
44
+ "tar": "7.5.15"
46
45
  },
47
46
  "devDependencies": {
48
- "@eik/eslint-config": "1.0.25",
49
- "@eik/prettier-config": "1.0.1",
50
- "@eik/semantic-release-config": "1.0.16",
51
- "@eik/typescript-config": "1.0.1",
47
+ "@eik/eslint-config": "2.0.6",
48
+ "@eik/prettier-config": "1.0.2",
49
+ "@eik/semantic-release-config": "1.0.17",
50
+ "@eik/typescript-config": "1.0.2",
52
51
  "@types/readable-stream": "4.0.23",
53
- "eslint": "9.39.4",
54
- "form-data": "4.0.5",
52
+ "eslint": "10.4.0",
55
53
  "mkdirp": "3.0.1",
56
- "node-fetch": "3.3.2",
57
- "npm-run-all2": "8.0.4",
54
+ "npm-run-all2": "9.0.1",
58
55
  "prettier": "3.8.3",
59
- "rimraf": "6.1.3",
60
56
  "semantic-release": "25.0.3",
61
- "tap": "21.7.1",
62
- "typescript": "5.9.3"
57
+ "tap": "21.7.4",
58
+ "typescript": "6.0.3"
63
59
  }
64
60
  }
@@ -1,10 +1,10 @@
1
1
  export default Alias;
2
2
  declare const Alias: {
3
3
  new ({ name, type, alias, org }?: {
4
- name?: string;
5
- type?: string;
6
- alias?: string;
7
- org?: string;
4
+ name?: string | undefined;
5
+ type?: string | undefined;
6
+ alias?: string | undefined;
7
+ org?: string | undefined;
8
8
  }): {
9
9
  _version: string;
10
10
  _alias: string;
@@ -1,10 +1,10 @@
1
1
  export default Asset;
2
2
  export type AssetOptions = {
3
- pathname?: string;
4
- version?: string;
5
- name?: string;
6
- type?: string;
7
- org?: string;
3
+ pathname?: string | undefined;
4
+ version?: string | undefined;
5
+ name?: string | undefined;
6
+ type?: string | undefined;
7
+ org?: string | undefined;
8
8
  };
9
9
  /**
10
10
  * @typedef {object} AssetOptions
@@ -1,8 +1,8 @@
1
1
  export default Author;
2
2
  declare const Author: {
3
3
  new ({ name, user }?: {
4
- name?: string;
5
- user?: string;
4
+ name?: string | undefined;
5
+ user?: string | undefined;
6
6
  }): {
7
7
  _name: string;
8
8
  _user: string;
@@ -5,10 +5,10 @@ export default HttpIncoming;
5
5
  * @class HttpIncoming
6
6
  */
7
7
  declare const HttpIncoming: {
8
- new (request: any, { version, extras, author, alias, type, name, org, }?: {
8
+ new (request?: any, { version, extras, author, alias, type, name, org, }?: {
9
9
  version?: string;
10
10
  extras?: string;
11
- author?: {};
11
+ author?: object;
12
12
  alias?: string;
13
13
  type?: string;
14
14
  name?: string;
@@ -16,7 +16,7 @@ declare const HttpIncoming: {
16
16
  }): {
17
17
  _version: string;
18
18
  _extras: string;
19
- _author: {};
19
+ _author: object;
20
20
  _alias: string;
21
21
  _type: string;
22
22
  _name: string;
@@ -25,7 +25,7 @@ declare const HttpIncoming: {
25
25
  _headers: any;
26
26
  get version(): string;
27
27
  get extras(): string;
28
- get author(): {};
28
+ get author(): object;
29
29
  get alias(): string;
30
30
  get name(): string;
31
31
  get type(): string;
@@ -5,7 +5,9 @@ declare const HttpOutgoing: {
5
5
  _statusCode: number;
6
6
  _mimeType: string;
7
7
  _location: string;
8
- _stream: any;
8
+ /** @type {import("node:stream").Readable | undefined} */
9
+ _stream: import("node:stream").Readable | undefined;
10
+ /** @type {any} */
9
11
  _body: any;
10
12
  _etag: string;
11
13
  get cacheControl(): string;
@@ -16,8 +18,10 @@ declare const HttpOutgoing: {
16
18
  set location(value: string);
17
19
  get mimeType(): string;
18
20
  set mimeType(value: string);
19
- get stream(): any;
20
- set stream(value: any);
21
+ /** @returns {import("node:stream").Readable | undefined} */
22
+ get stream(): import("node:stream").Readable | undefined;
23
+ set stream(value: import("node:stream").Readable | undefined);
24
+ /** @returns {any} */
21
25
  get body(): any;
22
26
  set body(value: any);
23
27
  get etag(): string;
@@ -1,8 +1,8 @@
1
1
  export default Meta;
2
2
  declare const Meta: {
3
3
  new ({ value, name }?: {
4
- value?: string;
5
- name?: string;
4
+ value?: string | undefined;
5
+ name?: string | undefined;
6
6
  }): {
7
7
  _value: string;
8
8
  _name: string;
@@ -1,11 +1,11 @@
1
1
  export default Package;
2
2
  declare const Package: {
3
3
  new ({ version, type, name, org, author, }?: {
4
- version?: string;
5
- type?: string;
6
- name?: string;
7
- org?: string;
8
- author?: {};
4
+ version?: string | undefined;
5
+ type?: string | undefined;
6
+ name?: string | undefined;
7
+ org?: string | undefined;
8
+ author?: {} | undefined;
9
9
  }): {
10
10
  _version: string;
11
11
  _created: number;
@@ -13,8 +13,49 @@ declare const Package: {
13
13
  _type: string;
14
14
  _name: string;
15
15
  _org: string;
16
- _files: any[];
17
- _meta: any[];
16
+ /** @type {import("./asset.js").default[]} */
17
+ _files: {
18
+ _mimeType: string;
19
+ _type: string;
20
+ _size: number;
21
+ _integrity: string;
22
+ _pathname: string;
23
+ _version: string;
24
+ _name: string;
25
+ _org: string;
26
+ get integrity(): string;
27
+ set integrity(value: string);
28
+ get pathname(): string;
29
+ get mimeType(): string;
30
+ get version(): string;
31
+ get asset(): string;
32
+ get name(): string;
33
+ get type(): string;
34
+ set type(value: string);
35
+ get size(): number;
36
+ set size(value: number);
37
+ get org(): string;
38
+ toJSON(): {
39
+ integrity: string;
40
+ pathname: string;
41
+ mimeType: string;
42
+ type: string;
43
+ size: number;
44
+ };
45
+ get [Symbol.toStringTag](): string;
46
+ }[];
47
+ /** @type {import("./meta.js").default[]} */
48
+ _meta: {
49
+ _value: string;
50
+ _name: string;
51
+ get value(): string;
52
+ get name(): string;
53
+ toJSON(): {
54
+ value: string;
55
+ name: string;
56
+ };
57
+ get [Symbol.toStringTag](): string;
58
+ }[];
18
59
  get integrity(): string;
19
60
  get version(): string;
20
61
  get created(): number;
@@ -22,8 +63,53 @@ declare const Package: {
22
63
  get type(): string;
23
64
  get name(): string;
24
65
  get org(): string;
25
- setAsset(asset: any): void;
26
- setMeta(meta: any): void;
66
+ /**
67
+ * @param {import("./asset.js").default} asset
68
+ */
69
+ setAsset(asset: {
70
+ _mimeType: string;
71
+ _type: string;
72
+ _size: number;
73
+ _integrity: string;
74
+ _pathname: string;
75
+ _version: string;
76
+ _name: string;
77
+ _org: string;
78
+ get integrity(): string;
79
+ set integrity(value: string);
80
+ get pathname(): string;
81
+ get mimeType(): string;
82
+ get version(): string;
83
+ get asset(): string;
84
+ get name(): string;
85
+ get type(): string;
86
+ set type(value: string);
87
+ get size(): number;
88
+ set size(value: number);
89
+ get org(): string;
90
+ toJSON(): {
91
+ integrity: string;
92
+ pathname: string;
93
+ mimeType: string;
94
+ type: string;
95
+ size: number;
96
+ };
97
+ get [Symbol.toStringTag](): string;
98
+ }): void;
99
+ /**
100
+ * @param {import("./meta.js").default} meta
101
+ */
102
+ setMeta(meta: {
103
+ _value: string;
104
+ _name: string;
105
+ get value(): string;
106
+ get name(): string;
107
+ toJSON(): {
108
+ value: string;
109
+ name: string;
110
+ };
111
+ get [Symbol.toStringTag](): string;
112
+ }): void;
27
113
  toJSON(): {
28
114
  integrity: string;
29
115
  version: string;
@@ -32,8 +118,47 @@ declare const Package: {
32
118
  type: string;
33
119
  name: string;
34
120
  org: string;
35
- files: any[];
36
- meta: any[];
121
+ files: {
122
+ _mimeType: string;
123
+ _type: string;
124
+ _size: number;
125
+ _integrity: string;
126
+ _pathname: string;
127
+ _version: string;
128
+ _name: string;
129
+ _org: string;
130
+ get integrity(): string;
131
+ set integrity(value: string);
132
+ get pathname(): string;
133
+ get mimeType(): string;
134
+ get version(): string;
135
+ get asset(): string;
136
+ get name(): string;
137
+ get type(): string;
138
+ set type(value: string);
139
+ get size(): number;
140
+ set size(value: number);
141
+ get org(): string;
142
+ toJSON(): {
143
+ integrity: string;
144
+ pathname: string;
145
+ mimeType: string;
146
+ type: string;
147
+ size: number;
148
+ };
149
+ get [Symbol.toStringTag](): string;
150
+ }[];
151
+ meta: {
152
+ _value: string;
153
+ _name: string;
154
+ get value(): string;
155
+ get name(): string;
156
+ toJSON(): {
157
+ value: string;
158
+ name: string;
159
+ };
160
+ get [Symbol.toStringTag](): string;
161
+ }[];
37
162
  };
38
163
  get [Symbol.toStringTag](): string;
39
164
  };
@@ -1,7 +1,7 @@
1
1
  export default Versions;
2
2
  declare const Versions: {
3
3
  new ({ versions, type, name, org }?: {
4
- versions?: any[];
4
+ versions?: [any, any][];
5
5
  type?: string;
6
6
  name?: string;
7
7
  org?: string;
@@ -14,9 +14,19 @@ declare const Versions: {
14
14
  get type(): string;
15
15
  get name(): string;
16
16
  get org(): string;
17
- setVersion(version: any, integrity: any): void;
18
- getVersion(major: any): any;
19
- check(version: any): boolean;
17
+ /**
18
+ * @param {string} version
19
+ * @param {string} integrity
20
+ */
21
+ setVersion(version: string, integrity: string): void;
22
+ /**
23
+ * @param {number} major
24
+ */
25
+ getVersion(major: number): any;
26
+ /**
27
+ * @param {string} version
28
+ */
29
+ check(version: string): boolean;
20
30
  toJSON(): {
21
31
  versions: [any, any][];
22
32
  type: string;
@@ -1,11 +1,11 @@
1
1
  export default AliasDel;
2
2
  export type AliasDeleteOptions = {
3
- cacheControl?: string;
3
+ cacheControl?: string | undefined;
4
4
  /**
5
5
  * List of key-value pairs [hostname, organization]
6
6
  */
7
- organizations?: Array<[string, string]>;
8
- sink?: import("@eik/sink").default;
7
+ organizations?: [string, string][] | undefined;
8
+ sink?: import("@eik/sink").default | undefined;
9
9
  logger?: import("abslog").AbstractLoggerOptions;
10
10
  };
11
11
  /**
@@ -18,15 +18,22 @@ export type AliasDeleteOptions = {
18
18
  declare const AliasDel: {
19
19
  new ({ organizations, cacheControl, logger, sink }?: AliasDeleteOptions): {
20
20
  _organizations: [string, string][];
21
- _cacheControl: string;
22
- _sink: import("@eik/sink").default;
21
+ _cacheControl: string | undefined;
22
+ _sink: import("@eik/sink").default | undefined;
23
23
  _log: abslog.ValidLogger;
24
24
  _metrics: Metrics;
25
25
  _histogram: Metrics.MetricsHistogram;
26
26
  _orgRegistry: Map<string, string>;
27
27
  get metrics(): Metrics;
28
28
  _exist(path?: string): Promise<boolean>;
29
- handler(req: any, user: any, type: any, name: any, alias: any): Promise<any>;
29
+ /**
30
+ * @param {any} req
31
+ * @param {any} user
32
+ * @param {string} type
33
+ * @param {string} name
34
+ * @param {string} alias
35
+ */
36
+ handler(req: any, user: any, type: string, name: string, alias: string): Promise<any>;
30
37
  };
31
38
  };
32
39
  import abslog from "abslog";
@@ -1,12 +1,12 @@
1
1
  export default AliasGet;
2
2
  export type AliasGetOptions = {
3
- etag?: boolean;
4
- cacheControl?: string;
3
+ etag?: boolean | undefined;
4
+ cacheControl?: string | undefined;
5
5
  /**
6
6
  * List of key-value pairs [hostname, organization]
7
7
  */
8
- organizations?: Array<[string, string]>;
9
- sink?: import("@eik/sink").default;
8
+ organizations?: [string, string][] | undefined;
9
+ sink?: import("@eik/sink").default | undefined;
10
10
  logger?: import("abslog").AbstractLoggerOptions;
11
11
  };
12
12
  /**
@@ -21,19 +21,26 @@ declare const AliasGet: {
21
21
  new ({ organizations, cacheControl, logger, sink, etag }?: AliasGetOptions): {
22
22
  _organizations: [string, string][];
23
23
  _cacheControl: string;
24
- _sink: import("@eik/sink").default;
24
+ _sink: import("@eik/sink").default | undefined;
25
25
  _etag: boolean;
26
26
  _log: abslog.ValidLogger;
27
27
  _metrics: Metrics;
28
28
  _histogram: Metrics.MetricsHistogram;
29
29
  _orgRegistry: Map<string, string>;
30
30
  get metrics(): Metrics;
31
- handler(req: any, type: any, name: any, alias: any, extra: any): Promise<{
31
+ /**
32
+ * @param {any} req
33
+ * @param {string} type
34
+ * @param {string} name
35
+ * @param {string} alias
36
+ * @param {string} extra
37
+ */
38
+ handler(req: any, type: string, name: string, alias: string, extra: string): Promise<{
32
39
  _cacheControl: string;
33
40
  _statusCode: number;
34
41
  _mimeType: string;
35
42
  _location: string;
36
- _stream: any;
43
+ _stream: import("node:stream").Readable | undefined;
37
44
  _body: any;
38
45
  _etag: string;
39
46
  get cacheControl(): string;
@@ -44,8 +51,8 @@ declare const AliasGet: {
44
51
  set location(value: string);
45
52
  get mimeType(): string;
46
53
  set mimeType(value: string);
47
- get stream(): any;
48
- set stream(value: any);
54
+ get stream(): import("node:stream").Readable | undefined;
55
+ set stream(value: import("node:stream").Readable | undefined);
49
56
  get body(): any;
50
57
  set body(value: any);
51
58
  get etag(): string;
@@ -1,11 +1,11 @@
1
1
  export default AliasGet;
2
2
  export type AliasGetOptions = {
3
- cacheControl?: string;
3
+ cacheControl?: string | undefined;
4
4
  /**
5
5
  * List of key-value pairs [hostname, organization]
6
6
  */
7
- organizations?: Array<[string, string]>;
8
- sink?: import("@eik/sink").default;
7
+ organizations?: [string, string][] | undefined;
8
+ sink?: import("@eik/sink").default | undefined;
9
9
  logger?: import("abslog").AbstractLoggerOptions;
10
10
  };
11
11
  /**
@@ -19,18 +19,25 @@ declare const AliasGet: {
19
19
  new ({ organizations, cacheControl, logger, sink }?: AliasGetOptions): {
20
20
  _organizations: [string, string][];
21
21
  _cacheControl: string;
22
- _sink: import("@eik/sink").default;
22
+ _sink: import("@eik/sink").default | undefined;
23
23
  _log: abslog.ValidLogger;
24
24
  _metrics: Metrics;
25
25
  _histogram: Metrics.MetricsHistogram;
26
26
  _orgRegistry: Map<string, string>;
27
27
  get metrics(): Metrics;
28
- handler(req: any, type: any, name: any, alias: any, extra: any): Promise<{
28
+ /**
29
+ * @param {any} req
30
+ * @param {string} type
31
+ * @param {string} name
32
+ * @param {string} alias
33
+ * @param {string} extra
34
+ */
35
+ handler(req: any, type: string, name: string, alias: string, extra: string): Promise<{
29
36
  _cacheControl: string;
30
37
  _statusCode: number;
31
38
  _mimeType: string;
32
39
  _location: string;
33
- _stream: any;
40
+ _stream: import("node:stream").Readable | undefined;
34
41
  _body: any;
35
42
  _etag: string;
36
43
  get cacheControl(): string;
@@ -41,8 +48,8 @@ declare const AliasGet: {
41
48
  set location(value: string);
42
49
  get mimeType(): string;
43
50
  set mimeType(value: string);
44
- get stream(): any;
45
- set stream(value: any);
51
+ get stream(): import("node:stream").Readable | undefined;
52
+ set stream(value: import("node:stream").Readable | undefined);
46
53
  get body(): any;
47
54
  set body(value: any);
48
55
  get etag(): string;
@@ -1,11 +1,11 @@
1
1
  export default AliasPost;
2
2
  export type AliasPostOptions = {
3
- cacheControl?: string;
3
+ cacheControl?: string | undefined;
4
4
  /**
5
5
  * List of key-value pairs [hostname, organization]
6
6
  */
7
- organizations?: Array<[string, string]>;
8
- sink?: import("@eik/sink").default;
7
+ organizations?: [string, string][] | undefined;
8
+ sink?: import("@eik/sink").default | undefined;
9
9
  logger?: import("abslog").AbstractLoggerOptions;
10
10
  };
11
11
  /**
@@ -18,17 +18,17 @@ export type AliasPostOptions = {
18
18
  declare const AliasPost: {
19
19
  new ({ organizations, cacheControl, logger, sink }?: AliasPostOptions): {
20
20
  _organizations: [string, string][];
21
- _cacheControl: string;
22
- _sink: import("@eik/sink").default;
21
+ _cacheControl: string | undefined;
22
+ _sink: import("@eik/sink").default | undefined;
23
23
  _log: abslog.ValidLogger;
24
24
  _metrics: Metrics;
25
25
  _histogram: Metrics.MetricsHistogram;
26
26
  _orgRegistry: Map<string, string>;
27
27
  _multipart: {
28
- _pkgMaxFileSize: number;
28
+ _pkgMaxFileSize: number | undefined;
29
29
  _legalFields: string[];
30
30
  _legalFiles: string[];
31
- _sink: import("@eik/sink").default;
31
+ _sink: import("@eik/sink").default | undefined;
32
32
  _log: abslog.ValidLogger;
33
33
  parse(incoming: any): Promise<any>;
34
34
  _handleField({ name, value }: {
@@ -58,14 +58,27 @@ declare const AliasPost: {
58
58
  get [Symbol.toStringTag](): string;
59
59
  };
60
60
  get metrics(): Metrics;
61
+ /**
62
+ * @param {any} incoming
63
+ */
61
64
  _parser(incoming: any): Promise<any>;
65
+ /**
66
+ * @param {any} incoming
67
+ */
62
68
  _exist(incoming: any): Promise<boolean>;
63
- handler(req: any, user: any, type: any, name: any, alias: any): Promise<{
69
+ /**
70
+ * @param {any} req
71
+ * @param {any} user
72
+ * @param {string} type
73
+ * @param {string} name
74
+ * @param {string} alias
75
+ */
76
+ handler(req: any, user: any, type: string, name: string, alias: string): Promise<{
64
77
  _cacheControl: string;
65
78
  _statusCode: number;
66
79
  _mimeType: string;
67
80
  _location: string;
68
- _stream: any;
81
+ _stream: import("node:stream").Readable | undefined;
69
82
  _body: any;
70
83
  _etag: string;
71
84
  get cacheControl(): string;
@@ -76,8 +89,8 @@ declare const AliasPost: {
76
89
  set location(value: string);
77
90
  get mimeType(): string;
78
91
  set mimeType(value: string);
79
- get stream(): any;
80
- set stream(value: any);
92
+ get stream(): import("node:stream").Readable | undefined;
93
+ set stream(value: import("node:stream").Readable | undefined);
81
94
  get body(): any;
82
95
  set body(value: any);
83
96
  get etag(): string;