codify-schemas 1.0.69 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/messages/get-resource-info-response-data-schema.json +2 -11
- package/dist/types/index.d.ts +1 -3
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/messages/get-resource-info-response-data-schema.json +2 -11
- package/src/messages/get-resource-info-response-data-schema.test.ts +9 -7
- package/src/schemastore/codify-schema.json +87 -107
- package/src/types/index.ts +8 -10
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"importAndDestroy": {
|
|
37
37
|
"type": "object",
|
|
38
38
|
"properties": {
|
|
39
|
-
"
|
|
39
|
+
"requiredParameters": {
|
|
40
40
|
"type": "array",
|
|
41
41
|
"items": {
|
|
42
42
|
"type": "string"
|
|
@@ -50,16 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"allowMultiple": {
|
|
53
|
-
"type": "
|
|
54
|
-
"properties": {
|
|
55
|
-
"requiredProperties": {
|
|
56
|
-
"type": "array",
|
|
57
|
-
"items": {
|
|
58
|
-
"type": "string"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"required": ["requiredProperties"]
|
|
53
|
+
"type": "boolean"
|
|
63
54
|
}
|
|
64
55
|
},
|
|
65
56
|
"required": ["type", "plugin"]
|
package/dist/types/index.d.ts
CHANGED
|
@@ -100,9 +100,7 @@ export interface GetResourceInfoResponseData {
|
|
|
100
100
|
requiredParameters: string[] | null;
|
|
101
101
|
preventImport?: boolean;
|
|
102
102
|
};
|
|
103
|
-
allowMultiple
|
|
104
|
-
requiredParameters: string[];
|
|
105
|
-
};
|
|
103
|
+
allowMultiple: boolean;
|
|
106
104
|
}
|
|
107
105
|
export interface ImportRequestData {
|
|
108
106
|
core: ResourceConfig;
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AA6CD,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB;AA6CD,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,sCAAiB,CAAA;IACjB,0CAAqB,CAAA;IACrB,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,mCAAa,CAAA;AACf,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAkFD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
|
package/package.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"importAndDestroy": {
|
|
37
37
|
"type": "object",
|
|
38
38
|
"properties": {
|
|
39
|
-
"
|
|
39
|
+
"requiredParameters": {
|
|
40
40
|
"type": "array",
|
|
41
41
|
"items": {
|
|
42
42
|
"type": "string"
|
|
@@ -50,16 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"allowMultiple": {
|
|
53
|
-
"type": "
|
|
54
|
-
"properties": {
|
|
55
|
-
"requiredProperties": {
|
|
56
|
-
"type": "array",
|
|
57
|
-
"items": {
|
|
58
|
-
"type": "string"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"required": ["requiredProperties"]
|
|
53
|
+
"type": "boolean"
|
|
63
54
|
}
|
|
64
55
|
},
|
|
65
56
|
"required": ["type", "plugin"]
|
|
@@ -53,11 +53,9 @@ describe('Get resources response data schema', () => {
|
|
|
53
53
|
},
|
|
54
54
|
importAndDestroy: {
|
|
55
55
|
preventImport: true,
|
|
56
|
-
|
|
56
|
+
requiredParameters: ['plugin']
|
|
57
57
|
},
|
|
58
|
-
allowMultiple:
|
|
59
|
-
requiredProperties: ['plugin']
|
|
60
|
-
}
|
|
58
|
+
allowMultiple: true,
|
|
61
59
|
})).to.be.true;
|
|
62
60
|
|
|
63
61
|
expect(validate({
|
|
@@ -106,9 +104,7 @@ describe('Get resources response data schema', () => {
|
|
|
106
104
|
preventImport: true,
|
|
107
105
|
requiredParameters: ['plugin'],
|
|
108
106
|
},
|
|
109
|
-
allowMultiple:
|
|
110
|
-
requiredParameters: ['plugin']
|
|
111
|
-
}
|
|
107
|
+
allowMultiple: false,
|
|
112
108
|
}
|
|
113
109
|
})
|
|
114
110
|
|
|
@@ -143,6 +139,12 @@ describe('Get resources response data schema', () => {
|
|
|
143
139
|
}
|
|
144
140
|
|
|
145
141
|
})).to.be.false;
|
|
142
|
+
|
|
143
|
+
expect(validate({
|
|
144
|
+
type: 'type',
|
|
145
|
+
plugin: 'core-plugin',
|
|
146
|
+
allowMultiple: {}
|
|
147
|
+
})).to.be.false;
|
|
146
148
|
})
|
|
147
149
|
|
|
148
150
|
})
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"additionalProperties": false
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
+
"description": "Set and manage global git settings (email and username)",
|
|
38
39
|
"type": "object",
|
|
39
40
|
"properties": {
|
|
40
41
|
"email": {
|
|
@@ -65,8 +66,7 @@
|
|
|
65
66
|
"additionalProperties": false,
|
|
66
67
|
"required": [
|
|
67
68
|
"type"
|
|
68
|
-
]
|
|
69
|
-
"description": "Resource type: \"git\" | Resource Schema"
|
|
69
|
+
]
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"type": "object",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
},
|
|
91
91
|
"required": [
|
|
92
92
|
"type"
|
|
93
|
-
]
|
|
94
|
-
"description": "Resource type: \"xcode-tools\" | Resource Schema"
|
|
93
|
+
]
|
|
95
94
|
},
|
|
96
95
|
{
|
|
96
|
+
"description": "Manages user paths. It will permanently save paths by adding them to the shell startup script.",
|
|
97
97
|
"type": "object",
|
|
98
98
|
"properties": {
|
|
99
99
|
"path": {
|
|
@@ -131,16 +131,16 @@
|
|
|
131
131
|
"additionalProperties": false,
|
|
132
132
|
"required": [
|
|
133
133
|
"type"
|
|
134
|
-
]
|
|
135
|
-
"description": "Resource type: \"path\" | Resource Schema"
|
|
134
|
+
]
|
|
136
135
|
},
|
|
137
136
|
{
|
|
137
|
+
"description": "Manages user aliases. It permanently saves the alias by adding it to the shell startup script.",
|
|
138
138
|
"type": "object",
|
|
139
139
|
"properties": {
|
|
140
140
|
"alias": {
|
|
141
141
|
"type": "string",
|
|
142
|
-
"pattern": "^[^ \t\n
|
|
143
|
-
"description": "The
|
|
142
|
+
"pattern": "^[^ \t\n/$`=|&;()<>'\"]*$",
|
|
143
|
+
"description": "The name of the alias"
|
|
144
144
|
},
|
|
145
145
|
"value": {
|
|
146
146
|
"type": "string",
|
|
@@ -167,10 +167,10 @@
|
|
|
167
167
|
"alias",
|
|
168
168
|
"type"
|
|
169
169
|
],
|
|
170
|
-
"additionalProperties": false
|
|
171
|
-
"description": "Resource type: \"alias\" | Resource Schema"
|
|
170
|
+
"additionalProperties": false
|
|
172
171
|
},
|
|
173
172
|
{
|
|
173
|
+
"description": "Install homebrew and manages formulae, casks and taps.",
|
|
174
174
|
"type": "object",
|
|
175
175
|
"properties": {
|
|
176
176
|
"formulae": {
|
|
@@ -198,6 +198,10 @@
|
|
|
198
198
|
"type": "boolean",
|
|
199
199
|
"description": "Skips installing an casks which has already been installed externally. This prevents homebrew from conflicting with the existing install. Defaults to true."
|
|
200
200
|
},
|
|
201
|
+
"onlyPlanUserInstalled": {
|
|
202
|
+
"type": "boolean",
|
|
203
|
+
"description": "Only consider packages that the user has explicitly specified in the plan and ignore any dependent packages"
|
|
204
|
+
},
|
|
201
205
|
"name": {
|
|
202
206
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
203
207
|
"type": "string",
|
|
@@ -218,20 +222,22 @@
|
|
|
218
222
|
"additionalProperties": false,
|
|
219
223
|
"required": [
|
|
220
224
|
"type"
|
|
221
|
-
]
|
|
222
|
-
"description": "Resource type: \"homebrew\" | Resource Schema"
|
|
225
|
+
]
|
|
223
226
|
},
|
|
224
227
|
{
|
|
225
228
|
"type": "object",
|
|
229
|
+
"description": "Install and manage Python versions using pyenv.",
|
|
226
230
|
"properties": {
|
|
227
231
|
"pythonVersions": {
|
|
228
232
|
"type": "array",
|
|
233
|
+
"description": "An array of Python versions to install using pyenv. Partial matching is supported (3.9 instead of 3.9.11)",
|
|
229
234
|
"items": {
|
|
230
235
|
"type": "string"
|
|
231
236
|
}
|
|
232
237
|
},
|
|
233
238
|
"global": {
|
|
234
|
-
"type": "string"
|
|
239
|
+
"type": "string",
|
|
240
|
+
"description": "The global Python version set by pyenv."
|
|
235
241
|
},
|
|
236
242
|
"name": {
|
|
237
243
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
@@ -253,10 +259,10 @@
|
|
|
253
259
|
"additionalProperties": false,
|
|
254
260
|
"required": [
|
|
255
261
|
"type"
|
|
256
|
-
]
|
|
257
|
-
"description": "Resource type: \"pyenv\" | Resource Schema"
|
|
262
|
+
]
|
|
258
263
|
},
|
|
259
264
|
{
|
|
265
|
+
"description": "Installs git-lfs. This resource will automatically activate git-lfs as well.",
|
|
260
266
|
"type": "object",
|
|
261
267
|
"properties": {
|
|
262
268
|
"name": {
|
|
@@ -279,11 +285,11 @@
|
|
|
279
285
|
"additionalProperties": false,
|
|
280
286
|
"required": [
|
|
281
287
|
"type"
|
|
282
|
-
]
|
|
283
|
-
"description": "Resource type: \"git-lfs\" | Resource Schema"
|
|
288
|
+
]
|
|
284
289
|
},
|
|
285
290
|
{
|
|
286
291
|
"type": "object",
|
|
292
|
+
"description": "Installs aws-cli.",
|
|
287
293
|
"properties": {
|
|
288
294
|
"name": {
|
|
289
295
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
@@ -305,11 +311,11 @@
|
|
|
305
311
|
"additionalProperties": false,
|
|
306
312
|
"required": [
|
|
307
313
|
"type"
|
|
308
|
-
]
|
|
309
|
-
"description": "Resource type: \"aws-cli\" | Resource Schema"
|
|
314
|
+
]
|
|
310
315
|
},
|
|
311
316
|
{
|
|
312
317
|
"type": "object",
|
|
318
|
+
"description": "Configures AWS profiles.",
|
|
313
319
|
"properties": {
|
|
314
320
|
"profile": {
|
|
315
321
|
"type": "string",
|
|
@@ -361,35 +367,22 @@
|
|
|
361
367
|
"type": "string"
|
|
362
368
|
}
|
|
363
369
|
},
|
|
364
|
-
"oneOf": [
|
|
365
|
-
{
|
|
366
|
-
"required": [
|
|
367
|
-
"awsAccessKeyId",
|
|
368
|
-
"awsSecretAccessKey",
|
|
369
|
-
"region"
|
|
370
|
-
]
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"required": [
|
|
374
|
-
"csvCredentials",
|
|
375
|
-
"region"
|
|
376
|
-
]
|
|
377
|
-
}
|
|
378
|
-
],
|
|
379
370
|
"additionalProperties": false,
|
|
380
371
|
"required": [
|
|
381
372
|
"type"
|
|
382
|
-
]
|
|
383
|
-
"description": "Resource type: \"aws-profile\" | Resource Schema"
|
|
373
|
+
]
|
|
384
374
|
},
|
|
385
375
|
{
|
|
376
|
+
"description": "Installs Terraform.",
|
|
386
377
|
"type": "object",
|
|
387
378
|
"properties": {
|
|
388
379
|
"directory": {
|
|
389
|
-
"type": "string"
|
|
380
|
+
"type": "string",
|
|
381
|
+
"description": "The directory to install Terraform. Defaults to /usr/local/bin."
|
|
390
382
|
},
|
|
391
383
|
"version": {
|
|
392
|
-
"type": "string"
|
|
384
|
+
"type": "string",
|
|
385
|
+
"description": "The specific version of Terraform to install. Defaults to latest."
|
|
393
386
|
},
|
|
394
387
|
"name": {
|
|
395
388
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
@@ -411,19 +404,21 @@
|
|
|
411
404
|
"additionalProperties": false,
|
|
412
405
|
"required": [
|
|
413
406
|
"type"
|
|
414
|
-
]
|
|
415
|
-
"description": "Resource type: \"terraform\" | Resource Schema"
|
|
407
|
+
]
|
|
416
408
|
},
|
|
417
409
|
{
|
|
410
|
+
"description": "Install and manage Node versions using nvm.",
|
|
418
411
|
"type": "object",
|
|
419
412
|
"properties": {
|
|
420
413
|
"nodeVersions": {
|
|
421
414
|
"type": "array",
|
|
415
|
+
"description": "An array of node versions to install using nvm. Partial matching is supported (20 instead of 20.15.1)",
|
|
422
416
|
"items": {
|
|
423
417
|
"type": "string"
|
|
424
418
|
}
|
|
425
419
|
},
|
|
426
420
|
"global": {
|
|
421
|
+
"description": "The global Node version set by nvm.",
|
|
427
422
|
"type": "string"
|
|
428
423
|
},
|
|
429
424
|
"name": {
|
|
@@ -446,19 +441,21 @@
|
|
|
446
441
|
"additionalProperties": false,
|
|
447
442
|
"required": [
|
|
448
443
|
"type"
|
|
449
|
-
]
|
|
450
|
-
"description": "Resource type: \"nvm\" | Resource Schema"
|
|
444
|
+
]
|
|
451
445
|
},
|
|
452
446
|
{
|
|
453
447
|
"type": "object",
|
|
448
|
+
"description": "Install jenv and manage Java versions using jenv. Jenv cannot install Java directly, it needs to be installed separately and added to Jenv.",
|
|
454
449
|
"properties": {
|
|
455
450
|
"add": {
|
|
456
451
|
"type": "array",
|
|
452
|
+
"description": "The java_home path to add to jenv. Jenv does not directly install Java. This resources optionally allows users to specify a LTS version instead of a path (8, 11, 17, 21, 22) and install it via Homebrew",
|
|
457
453
|
"items": {
|
|
458
454
|
"type": "string"
|
|
459
455
|
}
|
|
460
456
|
},
|
|
461
457
|
"global": {
|
|
458
|
+
"description": "Set the global Java version using Jenv.",
|
|
462
459
|
"type": "string"
|
|
463
460
|
},
|
|
464
461
|
"name": {
|
|
@@ -481,11 +478,11 @@
|
|
|
481
478
|
"additionalProperties": false,
|
|
482
479
|
"required": [
|
|
483
480
|
"type"
|
|
484
|
-
]
|
|
485
|
-
"description": "Resource type: \"jenv\" | Resource Schema"
|
|
481
|
+
]
|
|
486
482
|
},
|
|
487
483
|
{
|
|
488
484
|
"type": "object",
|
|
485
|
+
"description": "Installs pgcli.",
|
|
489
486
|
"properties": {
|
|
490
487
|
"name": {
|
|
491
488
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
@@ -507,15 +504,15 @@
|
|
|
507
504
|
"additionalProperties": false,
|
|
508
505
|
"required": [
|
|
509
506
|
"type"
|
|
510
|
-
]
|
|
511
|
-
"description": "Resource type: \"pgcli\" | Resource Schema"
|
|
507
|
+
]
|
|
512
508
|
},
|
|
513
509
|
{
|
|
510
|
+
"description": "Installs Vscode.",
|
|
514
511
|
"type": "object",
|
|
515
512
|
"properties": {
|
|
516
513
|
"directory": {
|
|
517
514
|
"type": "string",
|
|
518
|
-
"description": "The
|
|
515
|
+
"description": "The directory to install VSCode into. Defaults to /Applications.",
|
|
519
516
|
"default": "/Applications"
|
|
520
517
|
},
|
|
521
518
|
"name": {
|
|
@@ -538,10 +535,10 @@
|
|
|
538
535
|
"additionalProperties": false,
|
|
539
536
|
"required": [
|
|
540
537
|
"type"
|
|
541
|
-
]
|
|
542
|
-
"description": "Resource type: \"vscode\" | Resource Schema"
|
|
538
|
+
]
|
|
543
539
|
},
|
|
544
540
|
{
|
|
541
|
+
"description": "Git clone a repository. Choose either to specify the exact directory to clone into or the parent directory (it deduces the folder name using the repository name).",
|
|
545
542
|
"type": "object",
|
|
546
543
|
"properties": {
|
|
547
544
|
"repository": {
|
|
@@ -578,33 +575,23 @@
|
|
|
578
575
|
}
|
|
579
576
|
},
|
|
580
577
|
"additionalProperties": false,
|
|
581
|
-
"oneOf": [
|
|
582
|
-
{
|
|
583
|
-
"required": [
|
|
584
|
-
"repository",
|
|
585
|
-
"directory"
|
|
586
|
-
]
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"required": [
|
|
590
|
-
"repository",
|
|
591
|
-
"parentDirectory"
|
|
592
|
-
]
|
|
593
|
-
}
|
|
594
|
-
],
|
|
595
578
|
"required": [
|
|
596
579
|
"type"
|
|
597
|
-
]
|
|
598
|
-
"description": "Resource type: \"git-clone\" | Resource Schema"
|
|
580
|
+
]
|
|
599
581
|
},
|
|
600
582
|
{
|
|
601
583
|
"type": "object",
|
|
584
|
+
"description": "Install Android Studios.",
|
|
602
585
|
"properties": {
|
|
603
586
|
"version": {
|
|
604
587
|
"type": "string",
|
|
605
588
|
"description": "Android studios version. Visit: https://developer.android.com/studio/releases for version info"
|
|
606
589
|
},
|
|
607
|
-
"directory": {
|
|
590
|
+
"directory": {
|
|
591
|
+
"type": "string",
|
|
592
|
+
"description": "The directory to install Android Studios into. Defaults to /Applications",
|
|
593
|
+
"default": "/Applications"
|
|
594
|
+
},
|
|
608
595
|
"name": {
|
|
609
596
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
610
597
|
"type": "string",
|
|
@@ -625,11 +612,11 @@
|
|
|
625
612
|
"additionalProperties": false,
|
|
626
613
|
"required": [
|
|
627
614
|
"type"
|
|
628
|
-
]
|
|
629
|
-
"description": "Resource type: \"android-studio\" | Resource Schema"
|
|
615
|
+
]
|
|
630
616
|
},
|
|
631
617
|
{
|
|
632
618
|
"type": "object",
|
|
619
|
+
"description": "Installs asdf and manages asdf plugins. Use 'asdf-install' or 'asdf-plugin' to install the actual tool. Use 'asdf-global' or 'asdf-local' to activate the tool in the shell.",
|
|
633
620
|
"properties": {
|
|
634
621
|
"plugins": {
|
|
635
622
|
"type": "array",
|
|
@@ -658,10 +645,10 @@
|
|
|
658
645
|
"additionalProperties": false,
|
|
659
646
|
"required": [
|
|
660
647
|
"type"
|
|
661
|
-
]
|
|
662
|
-
"description": "Resource type: \"asdf\" | Resource Schema"
|
|
648
|
+
]
|
|
663
649
|
},
|
|
664
650
|
{
|
|
651
|
+
"description": "Installs a plugin and manages specific tool versions.",
|
|
665
652
|
"type": "object",
|
|
666
653
|
"properties": {
|
|
667
654
|
"plugin": {
|
|
@@ -700,11 +687,11 @@
|
|
|
700
687
|
"plugin",
|
|
701
688
|
"type"
|
|
702
689
|
],
|
|
703
|
-
"additionalProperties": false
|
|
704
|
-
"description": "Resource type: \"asdf-plugin\" | Resource Schema"
|
|
690
|
+
"additionalProperties": false
|
|
705
691
|
},
|
|
706
692
|
{
|
|
707
693
|
"type": "object",
|
|
694
|
+
"description": "Manage the asdf global version for a tool. An asdf-global or asdf-local resource must be specified before a tool installed with asdf is active in the shell.",
|
|
708
695
|
"properties": {
|
|
709
696
|
"plugin": {
|
|
710
697
|
"type": "string",
|
|
@@ -736,10 +723,10 @@
|
|
|
736
723
|
"version",
|
|
737
724
|
"type"
|
|
738
725
|
],
|
|
739
|
-
"additionalProperties": false
|
|
740
|
-
"description": "Resource type: \"asdf-global\" | Resource Schema"
|
|
726
|
+
"additionalProperties": false
|
|
741
727
|
},
|
|
742
728
|
{
|
|
729
|
+
"description": "Manage the asdf local version for a tool. An asdf-global or asdf-local resource must be specified before a tool installed with asdf is active in the shell.",
|
|
743
730
|
"type": "object",
|
|
744
731
|
"properties": {
|
|
745
732
|
"plugin": {
|
|
@@ -783,11 +770,11 @@
|
|
|
783
770
|
"version",
|
|
784
771
|
"type"
|
|
785
772
|
],
|
|
786
|
-
"additionalProperties": false
|
|
787
|
-
"description": "Resource type: \"asdf-local\" | Resource Schema"
|
|
773
|
+
"additionalProperties": false
|
|
788
774
|
},
|
|
789
775
|
{
|
|
790
776
|
"type": "object",
|
|
777
|
+
"description": "Install a .tools-version file or directly install an asdf plugin + tool version.",
|
|
791
778
|
"properties": {
|
|
792
779
|
"plugin": {
|
|
793
780
|
"type": "string",
|
|
@@ -837,10 +824,10 @@
|
|
|
837
824
|
"additionalProperties": false,
|
|
838
825
|
"required": [
|
|
839
826
|
"type"
|
|
840
|
-
]
|
|
841
|
-
"description": "Resource type: \"asdf-install\" | Resource Schema"
|
|
827
|
+
]
|
|
842
828
|
},
|
|
843
829
|
{
|
|
830
|
+
"description": "Generate and manage a ssh private/public key.",
|
|
844
831
|
"type": "object",
|
|
845
832
|
"properties": {
|
|
846
833
|
"keyType": {
|
|
@@ -895,10 +882,10 @@
|
|
|
895
882
|
"passphrase",
|
|
896
883
|
"type"
|
|
897
884
|
],
|
|
898
|
-
"additionalProperties": false
|
|
899
|
-
"description": "Resource type: \"ssh-key\" | Resource Schema"
|
|
885
|
+
"additionalProperties": false
|
|
900
886
|
},
|
|
901
887
|
{
|
|
888
|
+
"description": "Configures the ssh config file.",
|
|
902
889
|
"type": "object",
|
|
903
890
|
"properties": {
|
|
904
891
|
"hosts": {
|
|
@@ -956,19 +943,7 @@
|
|
|
956
943
|
"type": "boolean",
|
|
957
944
|
"description": "Specifies whether to use password authentication."
|
|
958
945
|
}
|
|
959
|
-
}
|
|
960
|
-
"oneOf": [
|
|
961
|
-
{
|
|
962
|
-
"required": [
|
|
963
|
-
"Host"
|
|
964
|
-
]
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
"required": [
|
|
968
|
-
"Match"
|
|
969
|
-
]
|
|
970
|
-
}
|
|
971
|
-
]
|
|
946
|
+
}
|
|
972
947
|
}
|
|
973
948
|
},
|
|
974
949
|
"name": {
|
|
@@ -992,10 +967,10 @@
|
|
|
992
967
|
"hosts",
|
|
993
968
|
"type"
|
|
994
969
|
],
|
|
995
|
-
"additionalProperties": false
|
|
996
|
-
"description": "Resource type: \"ssh-config\" | Resource Schema"
|
|
970
|
+
"additionalProperties": false
|
|
997
971
|
},
|
|
998
972
|
{
|
|
973
|
+
"description": "Adds ssh private keys to the ssh agent.",
|
|
999
974
|
"type": "object",
|
|
1000
975
|
"properties": {
|
|
1001
976
|
"path": {
|
|
@@ -1027,20 +1002,23 @@
|
|
|
1027
1002
|
"path",
|
|
1028
1003
|
"type"
|
|
1029
1004
|
],
|
|
1030
|
-
"additionalProperties": false
|
|
1031
|
-
"description": "Resource type: \"ssh-add\" | Resource Schema"
|
|
1005
|
+
"additionalProperties": false
|
|
1032
1006
|
},
|
|
1033
1007
|
{
|
|
1008
|
+
"description": "Run custom scripts using the action resource. A condition can be specified to conditionally trigger a script.",
|
|
1034
1009
|
"type": "object",
|
|
1035
1010
|
"properties": {
|
|
1036
1011
|
"condition": {
|
|
1037
|
-
"type": "string"
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"description": "A condition (in bash) that decides if the action is triggered. Return 0 to trigger and any non-zero exit code to skip."
|
|
1038
1014
|
},
|
|
1039
1015
|
"action": {
|
|
1040
|
-
"type": "string"
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"description": "A bash command to run."
|
|
1041
1018
|
},
|
|
1042
1019
|
"cwd": {
|
|
1043
|
-
"type": "string"
|
|
1020
|
+
"type": "string",
|
|
1021
|
+
"description": "The directory that the action should be ran in."
|
|
1044
1022
|
},
|
|
1045
1023
|
"name": {
|
|
1046
1024
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
@@ -1063,20 +1041,23 @@
|
|
|
1063
1041
|
"action",
|
|
1064
1042
|
"type"
|
|
1065
1043
|
],
|
|
1066
|
-
"additionalProperties": false
|
|
1067
|
-
"description": "Resource type: \"action\" | Resource Schema"
|
|
1044
|
+
"additionalProperties": false
|
|
1068
1045
|
},
|
|
1069
1046
|
{
|
|
1047
|
+
"description": "Manages a file.",
|
|
1070
1048
|
"type": "object",
|
|
1071
1049
|
"properties": {
|
|
1072
1050
|
"path": {
|
|
1073
|
-
"type": "string"
|
|
1051
|
+
"type": "string",
|
|
1052
|
+
"description": "The location of the file."
|
|
1074
1053
|
},
|
|
1075
1054
|
"contents": {
|
|
1076
|
-
"type": "string"
|
|
1055
|
+
"type": "string",
|
|
1056
|
+
"description": "The contents of the file."
|
|
1077
1057
|
},
|
|
1078
1058
|
"onlyCreate": {
|
|
1079
|
-
"type": "boolean"
|
|
1059
|
+
"type": "boolean",
|
|
1060
|
+
"description": "Forces the resource to only create the file if it doesn't exist but don't detect any content changes."
|
|
1080
1061
|
},
|
|
1081
1062
|
"name": {
|
|
1082
1063
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
@@ -1100,8 +1081,7 @@
|
|
|
1100
1081
|
"contents",
|
|
1101
1082
|
"type"
|
|
1102
1083
|
],
|
|
1103
|
-
"additionalProperties": false
|
|
1104
|
-
"description": "Resource type: \"file\" | Resource Schema"
|
|
1084
|
+
"additionalProperties": false
|
|
1105
1085
|
}
|
|
1106
1086
|
]
|
|
1107
1087
|
}
|
package/src/types/index.ts
CHANGED
|
@@ -104,21 +104,19 @@ export interface GetResourceInfoRequestData {
|
|
|
104
104
|
export interface GetResourceInfoResponseData {
|
|
105
105
|
plugin: string;
|
|
106
106
|
type: string;
|
|
107
|
-
schema?: Record<string, unknown
|
|
108
|
-
dependencies?: string[]
|
|
107
|
+
schema?: Record<string, unknown>;
|
|
108
|
+
dependencies?: string[];
|
|
109
109
|
/**
|
|
110
110
|
* @deprecated: Use import and destroy instead.
|
|
111
111
|
*/
|
|
112
112
|
import?: {
|
|
113
|
-
requiredParameters: string[] | null
|
|
113
|
+
requiredParameters: string[] | null;
|
|
114
114
|
},
|
|
115
115
|
importAndDestroy?: {
|
|
116
|
-
requiredParameters: string[] | null
|
|
117
|
-
preventImport?: boolean
|
|
116
|
+
requiredParameters: string[] | null;
|
|
117
|
+
preventImport?: boolean;
|
|
118
118
|
},
|
|
119
|
-
allowMultiple
|
|
120
|
-
requiredParameters: string[]
|
|
121
|
-
}
|
|
119
|
+
allowMultiple: boolean;
|
|
122
120
|
}
|
|
123
121
|
|
|
124
122
|
export interface ImportRequestData {
|
|
@@ -127,8 +125,8 @@ export interface ImportRequestData {
|
|
|
127
125
|
}
|
|
128
126
|
|
|
129
127
|
export interface ImportResponseData {
|
|
130
|
-
request: ResourceJson
|
|
131
|
-
result: Array<ResourceJson
|
|
128
|
+
request: ResourceJson;
|
|
129
|
+
result: Array<ResourceJson>;
|
|
132
130
|
}
|
|
133
131
|
|
|
134
132
|
export interface ApplyRequestData {
|