codify-schemas 1.0.76 → 1.0.78
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/.env +2 -0
- package/dist/messages/commands.d.ts +2 -1
- package/dist/messages/commands.js +1 -0
- package/dist/messages/commands.js.map +1 -1
- package/dist/messages/get-resource-info-response-data-schema.json +6 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +7 -3
- package/scripts/upload-resources.ts +58 -0
- package/src/messages/commands.ts +1 -0
- package/src/messages/get-resource-info-response-data-schema.json +6 -0
- package/src/messages/get-resource-info-response-data-schema.test.ts +8 -2
- package/src/schemastore/codify-schema.json +534 -1
- package/src/types/index.ts +2 -0
- package/.vscode/tasks.json +0 -16
package/.env
ADDED
|
@@ -4,5 +4,6 @@ export declare enum MessageCmd {
|
|
|
4
4
|
PLAN = "plan",
|
|
5
5
|
APPLY = "apply",
|
|
6
6
|
SUDO_REQUEST = "sudo_request",
|
|
7
|
-
PRESS_KEY_TO_CONTINUE_REQUEST = "press_key_to_continue_request"
|
|
7
|
+
PRESS_KEY_TO_CONTINUE_REQUEST = "press_key_to_continue_request",
|
|
8
|
+
CODIFY_CREDENTIALS_REQUEST = "codify_credentials_request"
|
|
8
9
|
}
|
|
@@ -6,5 +6,6 @@ export var MessageCmd;
|
|
|
6
6
|
MessageCmd["APPLY"] = "apply";
|
|
7
7
|
MessageCmd["SUDO_REQUEST"] = "sudo_request";
|
|
8
8
|
MessageCmd["PRESS_KEY_TO_CONTINUE_REQUEST"] = "press_key_to_continue_request";
|
|
9
|
+
MessageCmd["CODIFY_CREDENTIALS_REQUEST"] = "codify_credentials_request";
|
|
9
10
|
})(MessageCmd || (MessageCmd = {}));
|
|
10
11
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/messages/commands.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/messages/commands.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,UAQX;AARD,WAAY,UAAU;IACpB,uCAAyB,CAAA;IACzB,mCAAqB,CAAA;IACrB,2BAAa,CAAA;IACb,6BAAe,CAAA;IACf,2CAA6B,CAAA;IAC7B,6EAA+D,CAAA;IAC/D,uEAAyD,CAAA;AAC3D,CAAC,EARW,UAAU,KAAV,UAAU,QAQrB"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -100,6 +100,7 @@ export interface GetResourceInfoResponseData {
|
|
|
100
100
|
requiredParameters: string[] | null;
|
|
101
101
|
preventImport?: boolean;
|
|
102
102
|
};
|
|
103
|
+
sensitiveProperties: string[];
|
|
103
104
|
allowMultiple: boolean;
|
|
104
105
|
}
|
|
105
106
|
export interface MatchRequestData {
|
|
@@ -122,6 +123,7 @@ export interface ImportRequestData {
|
|
|
122
123
|
core: ResourceConfig;
|
|
123
124
|
parameters: Record<string, unknown>;
|
|
124
125
|
autoSearchAll?: boolean;
|
|
126
|
+
includeSensitive?: boolean;
|
|
125
127
|
}
|
|
126
128
|
export interface ImportResponseData {
|
|
127
129
|
request: ResourceJson;
|
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;AAoHD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codify-schemas",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"typings": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"test": "vitest",
|
|
10
|
-
"prepublishOnly": "tsc"
|
|
10
|
+
"prepublishOnly": "tsc",
|
|
11
|
+
"script:upload-plugin": "tsx scripts/upload-resources.ts"
|
|
11
12
|
},
|
|
12
13
|
"keywords": [],
|
|
13
14
|
"author": "",
|
|
@@ -19,6 +20,9 @@
|
|
|
19
20
|
"@types/node": "20.17.14",
|
|
20
21
|
"vitest": "^1.4.0",
|
|
21
22
|
"typescript": "^5.3.3",
|
|
22
|
-
"ajv-formats": "^3.0.1"
|
|
23
|
+
"ajv-formats": "^3.0.1",
|
|
24
|
+
"@supabase/supabase-js": "^2.50.0",
|
|
25
|
+
"tsx": "^4.20.3",
|
|
26
|
+
"dotenv": "^16.5.0"
|
|
23
27
|
}
|
|
24
28
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import dotenv from 'dotenv'
|
|
2
|
+
import CodifySchema from '../src/schemastore/codify-schema.json' with {type: 'json'}
|
|
3
|
+
import {createClient} from "@supabase/supabase-js";
|
|
4
|
+
|
|
5
|
+
dotenv.config({ path: '../.env' })
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This is an upload script to upload new resources. Update the codify-schema.json file and
|
|
9
|
+
* run this script. Since it's a worker you'll need to open up the URL before it runs.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const client = createClient(
|
|
13
|
+
process.env.SUPABASE_URL!,
|
|
14
|
+
process.env.SUPABASE_SERVICE_ROLE_KEY!,
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
async function main() {
|
|
18
|
+
console.log('Adding default plugin');
|
|
19
|
+
const defaultPlugin = await client.from('registry_plugins').upsert({
|
|
20
|
+
name: 'default',
|
|
21
|
+
}, {onConflict: 'name'})
|
|
22
|
+
.select()
|
|
23
|
+
.throwOnError();
|
|
24
|
+
|
|
25
|
+
const { id: pluginId, name: pluginName } = defaultPlugin.data![0];
|
|
26
|
+
const resources = CodifySchema.items.oneOf;
|
|
27
|
+
|
|
28
|
+
for (const resource of resources) {
|
|
29
|
+
const type = resource.properties.type.const;
|
|
30
|
+
|
|
31
|
+
console.log(`Adding resource ${type}`)
|
|
32
|
+
const resourceRow = await client.from('registry_resources').upsert({
|
|
33
|
+
type,
|
|
34
|
+
plugin_id: pluginId,
|
|
35
|
+
plugin_name: pluginName,
|
|
36
|
+
schema: JSON.stringify(resource),
|
|
37
|
+
documentation_url: resource.$comment,
|
|
38
|
+
}, {onConflict: ['type', 'plugin_id']})
|
|
39
|
+
.select();
|
|
40
|
+
|
|
41
|
+
const { id: resourceId } = resourceRow.data![0];
|
|
42
|
+
|
|
43
|
+
const parameters = Object.entries(resource.properties)
|
|
44
|
+
.filter(([k]) => k !== 'type')
|
|
45
|
+
.map(([key, property]) => ({
|
|
46
|
+
type: property.type,
|
|
47
|
+
name: key,
|
|
48
|
+
resource_id: resourceId,
|
|
49
|
+
schema: property,
|
|
50
|
+
}))
|
|
51
|
+
|
|
52
|
+
await client.from('registry_resource_parameters').upsert(parameters, {onConflict: ['name', 'resource_id']});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return new Response('Upload complete');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
main();
|
package/src/messages/commands.ts
CHANGED
|
@@ -40,7 +40,8 @@ describe('Get resources response data schema', () => {
|
|
|
40
40
|
"items": {
|
|
41
41
|
"type": "string"
|
|
42
42
|
}
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
|
+
"sensitiveProperties": ['schema']
|
|
44
45
|
},
|
|
45
46
|
dependencies: [
|
|
46
47
|
"typeA",
|
|
@@ -134,10 +135,15 @@ describe('Get resources response data schema', () => {
|
|
|
134
135
|
"items": {
|
|
135
136
|
"type": "string"
|
|
136
137
|
}
|
|
138
|
+
},
|
|
139
|
+
"sensitiveProperties": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
}
|
|
137
144
|
}
|
|
138
145
|
}
|
|
139
146
|
}
|
|
140
|
-
|
|
141
147
|
})).to.be.false;
|
|
142
148
|
|
|
143
149
|
expect(validate({
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"additionalProperties": false
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
+
"$comment": "https://docs.codifycli.com/core-resources/git/git/",
|
|
38
39
|
"description": "Set and manage global git settings (email and username)",
|
|
39
40
|
"type": "object",
|
|
40
41
|
"properties": {
|
|
@@ -93,6 +94,7 @@
|
|
|
93
94
|
]
|
|
94
95
|
},
|
|
95
96
|
{
|
|
97
|
+
"$comment": "https://docs.codifycli.com/core-resources/path/",
|
|
96
98
|
"description": "Manages user paths. It will permanently save paths by adding them to the shell startup script.",
|
|
97
99
|
"type": "object",
|
|
98
100
|
"properties": {
|
|
@@ -139,6 +141,7 @@
|
|
|
139
141
|
]
|
|
140
142
|
},
|
|
141
143
|
{
|
|
144
|
+
"$comment": "https://docs.codifycli.com/core-resources/alias/",
|
|
142
145
|
"description": "Manages user aliases. It permanently saves the alias by adding it to the shell startup script.",
|
|
143
146
|
"type": "object",
|
|
144
147
|
"properties": {
|
|
@@ -175,6 +178,7 @@
|
|
|
175
178
|
"additionalProperties": false
|
|
176
179
|
},
|
|
177
180
|
{
|
|
181
|
+
"$comment": "https://docs.codifycli.com/core-resources/homebrew/",
|
|
178
182
|
"description": "Install homebrew and manages formulae, casks and taps.",
|
|
179
183
|
"type": "object",
|
|
180
184
|
"properties": {
|
|
@@ -230,6 +234,7 @@
|
|
|
230
234
|
]
|
|
231
235
|
},
|
|
232
236
|
{
|
|
237
|
+
"$comment": "https://docs.codifycli.com/core-resources/python/pyenv/",
|
|
233
238
|
"type": "object",
|
|
234
239
|
"description": "Install and manage Python versions using pyenv.",
|
|
235
240
|
"properties": {
|
|
@@ -267,6 +272,7 @@
|
|
|
267
272
|
]
|
|
268
273
|
},
|
|
269
274
|
{
|
|
275
|
+
"$comment": "https://docs.codifycli.com/core-resources/git/git-lfs/",
|
|
270
276
|
"description": "Installs git-lfs. This resource will automatically activate git-lfs as well.",
|
|
271
277
|
"type": "object",
|
|
272
278
|
"properties": {
|
|
@@ -293,6 +299,7 @@
|
|
|
293
299
|
]
|
|
294
300
|
},
|
|
295
301
|
{
|
|
302
|
+
"$comment": "https://docs.codifycli.com/core-resources/aws-cli/",
|
|
296
303
|
"type": "object",
|
|
297
304
|
"description": "Installs aws-cli.",
|
|
298
305
|
"properties": {
|
|
@@ -319,6 +326,7 @@
|
|
|
319
326
|
]
|
|
320
327
|
},
|
|
321
328
|
{
|
|
329
|
+
"$comment": "https://docs.codifycli.com/core-resources/aws-profile/",
|
|
322
330
|
"type": "object",
|
|
323
331
|
"description": "Configures AWS profiles.",
|
|
324
332
|
"properties": {
|
|
@@ -378,6 +386,7 @@
|
|
|
378
386
|
]
|
|
379
387
|
},
|
|
380
388
|
{
|
|
389
|
+
"$comment": "https://docs.codifycli.com/core-resources/terraform/",
|
|
381
390
|
"description": "Installs Terraform.",
|
|
382
391
|
"type": "object",
|
|
383
392
|
"properties": {
|
|
@@ -412,6 +421,7 @@
|
|
|
412
421
|
]
|
|
413
422
|
},
|
|
414
423
|
{
|
|
424
|
+
"$comment": "https://docs.codifycli.com/core-resources/javascript/nvm/",
|
|
415
425
|
"description": "Install and manage Node versions using nvm.",
|
|
416
426
|
"type": "object",
|
|
417
427
|
"properties": {
|
|
@@ -449,6 +459,7 @@
|
|
|
449
459
|
]
|
|
450
460
|
},
|
|
451
461
|
{
|
|
462
|
+
"$comment": "https://docs.codifycli.com/core-resources/jenv/",
|
|
452
463
|
"type": "object",
|
|
453
464
|
"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
465
|
"properties": {
|
|
@@ -486,6 +497,7 @@
|
|
|
486
497
|
]
|
|
487
498
|
},
|
|
488
499
|
{
|
|
500
|
+
"$comment": "https://docs.codifycli.com/core-resources/pgcli/",
|
|
489
501
|
"type": "object",
|
|
490
502
|
"description": "Installs pgcli.",
|
|
491
503
|
"properties": {
|
|
@@ -512,6 +524,7 @@
|
|
|
512
524
|
]
|
|
513
525
|
},
|
|
514
526
|
{
|
|
527
|
+
"$comment": "https://docs.codifycli.com/core-resources/vscode/",
|
|
515
528
|
"description": "Installs Vscode.",
|
|
516
529
|
"type": "object",
|
|
517
530
|
"properties": {
|
|
@@ -543,6 +556,7 @@
|
|
|
543
556
|
]
|
|
544
557
|
},
|
|
545
558
|
{
|
|
559
|
+
"$comment": "https://docs.codifycli.com/core-resources/git/git-repository/",
|
|
546
560
|
"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).",
|
|
547
561
|
"type": "object",
|
|
548
562
|
"properties": {
|
|
@@ -575,7 +589,7 @@
|
|
|
575
589
|
"uniqueItems": true
|
|
576
590
|
},
|
|
577
591
|
"type": {
|
|
578
|
-
"const": "git-
|
|
592
|
+
"const": "git-repository",
|
|
579
593
|
"type": "string"
|
|
580
594
|
}
|
|
581
595
|
},
|
|
@@ -585,6 +599,7 @@
|
|
|
585
599
|
]
|
|
586
600
|
},
|
|
587
601
|
{
|
|
602
|
+
"$comment": "https://docs.codifycli.com/core-resources/android-studio/",
|
|
588
603
|
"type": "object",
|
|
589
604
|
"description": "Install Android Studios.",
|
|
590
605
|
"properties": {
|
|
@@ -620,6 +635,7 @@
|
|
|
620
635
|
]
|
|
621
636
|
},
|
|
622
637
|
{
|
|
638
|
+
"$comment": "https://docs.codifycli.com/core-resources/asdf/asdf/",
|
|
623
639
|
"type": "object",
|
|
624
640
|
"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.",
|
|
625
641
|
"properties": {
|
|
@@ -653,6 +669,7 @@
|
|
|
653
669
|
]
|
|
654
670
|
},
|
|
655
671
|
{
|
|
672
|
+
"$comment": "https://docs.codifycli.com/core-resources/asdf/asdf-plugin/",
|
|
656
673
|
"description": "Installs a plugin and manages specific tool versions.",
|
|
657
674
|
"type": "object",
|
|
658
675
|
"properties": {
|
|
@@ -695,6 +712,7 @@
|
|
|
695
712
|
"additionalProperties": false
|
|
696
713
|
},
|
|
697
714
|
{
|
|
715
|
+
"$comment": "https://docs.codifycli.com/core-resources/asdf/asdf-global/",
|
|
698
716
|
"type": "object",
|
|
699
717
|
"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.",
|
|
700
718
|
"properties": {
|
|
@@ -731,6 +749,7 @@
|
|
|
731
749
|
"additionalProperties": false
|
|
732
750
|
},
|
|
733
751
|
{
|
|
752
|
+
"$comment": "https://docs.codifycli.com/core-resources/asdf/asdf-local/",
|
|
734
753
|
"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.",
|
|
735
754
|
"type": "object",
|
|
736
755
|
"properties": {
|
|
@@ -778,6 +797,7 @@
|
|
|
778
797
|
"additionalProperties": false
|
|
779
798
|
},
|
|
780
799
|
{
|
|
800
|
+
"$comment": "https://docs.codifycli.com/core-resources/asdf/asdf-install/",
|
|
781
801
|
"type": "object",
|
|
782
802
|
"description": "Install a .tools-version file or directly install an asdf plugin + tool version.",
|
|
783
803
|
"properties": {
|
|
@@ -819,6 +839,7 @@
|
|
|
819
839
|
]
|
|
820
840
|
},
|
|
821
841
|
{
|
|
842
|
+
"$comment": "https://docs.codifycli.com/core-resources/ssh/ssh-key/",
|
|
822
843
|
"description": "Generate and manage a ssh private/public key.",
|
|
823
844
|
"type": "object",
|
|
824
845
|
"properties": {
|
|
@@ -877,6 +898,7 @@
|
|
|
877
898
|
"additionalProperties": false
|
|
878
899
|
},
|
|
879
900
|
{
|
|
901
|
+
"$comment": "https://docs.codifycli.com/core-resources/ssh/ssh-config/",
|
|
880
902
|
"description": "Configures the ssh config file.",
|
|
881
903
|
"type": "object",
|
|
882
904
|
"properties": {
|
|
@@ -962,6 +984,7 @@
|
|
|
962
984
|
"additionalProperties": false
|
|
963
985
|
},
|
|
964
986
|
{
|
|
987
|
+
"$comment": "https://docs.codifycli.com/core-resources/ssh/ssh-add/",
|
|
965
988
|
"description": "Adds ssh private keys to the ssh agent.",
|
|
966
989
|
"type": "object",
|
|
967
990
|
"properties": {
|
|
@@ -997,6 +1020,7 @@
|
|
|
997
1020
|
"additionalProperties": false
|
|
998
1021
|
},
|
|
999
1022
|
{
|
|
1023
|
+
"$comment": "https://docs.codifycli.com/core-resources/scripting/action/",
|
|
1000
1024
|
"description": "Run custom scripts using the action resource. A condition can be specified to conditionally trigger a script.",
|
|
1001
1025
|
"type": "object",
|
|
1002
1026
|
"properties": {
|
|
@@ -1036,6 +1060,7 @@
|
|
|
1036
1060
|
"additionalProperties": false
|
|
1037
1061
|
},
|
|
1038
1062
|
{
|
|
1063
|
+
"$comment": "https://docs.codifycli.com/core-resources/files/file/",
|
|
1039
1064
|
"description": "Manages a file.",
|
|
1040
1065
|
"type": "object",
|
|
1041
1066
|
"properties": {
|
|
@@ -1074,6 +1099,514 @@
|
|
|
1074
1099
|
"type"
|
|
1075
1100
|
],
|
|
1076
1101
|
"additionalProperties": false
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"$comment": "https://docs.codifycli.com/core-resources/files/remote-file/",
|
|
1105
|
+
"description": "Represents a file stored on codify cloud. Use apply to pull changes from remote and save to local. Use refresh and import to upload changes to remote.",
|
|
1106
|
+
"type": "object",
|
|
1107
|
+
"properties": {
|
|
1108
|
+
"path": {
|
|
1109
|
+
"type": "string",
|
|
1110
|
+
"description": "The local path of the file."
|
|
1111
|
+
},
|
|
1112
|
+
"remote": {
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"description": "The remote codify cloud file path. This should be in the format of codify://<uuid>:<file_path>"
|
|
1115
|
+
},
|
|
1116
|
+
"hash": {
|
|
1117
|
+
"type": "string",
|
|
1118
|
+
"description": "Leave empty. The md5 hash of the file."
|
|
1119
|
+
},
|
|
1120
|
+
"onlyCreate": {
|
|
1121
|
+
"type": "boolean",
|
|
1122
|
+
"description": "Forces the resource to only create the file if it doesn't exist but don't detect any content changes. Also skips uploading the file to Codify cloud on refresh and import."
|
|
1123
|
+
},
|
|
1124
|
+
"name": {
|
|
1125
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"pattern": "^[\\w-]+$"
|
|
1128
|
+
},
|
|
1129
|
+
"dependsOn": {
|
|
1130
|
+
"type": "array",
|
|
1131
|
+
"items": {
|
|
1132
|
+
"type": "string"
|
|
1133
|
+
},
|
|
1134
|
+
"uniqueItems": true
|
|
1135
|
+
},
|
|
1136
|
+
"type": {
|
|
1137
|
+
"const": "remote-file",
|
|
1138
|
+
"type": "string"
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"required": [
|
|
1142
|
+
"path",
|
|
1143
|
+
"remote",
|
|
1144
|
+
"type"
|
|
1145
|
+
],
|
|
1146
|
+
"additionalProperties": false
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
"$comment": "https://docs.codifycli.com/core-resources/python/virtualenv-project/",
|
|
1150
|
+
"type": "object",
|
|
1151
|
+
"description": "Install and manage local packages with virtualenv",
|
|
1152
|
+
"properties": {
|
|
1153
|
+
"name": {
|
|
1154
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1155
|
+
"type": "string",
|
|
1156
|
+
"pattern": "^[\\w-]+$"
|
|
1157
|
+
},
|
|
1158
|
+
"dependsOn": {
|
|
1159
|
+
"type": "array",
|
|
1160
|
+
"items": {
|
|
1161
|
+
"type": "string"
|
|
1162
|
+
},
|
|
1163
|
+
"uniqueItems": true
|
|
1164
|
+
},
|
|
1165
|
+
"type": {
|
|
1166
|
+
"const": "virtualenv",
|
|
1167
|
+
"type": "string"
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
"additionalProperties": false,
|
|
1171
|
+
"required": [
|
|
1172
|
+
"type"
|
|
1173
|
+
]
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"$comment": "https://docs.codifycli.com/core-resources/python/virtualenv-project/",
|
|
1177
|
+
"type": "object",
|
|
1178
|
+
"description": "Install and manage local packages for a project with virtualenv",
|
|
1179
|
+
"properties": {
|
|
1180
|
+
"dest": {
|
|
1181
|
+
"type": "string",
|
|
1182
|
+
"description": "The directory to create virtualenv at"
|
|
1183
|
+
},
|
|
1184
|
+
"python": {
|
|
1185
|
+
"type": "string",
|
|
1186
|
+
"description": "A path to the python interpreter to use to create the virtualenv. This defaults to the global python3 version."
|
|
1187
|
+
},
|
|
1188
|
+
"noVcsIgnore": {
|
|
1189
|
+
"type": "boolean",
|
|
1190
|
+
"description": "Don't create VCS ignore directive in the destination directory (default: false)"
|
|
1191
|
+
},
|
|
1192
|
+
"systemSitePackages": {
|
|
1193
|
+
"type": "boolean",
|
|
1194
|
+
"description": "Give the virtual environment access to the system site-packages dir (default: false)"
|
|
1195
|
+
},
|
|
1196
|
+
"symlinks": {
|
|
1197
|
+
"type": "boolean",
|
|
1198
|
+
"description": " Try to use symlinks rather than copies (default: true)"
|
|
1199
|
+
},
|
|
1200
|
+
"cwd": {
|
|
1201
|
+
"type": "string",
|
|
1202
|
+
"description": "The cwd to create virtualenv from. This allows a relative path to be used for dest."
|
|
1203
|
+
},
|
|
1204
|
+
"automaticallyInstallRequirementsTxt": {
|
|
1205
|
+
"type": "boolean",
|
|
1206
|
+
"description": "If an requirements.txt is available in the cwd, automatically install it when a virtual env is first created."
|
|
1207
|
+
},
|
|
1208
|
+
"name": {
|
|
1209
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1210
|
+
"type": "string",
|
|
1211
|
+
"pattern": "^[\\w-]+$"
|
|
1212
|
+
},
|
|
1213
|
+
"dependsOn": {
|
|
1214
|
+
"type": "array",
|
|
1215
|
+
"items": {
|
|
1216
|
+
"type": "string"
|
|
1217
|
+
},
|
|
1218
|
+
"uniqueItems": true
|
|
1219
|
+
},
|
|
1220
|
+
"type": {
|
|
1221
|
+
"const": "virtualenv-project",
|
|
1222
|
+
"type": "string"
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
"additionalProperties": false,
|
|
1226
|
+
"required": [
|
|
1227
|
+
"dest",
|
|
1228
|
+
"type"
|
|
1229
|
+
]
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"$comment": "https://docs.codifycli.com/core-resources/javascript/pnpm/",
|
|
1233
|
+
"description": "Install and manage Node dependencies and versions using pnpm.",
|
|
1234
|
+
"type": "object",
|
|
1235
|
+
"properties": {
|
|
1236
|
+
"version": {
|
|
1237
|
+
"type": "string",
|
|
1238
|
+
"description": "A specific version of pnpm to install. (defaults to the latest)"
|
|
1239
|
+
},
|
|
1240
|
+
"globalEnvNodeVersion": {
|
|
1241
|
+
"type": "string",
|
|
1242
|
+
"description": "Set the global node version. Corresponds to pnpm env --global use"
|
|
1243
|
+
},
|
|
1244
|
+
"name": {
|
|
1245
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1246
|
+
"type": "string",
|
|
1247
|
+
"pattern": "^[\\w-]+$"
|
|
1248
|
+
},
|
|
1249
|
+
"dependsOn": {
|
|
1250
|
+
"type": "array",
|
|
1251
|
+
"items": {
|
|
1252
|
+
"type": "string"
|
|
1253
|
+
},
|
|
1254
|
+
"uniqueItems": true
|
|
1255
|
+
},
|
|
1256
|
+
"type": {
|
|
1257
|
+
"const": "pnpm",
|
|
1258
|
+
"type": "string"
|
|
1259
|
+
}
|
|
1260
|
+
},
|
|
1261
|
+
"additionalProperties": false,
|
|
1262
|
+
"required": [
|
|
1263
|
+
"type"
|
|
1264
|
+
]
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"type": "object",
|
|
1268
|
+
"properties": {
|
|
1269
|
+
"name": {
|
|
1270
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"pattern": "^[\\w-]+$"
|
|
1273
|
+
},
|
|
1274
|
+
"dependsOn": {
|
|
1275
|
+
"type": "array",
|
|
1276
|
+
"items": {
|
|
1277
|
+
"type": "string"
|
|
1278
|
+
},
|
|
1279
|
+
"uniqueItems": true
|
|
1280
|
+
},
|
|
1281
|
+
"type": {
|
|
1282
|
+
"const": "wait-github-ssh-key",
|
|
1283
|
+
"type": "string"
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
"required": [
|
|
1287
|
+
"type"
|
|
1288
|
+
]
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"$comment": "https://docs.codifycli.com/core-resources/python/venv-project/",
|
|
1292
|
+
"type": "object",
|
|
1293
|
+
"description": "Install and manage local packages for a project with venv",
|
|
1294
|
+
"properties": {
|
|
1295
|
+
"envDir": {
|
|
1296
|
+
"type": "string",
|
|
1297
|
+
"description": "A directory to create the environment in."
|
|
1298
|
+
},
|
|
1299
|
+
"systemSitePackages": {
|
|
1300
|
+
"type": "boolean",
|
|
1301
|
+
"description": "Give the virtual environment access to the system site-packages dir."
|
|
1302
|
+
},
|
|
1303
|
+
"symlinks": {
|
|
1304
|
+
"type": "boolean",
|
|
1305
|
+
"description": "Try to use symlinks rather than copies, when symlinks are not the default for the platform."
|
|
1306
|
+
},
|
|
1307
|
+
"copies": {
|
|
1308
|
+
"type": "boolean",
|
|
1309
|
+
"description": "Delete the contents of the environment directory if it already exists, before environment creation."
|
|
1310
|
+
},
|
|
1311
|
+
"clear": {
|
|
1312
|
+
"type": "boolean",
|
|
1313
|
+
"description": "Try to use symlinks rather than copies (default: true)."
|
|
1314
|
+
},
|
|
1315
|
+
"upgrade": {
|
|
1316
|
+
"type": "boolean",
|
|
1317
|
+
"description": "Upgrade the environment directory to use this version of Python, assuming Python has been upgraded in-place."
|
|
1318
|
+
},
|
|
1319
|
+
"withoutPip": {
|
|
1320
|
+
"type": "boolean",
|
|
1321
|
+
"description": "Skips installing or upgrading pip in the virtual environment (pip is bootstrapped by default)."
|
|
1322
|
+
},
|
|
1323
|
+
"prompt": {
|
|
1324
|
+
"type": "string",
|
|
1325
|
+
"description": "Provides an alternative prompt prefix for this environment."
|
|
1326
|
+
},
|
|
1327
|
+
"upgradeDeps": {
|
|
1328
|
+
"type": "boolean",
|
|
1329
|
+
"description": "Upgrade core dependencies: pip setuptools to the latest version in PyPI."
|
|
1330
|
+
},
|
|
1331
|
+
"cwd": {
|
|
1332
|
+
"type": "string",
|
|
1333
|
+
"description": "The cwd to create virtualenv from. This allows a relative path to be used for dest."
|
|
1334
|
+
},
|
|
1335
|
+
"automaticallyInstallRequirementsTxt": {
|
|
1336
|
+
"type": "boolean",
|
|
1337
|
+
"description": "If an requirements.txt is available in the cwd, automatically install it when a virtual env is first created."
|
|
1338
|
+
},
|
|
1339
|
+
"name": {
|
|
1340
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
"pattern": "^[\\w-]+$"
|
|
1343
|
+
},
|
|
1344
|
+
"dependsOn": {
|
|
1345
|
+
"type": "array",
|
|
1346
|
+
"items": {
|
|
1347
|
+
"type": "string"
|
|
1348
|
+
},
|
|
1349
|
+
"uniqueItems": true
|
|
1350
|
+
},
|
|
1351
|
+
"type": {
|
|
1352
|
+
"const": "venv-project",
|
|
1353
|
+
"type": "string"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
"additionalProperties": false,
|
|
1357
|
+
"required": [
|
|
1358
|
+
"envDir",
|
|
1359
|
+
"type"
|
|
1360
|
+
]
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"$comment": "https://docs.codifycli.com/core-resources/python/pip/",
|
|
1364
|
+
"type": "object",
|
|
1365
|
+
"description": "Install and manage packages using pip",
|
|
1366
|
+
"properties": {
|
|
1367
|
+
"virtualEnv": {
|
|
1368
|
+
"type": "string",
|
|
1369
|
+
"description": "A virtual env to activate before issuing pip commands."
|
|
1370
|
+
},
|
|
1371
|
+
"install": {
|
|
1372
|
+
"type": "array",
|
|
1373
|
+
"description": "Packages to install.",
|
|
1374
|
+
"items": {
|
|
1375
|
+
"oneOf": [
|
|
1376
|
+
{
|
|
1377
|
+
"type": "string"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"type": "object",
|
|
1381
|
+
"properties": {
|
|
1382
|
+
"name": {
|
|
1383
|
+
"type": "string"
|
|
1384
|
+
},
|
|
1385
|
+
"version": {
|
|
1386
|
+
"type": "string"
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
"required": [
|
|
1390
|
+
"name"
|
|
1391
|
+
]
|
|
1392
|
+
}
|
|
1393
|
+
]
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"installFiles": {
|
|
1397
|
+
"description": "A list of requirement files to install.",
|
|
1398
|
+
"type": "array",
|
|
1399
|
+
"items": {
|
|
1400
|
+
"type": "string"
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
"name": {
|
|
1404
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1405
|
+
"type": "string",
|
|
1406
|
+
"pattern": "^[\\w-]+$"
|
|
1407
|
+
},
|
|
1408
|
+
"dependsOn": {
|
|
1409
|
+
"type": "array",
|
|
1410
|
+
"items": {
|
|
1411
|
+
"type": "string"
|
|
1412
|
+
},
|
|
1413
|
+
"uniqueItems": true
|
|
1414
|
+
},
|
|
1415
|
+
"type": {
|
|
1416
|
+
"const": "pip",
|
|
1417
|
+
"type": "string"
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"additionalProperties": false,
|
|
1421
|
+
"required": [
|
|
1422
|
+
"install",
|
|
1423
|
+
"type"
|
|
1424
|
+
]
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"$comment": "https://docs.codifycli.com/core-resources/python/pip-sync/",
|
|
1428
|
+
"type": "object",
|
|
1429
|
+
"description": "Install and manage though pip-tools by installing + uninstalling packages using pip-sync",
|
|
1430
|
+
"properties": {
|
|
1431
|
+
"virtualEnv": {
|
|
1432
|
+
"type": "string",
|
|
1433
|
+
"description": "A virtual env to activate before issuing commands."
|
|
1434
|
+
},
|
|
1435
|
+
"requirementFiles": {
|
|
1436
|
+
"type": "array",
|
|
1437
|
+
"items": {
|
|
1438
|
+
"type": "string"
|
|
1439
|
+
},
|
|
1440
|
+
"description": "A list of requirement files to supply pip-sync."
|
|
1441
|
+
},
|
|
1442
|
+
"cwd": {
|
|
1443
|
+
"type": "string",
|
|
1444
|
+
"description": "The working directory to run commands from. If cwd is supplied, the other parameters can be specified as relative to cwd."
|
|
1445
|
+
},
|
|
1446
|
+
"name": {
|
|
1447
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1448
|
+
"type": "string",
|
|
1449
|
+
"pattern": "^[\\w-]+$"
|
|
1450
|
+
},
|
|
1451
|
+
"dependsOn": {
|
|
1452
|
+
"type": "array",
|
|
1453
|
+
"items": {
|
|
1454
|
+
"type": "string"
|
|
1455
|
+
},
|
|
1456
|
+
"uniqueItems": true
|
|
1457
|
+
},
|
|
1458
|
+
"type": {
|
|
1459
|
+
"const": "pip-sync",
|
|
1460
|
+
"type": "string"
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
"additionalProperties": false,
|
|
1464
|
+
"required": [
|
|
1465
|
+
"requirementFiles",
|
|
1466
|
+
"type"
|
|
1467
|
+
]
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"$comment": "https://docs.codifycli.com/core-resources/macports/",
|
|
1471
|
+
"description": "Install macports and manage packages.",
|
|
1472
|
+
"type": "object",
|
|
1473
|
+
"properties": {
|
|
1474
|
+
"install": {
|
|
1475
|
+
"type": "array",
|
|
1476
|
+
"description": "Installs packages.",
|
|
1477
|
+
"items": {
|
|
1478
|
+
"oneOf": [
|
|
1479
|
+
{
|
|
1480
|
+
"type": "string"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"type": "object",
|
|
1484
|
+
"properties": {
|
|
1485
|
+
"name": {
|
|
1486
|
+
"type": "string"
|
|
1487
|
+
},
|
|
1488
|
+
"version": {
|
|
1489
|
+
"type": "string"
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
"required": [
|
|
1493
|
+
"name"
|
|
1494
|
+
]
|
|
1495
|
+
}
|
|
1496
|
+
]
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
"name": {
|
|
1500
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1501
|
+
"type": "string",
|
|
1502
|
+
"pattern": "^[\\w-]+$"
|
|
1503
|
+
},
|
|
1504
|
+
"dependsOn": {
|
|
1505
|
+
"type": "array",
|
|
1506
|
+
"items": {
|
|
1507
|
+
"type": "string"
|
|
1508
|
+
},
|
|
1509
|
+
"uniqueItems": true
|
|
1510
|
+
},
|
|
1511
|
+
"type": {
|
|
1512
|
+
"const": "macports",
|
|
1513
|
+
"type": "string"
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1516
|
+
"additionalProperties": false,
|
|
1517
|
+
"required": [
|
|
1518
|
+
"type"
|
|
1519
|
+
]
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"$comment": "https://docs.codifycli.com/core-resources/javascript/npm/",
|
|
1523
|
+
"description": "Install and manage packages using NPM.",
|
|
1524
|
+
"type": "object",
|
|
1525
|
+
"properties": {
|
|
1526
|
+
"globalInstall": {
|
|
1527
|
+
"type": "array",
|
|
1528
|
+
"description": "An array of",
|
|
1529
|
+
"items": {
|
|
1530
|
+
"oneOf": [
|
|
1531
|
+
{
|
|
1532
|
+
"type": "string",
|
|
1533
|
+
"description": "Npm packages to install globally"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
"type": "object",
|
|
1537
|
+
"properties": {
|
|
1538
|
+
"name": {
|
|
1539
|
+
"type": "string",
|
|
1540
|
+
"description": "The name of the package to install"
|
|
1541
|
+
},
|
|
1542
|
+
"version": {
|
|
1543
|
+
"type": "string",
|
|
1544
|
+
"description": "The version of package to install"
|
|
1545
|
+
}
|
|
1546
|
+
},
|
|
1547
|
+
"required": [
|
|
1548
|
+
"name"
|
|
1549
|
+
]
|
|
1550
|
+
}
|
|
1551
|
+
]
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
"name": {
|
|
1555
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1556
|
+
"type": "string",
|
|
1557
|
+
"pattern": "^[\\w-]+$"
|
|
1558
|
+
},
|
|
1559
|
+
"dependsOn": {
|
|
1560
|
+
"type": "array",
|
|
1561
|
+
"items": {
|
|
1562
|
+
"type": "string"
|
|
1563
|
+
},
|
|
1564
|
+
"uniqueItems": true
|
|
1565
|
+
},
|
|
1566
|
+
"type": {
|
|
1567
|
+
"const": "npm",
|
|
1568
|
+
"type": "string"
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
"additionalProperties": false,
|
|
1572
|
+
"required": [
|
|
1573
|
+
"type"
|
|
1574
|
+
]
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
"$comment": "https://docs.codifycli.com/core-resources/docker/",
|
|
1578
|
+
"type": "object",
|
|
1579
|
+
"description": "Installs docker.",
|
|
1580
|
+
"properties": {
|
|
1581
|
+
"acceptLicense": {
|
|
1582
|
+
"type": "boolean",
|
|
1583
|
+
"description": "Accepts the license agreement. Defaults to true"
|
|
1584
|
+
},
|
|
1585
|
+
"useCurrentUser": {
|
|
1586
|
+
"type": "boolean",
|
|
1587
|
+
"description": "Use the current user to install docker. Defaults to true"
|
|
1588
|
+
},
|
|
1589
|
+
"name": {
|
|
1590
|
+
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
1591
|
+
"type": "string",
|
|
1592
|
+
"pattern": "^[\\w-]+$"
|
|
1593
|
+
},
|
|
1594
|
+
"dependsOn": {
|
|
1595
|
+
"type": "array",
|
|
1596
|
+
"items": {
|
|
1597
|
+
"type": "string"
|
|
1598
|
+
},
|
|
1599
|
+
"uniqueItems": true
|
|
1600
|
+
},
|
|
1601
|
+
"type": {
|
|
1602
|
+
"const": "docker",
|
|
1603
|
+
"type": "string"
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
"additionalProperties": false,
|
|
1607
|
+
"required": [
|
|
1608
|
+
"type"
|
|
1609
|
+
]
|
|
1077
1610
|
}
|
|
1078
1611
|
]
|
|
1079
1612
|
}
|
package/src/types/index.ts
CHANGED
|
@@ -116,6 +116,7 @@ export interface GetResourceInfoResponseData {
|
|
|
116
116
|
requiredParameters: string[] | null;
|
|
117
117
|
preventImport?: boolean;
|
|
118
118
|
},
|
|
119
|
+
sensitiveProperties: string[];
|
|
119
120
|
allowMultiple: boolean;
|
|
120
121
|
}
|
|
121
122
|
|
|
@@ -141,6 +142,7 @@ export interface ImportRequestData {
|
|
|
141
142
|
core: ResourceConfig;
|
|
142
143
|
parameters: Record<string, unknown>;
|
|
143
144
|
autoSearchAll?: boolean;
|
|
145
|
+
includeSensitive?: boolean;
|
|
144
146
|
}
|
|
145
147
|
|
|
146
148
|
export interface ImportResponseData {
|