codify-schemas 1.0.73 → 1.0.75
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/.vscode/tasks.json +16 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/messages/import-request-data-schema.json +5 -0
- package/dist/messages/initialize-request-data-schema.json +7 -1
- package/dist/messages/press-key-to-continue-request-data-schema.json +14 -0
- package/dist/messages/press-key-to-continue-response-data-schema.json +9 -0
- package/dist/types/index.d.ts +11 -4
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/messages/import-request-data-schema.json +5 -0
- package/src/messages/initialize-request-data-schema.json +7 -1
- package/src/messages/press-key-to-continue-request-data-schema.json +14 -0
- package/src/messages/press-key-to-continue-request-data-schema.test.ts +13 -0
- package/src/messages/press-key-to-continue-response-data-schema.json +9 -0
- package/src/messages/press-key-to-continue-response-data-schema.test.ts +13 -0
- package/src/schemastore/codify-schema.json +6 -14
- package/src/types/index.ts +15 -6
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ import InitializeRequestDataSchema from './messages/initialize-request-data-sche
|
|
|
20
20
|
import InitializeResponseDataSchema from './messages/initialize-response-data-schema.json';
|
|
21
21
|
import SudoRequestDataSchema from './messages/sudo-request-data-schema.json';
|
|
22
22
|
import SudoRequestResponseDataSchema from './messages/sudo-response-data-schema.json';
|
|
23
|
-
|
|
23
|
+
import PressKeyToContinueRequestDataSchema from './messages/press-key-to-continue-request-data-schema.json';
|
|
24
|
+
import PressKeyToContinueResponseDataSchema from './messages/press-key-to-continue-response-data-schema.json';
|
|
25
|
+
export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, MatchRequestDataSchema, MatchResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, SudoRequestDataSchema, SudoRequestResponseDataSchema, PressKeyToContinueRequestDataSchema, PressKeyToContinueResponseDataSchema, };
|
|
24
26
|
export * from './types/index.js';
|
|
25
27
|
export * from './messages/commands.js';
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,9 @@ import InitializeRequestDataSchema from './messages/initialize-request-data-sche
|
|
|
20
20
|
import InitializeResponseDataSchema from './messages/initialize-response-data-schema.json' with { type: 'json' };
|
|
21
21
|
import SudoRequestDataSchema from './messages/sudo-request-data-schema.json' with { type: 'json' };
|
|
22
22
|
import SudoRequestResponseDataSchema from './messages/sudo-response-data-schema.json' with { type: 'json' };
|
|
23
|
-
|
|
23
|
+
import PressKeyToContinueRequestDataSchema from './messages/press-key-to-continue-request-data-schema.json' with { type: 'json' };
|
|
24
|
+
import PressKeyToContinueResponseDataSchema from './messages/press-key-to-continue-response-data-schema.json' with { type: 'json' };
|
|
25
|
+
export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, MatchRequestDataSchema, MatchResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, SudoRequestDataSchema, SudoRequestResponseDataSchema, PressKeyToContinueRequestDataSchema, PressKeyToContinueResponseDataSchema, };
|
|
24
26
|
export * from './types/index.js';
|
|
25
27
|
export * from './messages/commands.js';
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","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ACd,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,qBAAqB,EACrB,6BAA6B,EAC7B,mCAAmC,EACnC,oCAAoC,GACrC,CAAA;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
},
|
|
10
10
|
"parameters": {
|
|
11
11
|
"type": "object"
|
|
12
|
+
},
|
|
13
|
+
"autoSearchAll": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"default": false,
|
|
16
|
+
"description": "If autoSearchAll is enabled then the resource will attempt to find all instances automatically and no input parameters are required. If it can't find anything then nothing will be returned."
|
|
12
17
|
}
|
|
13
18
|
},
|
|
14
19
|
"required": ["core", "parameters"]
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
"title": "Initialize Request Schema Data",
|
|
5
5
|
"description": "Initialize the plugin",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"properties": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"verbosityLevel": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"default": 0,
|
|
11
|
+
"description": "Initializes the plugin to return logs at a specified verbosity level with 0 being the lowest"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
8
14
|
"additionalProperties": false
|
|
9
15
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://www.codifycli.com/press-key-to-continue-request.json",
|
|
4
|
+
"title": "Sudo request",
|
|
5
|
+
"description": "Request a press key to continue prompt from the CLI",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"promptMessage": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "A message to display when prompting"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://www.codifycli.com/sudo-request-response.json",
|
|
4
|
+
"title": "Sudo request response",
|
|
5
|
+
"description": "Response for press key to continue prompt",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {},
|
|
8
|
+
"additionalProperties": false
|
|
9
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -121,6 +121,7 @@ export interface MatchResponseData {
|
|
|
121
121
|
export interface ImportRequestData {
|
|
122
122
|
core: ResourceConfig;
|
|
123
123
|
parameters: Record<string, unknown>;
|
|
124
|
+
autoSearchAll?: boolean;
|
|
124
125
|
}
|
|
125
126
|
export interface ImportResponseData {
|
|
126
127
|
request: ResourceJson;
|
|
@@ -146,6 +147,7 @@ export interface ResourceDefinition {
|
|
|
146
147
|
dependencies: string[];
|
|
147
148
|
}
|
|
148
149
|
export interface InitializeRequestData {
|
|
150
|
+
verbosityLevel?: number;
|
|
149
151
|
}
|
|
150
152
|
export interface InitializeResponseData {
|
|
151
153
|
resourceDefinitions: Array<ResourceDefinition>;
|
|
@@ -156,11 +158,16 @@ export interface SudoRequestData {
|
|
|
156
158
|
cwd?: string;
|
|
157
159
|
} & Omit<SpawnOptions, 'stdio' | 'shell' | 'detached'>;
|
|
158
160
|
}
|
|
159
|
-
export declare enum SpawnStatus {
|
|
160
|
-
SUCCESS = "success",
|
|
161
|
-
ERROR = "error"
|
|
162
|
-
}
|
|
163
161
|
export interface SudoRequestResponseData {
|
|
164
162
|
status: SpawnStatus;
|
|
165
163
|
data: string;
|
|
166
164
|
}
|
|
165
|
+
export interface PressKeyToContinueRequestData {
|
|
166
|
+
promptMessage?: string;
|
|
167
|
+
}
|
|
168
|
+
export interface PressKeyToContinueResponseData {
|
|
169
|
+
}
|
|
170
|
+
export declare enum SpawnStatus {
|
|
171
|
+
SUCCESS = "success",
|
|
172
|
+
ERROR = "error"
|
|
173
|
+
}
|
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;AAkHD,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -20,6 +20,8 @@ import InitializeRequestDataSchema from './messages/initialize-request-data-sche
|
|
|
20
20
|
import InitializeResponseDataSchema from './messages/initialize-response-data-schema.json' with {type: 'json'}
|
|
21
21
|
import SudoRequestDataSchema from './messages/sudo-request-data-schema.json' with {type: 'json'};
|
|
22
22
|
import SudoRequestResponseDataSchema from './messages/sudo-response-data-schema.json' with {type: 'json'};
|
|
23
|
+
import PressKeyToContinueRequestDataSchema from './messages/press-key-to-continue-request-data-schema.json' with {type: 'json'};
|
|
24
|
+
import PressKeyToContinueResponseDataSchema from './messages/press-key-to-continue-response-data-schema.json' with {type: 'json'};
|
|
23
25
|
|
|
24
26
|
export {
|
|
25
27
|
ConfigFileSchema,
|
|
@@ -44,6 +46,8 @@ export {
|
|
|
44
46
|
InitializeResponseDataSchema,
|
|
45
47
|
SudoRequestDataSchema,
|
|
46
48
|
SudoRequestResponseDataSchema,
|
|
49
|
+
PressKeyToContinueRequestDataSchema,
|
|
50
|
+
PressKeyToContinueResponseDataSchema,
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
export * from './types/index.js';
|
|
@@ -9,6 +9,11 @@
|
|
|
9
9
|
},
|
|
10
10
|
"parameters": {
|
|
11
11
|
"type": "object"
|
|
12
|
+
},
|
|
13
|
+
"autoSearchAll": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"default": false,
|
|
16
|
+
"description": "If autoSearchAll is enabled then the resource will attempt to find all instances automatically and no input parameters are required. If it can't find anything then nothing will be returned."
|
|
12
17
|
}
|
|
13
18
|
},
|
|
14
19
|
"required": ["core", "parameters"]
|
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
"title": "Initialize Request Schema Data",
|
|
5
5
|
"description": "Initialize the plugin",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"properties": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"verbosityLevel": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"default": 0,
|
|
11
|
+
"description": "Initializes the plugin to return logs at a specified verbosity level with 0 being the lowest"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
8
14
|
"additionalProperties": false
|
|
9
15
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://www.codifycli.com/press-key-to-continue-request.json",
|
|
4
|
+
"title": "Sudo request",
|
|
5
|
+
"description": "Request a press key to continue prompt from the CLI",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"promptMessage": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "A message to display when prompting"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import schema from './press-key-to-continue-request-data-schema.json';
|
|
2
|
+
import {describe, expect, it} from 'vitest'
|
|
3
|
+
import Ajv from 'ajv'
|
|
4
|
+
|
|
5
|
+
const ajv = new Ajv({
|
|
6
|
+
strict: true,
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
describe('Get resources response data schema', () => {
|
|
10
|
+
it('compiles', () => {
|
|
11
|
+
ajv.compile(schema);
|
|
12
|
+
})
|
|
13
|
+
})
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "https://www.codifycli.com/sudo-request-response.json",
|
|
4
|
+
"title": "Sudo request response",
|
|
5
|
+
"description": "Response for press key to continue prompt",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {},
|
|
8
|
+
"additionalProperties": false
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import schema from './press-key-to-continue-response-data-schema.json';
|
|
2
|
+
import { describe, expect, it } from 'vitest'
|
|
3
|
+
import Ajv from 'ajv'
|
|
4
|
+
|
|
5
|
+
const ajv = new Ajv({
|
|
6
|
+
strict: true,
|
|
7
|
+
})
|
|
8
|
+
|
|
9
|
+
describe('Get resources response data schema', () => {
|
|
10
|
+
it('compiles', () => {
|
|
11
|
+
ajv.compile(schema);
|
|
12
|
+
})
|
|
13
|
+
})
|
|
@@ -111,6 +111,11 @@
|
|
|
111
111
|
"type": "boolean",
|
|
112
112
|
"description": "Whether or not to prepend to the path."
|
|
113
113
|
},
|
|
114
|
+
"declarationsOnly": {
|
|
115
|
+
"type": "boolean",
|
|
116
|
+
"default": false,
|
|
117
|
+
"description": "Only plan and manage explicitly declared paths found in shell startup scripts. This value is forced to true for stateful mode"
|
|
118
|
+
},
|
|
114
119
|
"name": {
|
|
115
120
|
"description": "Optional name. Useful for specifying multiple resources of the same type",
|
|
116
121
|
"type": "string",
|
|
@@ -139,7 +144,7 @@
|
|
|
139
144
|
"properties": {
|
|
140
145
|
"alias": {
|
|
141
146
|
"type": "string",
|
|
142
|
-
"pattern": "^[^ \t\n
|
|
147
|
+
"pattern": "^[^ \t\n/\\$`=|&;()<>'\"]*$",
|
|
143
148
|
"description": "The name of the alias"
|
|
144
149
|
},
|
|
145
150
|
"value": {
|
|
@@ -808,19 +813,6 @@
|
|
|
808
813
|
"type": "string"
|
|
809
814
|
}
|
|
810
815
|
},
|
|
811
|
-
"oneOf": [
|
|
812
|
-
{
|
|
813
|
-
"required": [
|
|
814
|
-
"plugin",
|
|
815
|
-
"versions"
|
|
816
|
-
]
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
"required": [
|
|
820
|
-
"directory"
|
|
821
|
-
]
|
|
822
|
-
}
|
|
823
|
-
],
|
|
824
816
|
"additionalProperties": false,
|
|
825
817
|
"required": [
|
|
826
818
|
"type"
|
package/src/types/index.ts
CHANGED
|
@@ -140,6 +140,7 @@ export interface MatchResponseData {
|
|
|
140
140
|
export interface ImportRequestData {
|
|
141
141
|
core: ResourceConfig;
|
|
142
142
|
parameters: Record<string, unknown>;
|
|
143
|
+
autoSearchAll?: boolean;
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
export interface ImportResponseData {
|
|
@@ -168,7 +169,9 @@ export interface ResourceDefinition {
|
|
|
168
169
|
dependencies: string[];
|
|
169
170
|
}
|
|
170
171
|
|
|
171
|
-
export interface InitializeRequestData {
|
|
172
|
+
export interface InitializeRequestData {
|
|
173
|
+
verbosityLevel?: number;
|
|
174
|
+
}
|
|
172
175
|
|
|
173
176
|
export interface InitializeResponseData {
|
|
174
177
|
resourceDefinitions: Array<ResourceDefinition>;
|
|
@@ -181,12 +184,18 @@ export interface SudoRequestData {
|
|
|
181
184
|
} & Omit<SpawnOptions, 'stdio' | 'shell' | 'detached'>
|
|
182
185
|
}
|
|
183
186
|
|
|
184
|
-
export enum SpawnStatus {
|
|
185
|
-
SUCCESS = 'success',
|
|
186
|
-
ERROR = 'error',
|
|
187
|
-
}
|
|
188
|
-
|
|
189
187
|
export interface SudoRequestResponseData {
|
|
190
188
|
status: SpawnStatus,
|
|
191
189
|
data: string;
|
|
192
190
|
}
|
|
191
|
+
|
|
192
|
+
export interface PressKeyToContinueRequestData {
|
|
193
|
+
promptMessage?: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface PressKeyToContinueResponseData {}
|
|
197
|
+
|
|
198
|
+
export enum SpawnStatus {
|
|
199
|
+
SUCCESS = 'success',
|
|
200
|
+
ERROR = 'error',
|
|
201
|
+
}
|