@bsb/registry 1.0.1

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 (54) hide show
  1. package/README.md +133 -0
  2. package/bsb-plugin.json +47 -0
  3. package/lib/.bsb/clients/service-bsb-registry.d.ts +1118 -0
  4. package/lib/.bsb/clients/service-bsb-registry.d.ts.map +1 -0
  5. package/lib/.bsb/clients/service-bsb-registry.js +393 -0
  6. package/lib/.bsb/clients/service-bsb-registry.js.map +1 -0
  7. package/lib/plugins/service-bsb-registry/auth.d.ts +87 -0
  8. package/lib/plugins/service-bsb-registry/auth.d.ts.map +1 -0
  9. package/lib/plugins/service-bsb-registry/auth.js +197 -0
  10. package/lib/plugins/service-bsb-registry/auth.js.map +1 -0
  11. package/lib/plugins/service-bsb-registry/db/file.d.ts +73 -0
  12. package/lib/plugins/service-bsb-registry/db/file.d.ts.map +1 -0
  13. package/lib/plugins/service-bsb-registry/db/file.js +588 -0
  14. package/lib/plugins/service-bsb-registry/db/file.js.map +1 -0
  15. package/lib/plugins/service-bsb-registry/db/index.d.ts +75 -0
  16. package/lib/plugins/service-bsb-registry/db/index.d.ts.map +1 -0
  17. package/lib/plugins/service-bsb-registry/db/index.js +24 -0
  18. package/lib/plugins/service-bsb-registry/db/index.js.map +1 -0
  19. package/lib/plugins/service-bsb-registry/index.d.ts +1228 -0
  20. package/lib/plugins/service-bsb-registry/index.d.ts.map +1 -0
  21. package/lib/plugins/service-bsb-registry/index.js +661 -0
  22. package/lib/plugins/service-bsb-registry/index.js.map +1 -0
  23. package/lib/plugins/service-bsb-registry/types.d.ts +559 -0
  24. package/lib/plugins/service-bsb-registry/types.d.ts.map +1 -0
  25. package/lib/plugins/service-bsb-registry/types.js +235 -0
  26. package/lib/plugins/service-bsb-registry/types.js.map +1 -0
  27. package/lib/plugins/service-bsb-registry-ui/http-server.d.ts +138 -0
  28. package/lib/plugins/service-bsb-registry-ui/http-server.d.ts.map +1 -0
  29. package/lib/plugins/service-bsb-registry-ui/http-server.js +1660 -0
  30. package/lib/plugins/service-bsb-registry-ui/http-server.js.map +1 -0
  31. package/lib/plugins/service-bsb-registry-ui/index.d.ts +62 -0
  32. package/lib/plugins/service-bsb-registry-ui/index.d.ts.map +1 -0
  33. package/lib/plugins/service-bsb-registry-ui/index.js +101 -0
  34. package/lib/plugins/service-bsb-registry-ui/index.js.map +1 -0
  35. package/lib/plugins/service-bsb-registry-ui/static/assets/images/apple-touch-icon.png +0 -0
  36. package/lib/plugins/service-bsb-registry-ui/static/assets/images/favicon-16x16.png +0 -0
  37. package/lib/plugins/service-bsb-registry-ui/static/assets/images/favicon-32x32.png +0 -0
  38. package/lib/plugins/service-bsb-registry-ui/static/assets/images/favicon.ico +0 -0
  39. package/lib/plugins/service-bsb-registry-ui/static/css/style.css +1849 -0
  40. package/lib/plugins/service-bsb-registry-ui/static/js/app.js +336 -0
  41. package/lib/plugins/service-bsb-registry-ui/templates/layouts/main.hbs +39 -0
  42. package/lib/plugins/service-bsb-registry-ui/templates/pages/error.hbs +13 -0
  43. package/lib/plugins/service-bsb-registry-ui/templates/pages/home.hbs +62 -0
  44. package/lib/plugins/service-bsb-registry-ui/templates/pages/not-found.hbs +13 -0
  45. package/lib/plugins/service-bsb-registry-ui/templates/pages/plugin-detail.hbs +537 -0
  46. package/lib/plugins/service-bsb-registry-ui/templates/pages/plugins.hbs +40 -0
  47. package/lib/plugins/service-bsb-registry-ui/templates/partials/pagination.hbs +41 -0
  48. package/lib/plugins/service-bsb-registry-ui/templates/partials/plugin-card.hbs +40 -0
  49. package/lib/plugins/service-bsb-registry-ui/templates/partials/search-form.hbs +31 -0
  50. package/lib/schemas/service-bsb-registry-ui.json +57 -0
  51. package/lib/schemas/service-bsb-registry-ui.plugin.json +73 -0
  52. package/lib/schemas/service-bsb-registry.json +1883 -0
  53. package/lib/schemas/service-bsb-registry.plugin.json +68 -0
  54. package/package.json +60 -0
@@ -0,0 +1,1118 @@
1
+ /**
2
+ * Auto-generated BSB virtual client for BSB Registry Core
3
+ * DO NOT EDIT - Regenerated on every build
4
+ * @version 1.0.0
5
+ */
6
+ import { ServiceClient, BSBService } from "@bsb/base";
7
+ import type { Observable, BSBServiceClientDefinition, EventInputType, EventOutputType } from "@bsb/base";
8
+ declare const _registryPluginPublishSchema: {
9
+ _bsb: "object";
10
+ properties: {
11
+ readonly org: import("@bsb/base").BSBStringType;
12
+ readonly name: import("@bsb/base").BSBStringType;
13
+ readonly version: import("@bsb/base").BSBStringType;
14
+ readonly language: import("@bsb/base").BSBEnumType;
15
+ readonly metadata: {
16
+ _bsb: "object";
17
+ properties: {
18
+ readonly displayName: import("@bsb/base").BSBStringType;
19
+ readonly description: import("@bsb/base").BSBStringType;
20
+ readonly category: import("@bsb/base").BSBEnumType;
21
+ readonly tags: import("@bsb/base").BSBArrayType;
22
+ readonly author: import("@bsb/base").BSBUnionType & {
23
+ optional: true;
24
+ };
25
+ readonly license: import("@bsb/base").BSBStringType & {
26
+ optional: true;
27
+ };
28
+ readonly homepage: import("@bsb/base").BSBStringType & {
29
+ optional: true;
30
+ };
31
+ readonly repository: import("@bsb/base").BSBStringType & {
32
+ optional: true;
33
+ };
34
+ };
35
+ required: string[];
36
+ description?: string;
37
+ optional?: boolean;
38
+ nullable?: boolean;
39
+ };
40
+ readonly eventSchema: import("@bsb/base").BSBType;
41
+ readonly capabilities: import("@bsb/base").BSBType & {
42
+ optional: true;
43
+ };
44
+ readonly configSchema: import("@bsb/base").BSBType & {
45
+ optional: true;
46
+ };
47
+ readonly typeDefinitions: {
48
+ _bsb: "object";
49
+ properties: {
50
+ readonly nodejs: import("@bsb/base").BSBStringType & {
51
+ optional: true;
52
+ };
53
+ readonly csharp: import("@bsb/base").BSBStringType & {
54
+ optional: true;
55
+ };
56
+ readonly go: import("@bsb/base").BSBStringType & {
57
+ optional: true;
58
+ };
59
+ readonly java: import("@bsb/base").BSBStringType & {
60
+ optional: true;
61
+ };
62
+ };
63
+ required: string[];
64
+ description?: string;
65
+ optional?: boolean;
66
+ nullable?: boolean;
67
+ } & {
68
+ optional: true;
69
+ };
70
+ readonly documentation: import("@bsb/base").BSBArrayType;
71
+ readonly dependencies: import("@bsb/base").BSBArrayType & {
72
+ optional: true;
73
+ };
74
+ readonly package: {
75
+ _bsb: "object";
76
+ properties: {
77
+ readonly nodejs: import("@bsb/base").BSBStringType & {
78
+ optional: true;
79
+ };
80
+ readonly csharp: import("@bsb/base").BSBStringType & {
81
+ optional: true;
82
+ };
83
+ readonly go: import("@bsb/base").BSBStringType & {
84
+ optional: true;
85
+ };
86
+ readonly java: import("@bsb/base").BSBStringType & {
87
+ optional: true;
88
+ };
89
+ readonly python: import("@bsb/base").BSBStringType & {
90
+ optional: true;
91
+ };
92
+ };
93
+ required: string[];
94
+ description?: string;
95
+ optional?: boolean;
96
+ nullable?: boolean;
97
+ } & {
98
+ optional: true;
99
+ };
100
+ readonly runtime: {
101
+ _bsb: "object";
102
+ properties: {
103
+ readonly nodejs: import("@bsb/base").BSBStringType & {
104
+ optional: true;
105
+ };
106
+ readonly dotnet: import("@bsb/base").BSBStringType & {
107
+ optional: true;
108
+ };
109
+ readonly go: import("@bsb/base").BSBStringType & {
110
+ optional: true;
111
+ };
112
+ readonly java: import("@bsb/base").BSBStringType & {
113
+ optional: true;
114
+ };
115
+ readonly python: import("@bsb/base").BSBStringType & {
116
+ optional: true;
117
+ };
118
+ };
119
+ required: string[];
120
+ description?: string;
121
+ optional?: boolean;
122
+ nullable?: boolean;
123
+ } & {
124
+ optional: true;
125
+ };
126
+ readonly visibility: import("@bsb/base").BSBEnumType & {
127
+ optional: true;
128
+ };
129
+ readonly publishedBy: import("@bsb/base").BSBStringType & {
130
+ optional: true;
131
+ };
132
+ };
133
+ required: string[];
134
+ description?: string;
135
+ optional?: boolean;
136
+ nullable?: boolean;
137
+ };
138
+ declare const _registryPluginPublishOutputSchema: {
139
+ _bsb: "object";
140
+ properties: {
141
+ readonly success: import("@bsb/base").BSBBooleanType;
142
+ readonly pluginId: import("@bsb/base").BSBStringType;
143
+ readonly version: import("@bsb/base").BSBStringType;
144
+ readonly message: import("@bsb/base").BSBStringType & {
145
+ optional: true;
146
+ };
147
+ };
148
+ required: string[];
149
+ description?: string;
150
+ optional?: boolean;
151
+ nullable?: boolean;
152
+ };
153
+ declare const _registryPluginGetSchema: {
154
+ _bsb: "object";
155
+ properties: {
156
+ readonly org: import("@bsb/base").BSBStringType;
157
+ readonly name: import("@bsb/base").BSBStringType;
158
+ readonly version: import("@bsb/base").BSBStringType & {
159
+ optional: true;
160
+ };
161
+ };
162
+ required: string[];
163
+ description?: string;
164
+ optional?: boolean;
165
+ nullable?: boolean;
166
+ };
167
+ declare const _registryPluginGetOutputSchema: {
168
+ _bsb: "object";
169
+ properties: {
170
+ readonly id: import("@bsb/base").BSBStringType;
171
+ readonly org: import("@bsb/base").BSBStringType;
172
+ readonly name: import("@bsb/base").BSBStringType;
173
+ readonly displayName: import("@bsb/base").BSBStringType;
174
+ readonly description: import("@bsb/base").BSBStringType;
175
+ readonly version: import("@bsb/base").BSBStringType;
176
+ readonly majorMinor: import("@bsb/base").BSBStringType;
177
+ readonly language: import("@bsb/base").BSBEnumType;
178
+ readonly package: {
179
+ _bsb: "object";
180
+ properties: {
181
+ readonly nodejs: import("@bsb/base").BSBStringType & {
182
+ optional: true;
183
+ };
184
+ readonly csharp: import("@bsb/base").BSBStringType & {
185
+ optional: true;
186
+ };
187
+ readonly go: import("@bsb/base").BSBStringType & {
188
+ optional: true;
189
+ };
190
+ readonly java: import("@bsb/base").BSBStringType & {
191
+ optional: true;
192
+ };
193
+ readonly python: import("@bsb/base").BSBStringType & {
194
+ optional: true;
195
+ };
196
+ };
197
+ required: string[];
198
+ description?: string;
199
+ optional?: boolean;
200
+ nullable?: boolean;
201
+ } & {
202
+ optional: true;
203
+ };
204
+ readonly category: import("@bsb/base").BSBEnumType;
205
+ readonly tags: import("@bsb/base").BSBArrayType;
206
+ readonly author: import("@bsb/base").BSBUnionType & {
207
+ optional: true;
208
+ };
209
+ readonly license: import("@bsb/base").BSBStringType & {
210
+ optional: true;
211
+ };
212
+ readonly homepage: import("@bsb/base").BSBStringType & {
213
+ optional: true;
214
+ };
215
+ readonly repository: import("@bsb/base").BSBStringType & {
216
+ optional: true;
217
+ };
218
+ readonly visibility: import("@bsb/base").BSBEnumType;
219
+ readonly eventSchema: import("@bsb/base").BSBType;
220
+ readonly capabilities: import("@bsb/base").BSBType & {
221
+ optional: true;
222
+ };
223
+ readonly configSchema: import("@bsb/base").BSBType & {
224
+ optional: true;
225
+ };
226
+ readonly typeDefinitions: {
227
+ _bsb: "object";
228
+ properties: {
229
+ readonly nodejs: import("@bsb/base").BSBStringType & {
230
+ optional: true;
231
+ };
232
+ readonly csharp: import("@bsb/base").BSBStringType & {
233
+ optional: true;
234
+ };
235
+ readonly go: import("@bsb/base").BSBStringType & {
236
+ optional: true;
237
+ };
238
+ readonly java: import("@bsb/base").BSBStringType & {
239
+ optional: true;
240
+ };
241
+ };
242
+ required: string[];
243
+ description?: string;
244
+ optional?: boolean;
245
+ nullable?: boolean;
246
+ } & {
247
+ optional: true;
248
+ };
249
+ readonly documentation: import("@bsb/base").BSBArrayType & {
250
+ optional: true;
251
+ };
252
+ readonly dependencies: import("@bsb/base").BSBArrayType & {
253
+ optional: true;
254
+ };
255
+ readonly permissions: import("@bsb/base").BSBArrayType & {
256
+ optional: true;
257
+ };
258
+ readonly eventCount: import("@bsb/base").BSBNumberType;
259
+ readonly emitEventCount: import("@bsb/base").BSBNumberType;
260
+ readonly onEventCount: import("@bsb/base").BSBNumberType;
261
+ readonly returnableEventCount: import("@bsb/base").BSBNumberType;
262
+ readonly broadcastEventCount: import("@bsb/base").BSBNumberType;
263
+ readonly publishedBy: import("@bsb/base").BSBStringType;
264
+ readonly publishedAt: import("@bsb/base").BSBStringType;
265
+ readonly updatedAt: import("@bsb/base").BSBStringType;
266
+ readonly downloads: import("@bsb/base").BSBNumberType & {
267
+ optional: true;
268
+ };
269
+ readonly runtime: {
270
+ _bsb: "object";
271
+ properties: {
272
+ readonly nodejs: import("@bsb/base").BSBStringType & {
273
+ optional: true;
274
+ };
275
+ readonly dotnet: import("@bsb/base").BSBStringType & {
276
+ optional: true;
277
+ };
278
+ readonly go: import("@bsb/base").BSBStringType & {
279
+ optional: true;
280
+ };
281
+ readonly java: import("@bsb/base").BSBStringType & {
282
+ optional: true;
283
+ };
284
+ readonly python: import("@bsb/base").BSBStringType & {
285
+ optional: true;
286
+ };
287
+ };
288
+ required: string[];
289
+ description?: string;
290
+ optional?: boolean;
291
+ nullable?: boolean;
292
+ } & {
293
+ optional: true;
294
+ };
295
+ };
296
+ required: string[];
297
+ description?: string;
298
+ optional?: boolean;
299
+ nullable?: boolean;
300
+ };
301
+ declare const _registryPluginListSchema: {
302
+ _bsb: "object";
303
+ properties: {
304
+ readonly org: import("@bsb/base").BSBStringType & {
305
+ optional: true;
306
+ };
307
+ readonly language: import("@bsb/base").BSBEnumType & {
308
+ optional: true;
309
+ };
310
+ readonly category: import("@bsb/base").BSBEnumType & {
311
+ optional: true;
312
+ };
313
+ readonly limit: import("@bsb/base").BSBNumberType & {
314
+ optional: true;
315
+ };
316
+ readonly offset: import("@bsb/base").BSBNumberType & {
317
+ optional: true;
318
+ };
319
+ };
320
+ required: string[];
321
+ description?: string;
322
+ optional?: boolean;
323
+ nullable?: boolean;
324
+ };
325
+ declare const _registryPluginListOutputSchema: {
326
+ _bsb: "object";
327
+ properties: {
328
+ readonly results: import("@bsb/base").BSBArrayType;
329
+ readonly total: import("@bsb/base").BSBNumberType;
330
+ readonly page: import("@bsb/base").BSBNumberType;
331
+ };
332
+ required: string[];
333
+ description?: string;
334
+ optional?: boolean;
335
+ nullable?: boolean;
336
+ };
337
+ declare const _registryPluginSearchSchema: {
338
+ _bsb: "object";
339
+ properties: {
340
+ readonly query: import("@bsb/base").BSBStringType;
341
+ readonly language: import("@bsb/base").BSBEnumType & {
342
+ optional: true;
343
+ };
344
+ readonly category: import("@bsb/base").BSBEnumType & {
345
+ optional: true;
346
+ };
347
+ readonly limit: import("@bsb/base").BSBNumberType & {
348
+ optional: true;
349
+ };
350
+ readonly offset: import("@bsb/base").BSBNumberType & {
351
+ optional: true;
352
+ };
353
+ };
354
+ required: string[];
355
+ description?: string;
356
+ optional?: boolean;
357
+ nullable?: boolean;
358
+ };
359
+ declare const _registryPluginSearchOutputSchema: {
360
+ _bsb: "object";
361
+ properties: {
362
+ readonly results: import("@bsb/base").BSBArrayType;
363
+ readonly total: import("@bsb/base").BSBNumberType;
364
+ readonly query: import("@bsb/base").BSBStringType;
365
+ };
366
+ required: string[];
367
+ description?: string;
368
+ optional?: boolean;
369
+ nullable?: boolean;
370
+ };
371
+ declare const _registryPluginDeleteSchema: {
372
+ _bsb: "object";
373
+ properties: {
374
+ readonly org: import("@bsb/base").BSBStringType;
375
+ readonly name: import("@bsb/base").BSBStringType;
376
+ readonly version: import("@bsb/base").BSBStringType & {
377
+ optional: true;
378
+ };
379
+ };
380
+ required: string[];
381
+ description?: string;
382
+ optional?: boolean;
383
+ nullable?: boolean;
384
+ };
385
+ declare const _registryPluginDeleteOutputSchema: {
386
+ _bsb: "object";
387
+ properties: {
388
+ readonly success: import("@bsb/base").BSBBooleanType;
389
+ readonly deleted: import("@bsb/base").BSBNumberType;
390
+ };
391
+ required: string[];
392
+ description?: string;
393
+ optional?: boolean;
394
+ nullable?: boolean;
395
+ };
396
+ declare const _registryPluginVersionsSchema: {
397
+ _bsb: "object";
398
+ properties: {
399
+ readonly org: import("@bsb/base").BSBStringType;
400
+ readonly name: import("@bsb/base").BSBStringType;
401
+ readonly majorMinor: import("@bsb/base").BSBStringType & {
402
+ optional: true;
403
+ };
404
+ };
405
+ required: string[];
406
+ description?: string;
407
+ optional?: boolean;
408
+ nullable?: boolean;
409
+ };
410
+ declare const _registryPluginVersionsOutputSchema: {
411
+ _bsb: "object";
412
+ properties: {
413
+ readonly versions: import("@bsb/base").BSBArrayType;
414
+ readonly latest: import("@bsb/base").BSBStringType;
415
+ readonly latestForMajorMinor: import("@bsb/base").BSBStringType;
416
+ };
417
+ required: string[];
418
+ description?: string;
419
+ optional?: boolean;
420
+ nullable?: boolean;
421
+ };
422
+ declare const _registryStatsGetSchema: {
423
+ _bsb: "object";
424
+ properties: {};
425
+ required: string[];
426
+ description?: string;
427
+ optional?: boolean;
428
+ nullable?: boolean;
429
+ };
430
+ declare const _registryStatsGetOutputSchema: {
431
+ _bsb: "object";
432
+ properties: {
433
+ readonly totalPlugins: import("@bsb/base").BSBNumberType;
434
+ readonly byLanguage: import("@bsb/base").BSBStringType;
435
+ readonly byCategory: import("@bsb/base").BSBStringType;
436
+ readonly totalDownloads: import("@bsb/base").BSBNumberType;
437
+ };
438
+ required: string[];
439
+ description?: string;
440
+ optional?: boolean;
441
+ nullable?: boolean;
442
+ };
443
+ declare const _registryAuthLoginSchema: {
444
+ _bsb: "object";
445
+ properties: {
446
+ readonly username: import("@bsb/base").BSBStringType;
447
+ readonly password: import("@bsb/base").BSBStringType;
448
+ };
449
+ required: string[];
450
+ description?: string;
451
+ optional?: boolean;
452
+ nullable?: boolean;
453
+ };
454
+ declare const _registryAuthLoginOutputSchema: {
455
+ _bsb: "object";
456
+ properties: {
457
+ readonly success: import("@bsb/base").BSBBooleanType;
458
+ readonly token: import("@bsb/base").BSBStringType & {
459
+ optional: true;
460
+ };
461
+ readonly expiresAt: import("@bsb/base").BSBStringType & {
462
+ optional: true;
463
+ };
464
+ readonly message: import("@bsb/base").BSBStringType & {
465
+ optional: true;
466
+ };
467
+ };
468
+ required: string[];
469
+ description?: string;
470
+ optional?: boolean;
471
+ nullable?: boolean;
472
+ };
473
+ declare const _registryAuthVerifySchema: {
474
+ _bsb: "object";
475
+ properties: {
476
+ readonly token: import("@bsb/base").BSBStringType;
477
+ };
478
+ required: string[];
479
+ description?: string;
480
+ optional?: boolean;
481
+ nullable?: boolean;
482
+ };
483
+ declare const _registryAuthVerifyOutputSchema: {
484
+ _bsb: "object";
485
+ properties: {
486
+ readonly valid: import("@bsb/base").BSBBooleanType;
487
+ readonly userId: import("@bsb/base").BSBStringType & {
488
+ optional: true;
489
+ };
490
+ readonly permissions: import("@bsb/base").BSBArrayType & {
491
+ optional: true;
492
+ };
493
+ };
494
+ required: string[];
495
+ description?: string;
496
+ optional?: boolean;
497
+ nullable?: boolean;
498
+ };
499
+ declare const _EventSchemas: {
500
+ readonly onReturnableEvents: {
501
+ readonly 'registry.plugin.publish': {
502
+ input: {
503
+ _bsb: "object";
504
+ properties: {
505
+ readonly org: import("@bsb/base").BSBStringType;
506
+ readonly name: import("@bsb/base").BSBStringType;
507
+ readonly version: import("@bsb/base").BSBStringType;
508
+ readonly language: import("@bsb/base").BSBEnumType;
509
+ readonly metadata: {
510
+ _bsb: "object";
511
+ properties: {
512
+ readonly displayName: import("@bsb/base").BSBStringType;
513
+ readonly description: import("@bsb/base").BSBStringType;
514
+ readonly category: import("@bsb/base").BSBEnumType;
515
+ readonly tags: import("@bsb/base").BSBArrayType;
516
+ readonly author: import("@bsb/base").BSBUnionType & {
517
+ optional: true;
518
+ };
519
+ readonly license: import("@bsb/base").BSBStringType & {
520
+ optional: true;
521
+ };
522
+ readonly homepage: import("@bsb/base").BSBStringType & {
523
+ optional: true;
524
+ };
525
+ readonly repository: import("@bsb/base").BSBStringType & {
526
+ optional: true;
527
+ };
528
+ };
529
+ required: string[];
530
+ description?: string;
531
+ optional?: boolean;
532
+ nullable?: boolean;
533
+ };
534
+ readonly eventSchema: import("@bsb/base").BSBType;
535
+ readonly capabilities: import("@bsb/base").BSBType & {
536
+ optional: true;
537
+ };
538
+ readonly configSchema: import("@bsb/base").BSBType & {
539
+ optional: true;
540
+ };
541
+ readonly typeDefinitions: {
542
+ _bsb: "object";
543
+ properties: {
544
+ readonly nodejs: import("@bsb/base").BSBStringType & {
545
+ optional: true;
546
+ };
547
+ readonly csharp: import("@bsb/base").BSBStringType & {
548
+ optional: true;
549
+ };
550
+ readonly go: import("@bsb/base").BSBStringType & {
551
+ optional: true;
552
+ };
553
+ readonly java: import("@bsb/base").BSBStringType & {
554
+ optional: true;
555
+ };
556
+ };
557
+ required: string[];
558
+ description?: string;
559
+ optional?: boolean;
560
+ nullable?: boolean;
561
+ } & {
562
+ optional: true;
563
+ };
564
+ readonly documentation: import("@bsb/base").BSBArrayType;
565
+ readonly dependencies: import("@bsb/base").BSBArrayType & {
566
+ optional: true;
567
+ };
568
+ readonly package: {
569
+ _bsb: "object";
570
+ properties: {
571
+ readonly nodejs: import("@bsb/base").BSBStringType & {
572
+ optional: true;
573
+ };
574
+ readonly csharp: import("@bsb/base").BSBStringType & {
575
+ optional: true;
576
+ };
577
+ readonly go: import("@bsb/base").BSBStringType & {
578
+ optional: true;
579
+ };
580
+ readonly java: import("@bsb/base").BSBStringType & {
581
+ optional: true;
582
+ };
583
+ readonly python: import("@bsb/base").BSBStringType & {
584
+ optional: true;
585
+ };
586
+ };
587
+ required: string[];
588
+ description?: string;
589
+ optional?: boolean;
590
+ nullable?: boolean;
591
+ } & {
592
+ optional: true;
593
+ };
594
+ readonly runtime: {
595
+ _bsb: "object";
596
+ properties: {
597
+ readonly nodejs: import("@bsb/base").BSBStringType & {
598
+ optional: true;
599
+ };
600
+ readonly dotnet: import("@bsb/base").BSBStringType & {
601
+ optional: true;
602
+ };
603
+ readonly go: import("@bsb/base").BSBStringType & {
604
+ optional: true;
605
+ };
606
+ readonly java: import("@bsb/base").BSBStringType & {
607
+ optional: true;
608
+ };
609
+ readonly python: import("@bsb/base").BSBStringType & {
610
+ optional: true;
611
+ };
612
+ };
613
+ required: string[];
614
+ description?: string;
615
+ optional?: boolean;
616
+ nullable?: boolean;
617
+ } & {
618
+ optional: true;
619
+ };
620
+ readonly visibility: import("@bsb/base").BSBEnumType & {
621
+ optional: true;
622
+ };
623
+ readonly publishedBy: import("@bsb/base").BSBStringType & {
624
+ optional: true;
625
+ };
626
+ };
627
+ required: string[];
628
+ description?: string;
629
+ optional?: boolean;
630
+ nullable?: boolean;
631
+ };
632
+ output: {
633
+ _bsb: "object";
634
+ properties: {
635
+ readonly success: import("@bsb/base").BSBBooleanType;
636
+ readonly pluginId: import("@bsb/base").BSBStringType;
637
+ readonly version: import("@bsb/base").BSBStringType;
638
+ readonly message: import("@bsb/base").BSBStringType & {
639
+ optional: true;
640
+ };
641
+ };
642
+ required: string[];
643
+ description?: string;
644
+ optional?: boolean;
645
+ nullable?: boolean;
646
+ };
647
+ description?: string;
648
+ defaultTimeout?: number;
649
+ readonly __brand: "returnable";
650
+ };
651
+ readonly 'registry.plugin.get': {
652
+ input: {
653
+ _bsb: "object";
654
+ properties: {
655
+ readonly org: import("@bsb/base").BSBStringType;
656
+ readonly name: import("@bsb/base").BSBStringType;
657
+ readonly version: import("@bsb/base").BSBStringType & {
658
+ optional: true;
659
+ };
660
+ };
661
+ required: string[];
662
+ description?: string;
663
+ optional?: boolean;
664
+ nullable?: boolean;
665
+ };
666
+ output: {
667
+ _bsb: "object";
668
+ properties: {
669
+ readonly id: import("@bsb/base").BSBStringType;
670
+ readonly org: import("@bsb/base").BSBStringType;
671
+ readonly name: import("@bsb/base").BSBStringType;
672
+ readonly displayName: import("@bsb/base").BSBStringType;
673
+ readonly description: import("@bsb/base").BSBStringType;
674
+ readonly version: import("@bsb/base").BSBStringType;
675
+ readonly majorMinor: import("@bsb/base").BSBStringType;
676
+ readonly language: import("@bsb/base").BSBEnumType;
677
+ readonly package: {
678
+ _bsb: "object";
679
+ properties: {
680
+ readonly nodejs: import("@bsb/base").BSBStringType & {
681
+ optional: true;
682
+ };
683
+ readonly csharp: import("@bsb/base").BSBStringType & {
684
+ optional: true;
685
+ };
686
+ readonly go: import("@bsb/base").BSBStringType & {
687
+ optional: true;
688
+ };
689
+ readonly java: import("@bsb/base").BSBStringType & {
690
+ optional: true;
691
+ };
692
+ readonly python: import("@bsb/base").BSBStringType & {
693
+ optional: true;
694
+ };
695
+ };
696
+ required: string[];
697
+ description?: string;
698
+ optional?: boolean;
699
+ nullable?: boolean;
700
+ } & {
701
+ optional: true;
702
+ };
703
+ readonly category: import("@bsb/base").BSBEnumType;
704
+ readonly tags: import("@bsb/base").BSBArrayType;
705
+ readonly author: import("@bsb/base").BSBUnionType & {
706
+ optional: true;
707
+ };
708
+ readonly license: import("@bsb/base").BSBStringType & {
709
+ optional: true;
710
+ };
711
+ readonly homepage: import("@bsb/base").BSBStringType & {
712
+ optional: true;
713
+ };
714
+ readonly repository: import("@bsb/base").BSBStringType & {
715
+ optional: true;
716
+ };
717
+ readonly visibility: import("@bsb/base").BSBEnumType;
718
+ readonly eventSchema: import("@bsb/base").BSBType;
719
+ readonly capabilities: import("@bsb/base").BSBType & {
720
+ optional: true;
721
+ };
722
+ readonly configSchema: import("@bsb/base").BSBType & {
723
+ optional: true;
724
+ };
725
+ readonly typeDefinitions: {
726
+ _bsb: "object";
727
+ properties: {
728
+ readonly nodejs: import("@bsb/base").BSBStringType & {
729
+ optional: true;
730
+ };
731
+ readonly csharp: import("@bsb/base").BSBStringType & {
732
+ optional: true;
733
+ };
734
+ readonly go: import("@bsb/base").BSBStringType & {
735
+ optional: true;
736
+ };
737
+ readonly java: import("@bsb/base").BSBStringType & {
738
+ optional: true;
739
+ };
740
+ };
741
+ required: string[];
742
+ description?: string;
743
+ optional?: boolean;
744
+ nullable?: boolean;
745
+ } & {
746
+ optional: true;
747
+ };
748
+ readonly documentation: import("@bsb/base").BSBArrayType & {
749
+ optional: true;
750
+ };
751
+ readonly dependencies: import("@bsb/base").BSBArrayType & {
752
+ optional: true;
753
+ };
754
+ readonly permissions: import("@bsb/base").BSBArrayType & {
755
+ optional: true;
756
+ };
757
+ readonly eventCount: import("@bsb/base").BSBNumberType;
758
+ readonly emitEventCount: import("@bsb/base").BSBNumberType;
759
+ readonly onEventCount: import("@bsb/base").BSBNumberType;
760
+ readonly returnableEventCount: import("@bsb/base").BSBNumberType;
761
+ readonly broadcastEventCount: import("@bsb/base").BSBNumberType;
762
+ readonly publishedBy: import("@bsb/base").BSBStringType;
763
+ readonly publishedAt: import("@bsb/base").BSBStringType;
764
+ readonly updatedAt: import("@bsb/base").BSBStringType;
765
+ readonly downloads: import("@bsb/base").BSBNumberType & {
766
+ optional: true;
767
+ };
768
+ readonly runtime: {
769
+ _bsb: "object";
770
+ properties: {
771
+ readonly nodejs: import("@bsb/base").BSBStringType & {
772
+ optional: true;
773
+ };
774
+ readonly dotnet: import("@bsb/base").BSBStringType & {
775
+ optional: true;
776
+ };
777
+ readonly go: import("@bsb/base").BSBStringType & {
778
+ optional: true;
779
+ };
780
+ readonly java: import("@bsb/base").BSBStringType & {
781
+ optional: true;
782
+ };
783
+ readonly python: import("@bsb/base").BSBStringType & {
784
+ optional: true;
785
+ };
786
+ };
787
+ required: string[];
788
+ description?: string;
789
+ optional?: boolean;
790
+ nullable?: boolean;
791
+ } & {
792
+ optional: true;
793
+ };
794
+ };
795
+ required: string[];
796
+ description?: string;
797
+ optional?: boolean;
798
+ nullable?: boolean;
799
+ };
800
+ description?: string;
801
+ defaultTimeout?: number;
802
+ readonly __brand: "returnable";
803
+ };
804
+ readonly 'registry.plugin.list': {
805
+ input: {
806
+ _bsb: "object";
807
+ properties: {
808
+ readonly org: import("@bsb/base").BSBStringType & {
809
+ optional: true;
810
+ };
811
+ readonly language: import("@bsb/base").BSBEnumType & {
812
+ optional: true;
813
+ };
814
+ readonly category: import("@bsb/base").BSBEnumType & {
815
+ optional: true;
816
+ };
817
+ readonly limit: import("@bsb/base").BSBNumberType & {
818
+ optional: true;
819
+ };
820
+ readonly offset: import("@bsb/base").BSBNumberType & {
821
+ optional: true;
822
+ };
823
+ };
824
+ required: string[];
825
+ description?: string;
826
+ optional?: boolean;
827
+ nullable?: boolean;
828
+ };
829
+ output: {
830
+ _bsb: "object";
831
+ properties: {
832
+ readonly results: import("@bsb/base").BSBArrayType;
833
+ readonly total: import("@bsb/base").BSBNumberType;
834
+ readonly page: import("@bsb/base").BSBNumberType;
835
+ };
836
+ required: string[];
837
+ description?: string;
838
+ optional?: boolean;
839
+ nullable?: boolean;
840
+ };
841
+ description?: string;
842
+ defaultTimeout?: number;
843
+ readonly __brand: "returnable";
844
+ };
845
+ readonly 'registry.plugin.search': {
846
+ input: {
847
+ _bsb: "object";
848
+ properties: {
849
+ readonly query: import("@bsb/base").BSBStringType;
850
+ readonly language: import("@bsb/base").BSBEnumType & {
851
+ optional: true;
852
+ };
853
+ readonly category: import("@bsb/base").BSBEnumType & {
854
+ optional: true;
855
+ };
856
+ readonly limit: import("@bsb/base").BSBNumberType & {
857
+ optional: true;
858
+ };
859
+ readonly offset: import("@bsb/base").BSBNumberType & {
860
+ optional: true;
861
+ };
862
+ };
863
+ required: string[];
864
+ description?: string;
865
+ optional?: boolean;
866
+ nullable?: boolean;
867
+ };
868
+ output: {
869
+ _bsb: "object";
870
+ properties: {
871
+ readonly results: import("@bsb/base").BSBArrayType;
872
+ readonly total: import("@bsb/base").BSBNumberType;
873
+ readonly query: import("@bsb/base").BSBStringType;
874
+ };
875
+ required: string[];
876
+ description?: string;
877
+ optional?: boolean;
878
+ nullable?: boolean;
879
+ };
880
+ description?: string;
881
+ defaultTimeout?: number;
882
+ readonly __brand: "returnable";
883
+ };
884
+ readonly 'registry.plugin.delete': {
885
+ input: {
886
+ _bsb: "object";
887
+ properties: {
888
+ readonly org: import("@bsb/base").BSBStringType;
889
+ readonly name: import("@bsb/base").BSBStringType;
890
+ readonly version: import("@bsb/base").BSBStringType & {
891
+ optional: true;
892
+ };
893
+ };
894
+ required: string[];
895
+ description?: string;
896
+ optional?: boolean;
897
+ nullable?: boolean;
898
+ };
899
+ output: {
900
+ _bsb: "object";
901
+ properties: {
902
+ readonly success: import("@bsb/base").BSBBooleanType;
903
+ readonly deleted: import("@bsb/base").BSBNumberType;
904
+ };
905
+ required: string[];
906
+ description?: string;
907
+ optional?: boolean;
908
+ nullable?: boolean;
909
+ };
910
+ description?: string;
911
+ defaultTimeout?: number;
912
+ readonly __brand: "returnable";
913
+ };
914
+ readonly 'registry.plugin.versions': {
915
+ input: {
916
+ _bsb: "object";
917
+ properties: {
918
+ readonly org: import("@bsb/base").BSBStringType;
919
+ readonly name: import("@bsb/base").BSBStringType;
920
+ readonly majorMinor: import("@bsb/base").BSBStringType & {
921
+ optional: true;
922
+ };
923
+ };
924
+ required: string[];
925
+ description?: string;
926
+ optional?: boolean;
927
+ nullable?: boolean;
928
+ };
929
+ output: {
930
+ _bsb: "object";
931
+ properties: {
932
+ readonly versions: import("@bsb/base").BSBArrayType;
933
+ readonly latest: import("@bsb/base").BSBStringType;
934
+ readonly latestForMajorMinor: import("@bsb/base").BSBStringType;
935
+ };
936
+ required: string[];
937
+ description?: string;
938
+ optional?: boolean;
939
+ nullable?: boolean;
940
+ };
941
+ description?: string;
942
+ defaultTimeout?: number;
943
+ readonly __brand: "returnable";
944
+ };
945
+ readonly 'registry.stats.get': {
946
+ input: {
947
+ _bsb: "object";
948
+ properties: {};
949
+ required: string[];
950
+ description?: string;
951
+ optional?: boolean;
952
+ nullable?: boolean;
953
+ };
954
+ output: {
955
+ _bsb: "object";
956
+ properties: {
957
+ readonly totalPlugins: import("@bsb/base").BSBNumberType;
958
+ readonly byLanguage: import("@bsb/base").BSBStringType;
959
+ readonly byCategory: import("@bsb/base").BSBStringType;
960
+ readonly totalDownloads: import("@bsb/base").BSBNumberType;
961
+ };
962
+ required: string[];
963
+ description?: string;
964
+ optional?: boolean;
965
+ nullable?: boolean;
966
+ };
967
+ description?: string;
968
+ defaultTimeout?: number;
969
+ readonly __brand: "returnable";
970
+ };
971
+ readonly 'registry.auth.login': {
972
+ input: {
973
+ _bsb: "object";
974
+ properties: {
975
+ readonly username: import("@bsb/base").BSBStringType;
976
+ readonly password: import("@bsb/base").BSBStringType;
977
+ };
978
+ required: string[];
979
+ description?: string;
980
+ optional?: boolean;
981
+ nullable?: boolean;
982
+ };
983
+ output: {
984
+ _bsb: "object";
985
+ properties: {
986
+ readonly success: import("@bsb/base").BSBBooleanType;
987
+ readonly token: import("@bsb/base").BSBStringType & {
988
+ optional: true;
989
+ };
990
+ readonly expiresAt: import("@bsb/base").BSBStringType & {
991
+ optional: true;
992
+ };
993
+ readonly message: import("@bsb/base").BSBStringType & {
994
+ optional: true;
995
+ };
996
+ };
997
+ required: string[];
998
+ description?: string;
999
+ optional?: boolean;
1000
+ nullable?: boolean;
1001
+ };
1002
+ description?: string;
1003
+ defaultTimeout?: number;
1004
+ readonly __brand: "returnable";
1005
+ };
1006
+ readonly 'registry.auth.verify': {
1007
+ input: {
1008
+ _bsb: "object";
1009
+ properties: {
1010
+ readonly token: import("@bsb/base").BSBStringType;
1011
+ };
1012
+ required: string[];
1013
+ description?: string;
1014
+ optional?: boolean;
1015
+ nullable?: boolean;
1016
+ };
1017
+ output: {
1018
+ _bsb: "object";
1019
+ properties: {
1020
+ readonly valid: import("@bsb/base").BSBBooleanType;
1021
+ readonly userId: import("@bsb/base").BSBStringType & {
1022
+ optional: true;
1023
+ };
1024
+ readonly permissions: import("@bsb/base").BSBArrayType & {
1025
+ optional: true;
1026
+ };
1027
+ };
1028
+ required: string[];
1029
+ description?: string;
1030
+ optional?: boolean;
1031
+ nullable?: boolean;
1032
+ };
1033
+ description?: string;
1034
+ defaultTimeout?: number;
1035
+ readonly __brand: "returnable";
1036
+ };
1037
+ };
1038
+ };
1039
+ export type RegistryPluginPublishInput = EventInputType<{
1040
+ input: typeof _registryPluginPublishSchema;
1041
+ }>;
1042
+ export type RegistryPluginPublishOutput = EventOutputType<{
1043
+ output: typeof _registryPluginPublishOutputSchema;
1044
+ }>;
1045
+ export type RegistryPluginGetInput = EventInputType<{
1046
+ input: typeof _registryPluginGetSchema;
1047
+ }>;
1048
+ export type RegistryPluginGetOutput = EventOutputType<{
1049
+ output: typeof _registryPluginGetOutputSchema;
1050
+ }>;
1051
+ export type RegistryPluginListInput = EventInputType<{
1052
+ input: typeof _registryPluginListSchema;
1053
+ }>;
1054
+ export type RegistryPluginListOutput = EventOutputType<{
1055
+ output: typeof _registryPluginListOutputSchema;
1056
+ }>;
1057
+ export type RegistryPluginSearchInput = EventInputType<{
1058
+ input: typeof _registryPluginSearchSchema;
1059
+ }>;
1060
+ export type RegistryPluginSearchOutput = EventOutputType<{
1061
+ output: typeof _registryPluginSearchOutputSchema;
1062
+ }>;
1063
+ export type RegistryPluginDeleteInput = EventInputType<{
1064
+ input: typeof _registryPluginDeleteSchema;
1065
+ }>;
1066
+ export type RegistryPluginDeleteOutput = EventOutputType<{
1067
+ output: typeof _registryPluginDeleteOutputSchema;
1068
+ }>;
1069
+ export type RegistryPluginVersionsInput = EventInputType<{
1070
+ input: typeof _registryPluginVersionsSchema;
1071
+ }>;
1072
+ export type RegistryPluginVersionsOutput = EventOutputType<{
1073
+ output: typeof _registryPluginVersionsOutputSchema;
1074
+ }>;
1075
+ export type RegistryStatsGetInput = EventInputType<{
1076
+ input: typeof _registryStatsGetSchema;
1077
+ }>;
1078
+ export type RegistryStatsGetOutput = EventOutputType<{
1079
+ output: typeof _registryStatsGetOutputSchema;
1080
+ }>;
1081
+ export type RegistryAuthLoginInput = EventInputType<{
1082
+ input: typeof _registryAuthLoginSchema;
1083
+ }>;
1084
+ export type RegistryAuthLoginOutput = EventOutputType<{
1085
+ output: typeof _registryAuthLoginOutputSchema;
1086
+ }>;
1087
+ export type RegistryAuthVerifyInput = EventInputType<{
1088
+ input: typeof _registryAuthVerifySchema;
1089
+ }>;
1090
+ export type RegistryAuthVerifyOutput = EventOutputType<{
1091
+ output: typeof _registryAuthVerifyOutputSchema;
1092
+ }>;
1093
+ declare class _PluginRef {
1094
+ static PLUGIN_CLIENT: BSBServiceClientDefinition;
1095
+ }
1096
+ export default class BsbRegistryClient extends ServiceClient<any, typeof _EventSchemas, typeof _PluginRef> {
1097
+ constructor(context: BSBService);
1098
+ /** Publish a new plugin or version (default timeout: 5s) */
1099
+ registryPluginPublish(obs: Observable, input: RegistryPluginPublishInput, timeout?: number): Promise<RegistryPluginPublishOutput>;
1100
+ /** Get plugin details by org/name (default timeout: 5s) */
1101
+ registryPluginGet(obs: Observable, input: RegistryPluginGetInput, timeout?: number): Promise<RegistryPluginGetOutput>;
1102
+ /** List plugins with filtering (default timeout: 5s) */
1103
+ registryPluginList(obs: Observable, input: RegistryPluginListInput, timeout?: number): Promise<RegistryPluginListOutput>;
1104
+ /** Search plugins by query (default timeout: 5s) */
1105
+ registryPluginSearch(obs: Observable, input: RegistryPluginSearchInput, timeout?: number): Promise<RegistryPluginSearchOutput>;
1106
+ /** Delete a plugin or specific version (default timeout: 5s) */
1107
+ registryPluginDelete(obs: Observable, input: RegistryPluginDeleteInput, timeout?: number): Promise<RegistryPluginDeleteOutput>;
1108
+ /** Get all versions of a plugin (default timeout: 5s) */
1109
+ registryPluginVersions(obs: Observable, input: RegistryPluginVersionsInput, timeout?: number): Promise<RegistryPluginVersionsOutput>;
1110
+ /** Get registry statistics (default timeout: 5s) */
1111
+ registryStatsGet(obs: Observable, input: RegistryStatsGetInput, timeout?: number): Promise<RegistryStatsGetOutput>;
1112
+ /** Authenticate user and get token (default timeout: 5s) */
1113
+ registryAuthLogin(obs: Observable, input: RegistryAuthLoginInput, timeout?: number): Promise<RegistryAuthLoginOutput>;
1114
+ /** Verify authentication token (default timeout: 5s) */
1115
+ registryAuthVerify(obs: Observable, input: RegistryAuthVerifyInput, timeout?: number): Promise<RegistryAuthVerifyOutput>;
1116
+ }
1117
+ export { BsbRegistryClient };
1118
+ //# sourceMappingURL=service-bsb-registry.d.ts.map