@nekro-nxt/contracts 0.0.0-stage → 0.2.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.
@@ -0,0 +1,583 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * NekroNXT 社区在本机的投影。Host 代理社区开放接口并把结果归一到这些结构;社区新增的字段在 Host 处丢弃,
4
+ * 不直接透传给页面。审查状态与社区 `ReviewStatus` 一致。
5
+ */
6
+ export declare const COMMUNITY_REVIEW_STATUSES: readonly ["pending", "reviewing", "passed", "passed_with_notes", "flagged", "held", "risk_confirmed", "rejected", "incomplete"];
7
+ export declare const CommunityReviewStatusSchema: z.ZodEnum<{
8
+ pending: "pending";
9
+ reviewing: "reviewing";
10
+ passed: "passed";
11
+ passed_with_notes: "passed_with_notes";
12
+ flagged: "flagged";
13
+ held: "held";
14
+ risk_confirmed: "risk_confirmed";
15
+ rejected: "rejected";
16
+ incomplete: "incomplete";
17
+ }>;
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";
24
+ }>;
25
+ export declare const CommunityReleaseIdSchema: z.ZodString;
26
+ export declare const CommunityAccountSchema: z.ZodObject<{
27
+ handle: z.ZodString;
28
+ displayName: z.ZodString;
29
+ avatarUrl: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$strict>;
31
+ export type CommunityAccount = z.output<typeof CommunityAccountSchema>;
32
+ export declare const CommunityEnvironmentSchema: z.ZodEnum<{
33
+ production: "production";
34
+ staging: "staging";
35
+ development: "development";
36
+ }>;
37
+ export type CommunityEnvironment = z.output<typeof CommunityEnvironmentSchema>;
38
+ export declare const CommunityStatusSchema: z.ZodObject<{
39
+ communityUrl: z.ZodString;
40
+ environment: z.ZodNullable<z.ZodEnum<{
41
+ production: "production";
42
+ staging: "staging";
43
+ development: "development";
44
+ }>>;
45
+ account: z.ZodNullable<z.ZodObject<{
46
+ handle: z.ZodString;
47
+ displayName: z.ZodString;
48
+ avatarUrl: z.ZodNullable<z.ZodString>;
49
+ }, z.core.$strict>>;
50
+ signedInAt: z.ZodNullable<z.ZodNumber>;
51
+ updatesAvailable: z.ZodNumber;
52
+ }, z.core.$strict>;
53
+ export type CommunityStatus = z.output<typeof CommunityStatusSchema>;
54
+ export declare const CommunityPermissionItemSchema: z.ZodObject<{
55
+ key: z.ZodString;
56
+ level: z.ZodEnum<{
57
+ normal: "normal";
58
+ elevated: "elevated";
59
+ high: "high";
60
+ }>;
61
+ label: z.ZodString;
62
+ detail: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strict>;
64
+ export type CommunityPermissionItem = z.output<typeof CommunityPermissionItemSchema>;
65
+ export declare const CommunityReleaseSchema: z.ZodObject<{
66
+ id: z.ZodString;
67
+ reviewStatus: z.ZodEnum<{
68
+ pending: "pending";
69
+ reviewing: "reviewing";
70
+ passed: "passed";
71
+ passed_with_notes: "passed_with_notes";
72
+ flagged: "flagged";
73
+ held: "held";
74
+ risk_confirmed: "risk_confirmed";
75
+ rejected: "rejected";
76
+ incomplete: "incomplete";
77
+ }>;
78
+ grade: z.ZodNullable<z.ZodEnum<{
79
+ A: "A";
80
+ B: "B";
81
+ C: "C";
82
+ D: "D";
83
+ }>>;
84
+ permissions: z.ZodArray<z.ZodObject<{
85
+ key: z.ZodString;
86
+ level: z.ZodEnum<{
87
+ normal: "normal";
88
+ elevated: "elevated";
89
+ high: "high";
90
+ }>;
91
+ label: z.ZodString;
92
+ detail: z.ZodOptional<z.ZodString>;
93
+ }, z.core.$strict>>;
94
+ packageSize: z.ZodNumber;
95
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
96
+ notes: z.ZodString;
97
+ createdAt: z.ZodNumber;
98
+ }, z.core.$strict>;
99
+ export type CommunityRelease = z.output<typeof CommunityReleaseSchema>;
100
+ /** 社区为官方扩展保留的发布者标识:官方扩展由多位官方成员维护,对外不显示个人账号。 */
101
+ export declare const COMMUNITY_OFFICIAL_HANDLE = "nekro-nxt";
102
+ /** 发布者的展示文字:官方扩展显示「NekroNXT 官方」,其余显示 @账号。 */
103
+ export declare const communityPublisherLabel: (handle: string) => string;
104
+ export declare const CommunityExtensionSummarySchema: z.ZodObject<{
105
+ id: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
106
+ scope: z.ZodEnum<{
107
+ agent: "agent";
108
+ "host-adapter": "host-adapter";
109
+ "host-ui": "host-ui";
110
+ }>;
111
+ displayName: z.ZodString;
112
+ summary: z.ZodString;
113
+ tags: z.ZodArray<z.ZodString>;
114
+ official: z.ZodBoolean;
115
+ publisher: z.ZodObject<{
116
+ handle: z.ZodString;
117
+ displayName: z.ZodString;
118
+ avatarUrl: z.ZodNullable<z.ZodString>;
119
+ }, z.core.$strict>;
120
+ latest: z.ZodNullable<z.ZodObject<{
121
+ id: z.ZodString;
122
+ reviewStatus: z.ZodEnum<{
123
+ pending: "pending";
124
+ reviewing: "reviewing";
125
+ passed: "passed";
126
+ passed_with_notes: "passed_with_notes";
127
+ flagged: "flagged";
128
+ held: "held";
129
+ risk_confirmed: "risk_confirmed";
130
+ rejected: "rejected";
131
+ incomplete: "incomplete";
132
+ }>;
133
+ grade: z.ZodNullable<z.ZodEnum<{
134
+ A: "A";
135
+ B: "B";
136
+ C: "C";
137
+ D: "D";
138
+ }>>;
139
+ permissions: z.ZodArray<z.ZodObject<{
140
+ key: z.ZodString;
141
+ level: z.ZodEnum<{
142
+ normal: "normal";
143
+ elevated: "elevated";
144
+ high: "high";
145
+ }>;
146
+ label: z.ZodString;
147
+ detail: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strict>>;
149
+ packageSize: z.ZodNumber;
150
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
151
+ notes: z.ZodString;
152
+ createdAt: z.ZodNumber;
153
+ }, z.core.$strict>>;
154
+ downloads: z.ZodNumber;
155
+ updatedAt: z.ZodNumber;
156
+ pageUrl: z.ZodString;
157
+ }, z.core.$strict>;
158
+ export type CommunityExtensionSummary = z.output<typeof CommunityExtensionSummarySchema>;
159
+ export declare const CommunityExtensionDetailSchema: z.ZodObject<{
160
+ id: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
161
+ scope: z.ZodEnum<{
162
+ agent: "agent";
163
+ "host-adapter": "host-adapter";
164
+ "host-ui": "host-ui";
165
+ }>;
166
+ displayName: z.ZodString;
167
+ summary: z.ZodString;
168
+ tags: z.ZodArray<z.ZodString>;
169
+ official: z.ZodBoolean;
170
+ publisher: z.ZodObject<{
171
+ handle: z.ZodString;
172
+ displayName: z.ZodString;
173
+ avatarUrl: z.ZodNullable<z.ZodString>;
174
+ }, z.core.$strict>;
175
+ latest: z.ZodNullable<z.ZodObject<{
176
+ id: z.ZodString;
177
+ reviewStatus: z.ZodEnum<{
178
+ pending: "pending";
179
+ reviewing: "reviewing";
180
+ passed: "passed";
181
+ passed_with_notes: "passed_with_notes";
182
+ flagged: "flagged";
183
+ held: "held";
184
+ risk_confirmed: "risk_confirmed";
185
+ rejected: "rejected";
186
+ incomplete: "incomplete";
187
+ }>;
188
+ grade: z.ZodNullable<z.ZodEnum<{
189
+ A: "A";
190
+ B: "B";
191
+ C: "C";
192
+ D: "D";
193
+ }>>;
194
+ permissions: z.ZodArray<z.ZodObject<{
195
+ key: z.ZodString;
196
+ level: z.ZodEnum<{
197
+ normal: "normal";
198
+ elevated: "elevated";
199
+ high: "high";
200
+ }>;
201
+ label: z.ZodString;
202
+ detail: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$strict>>;
204
+ packageSize: z.ZodNumber;
205
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
206
+ notes: z.ZodString;
207
+ createdAt: z.ZodNumber;
208
+ }, z.core.$strict>>;
209
+ downloads: z.ZodNumber;
210
+ updatedAt: z.ZodNumber;
211
+ pageUrl: z.ZodString;
212
+ description: z.ZodString;
213
+ sourceUrl: z.ZodNullable<z.ZodString>;
214
+ review: z.ZodNullable<z.ZodObject<{
215
+ status: z.ZodEnum<{
216
+ pending: "pending";
217
+ reviewing: "reviewing";
218
+ passed: "passed";
219
+ passed_with_notes: "passed_with_notes";
220
+ flagged: "flagged";
221
+ held: "held";
222
+ risk_confirmed: "risk_confirmed";
223
+ rejected: "rejected";
224
+ incomplete: "incomplete";
225
+ }>;
226
+ grade: z.ZodNullable<z.ZodEnum<{
227
+ A: "A";
228
+ B: "B";
229
+ C: "C";
230
+ D: "D";
231
+ }>>;
232
+ summary: z.ZodNullable<z.ZodString>;
233
+ highlights: z.ZodArray<z.ZodObject<{
234
+ severity: z.ZodString;
235
+ title: z.ZodString;
236
+ }, z.core.$strict>>;
237
+ }, z.core.$strict>>;
238
+ }, z.core.$strict>;
239
+ export type CommunityExtensionDetail = z.output<typeof CommunityExtensionDetailSchema>;
240
+ export declare const CommunityEndpointSchema: z.ZodObject<{
241
+ url: z.ZodString;
242
+ source: z.ZodEnum<{
243
+ default: "default";
244
+ environment: "environment";
245
+ setting: "setting";
246
+ }>;
247
+ defaultUrl: z.ZodString;
248
+ environmentUrl: z.ZodNullable<z.ZodString>;
249
+ insecure: z.ZodBoolean;
250
+ }, z.core.$strict>;
251
+ export type CommunityEndpoint = z.output<typeof CommunityEndpointSchema>;
252
+ export declare const CommunitySourceSchema: z.ZodObject<{
253
+ kind: z.ZodLiteral<"community">;
254
+ communityUrl: z.ZodString;
255
+ releaseId: z.ZodString;
256
+ publisherHandle: z.ZodString;
257
+ installedAt: z.ZodNumber;
258
+ }, z.core.$strict>;
259
+ export type CommunitySource = z.output<typeof CommunitySourceSchema>;
260
+ export declare const CommunityInstalledItemSchema: z.ZodObject<{
261
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
262
+ displayName: z.ZodString;
263
+ revisionId: z.ZodString;
264
+ source: z.ZodObject<{
265
+ kind: z.ZodLiteral<"community">;
266
+ communityUrl: z.ZodString;
267
+ releaseId: z.ZodString;
268
+ publisherHandle: z.ZodString;
269
+ installedAt: z.ZodNumber;
270
+ }, z.core.$strict>;
271
+ sameCommunity: z.ZodBoolean;
272
+ found: z.ZodBoolean;
273
+ delisted: z.ZodBoolean;
274
+ delistedReason: z.ZodNullable<z.ZodString>;
275
+ releaseWithdrawn: z.ZodBoolean;
276
+ latest: z.ZodNullable<z.ZodObject<{
277
+ id: z.ZodString;
278
+ reviewStatus: z.ZodEnum<{
279
+ pending: "pending";
280
+ reviewing: "reviewing";
281
+ passed: "passed";
282
+ passed_with_notes: "passed_with_notes";
283
+ flagged: "flagged";
284
+ held: "held";
285
+ risk_confirmed: "risk_confirmed";
286
+ rejected: "rejected";
287
+ incomplete: "incomplete";
288
+ }>;
289
+ grade: z.ZodNullable<z.ZodEnum<{
290
+ A: "A";
291
+ B: "B";
292
+ C: "C";
293
+ D: "D";
294
+ }>>;
295
+ permissions: z.ZodArray<z.ZodObject<{
296
+ key: z.ZodString;
297
+ level: z.ZodEnum<{
298
+ normal: "normal";
299
+ elevated: "elevated";
300
+ high: "high";
301
+ }>;
302
+ label: z.ZodString;
303
+ detail: z.ZodOptional<z.ZodString>;
304
+ }, z.core.$strict>>;
305
+ packageSize: z.ZodNumber;
306
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
307
+ notes: z.ZodString;
308
+ createdAt: z.ZodNumber;
309
+ }, z.core.$strict>>;
310
+ updateAvailable: z.ZodBoolean;
311
+ addedPermissions: z.ZodArray<z.ZodObject<{
312
+ key: z.ZodString;
313
+ level: z.ZodEnum<{
314
+ normal: "normal";
315
+ elevated: "elevated";
316
+ high: "high";
317
+ }>;
318
+ label: z.ZodString;
319
+ detail: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strict>>;
321
+ }, z.core.$strict>;
322
+ export type CommunityInstalledItem = z.output<typeof CommunityInstalledItemSchema>;
323
+ export declare const CommunityInstalledSchema: z.ZodObject<{
324
+ checkedAt: z.ZodNullable<z.ZodNumber>;
325
+ items: z.ZodArray<z.ZodObject<{
326
+ extensionId: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
327
+ displayName: z.ZodString;
328
+ revisionId: z.ZodString;
329
+ source: z.ZodObject<{
330
+ kind: z.ZodLiteral<"community">;
331
+ communityUrl: z.ZodString;
332
+ releaseId: z.ZodString;
333
+ publisherHandle: z.ZodString;
334
+ installedAt: z.ZodNumber;
335
+ }, z.core.$strict>;
336
+ sameCommunity: z.ZodBoolean;
337
+ found: z.ZodBoolean;
338
+ delisted: z.ZodBoolean;
339
+ delistedReason: z.ZodNullable<z.ZodString>;
340
+ releaseWithdrawn: z.ZodBoolean;
341
+ latest: z.ZodNullable<z.ZodObject<{
342
+ id: z.ZodString;
343
+ reviewStatus: z.ZodEnum<{
344
+ pending: "pending";
345
+ reviewing: "reviewing";
346
+ passed: "passed";
347
+ passed_with_notes: "passed_with_notes";
348
+ flagged: "flagged";
349
+ held: "held";
350
+ risk_confirmed: "risk_confirmed";
351
+ rejected: "rejected";
352
+ incomplete: "incomplete";
353
+ }>;
354
+ grade: z.ZodNullable<z.ZodEnum<{
355
+ A: "A";
356
+ B: "B";
357
+ C: "C";
358
+ D: "D";
359
+ }>>;
360
+ permissions: z.ZodArray<z.ZodObject<{
361
+ key: z.ZodString;
362
+ level: z.ZodEnum<{
363
+ normal: "normal";
364
+ elevated: "elevated";
365
+ high: "high";
366
+ }>;
367
+ label: z.ZodString;
368
+ detail: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$strict>>;
370
+ packageSize: z.ZodNumber;
371
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
372
+ notes: z.ZodString;
373
+ createdAt: z.ZodNumber;
374
+ }, z.core.$strict>>;
375
+ updateAvailable: z.ZodBoolean;
376
+ addedPermissions: z.ZodArray<z.ZodObject<{
377
+ key: z.ZodString;
378
+ level: z.ZodEnum<{
379
+ normal: "normal";
380
+ elevated: "elevated";
381
+ high: "high";
382
+ }>;
383
+ label: z.ZodString;
384
+ detail: z.ZodOptional<z.ZodString>;
385
+ }, z.core.$strict>>;
386
+ }, z.core.$strict>>;
387
+ }, z.core.$strict>;
388
+ export declare const CommunityMyExtensionSchema: z.ZodObject<{
389
+ id: z.core.$ZodBranded<z.ZodString, "ExtensionId", "out">;
390
+ scope: z.ZodEnum<{
391
+ agent: "agent";
392
+ "host-adapter": "host-adapter";
393
+ "host-ui": "host-ui";
394
+ }>;
395
+ displayName: z.ZodString;
396
+ summary: z.ZodString;
397
+ tags: z.ZodArray<z.ZodString>;
398
+ official: z.ZodBoolean;
399
+ publisher: z.ZodObject<{
400
+ handle: z.ZodString;
401
+ displayName: z.ZodString;
402
+ avatarUrl: z.ZodNullable<z.ZodString>;
403
+ }, z.core.$strict>;
404
+ latest: z.ZodNullable<z.ZodObject<{
405
+ id: z.ZodString;
406
+ reviewStatus: z.ZodEnum<{
407
+ pending: "pending";
408
+ reviewing: "reviewing";
409
+ passed: "passed";
410
+ passed_with_notes: "passed_with_notes";
411
+ flagged: "flagged";
412
+ held: "held";
413
+ risk_confirmed: "risk_confirmed";
414
+ rejected: "rejected";
415
+ incomplete: "incomplete";
416
+ }>;
417
+ grade: z.ZodNullable<z.ZodEnum<{
418
+ A: "A";
419
+ B: "B";
420
+ C: "C";
421
+ D: "D";
422
+ }>>;
423
+ permissions: z.ZodArray<z.ZodObject<{
424
+ key: z.ZodString;
425
+ level: z.ZodEnum<{
426
+ normal: "normal";
427
+ elevated: "elevated";
428
+ high: "high";
429
+ }>;
430
+ label: z.ZodString;
431
+ detail: z.ZodOptional<z.ZodString>;
432
+ }, z.core.$strict>>;
433
+ packageSize: z.ZodNumber;
434
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
435
+ notes: z.ZodString;
436
+ createdAt: z.ZodNumber;
437
+ }, z.core.$strict>>;
438
+ downloads: z.ZodNumber;
439
+ updatedAt: z.ZodNumber;
440
+ pageUrl: z.ZodString;
441
+ releases: z.ZodArray<z.ZodObject<{
442
+ id: z.ZodString;
443
+ reviewStatus: z.ZodEnum<{
444
+ pending: "pending";
445
+ reviewing: "reviewing";
446
+ passed: "passed";
447
+ passed_with_notes: "passed_with_notes";
448
+ flagged: "flagged";
449
+ held: "held";
450
+ risk_confirmed: "risk_confirmed";
451
+ rejected: "rejected";
452
+ incomplete: "incomplete";
453
+ }>;
454
+ grade: z.ZodNullable<z.ZodEnum<{
455
+ A: "A";
456
+ B: "B";
457
+ C: "C";
458
+ D: "D";
459
+ }>>;
460
+ permissions: z.ZodArray<z.ZodObject<{
461
+ key: z.ZodString;
462
+ level: z.ZodEnum<{
463
+ normal: "normal";
464
+ elevated: "elevated";
465
+ high: "high";
466
+ }>;
467
+ label: z.ZodString;
468
+ detail: z.ZodOptional<z.ZodString>;
469
+ }, z.core.$strict>>;
470
+ packageSize: z.ZodNumber;
471
+ requiresSdk: z.ZodNullable<z.ZodNumber>;
472
+ notes: z.ZodString;
473
+ createdAt: z.ZodNumber;
474
+ withdrawn: z.ZodBoolean;
475
+ }, z.core.$strict>>;
476
+ delisted: z.ZodBoolean;
477
+ delistedReason: z.ZodNullable<z.ZodString>;
478
+ }, z.core.$strict>;
479
+ export type CommunityMyExtension = z.output<typeof CommunityMyExtensionSchema>;
480
+ export declare const COMMUNITY_REVIEW_DIMENSIONS: readonly ["security", "transparency", "reliability", "context_cost", "usability", "maintainability", "compliance"];
481
+ export declare const COMMUNITY_REVIEW_DIMENSION_LABELS: Readonly<Record<(typeof COMMUNITY_REVIEW_DIMENSIONS)[number], string>>;
482
+ /** 作者看到的完整审查报告。 */
483
+ export declare const CommunityReviewReportSchema: z.ZodObject<{
484
+ releaseId: z.ZodString;
485
+ status: z.ZodEnum<{
486
+ pending: "pending";
487
+ reviewing: "reviewing";
488
+ passed: "passed";
489
+ passed_with_notes: "passed_with_notes";
490
+ flagged: "flagged";
491
+ held: "held";
492
+ risk_confirmed: "risk_confirmed";
493
+ rejected: "rejected";
494
+ incomplete: "incomplete";
495
+ }>;
496
+ grade: z.ZodNullable<z.ZodEnum<{
497
+ A: "A";
498
+ B: "B";
499
+ C: "C";
500
+ D: "D";
501
+ }>>;
502
+ deterministic: z.ZodArray<z.ZodObject<{
503
+ severity: z.ZodEnum<{
504
+ info: "info";
505
+ warning: "warning";
506
+ risk: "risk";
507
+ block: "block";
508
+ }>;
509
+ title: z.ZodString;
510
+ detail: z.ZodString;
511
+ file: z.ZodOptional<z.ZodString>;
512
+ line: z.ZodOptional<z.ZodNumber>;
513
+ }, z.core.$strict>>;
514
+ ai: z.ZodNullable<z.ZodObject<{
515
+ summary: z.ZodString;
516
+ verdict: z.ZodString;
517
+ grade: z.ZodEnum<{
518
+ A: "A";
519
+ B: "B";
520
+ C: "C";
521
+ D: "D";
522
+ }>;
523
+ dimensions: z.ZodArray<z.ZodObject<{
524
+ key: z.ZodEnum<{
525
+ security: "security";
526
+ transparency: "transparency";
527
+ reliability: "reliability";
528
+ context_cost: "context_cost";
529
+ usability: "usability";
530
+ maintainability: "maintainability";
531
+ compliance: "compliance";
532
+ }>;
533
+ grade: z.ZodEnum<{
534
+ A: "A";
535
+ B: "B";
536
+ C: "C";
537
+ D: "D";
538
+ }>;
539
+ notes: z.ZodString;
540
+ }, z.core.$strict>>;
541
+ findings: z.ZodArray<z.ZodObject<{
542
+ dimension: z.ZodEnum<{
543
+ security: "security";
544
+ transparency: "transparency";
545
+ reliability: "reliability";
546
+ context_cost: "context_cost";
547
+ usability: "usability";
548
+ maintainability: "maintainability";
549
+ compliance: "compliance";
550
+ }>;
551
+ severity: z.ZodEnum<{
552
+ info: "info";
553
+ warning: "warning";
554
+ risk: "risk";
555
+ suggestion: "suggestion";
556
+ critical: "critical";
557
+ }>;
558
+ title: z.ZodString;
559
+ detail: z.ZodString;
560
+ file: z.ZodOptional<z.ZodString>;
561
+ line: z.ZodOptional<z.ZodNumber>;
562
+ suggestion: z.ZodOptional<z.ZodString>;
563
+ }, z.core.$strict>>;
564
+ exploitability: z.ZodOptional<z.ZodString>;
565
+ }, z.core.$strict>>;
566
+ model: z.ZodNullable<z.ZodString>;
567
+ error: z.ZodNullable<z.ZodString>;
568
+ decisions: z.ZodArray<z.ZodObject<{
569
+ decision: z.ZodString;
570
+ note: z.ZodString;
571
+ by: z.ZodString;
572
+ createdAt: z.ZodNumber;
573
+ }, z.core.$strict>>;
574
+ finishedAt: z.ZodNullable<z.ZodNumber>;
575
+ reportUrl: z.ZodString;
576
+ }, z.core.$strict>;
577
+ export type CommunityReviewReport = z.output<typeof CommunityReviewReportSchema>;
578
+ /** 安装者看到的审查标签:只描述审查发现,不做「安全」担保。 */
579
+ export declare const communityReviewLabel: (status: CommunityReviewStatus) => {
580
+ readonly tone: "neutral" | "ok" | "accent" | "warn" | "bad";
581
+ readonly label: string;
582
+ };
583
+ //# sourceMappingURL=community.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../src/community.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB;;;GAGG;AACH,eAAO,MAAM,yBAAyB,iIAU5B,CAAA;AACV,eAAO,MAAM,2BAA2B;;;;;;;;;;EAAoC,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAEhF,eAAO,MAAM,oBAAoB;;;;;EAA+B,CAAA;AAEhE,eAAO,MAAM,wBAAwB,aAA0C,CAAA;AAE/E,eAAO,MAAM,sBAAsB;;;;kBAMxB,CAAA;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEtE,eAAO,MAAM,0BAA0B;;;;EAAmD,CAAA;AAC1F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE9E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;kBAUvB,CAAA;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA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