@nekro-nxt/contracts 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,28 +16,80 @@ export declare const CommunityReviewStatusSchema: z.ZodEnum<{
16
16
  incomplete: "incomplete";
17
17
  }>;
18
18
  export type CommunityReviewStatus = z.output<typeof CommunityReviewStatusSchema>;
19
- export declare const CommunityGradeSchema: z.ZodEnum<{
20
- A: "A";
21
- B: "B";
22
- C: "C";
23
- D: "D";
19
+ /** 社区评级的六个维度(审查标准 v1),从正上方顺时针排列成六边形。 */
20
+ export declare const COMMUNITY_RATING_DIMENSIONS: readonly ["security", "openness", "reliability", "lightweight", "usability", "craft"];
21
+ export type CommunityRatingDimension = (typeof COMMUNITY_RATING_DIMENSIONS)[number];
22
+ export declare const COMMUNITY_RATING_DIMENSION_LABELS: Readonly<Record<CommunityRatingDimension, string>>;
23
+ /** 社区的审查员,评级与审查记录以她署名。 */
24
+ export declare const COMMUNITY_REVIEWER_NAME = "\u5C0F\u6F84";
25
+ /** 社区判定的达成标签;不认识的标签不显示。扩展页面最多显示 {@link COMMUNITY_RATING_BADGE_LIMIT} 个。 */
26
+ export declare const COMMUNITY_RATING_BADGES: Readonly<Record<string, {
27
+ readonly label: string;
28
+ readonly description: string;
29
+ }>>;
30
+ export declare const COMMUNITY_RATING_BADGE_LIMIT = 4;
31
+ /** 一次发布的评级:六维星级、综合评分(各维度平均,保留一位小数)与达成标签。 */
32
+ export declare const CommunityRatingSchema: z.ZodObject<{
33
+ standard: z.ZodString;
34
+ score: z.ZodNumber;
35
+ dimensions: z.ZodArray<z.ZodObject<{
36
+ key: z.ZodString;
37
+ stars: z.ZodNumber;
38
+ headline: z.ZodString;
39
+ cap: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>>;
41
+ badges: z.ZodArray<z.ZodString>;
42
+ }, z.core.$strip>;
43
+ export type CommunityRating = z.output<typeof CommunityRatingSchema>;
44
+ /** 市场的排序方式。 */
45
+ export declare const COMMUNITY_EXTENSION_SORTS: readonly [{
46
+ readonly key: "updated";
47
+ readonly label: "最近更新";
48
+ }, {
49
+ readonly key: "score";
50
+ readonly label: "综合评分";
51
+ }, {
52
+ readonly key: "downloads";
53
+ readonly label: "下载最多";
54
+ }, {
55
+ readonly key: "newest";
56
+ readonly label: "最新上架";
57
+ }];
58
+ export type CommunityExtensionSort = (typeof COMMUNITY_EXTENSION_SORTS)[number]['key'];
59
+ export declare const CommunityExtensionSortSchema: z.ZodEnum<{
60
+ score: "score";
61
+ updated: "updated";
62
+ downloads: "downloads";
63
+ newest: "newest";
24
64
  }>;
25
65
  export declare const CommunityReleaseIdSchema: z.ZodString;
26
66
  export declare const CommunityAccountSchema: z.ZodObject<{
27
67
  handle: z.ZodString;
28
68
  displayName: z.ZodString;
29
69
  avatarUrl: z.ZodNullable<z.ZodString>;
30
- }, z.core.$strict>;
70
+ }, z.core.$strip>;
31
71
  export type CommunityAccount = z.output<typeof CommunityAccountSchema>;
72
+ export declare const CommunityEnvironmentSchema: z.ZodEnum<{
73
+ production: "production";
74
+ staging: "staging";
75
+ development: "development";
76
+ }>;
77
+ export type CommunityEnvironment = z.output<typeof CommunityEnvironmentSchema>;
32
78
  export declare const CommunityStatusSchema: z.ZodObject<{
33
79
  communityUrl: z.ZodString;
80
+ environment: z.ZodNullable<z.ZodEnum<{
81
+ production: "production";
82
+ staging: "staging";
83
+ development: "development";
84
+ }>>;
34
85
  account: z.ZodNullable<z.ZodObject<{
35
86
  handle: z.ZodString;
36
87
  displayName: z.ZodString;
37
88
  avatarUrl: z.ZodNullable<z.ZodString>;
38
- }, z.core.$strict>>;
89
+ }, z.core.$strip>>;
39
90
  signedInAt: z.ZodNullable<z.ZodNumber>;
40
- }, z.core.$strict>;
91
+ updatesAvailable: z.ZodNumber;
92
+ }, z.core.$strip>;
41
93
  export type CommunityStatus = z.output<typeof CommunityStatusSchema>;
42
94
  export declare const CommunityPermissionItemSchema: z.ZodObject<{
43
95
  key: z.ZodString;
@@ -48,7 +100,12 @@ export declare const CommunityPermissionItemSchema: z.ZodObject<{
48
100
  }>;
49
101
  label: z.ZodString;
50
102
  detail: z.ZodOptional<z.ZodString>;
51
- }, z.core.$strict>;
103
+ layer: z.ZodOptional<z.ZodEnum<{
104
+ host: "host";
105
+ agent: "agent";
106
+ }>>;
107
+ }, z.core.$strip>;
108
+ export type CommunityPermissionItem = z.output<typeof CommunityPermissionItemSchema>;
52
109
  export declare const CommunityReleaseSchema: z.ZodObject<{
53
110
  id: z.ZodString;
54
111
  reviewStatus: z.ZodEnum<{
@@ -62,12 +119,17 @@ export declare const CommunityReleaseSchema: z.ZodObject<{
62
119
  rejected: "rejected";
63
120
  incomplete: "incomplete";
64
121
  }>;
65
- grade: z.ZodNullable<z.ZodEnum<{
66
- A: "A";
67
- B: "B";
68
- C: "C";
69
- D: "D";
70
- }>>;
122
+ rating: z.ZodNullable<z.ZodObject<{
123
+ standard: z.ZodString;
124
+ score: z.ZodNumber;
125
+ dimensions: z.ZodArray<z.ZodObject<{
126
+ key: z.ZodString;
127
+ stars: z.ZodNumber;
128
+ headline: z.ZodString;
129
+ cap: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strip>>;
131
+ badges: z.ZodArray<z.ZodString>;
132
+ }, z.core.$strip>>;
71
133
  permissions: z.ZodArray<z.ZodObject<{
72
134
  key: z.ZodString;
73
135
  level: z.ZodEnum<{
@@ -77,28 +139,34 @@ export declare const CommunityReleaseSchema: z.ZodObject<{
77
139
  }>;
78
140
  label: z.ZodString;
79
141
  detail: z.ZodOptional<z.ZodString>;
80
- }, z.core.$strict>>;
142
+ layer: z.ZodOptional<z.ZodEnum<{
143
+ host: "host";
144
+ agent: "agent";
145
+ }>>;
146
+ }, z.core.$strip>>;
81
147
  packageSize: z.ZodNumber;
82
148
  requiresSdk: z.ZodNullable<z.ZodNumber>;
83
149
  notes: z.ZodString;
84
150
  createdAt: z.ZodNumber;
85
- }, z.core.$strict>;
151
+ }, z.core.$strip>;
86
152
  export type CommunityRelease = z.output<typeof CommunityReleaseSchema>;
153
+ /** 社区为官方扩展保留的发布者标识:官方扩展由多位官方成员维护,对外不显示个人账号。 */
154
+ export declare const COMMUNITY_OFFICIAL_HANDLE = "nekro-nxt";
155
+ /** 发布者的展示文字:官方扩展显示「NekroNXT 官方」,其余显示 @账号。 */
156
+ export declare const communityPublisherLabel: (handle: string) => string;
87
157
  export declare const CommunityExtensionSummarySchema: z.ZodObject<{
88
158
  id: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
89
- scope: z.ZodEnum<{
90
- agent: "agent";
91
- "host-adapter": "host-adapter";
92
- "host-ui": "host-ui";
93
- }>;
159
+ provides: z.ZodArray<z.ZodString>;
94
160
  displayName: z.ZodString;
95
161
  summary: z.ZodString;
96
162
  tags: z.ZodArray<z.ZodString>;
163
+ iconUrl: z.ZodNullable<z.ZodString>;
164
+ official: z.ZodBoolean;
97
165
  publisher: z.ZodObject<{
98
166
  handle: z.ZodString;
99
167
  displayName: z.ZodString;
100
168
  avatarUrl: z.ZodNullable<z.ZodString>;
101
- }, z.core.$strict>;
169
+ }, z.core.$strip>;
102
170
  latest: z.ZodNullable<z.ZodObject<{
103
171
  id: z.ZodString;
104
172
  reviewStatus: z.ZodEnum<{
@@ -112,12 +180,17 @@ export declare const CommunityExtensionSummarySchema: z.ZodObject<{
112
180
  rejected: "rejected";
113
181
  incomplete: "incomplete";
114
182
  }>;
115
- grade: z.ZodNullable<z.ZodEnum<{
116
- A: "A";
117
- B: "B";
118
- C: "C";
119
- D: "D";
120
- }>>;
183
+ rating: z.ZodNullable<z.ZodObject<{
184
+ standard: z.ZodString;
185
+ score: z.ZodNumber;
186
+ dimensions: z.ZodArray<z.ZodObject<{
187
+ key: z.ZodString;
188
+ stars: z.ZodNumber;
189
+ headline: z.ZodString;
190
+ cap: z.ZodOptional<z.ZodString>;
191
+ }, z.core.$strip>>;
192
+ badges: z.ZodArray<z.ZodString>;
193
+ }, z.core.$strip>>;
121
194
  permissions: z.ZodArray<z.ZodObject<{
122
195
  key: z.ZodString;
123
196
  level: z.ZodEnum<{
@@ -127,32 +200,34 @@ export declare const CommunityExtensionSummarySchema: z.ZodObject<{
127
200
  }>;
128
201
  label: z.ZodString;
129
202
  detail: z.ZodOptional<z.ZodString>;
130
- }, z.core.$strict>>;
203
+ layer: z.ZodOptional<z.ZodEnum<{
204
+ host: "host";
205
+ agent: "agent";
206
+ }>>;
207
+ }, z.core.$strip>>;
131
208
  packageSize: z.ZodNumber;
132
209
  requiresSdk: z.ZodNullable<z.ZodNumber>;
133
210
  notes: z.ZodString;
134
211
  createdAt: z.ZodNumber;
135
- }, z.core.$strict>>;
212
+ }, z.core.$strip>>;
136
213
  downloads: z.ZodNumber;
137
214
  updatedAt: z.ZodNumber;
138
215
  pageUrl: z.ZodString;
139
- }, z.core.$strict>;
216
+ }, z.core.$strip>;
140
217
  export type CommunityExtensionSummary = z.output<typeof CommunityExtensionSummarySchema>;
141
218
  export declare const CommunityExtensionDetailSchema: z.ZodObject<{
142
219
  id: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
143
- scope: z.ZodEnum<{
144
- agent: "agent";
145
- "host-adapter": "host-adapter";
146
- "host-ui": "host-ui";
147
- }>;
220
+ provides: z.ZodArray<z.ZodString>;
148
221
  displayName: z.ZodString;
149
222
  summary: z.ZodString;
150
223
  tags: z.ZodArray<z.ZodString>;
224
+ iconUrl: z.ZodNullable<z.ZodString>;
225
+ official: z.ZodBoolean;
151
226
  publisher: z.ZodObject<{
152
227
  handle: z.ZodString;
153
228
  displayName: z.ZodString;
154
229
  avatarUrl: z.ZodNullable<z.ZodString>;
155
- }, z.core.$strict>;
230
+ }, z.core.$strip>;
156
231
  latest: z.ZodNullable<z.ZodObject<{
157
232
  id: z.ZodString;
158
233
  reviewStatus: z.ZodEnum<{
@@ -166,12 +241,17 @@ export declare const CommunityExtensionDetailSchema: z.ZodObject<{
166
241
  rejected: "rejected";
167
242
  incomplete: "incomplete";
168
243
  }>;
169
- grade: z.ZodNullable<z.ZodEnum<{
170
- A: "A";
171
- B: "B";
172
- C: "C";
173
- D: "D";
174
- }>>;
244
+ rating: z.ZodNullable<z.ZodObject<{
245
+ standard: z.ZodString;
246
+ score: z.ZodNumber;
247
+ dimensions: z.ZodArray<z.ZodObject<{
248
+ key: z.ZodString;
249
+ stars: z.ZodNumber;
250
+ headline: z.ZodString;
251
+ cap: z.ZodOptional<z.ZodString>;
252
+ }, z.core.$strip>>;
253
+ badges: z.ZodArray<z.ZodString>;
254
+ }, z.core.$strip>>;
175
255
  permissions: z.ZodArray<z.ZodObject<{
176
256
  key: z.ZodString;
177
257
  level: z.ZodEnum<{
@@ -181,12 +261,16 @@ export declare const CommunityExtensionDetailSchema: z.ZodObject<{
181
261
  }>;
182
262
  label: z.ZodString;
183
263
  detail: z.ZodOptional<z.ZodString>;
184
- }, z.core.$strict>>;
264
+ layer: z.ZodOptional<z.ZodEnum<{
265
+ host: "host";
266
+ agent: "agent";
267
+ }>>;
268
+ }, z.core.$strip>>;
185
269
  packageSize: z.ZodNumber;
186
270
  requiresSdk: z.ZodNullable<z.ZodNumber>;
187
271
  notes: z.ZodString;
188
272
  createdAt: z.ZodNumber;
189
- }, z.core.$strict>>;
273
+ }, z.core.$strip>>;
190
274
  downloads: z.ZodNumber;
191
275
  updatedAt: z.ZodNumber;
192
276
  pageUrl: z.ZodString;
@@ -204,20 +288,414 @@ export declare const CommunityExtensionDetailSchema: z.ZodObject<{
204
288
  rejected: "rejected";
205
289
  incomplete: "incomplete";
206
290
  }>;
207
- grade: z.ZodNullable<z.ZodEnum<{
208
- A: "A";
209
- B: "B";
210
- C: "C";
211
- D: "D";
212
- }>>;
291
+ rating: z.ZodNullable<z.ZodObject<{
292
+ standard: z.ZodString;
293
+ score: z.ZodNumber;
294
+ dimensions: z.ZodArray<z.ZodObject<{
295
+ key: z.ZodString;
296
+ stars: z.ZodNumber;
297
+ headline: z.ZodString;
298
+ cap: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strip>>;
300
+ badges: z.ZodArray<z.ZodString>;
301
+ }, z.core.$strip>>;
213
302
  summary: z.ZodNullable<z.ZodString>;
214
- highlights: z.ZodArray<z.ZodObject<{
303
+ dimensions: z.ZodArray<z.ZodObject<{
304
+ key: z.ZodString;
305
+ notes: z.ZodString;
306
+ }, z.core.$strip>>;
307
+ findings: z.ZodArray<z.ZodObject<{
308
+ dimension: z.ZodString;
309
+ severity: z.ZodString;
310
+ title: z.ZodString;
311
+ }, z.core.$strip>>;
312
+ checks: z.ZodArray<z.ZodObject<{
215
313
  severity: z.ZodString;
216
314
  title: z.ZodString;
217
- }, z.core.$strict>>;
218
- }, z.core.$strict>>;
219
- }, z.core.$strict>;
315
+ }, z.core.$strip>>;
316
+ reviewedAt: z.ZodNullable<z.ZodNumber>;
317
+ }, z.core.$strip>>;
318
+ }, z.core.$strip>;
220
319
  export type CommunityExtensionDetail = z.output<typeof CommunityExtensionDetailSchema>;
320
+ /**
321
+ * 发布时随包提交的条目信息(作者自己写的介绍)。首次发布用于建条目;之后提供了哪项就覆盖哪项,未提供的保持不变。
322
+ */
323
+ export declare const COMMUNITY_LISTING_LIMITS: {
324
+ readonly summary: 160;
325
+ readonly description: 20000;
326
+ readonly tags: 8;
327
+ readonly tag: 40;
328
+ };
329
+ export declare const CommunityListingInputSchema: z.ZodObject<{
330
+ summary: z.ZodOptional<z.ZodString>;
331
+ description: z.ZodOptional<z.ZodString>;
332
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
333
+ sourceUrl: z.ZodOptional<z.ZodString>;
334
+ }, z.core.$strip>;
335
+ export type CommunityListingInput = z.output<typeof CommunityListingInputSchema>;
336
+ export declare const CommunityEndpointSchema: z.ZodObject<{
337
+ url: z.ZodString;
338
+ source: z.ZodEnum<{
339
+ default: "default";
340
+ environment: "environment";
341
+ setting: "setting";
342
+ }>;
343
+ defaultUrl: z.ZodString;
344
+ environmentUrl: z.ZodNullable<z.ZodString>;
345
+ insecure: z.ZodBoolean;
346
+ }, z.core.$strip>;
347
+ export type CommunityEndpoint = z.output<typeof CommunityEndpointSchema>;
348
+ export declare const CommunitySourceSchema: z.ZodObject<{
349
+ kind: z.ZodLiteral<"community">;
350
+ communityUrl: z.ZodString;
351
+ releaseId: z.ZodString;
352
+ publisherHandle: z.ZodString;
353
+ installedAt: z.ZodNumber;
354
+ }, z.core.$strip>;
355
+ export type CommunitySource = z.output<typeof CommunitySourceSchema>;
356
+ export declare const CommunityInstalledItemSchema: z.ZodObject<{
357
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
358
+ displayName: z.ZodString;
359
+ revisionId: z.ZodString;
360
+ source: z.ZodObject<{
361
+ kind: z.ZodLiteral<"community">;
362
+ communityUrl: z.ZodString;
363
+ releaseId: z.ZodString;
364
+ publisherHandle: z.ZodString;
365
+ installedAt: z.ZodNumber;
366
+ }, z.core.$strip>;
367
+ sameCommunity: z.ZodBoolean;
368
+ found: z.ZodBoolean;
369
+ delisted: z.ZodBoolean;
370
+ delistedReason: z.ZodNullable<z.ZodString>;
371
+ releaseWithdrawn: z.ZodBoolean;
372
+ latest: z.ZodNullable<z.ZodObject<{
373
+ id: z.ZodString;
374
+ reviewStatus: z.ZodEnum<{
375
+ pending: "pending";
376
+ reviewing: "reviewing";
377
+ passed: "passed";
378
+ passed_with_notes: "passed_with_notes";
379
+ flagged: "flagged";
380
+ held: "held";
381
+ risk_confirmed: "risk_confirmed";
382
+ rejected: "rejected";
383
+ incomplete: "incomplete";
384
+ }>;
385
+ rating: z.ZodNullable<z.ZodObject<{
386
+ standard: z.ZodString;
387
+ score: z.ZodNumber;
388
+ dimensions: z.ZodArray<z.ZodObject<{
389
+ key: z.ZodString;
390
+ stars: z.ZodNumber;
391
+ headline: z.ZodString;
392
+ cap: z.ZodOptional<z.ZodString>;
393
+ }, z.core.$strip>>;
394
+ badges: z.ZodArray<z.ZodString>;
395
+ }, z.core.$strip>>;
396
+ permissions: z.ZodArray<z.ZodObject<{
397
+ key: z.ZodString;
398
+ level: z.ZodEnum<{
399
+ normal: "normal";
400
+ elevated: "elevated";
401
+ high: "high";
402
+ }>;
403
+ label: z.ZodString;
404
+ detail: z.ZodOptional<z.ZodString>;
405
+ layer: z.ZodOptional<z.ZodEnum<{
406
+ host: "host";
407
+ agent: "agent";
408
+ }>>;
409
+ }, z.core.$strip>>;
410
+ packageSize: z.ZodNumber;
411
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
412
+ notes: z.ZodString;
413
+ createdAt: z.ZodNumber;
414
+ }, z.core.$strip>>;
415
+ updateAvailable: z.ZodBoolean;
416
+ addedPermissions: z.ZodArray<z.ZodObject<{
417
+ key: z.ZodString;
418
+ level: z.ZodEnum<{
419
+ normal: "normal";
420
+ elevated: "elevated";
421
+ high: "high";
422
+ }>;
423
+ label: z.ZodString;
424
+ detail: z.ZodOptional<z.ZodString>;
425
+ layer: z.ZodOptional<z.ZodEnum<{
426
+ host: "host";
427
+ agent: "agent";
428
+ }>>;
429
+ }, z.core.$strip>>;
430
+ }, z.core.$strip>;
431
+ export type CommunityInstalledItem = z.output<typeof CommunityInstalledItemSchema>;
432
+ export declare const CommunityInstalledSchema: z.ZodObject<{
433
+ checkedAt: z.ZodNullable<z.ZodNumber>;
434
+ items: z.ZodArray<z.ZodObject<{
435
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
436
+ displayName: z.ZodString;
437
+ revisionId: z.ZodString;
438
+ source: z.ZodObject<{
439
+ kind: z.ZodLiteral<"community">;
440
+ communityUrl: z.ZodString;
441
+ releaseId: z.ZodString;
442
+ publisherHandle: z.ZodString;
443
+ installedAt: z.ZodNumber;
444
+ }, z.core.$strip>;
445
+ sameCommunity: z.ZodBoolean;
446
+ found: z.ZodBoolean;
447
+ delisted: z.ZodBoolean;
448
+ delistedReason: z.ZodNullable<z.ZodString>;
449
+ releaseWithdrawn: z.ZodBoolean;
450
+ latest: z.ZodNullable<z.ZodObject<{
451
+ id: z.ZodString;
452
+ reviewStatus: z.ZodEnum<{
453
+ pending: "pending";
454
+ reviewing: "reviewing";
455
+ passed: "passed";
456
+ passed_with_notes: "passed_with_notes";
457
+ flagged: "flagged";
458
+ held: "held";
459
+ risk_confirmed: "risk_confirmed";
460
+ rejected: "rejected";
461
+ incomplete: "incomplete";
462
+ }>;
463
+ rating: z.ZodNullable<z.ZodObject<{
464
+ standard: z.ZodString;
465
+ score: z.ZodNumber;
466
+ dimensions: z.ZodArray<z.ZodObject<{
467
+ key: z.ZodString;
468
+ stars: z.ZodNumber;
469
+ headline: z.ZodString;
470
+ cap: z.ZodOptional<z.ZodString>;
471
+ }, z.core.$strip>>;
472
+ badges: z.ZodArray<z.ZodString>;
473
+ }, z.core.$strip>>;
474
+ permissions: z.ZodArray<z.ZodObject<{
475
+ key: z.ZodString;
476
+ level: z.ZodEnum<{
477
+ normal: "normal";
478
+ elevated: "elevated";
479
+ high: "high";
480
+ }>;
481
+ label: z.ZodString;
482
+ detail: z.ZodOptional<z.ZodString>;
483
+ layer: z.ZodOptional<z.ZodEnum<{
484
+ host: "host";
485
+ agent: "agent";
486
+ }>>;
487
+ }, z.core.$strip>>;
488
+ packageSize: z.ZodNumber;
489
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
490
+ notes: z.ZodString;
491
+ createdAt: z.ZodNumber;
492
+ }, z.core.$strip>>;
493
+ updateAvailable: z.ZodBoolean;
494
+ addedPermissions: z.ZodArray<z.ZodObject<{
495
+ key: z.ZodString;
496
+ level: z.ZodEnum<{
497
+ normal: "normal";
498
+ elevated: "elevated";
499
+ high: "high";
500
+ }>;
501
+ label: z.ZodString;
502
+ detail: z.ZodOptional<z.ZodString>;
503
+ layer: z.ZodOptional<z.ZodEnum<{
504
+ host: "host";
505
+ agent: "agent";
506
+ }>>;
507
+ }, z.core.$strip>>;
508
+ }, z.core.$strip>>;
509
+ }, z.core.$strip>;
510
+ export declare const CommunityMyExtensionSchema: z.ZodObject<{
511
+ id: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
512
+ provides: z.ZodArray<z.ZodString>;
513
+ displayName: z.ZodString;
514
+ summary: z.ZodString;
515
+ tags: z.ZodArray<z.ZodString>;
516
+ iconUrl: z.ZodNullable<z.ZodString>;
517
+ official: z.ZodBoolean;
518
+ publisher: z.ZodObject<{
519
+ handle: z.ZodString;
520
+ displayName: z.ZodString;
521
+ avatarUrl: z.ZodNullable<z.ZodString>;
522
+ }, z.core.$strip>;
523
+ latest: z.ZodNullable<z.ZodObject<{
524
+ id: z.ZodString;
525
+ reviewStatus: z.ZodEnum<{
526
+ pending: "pending";
527
+ reviewing: "reviewing";
528
+ passed: "passed";
529
+ passed_with_notes: "passed_with_notes";
530
+ flagged: "flagged";
531
+ held: "held";
532
+ risk_confirmed: "risk_confirmed";
533
+ rejected: "rejected";
534
+ incomplete: "incomplete";
535
+ }>;
536
+ rating: z.ZodNullable<z.ZodObject<{
537
+ standard: z.ZodString;
538
+ score: z.ZodNumber;
539
+ dimensions: z.ZodArray<z.ZodObject<{
540
+ key: z.ZodString;
541
+ stars: z.ZodNumber;
542
+ headline: z.ZodString;
543
+ cap: z.ZodOptional<z.ZodString>;
544
+ }, z.core.$strip>>;
545
+ badges: z.ZodArray<z.ZodString>;
546
+ }, z.core.$strip>>;
547
+ permissions: z.ZodArray<z.ZodObject<{
548
+ key: z.ZodString;
549
+ level: z.ZodEnum<{
550
+ normal: "normal";
551
+ elevated: "elevated";
552
+ high: "high";
553
+ }>;
554
+ label: z.ZodString;
555
+ detail: z.ZodOptional<z.ZodString>;
556
+ layer: z.ZodOptional<z.ZodEnum<{
557
+ host: "host";
558
+ agent: "agent";
559
+ }>>;
560
+ }, z.core.$strip>>;
561
+ packageSize: z.ZodNumber;
562
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
563
+ notes: z.ZodString;
564
+ createdAt: z.ZodNumber;
565
+ }, z.core.$strip>>;
566
+ downloads: z.ZodNumber;
567
+ updatedAt: z.ZodNumber;
568
+ pageUrl: z.ZodString;
569
+ releases: z.ZodArray<z.ZodObject<{
570
+ id: z.ZodString;
571
+ reviewStatus: z.ZodEnum<{
572
+ pending: "pending";
573
+ reviewing: "reviewing";
574
+ passed: "passed";
575
+ passed_with_notes: "passed_with_notes";
576
+ flagged: "flagged";
577
+ held: "held";
578
+ risk_confirmed: "risk_confirmed";
579
+ rejected: "rejected";
580
+ incomplete: "incomplete";
581
+ }>;
582
+ rating: z.ZodNullable<z.ZodObject<{
583
+ standard: z.ZodString;
584
+ score: z.ZodNumber;
585
+ dimensions: z.ZodArray<z.ZodObject<{
586
+ key: z.ZodString;
587
+ stars: z.ZodNumber;
588
+ headline: z.ZodString;
589
+ cap: z.ZodOptional<z.ZodString>;
590
+ }, z.core.$strip>>;
591
+ badges: z.ZodArray<z.ZodString>;
592
+ }, z.core.$strip>>;
593
+ permissions: z.ZodArray<z.ZodObject<{
594
+ key: z.ZodString;
595
+ level: z.ZodEnum<{
596
+ normal: "normal";
597
+ elevated: "elevated";
598
+ high: "high";
599
+ }>;
600
+ label: z.ZodString;
601
+ detail: z.ZodOptional<z.ZodString>;
602
+ layer: z.ZodOptional<z.ZodEnum<{
603
+ host: "host";
604
+ agent: "agent";
605
+ }>>;
606
+ }, z.core.$strip>>;
607
+ packageSize: z.ZodNumber;
608
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
609
+ notes: z.ZodString;
610
+ createdAt: z.ZodNumber;
611
+ withdrawn: z.ZodBoolean;
612
+ }, z.core.$strip>>;
613
+ delisted: z.ZodBoolean;
614
+ delistedReason: z.ZodNullable<z.ZodString>;
615
+ }, z.core.$strip>;
616
+ export type CommunityMyExtension = z.output<typeof CommunityMyExtensionSchema>;
617
+ /** 审查发现可归属的维度:六个评级维度加合规。 */
618
+ export declare const COMMUNITY_REVIEW_DIMENSION_LABELS: Readonly<Record<string, string>>;
619
+ /** 作者看到的完整审查报告。 */
620
+ export declare const CommunityReviewReportSchema: z.ZodObject<{
621
+ releaseId: z.ZodString;
622
+ status: z.ZodEnum<{
623
+ pending: "pending";
624
+ reviewing: "reviewing";
625
+ passed: "passed";
626
+ passed_with_notes: "passed_with_notes";
627
+ flagged: "flagged";
628
+ held: "held";
629
+ risk_confirmed: "risk_confirmed";
630
+ rejected: "rejected";
631
+ incomplete: "incomplete";
632
+ }>;
633
+ rating: z.ZodNullable<z.ZodObject<{
634
+ standard: z.ZodString;
635
+ score: z.ZodNumber;
636
+ dimensions: z.ZodArray<z.ZodObject<{
637
+ key: z.ZodString;
638
+ stars: z.ZodNumber;
639
+ headline: z.ZodString;
640
+ cap: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strip>>;
642
+ badges: z.ZodArray<z.ZodString>;
643
+ }, z.core.$strip>>;
644
+ deterministic: z.ZodArray<z.ZodObject<{
645
+ severity: z.ZodEnum<{
646
+ info: "info";
647
+ warning: "warning";
648
+ risk: "risk";
649
+ block: "block";
650
+ }>;
651
+ title: z.ZodString;
652
+ detail: z.ZodString;
653
+ file: z.ZodOptional<z.ZodString>;
654
+ line: z.ZodOptional<z.ZodNumber>;
655
+ }, z.core.$strip>>;
656
+ ai: z.ZodNullable<z.ZodObject<{
657
+ summary: z.ZodString;
658
+ verdict: z.ZodString;
659
+ compliance: z.ZodNullable<z.ZodObject<{
660
+ ok: z.ZodBoolean;
661
+ notes: z.ZodString;
662
+ }, z.core.$strip>>;
663
+ dimensions: z.ZodArray<z.ZodObject<{
664
+ key: z.ZodString;
665
+ stars: z.ZodNumber;
666
+ headline: z.ZodString;
667
+ notes: z.ZodString;
668
+ nextStar: z.ZodOptional<z.ZodString>;
669
+ }, z.core.$strip>>;
670
+ findings: z.ZodArray<z.ZodObject<{
671
+ dimension: z.ZodString;
672
+ severity: z.ZodEnum<{
673
+ info: "info";
674
+ warning: "warning";
675
+ risk: "risk";
676
+ suggestion: "suggestion";
677
+ critical: "critical";
678
+ }>;
679
+ title: z.ZodString;
680
+ detail: z.ZodString;
681
+ file: z.ZodOptional<z.ZodString>;
682
+ line: z.ZodOptional<z.ZodNumber>;
683
+ suggestion: z.ZodOptional<z.ZodString>;
684
+ }, z.core.$strip>>;
685
+ exploitability: z.ZodOptional<z.ZodString>;
686
+ }, z.core.$strip>>;
687
+ model: z.ZodNullable<z.ZodString>;
688
+ error: z.ZodNullable<z.ZodString>;
689
+ decisions: z.ZodArray<z.ZodObject<{
690
+ decision: z.ZodString;
691
+ note: z.ZodString;
692
+ by: z.ZodString;
693
+ createdAt: z.ZodNumber;
694
+ }, z.core.$strip>>;
695
+ finishedAt: z.ZodNullable<z.ZodNumber>;
696
+ reportUrl: z.ZodString;
697
+ }, z.core.$strip>;
698
+ export type CommunityReviewReport = z.output<typeof CommunityReviewReportSchema>;
221
699
  /** 安装者看到的审查标签:只描述审查发现,不做「安全」担保。 */
222
700
  export declare const communityReviewLabel: (status: CommunityReviewStatus) => {
223
701
  readonly tone: "neutral" | "ok" | "accent" | "warn" | "bad";