@verdaccio/types 14.0.0-next-9.12 → 14.0.0-next-9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/types",
3
- "version": "14.0.0-next-9.12",
3
+ "version": "14.0.0-next-9.14",
4
4
  "description": "Verdaccio Type Definitions",
5
5
  "keywords": [
6
6
  "private",
@@ -48,6 +48,14 @@ export interface PackageAccessYaml {
48
48
  proxy?: string;
49
49
  access?: string;
50
50
  unpublish?: string;
51
+ /**
52
+ * Who may submit a version for review with `npm stage publish`.
53
+ *
54
+ * Falls back to `publish` when omitted, which keeps the historical behaviour.
55
+ * Setting it to a narrower group than `publish` is what separates proposing a
56
+ * release from making one.
57
+ */
58
+ stage?: string;
51
59
  }
52
60
 
53
61
  export interface Headers {
@@ -103,6 +111,23 @@ export type FlagsConfig = {
103
111
  */
104
112
  createUser?: boolean;
105
113
 
114
+ /**
115
+ * Enables the staged publish workflow (`npm stage`).
116
+ *
117
+ * Adds the `/-/stage` endpoints, which let a version be uploaded for review
118
+ * and only become installable once a maintainer approves it.
119
+ *
120
+ * @default false
121
+ */
122
+ stage?: boolean;
123
+
124
+ /**
125
+ * Enables two-factor authentication (TOTP).
126
+ *
127
+ * @default false
128
+ */
129
+ tfa?: boolean;
130
+
106
131
  /**
107
132
  * Enables web-based login flow.
108
133
  *
package/src/manifest.ts CHANGED
@@ -4,6 +4,7 @@ export interface PackageAccess {
4
4
  proxy?: string[];
5
5
  access?: string[];
6
6
  unpublish?: string[] | boolean; // false means fallback to publish access
7
+ stage?: string[] | boolean; // false means fallback to publish access
7
8
  }
8
9
 
9
10
  export interface PackageList {
@@ -298,7 +299,15 @@ export interface PublishManifest {
298
299
  */
299
300
  publisher?: Publisher;
300
301
  publishedPackage?: string;
301
- publishType?: 'publish' | 'unpublish';
302
+ /**
303
+ * Which event triggered the notification.
304
+ *
305
+ * - `publish` / `unpublish`: a version became installable, or stopped being so.
306
+ * Approving a staged version reports `publish`, because that is what it does.
307
+ * - `stage` / `unstage`: a version was submitted for review, or that submission
308
+ * was discarded. Neither changes what is installable.
309
+ */
310
+ publishType?: 'publish' | 'unpublish' | 'stage' | 'unstage';
302
311
  }
303
312
 
304
313
  /**
package/src/search.ts CHANGED
@@ -5,14 +5,15 @@ export type PublisherMaintainer = {
5
5
 
6
6
  export type SearchPackageBody = {
7
7
  name: string;
8
- scope: string;
8
+ scope?: string;
9
9
  description: string;
10
10
  author: string | PublisherMaintainer;
11
11
  version: string;
12
+ license?: string;
12
13
  keywords: string | string[] | undefined;
13
14
  date: string;
14
15
  links?: {
15
- npm: string; // only include placeholder for URL eg: {url}/{packageName}
16
+ npm?: string;
16
17
  homepage?: string;
17
18
  repository?: string;
18
19
  bugs?: string;