@atlas-cmdb/extension-sdk 0.0.0-stage → 0.5.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.
@@ -0,0 +1,573 @@
1
+ {
2
+ "$id": "https://registry.atlas-cmdb.com/schema/atlas-extension.schema.json",
3
+ "title": "Atlas extension manifest",
4
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "minLength": 2,
10
+ "maxLength": 48,
11
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
12
+ },
13
+ "name": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 80
17
+ },
18
+ "version": {
19
+ "type": "string",
20
+ "pattern": "^\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z.-]+)?$"
21
+ },
22
+ "publisher": {
23
+ "type": "string",
24
+ "minLength": 2,
25
+ "maxLength": 48,
26
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
27
+ },
28
+ "description": {
29
+ "type": "string",
30
+ "maxLength": 500
31
+ },
32
+ "icon": {
33
+ "type": "string",
34
+ "maxLength": 64
35
+ },
36
+ "homepage": {
37
+ "type": "string",
38
+ "format": "uri"
39
+ },
40
+ "atlasApi": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 40
44
+ },
45
+ "image": {
46
+ "type": "string",
47
+ "pattern": "^[a-z0-9][a-z0-9._\\-/:]*@sha256:[a-f0-9]{64}$"
48
+ },
49
+ "scopes": {
50
+ "default": [],
51
+ "maxItems": 50,
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string"
55
+ }
56
+ },
57
+ "settings": {
58
+ "default": [],
59
+ "maxItems": 30,
60
+ "type": "array",
61
+ "items": {
62
+ "type": "object",
63
+ "properties": {
64
+ "name": {
65
+ "type": "string",
66
+ "pattern": "^[a-z][a-z0-9-]{0,63}$"
67
+ },
68
+ "label": {
69
+ "type": "string",
70
+ "minLength": 1,
71
+ "maxLength": 80
72
+ },
73
+ "type": {
74
+ "type": "string",
75
+ "enum": [
76
+ "text",
77
+ "secret",
78
+ "number",
79
+ "boolean",
80
+ "select",
81
+ "category",
82
+ "list",
83
+ "url",
84
+ "credential"
85
+ ]
86
+ },
87
+ "description": {
88
+ "type": "string",
89
+ "maxLength": 400
90
+ },
91
+ "required": {
92
+ "type": "boolean"
93
+ },
94
+ "options": {
95
+ "maxItems": 100,
96
+ "type": "array",
97
+ "items": {
98
+ "type": "object",
99
+ "properties": {
100
+ "value": {
101
+ "type": "string"
102
+ },
103
+ "label": {
104
+ "type": "string"
105
+ }
106
+ },
107
+ "required": [
108
+ "value",
109
+ "label"
110
+ ]
111
+ }
112
+ }
113
+ },
114
+ "required": [
115
+ "name",
116
+ "label",
117
+ "type"
118
+ ]
119
+ }
120
+ },
121
+ "storage": {
122
+ "default": {
123
+ "collections": {}
124
+ },
125
+ "type": "object",
126
+ "properties": {
127
+ "collections": {
128
+ "default": {},
129
+ "type": "object",
130
+ "propertyNames": {
131
+ "type": "string",
132
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
133
+ },
134
+ "additionalProperties": {
135
+ "type": "object",
136
+ "properties": {
137
+ "indexes": {
138
+ "maxItems": 5,
139
+ "type": "array",
140
+ "items": {
141
+ "type": "string"
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ },
149
+ "functions": {
150
+ "default": [],
151
+ "maxItems": 50,
152
+ "type": "array",
153
+ "items": {
154
+ "type": "object",
155
+ "properties": {
156
+ "name": {
157
+ "type": "string",
158
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$"
159
+ },
160
+ "permission": {
161
+ "type": "string",
162
+ "enum": [
163
+ "organization:view",
164
+ "content:edit",
165
+ "content:delete-request",
166
+ "content:delete-review",
167
+ "organization:manage"
168
+ ]
169
+ }
170
+ },
171
+ "required": [
172
+ "name"
173
+ ]
174
+ }
175
+ },
176
+ "lifecycle": {
177
+ "default": [],
178
+ "maxItems": 3,
179
+ "type": "array",
180
+ "items": {
181
+ "type": "string",
182
+ "enum": [
183
+ "install",
184
+ "upgrade",
185
+ "uninstall"
186
+ ]
187
+ }
188
+ },
189
+ "runtime": {
190
+ "default": {
191
+ "isolation": "shared"
192
+ },
193
+ "type": "object",
194
+ "properties": {
195
+ "isolation": {
196
+ "default": "shared",
197
+ "type": "string",
198
+ "enum": [
199
+ "shared",
200
+ "per-organization"
201
+ ]
202
+ }
203
+ }
204
+ },
205
+ "jobs": {
206
+ "default": [],
207
+ "maxItems": 10,
208
+ "type": "array",
209
+ "items": {
210
+ "type": "object",
211
+ "properties": {
212
+ "name": {
213
+ "type": "string",
214
+ "pattern": "^[a-z][a-z0-9-]{0,47}$"
215
+ },
216
+ "title": {
217
+ "type": "string",
218
+ "minLength": 1,
219
+ "maxLength": 80
220
+ },
221
+ "schedule": {
222
+ "type": "string",
223
+ "maxLength": 100
224
+ },
225
+ "timeoutSeconds": {
226
+ "default": 600,
227
+ "type": "integer",
228
+ "minimum": 10,
229
+ "maximum": 3600
230
+ }
231
+ },
232
+ "required": [
233
+ "name",
234
+ "title"
235
+ ]
236
+ }
237
+ },
238
+ "inbound": {
239
+ "default": [],
240
+ "maxItems": 10,
241
+ "type": "array",
242
+ "items": {
243
+ "type": "object",
244
+ "properties": {
245
+ "name": {
246
+ "type": "string",
247
+ "pattern": "^[a-z][a-z0-9-]{0,47}$"
248
+ },
249
+ "function": {
250
+ "type": "string",
251
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$"
252
+ },
253
+ "methods": {
254
+ "minItems": 1,
255
+ "maxItems": 5,
256
+ "type": "array",
257
+ "items": {
258
+ "type": "string",
259
+ "enum": [
260
+ "GET",
261
+ "POST",
262
+ "PUT",
263
+ "PATCH",
264
+ "DELETE"
265
+ ]
266
+ }
267
+ }
268
+ },
269
+ "required": [
270
+ "name",
271
+ "function",
272
+ "methods"
273
+ ]
274
+ }
275
+ },
276
+ "contributes": {
277
+ "default": {},
278
+ "type": "object",
279
+ "properties": {
280
+ "navigation": {
281
+ "maxItems": 10,
282
+ "type": "array",
283
+ "items": {
284
+ "type": "object",
285
+ "properties": {
286
+ "id": {
287
+ "type": "string",
288
+ "minLength": 2,
289
+ "maxLength": 48,
290
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
291
+ },
292
+ "label": {
293
+ "type": "string",
294
+ "minLength": 1,
295
+ "maxLength": 80
296
+ },
297
+ "icon": {
298
+ "type": "string",
299
+ "maxLength": 64
300
+ },
301
+ "page": {
302
+ "type": "string",
303
+ "maxLength": 200,
304
+ "pattern": "^([a-z0-9-]+|\\[[a-z_][a-z0-9_]*\\])(\\/([a-z0-9-]+|\\[[a-z_][a-z0-9_]*\\]))*$"
305
+ },
306
+ "order": {
307
+ "type": "integer",
308
+ "minimum": 0,
309
+ "maximum": 1000
310
+ },
311
+ "permission": {
312
+ "type": "string",
313
+ "enum": [
314
+ "organization:view",
315
+ "content:edit",
316
+ "content:delete-request",
317
+ "content:delete-review",
318
+ "organization:manage"
319
+ ]
320
+ }
321
+ },
322
+ "required": [
323
+ "id",
324
+ "label",
325
+ "page"
326
+ ]
327
+ }
328
+ },
329
+ "pages": {
330
+ "maxItems": 20,
331
+ "type": "array",
332
+ "items": {
333
+ "type": "object",
334
+ "properties": {
335
+ "path": {
336
+ "type": "string",
337
+ "maxLength": 200,
338
+ "pattern": "^([a-z0-9-]+|\\[[a-z_][a-z0-9_]*\\])(\\/([a-z0-9-]+|\\[[a-z_][a-z0-9_]*\\]))*$"
339
+ },
340
+ "title": {
341
+ "type": "string",
342
+ "minLength": 1,
343
+ "maxLength": 80
344
+ },
345
+ "element": {
346
+ "type": "string",
347
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)+$"
348
+ },
349
+ "load": {
350
+ "type": "string",
351
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$"
352
+ },
353
+ "permission": {
354
+ "type": "string",
355
+ "enum": [
356
+ "organization:view",
357
+ "content:edit",
358
+ "content:delete-request",
359
+ "content:delete-review",
360
+ "organization:manage"
361
+ ]
362
+ }
363
+ },
364
+ "required": [
365
+ "path",
366
+ "title",
367
+ "element"
368
+ ]
369
+ }
370
+ },
371
+ "assetTabs": {
372
+ "maxItems": 10,
373
+ "type": "array",
374
+ "items": {
375
+ "type": "object",
376
+ "properties": {
377
+ "id": {
378
+ "type": "string",
379
+ "minLength": 2,
380
+ "maxLength": 48,
381
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
382
+ },
383
+ "label": {
384
+ "type": "string",
385
+ "minLength": 1,
386
+ "maxLength": 80
387
+ },
388
+ "icon": {
389
+ "type": "string",
390
+ "maxLength": 64
391
+ },
392
+ "element": {
393
+ "type": "string",
394
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)+$"
395
+ },
396
+ "permission": {
397
+ "type": "string",
398
+ "enum": [
399
+ "organization:view",
400
+ "content:edit",
401
+ "content:delete-request",
402
+ "content:delete-review",
403
+ "organization:manage"
404
+ ]
405
+ }
406
+ },
407
+ "required": [
408
+ "id",
409
+ "label",
410
+ "element"
411
+ ]
412
+ }
413
+ },
414
+ "widgets": {
415
+ "maxItems": 10,
416
+ "type": "array",
417
+ "items": {
418
+ "type": "object",
419
+ "properties": {
420
+ "id": {
421
+ "type": "string",
422
+ "minLength": 2,
423
+ "maxLength": 48,
424
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
425
+ },
426
+ "title": {
427
+ "type": "string",
428
+ "minLength": 1,
429
+ "maxLength": 80
430
+ },
431
+ "element": {
432
+ "type": "string",
433
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)+$"
434
+ },
435
+ "sizes": {
436
+ "minItems": 1,
437
+ "type": "array",
438
+ "items": {
439
+ "type": "string",
440
+ "enum": [
441
+ "1x1",
442
+ "2x1",
443
+ "2x2"
444
+ ]
445
+ }
446
+ },
447
+ "defaultSize": {
448
+ "type": "string",
449
+ "enum": [
450
+ "1x1",
451
+ "2x1",
452
+ "2x2"
453
+ ]
454
+ },
455
+ "permission": {
456
+ "type": "string",
457
+ "enum": [
458
+ "organization:view",
459
+ "content:edit",
460
+ "content:delete-request",
461
+ "content:delete-review",
462
+ "organization:manage"
463
+ ]
464
+ }
465
+ },
466
+ "required": [
467
+ "id",
468
+ "title",
469
+ "element",
470
+ "sizes"
471
+ ]
472
+ }
473
+ },
474
+ "settingsPanel": {
475
+ "type": "object",
476
+ "properties": {
477
+ "element": {
478
+ "type": "string",
479
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)+$"
480
+ }
481
+ },
482
+ "required": [
483
+ "element"
484
+ ]
485
+ },
486
+ "metrics": {
487
+ "type": "object",
488
+ "properties": {
489
+ "function": {
490
+ "type": "string",
491
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$"
492
+ }
493
+ },
494
+ "required": [
495
+ "function"
496
+ ]
497
+ },
498
+ "calendarSources": {
499
+ "maxItems": 5,
500
+ "type": "array",
501
+ "items": {
502
+ "type": "object",
503
+ "properties": {
504
+ "id": {
505
+ "type": "string",
506
+ "minLength": 2,
507
+ "maxLength": 48,
508
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
509
+ },
510
+ "label": {
511
+ "type": "string",
512
+ "minLength": 1,
513
+ "maxLength": 80
514
+ },
515
+ "function": {
516
+ "type": "string",
517
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$"
518
+ }
519
+ },
520
+ "required": [
521
+ "id",
522
+ "label",
523
+ "function"
524
+ ]
525
+ }
526
+ },
527
+ "mcpTools": {
528
+ "maxItems": 20,
529
+ "type": "array",
530
+ "items": {
531
+ "type": "object",
532
+ "properties": {
533
+ "name": {
534
+ "type": "string",
535
+ "pattern": "^[a-z][a-z0-9_]{0,47}$"
536
+ },
537
+ "description": {
538
+ "type": "string",
539
+ "minLength": 1,
540
+ "maxLength": 500
541
+ },
542
+ "function": {
543
+ "type": "string",
544
+ "pattern": "^[a-zA-Z][a-zA-Z0-9_-]{0,63}$"
545
+ },
546
+ "input": {
547
+ "type": "object",
548
+ "propertyNames": {
549
+ "type": "string"
550
+ },
551
+ "additionalProperties": {}
552
+ }
553
+ },
554
+ "required": [
555
+ "name",
556
+ "description",
557
+ "function"
558
+ ]
559
+ }
560
+ }
561
+ },
562
+ "additionalProperties": false
563
+ }
564
+ },
565
+ "required": [
566
+ "id",
567
+ "name",
568
+ "version",
569
+ "publisher",
570
+ "atlasApi"
571
+ ],
572
+ "additionalProperties": false
573
+ }