codify-schemas 1.0.57 → 1.0.58

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/index.d.ts CHANGED
@@ -1,558 +1,518 @@
1
1
  declare const ConfigFileSchema: {
2
- default: {
3
- $schema: string;
4
- $id: string;
5
- title: string;
6
- type: string;
7
- items: {
8
- type: string;
9
- properties: {
10
- type: {
11
- type: string;
12
- description: string;
13
- pattern: string;
14
- };
15
- };
16
- required: string[];
17
- };
18
- };
19
- };
20
- declare const ProjectSchema: {
21
- default: {
22
- $schema: string;
23
- $id: string;
24
- title: string;
2
+ $schema: string;
3
+ $id: string;
4
+ title: string;
5
+ type: string;
6
+ items: {
25
7
  type: string;
26
8
  properties: {
27
9
  type: {
28
- description: string;
29
10
  type: string;
30
- const: string;
31
- };
32
- version: {
33
11
  description: string;
34
- type: string;
35
12
  pattern: string;
36
13
  };
37
- plugins: {
38
- type: string;
39
- patternProperties: {
40
- ".*": {
41
- type: string;
42
- };
43
- };
44
- };
45
- description: {
46
- description: string;
47
- type: string;
48
- };
49
14
  };
50
- additionalProperties: boolean;
51
15
  required: string[];
52
16
  };
53
17
  };
54
- declare const ResourceSchema: {
55
- default: {
56
- $schema: string;
57
- $id: string;
58
- title: string;
59
- type: string;
60
- properties: {
61
- type: {
62
- description: string;
63
- type: string;
64
- pattern: string;
65
- };
66
- name: {
67
- description: string;
68
- type: string;
69
- pattern: string;
70
- };
71
- dependsOn: {
72
- type: string;
73
- items: {
18
+ declare const ProjectSchema: {
19
+ $schema: string;
20
+ $id: string;
21
+ title: string;
22
+ type: string;
23
+ properties: {
24
+ type: {
25
+ description: string;
26
+ type: string;
27
+ const: string;
28
+ };
29
+ version: {
30
+ description: string;
31
+ type: string;
32
+ pattern: string;
33
+ };
34
+ plugins: {
35
+ type: string;
36
+ patternProperties: {
37
+ ".*": {
74
38
  type: string;
75
39
  };
76
- uniqueItems: boolean;
77
40
  };
78
41
  };
79
- required: string[];
42
+ description: {
43
+ description: string;
44
+ type: string;
45
+ };
80
46
  };
47
+ additionalProperties: boolean;
48
+ required: string[];
81
49
  };
82
- declare const IpcMessageSchema: {
83
- default: {
84
- $schema: string;
85
- $id: string;
86
- title: string;
87
- type: string;
88
- properties: {
89
- cmd: {
90
- description: string;
91
- type: string;
92
- };
93
- status: {
94
- description: string;
50
+ declare const ResourceSchema: {
51
+ $schema: string;
52
+ $id: string;
53
+ title: string;
54
+ type: string;
55
+ properties: {
56
+ type: {
57
+ description: string;
58
+ type: string;
59
+ pattern: string;
60
+ };
61
+ name: {
62
+ description: string;
63
+ type: string;
64
+ pattern: string;
65
+ };
66
+ dependsOn: {
67
+ type: string;
68
+ items: {
95
69
  type: string;
96
- enum: string[];
97
- };
98
- data: {
99
- description: string;
100
70
  };
71
+ uniqueItems: boolean;
101
72
  };
102
- required: string[];
103
73
  };
74
+ required: string[];
75
+ };
76
+ declare const IpcMessageSchema: {
77
+ $schema: string;
78
+ $id: string;
79
+ title: string;
80
+ type: string;
81
+ properties: {
82
+ cmd: {
83
+ description: string;
84
+ type: string;
85
+ };
86
+ status: {
87
+ description: string;
88
+ type: string;
89
+ enum: string[];
90
+ };
91
+ data: {
92
+ description: string;
93
+ };
94
+ };
95
+ required: string[];
104
96
  };
105
97
  declare const IpcMessageV2Schema: {
106
- default: {
107
- $schema: string;
108
- $id: string;
109
- title: string;
110
- type: string;
98
+ $schema: string;
99
+ $id: string;
100
+ title: string;
101
+ type: string;
102
+ properties: {
103
+ cmd: {
104
+ description: string;
105
+ type: string;
106
+ };
107
+ requestId: {
108
+ type: string;
109
+ description: string;
110
+ };
111
+ status: {
112
+ description: string;
113
+ type: string;
114
+ enum: string[];
115
+ };
116
+ data: {
117
+ description: string;
118
+ };
119
+ };
120
+ required: string[];
121
+ };
122
+ declare const ApplyRequestDataSchema: {
123
+ $schema: string;
124
+ $id: string;
125
+ title: string;
126
+ description: string;
127
+ type: string;
128
+ oneOf: ({
111
129
  properties: {
112
- cmd: {
113
- description: string;
114
- type: string;
115
- };
116
- requestId: {
117
- type: string;
118
- description: string;
119
- };
120
- status: {
130
+ planId: {
121
131
  description: string;
122
132
  type: string;
123
- enum: string[];
124
- };
125
- data: {
126
- description: string;
133
+ format: string;
127
134
  };
135
+ plan?: undefined;
128
136
  };
129
137
  required: string[];
130
- };
131
- };
132
- declare const ApplyRequestDataSchema: {
133
- default: {
134
- $schema: string;
135
- $id: string;
136
- title: string;
137
- description: string;
138
- type: string;
139
- anyOf: ({
140
- properties: {
141
- planId: {
142
- description: string;
143
- type: string;
144
- format: string;
145
- };
146
- plan?: undefined;
147
- };
148
- required: string[];
149
- additionalProperties: boolean;
150
- } | {
151
- properties: {
152
- plan: {
153
- description: string;
154
- type: string;
155
- properties: {
156
- operation: {
157
- description: string;
158
- type: string;
159
- enum: string[];
160
- };
161
- resourceType: {
162
- description: string;
163
- type: string;
164
- };
165
- resourceName: {
166
- description: string;
167
- type: string[];
168
- };
169
- statefulMode: {
170
- description: string;
171
- type: string;
172
- };
173
- parameters: {
174
- description: string;
138
+ additionalProperties: boolean;
139
+ } | {
140
+ properties: {
141
+ plan: {
142
+ description: string;
143
+ type: string;
144
+ properties: {
145
+ operation: {
146
+ description: string;
147
+ type: string;
148
+ enum: string[];
149
+ };
150
+ resourceType: {
151
+ description: string;
152
+ type: string;
153
+ };
154
+ resourceName: {
155
+ description: string;
156
+ type: string[];
157
+ };
158
+ statefulMode: {
159
+ description: string;
160
+ type: string;
161
+ };
162
+ parameters: {
163
+ description: string;
164
+ type: string;
165
+ items: {
175
166
  type: string;
176
- items: {
177
- type: string;
178
- properties: {
179
- name: {
180
- description: string;
181
- type: string;
182
- };
183
- operation: {
184
- description: string;
185
- type: string;
186
- enum: string[];
187
- };
188
- newValue: {
189
- description: string;
190
- };
191
- previousValue: {
192
- description: string;
193
- };
167
+ properties: {
168
+ name: {
169
+ description: string;
170
+ type: string;
171
+ };
172
+ operation: {
173
+ description: string;
174
+ type: string;
175
+ enum: string[];
176
+ };
177
+ newValue: {
178
+ description: string;
179
+ };
180
+ previousValue: {
181
+ description: string;
194
182
  };
195
- required: string[];
196
183
  };
184
+ required: string[];
197
185
  };
198
186
  };
199
- required: string[];
200
187
  };
201
- planId?: undefined;
188
+ required: string[];
202
189
  };
203
- required: string[];
204
- additionalProperties: boolean;
205
- })[];
206
- };
190
+ planId?: undefined;
191
+ };
192
+ required: string[];
193
+ additionalProperties: boolean;
194
+ })[];
207
195
  };
208
196
  declare const ApplyResponseDataSchema: {
209
- default: {
210
- $schema: string;
211
- $id: string;
212
- title: string;
213
- type: string;
214
- };
197
+ $schema: string;
198
+ $id: string;
199
+ title: string;
200
+ type: string;
215
201
  };
216
202
  declare const ErrorResponseDataSchema: {
217
- default: {
218
- $schema: string;
219
- $id: string;
220
- title: string;
221
- type: string;
222
- properties: {
223
- reason: {
224
- description: string;
225
- type: string;
226
- };
203
+ $schema: string;
204
+ $id: string;
205
+ title: string;
206
+ type: string;
207
+ properties: {
208
+ reason: {
209
+ description: string;
210
+ type: string;
227
211
  };
228
- required: string[];
229
- additionalProperties: boolean;
230
212
  };
213
+ required: string[];
214
+ additionalProperties: boolean;
231
215
  };
232
216
  declare const GetResourceInfoRequestDataSchema: {
233
- default: {
234
- $schema: string;
235
- $id: string;
236
- title: string;
237
- type: string;
238
- properties: {
239
- type: {
240
- type: string;
241
- description: string;
242
- };
217
+ $schema: string;
218
+ $id: string;
219
+ title: string;
220
+ type: string;
221
+ properties: {
222
+ type: {
223
+ type: string;
224
+ description: string;
243
225
  };
244
- required: string[];
245
226
  };
227
+ required: string[];
246
228
  };
247
229
  declare const GetResourceInfoResponseDataSchema: {
248
- default: {
249
- $schema: string;
250
- $id: string;
251
- title: string;
252
- type: string;
253
- properties: {
254
- plugin: {
255
- type: string;
256
- description: string;
257
- };
258
- type: {
259
- type: string;
260
- description: string;
261
- };
262
- schema: {
230
+ $schema: string;
231
+ $id: string;
232
+ title: string;
233
+ type: string;
234
+ properties: {
235
+ plugin: {
236
+ type: string;
237
+ description: string;
238
+ };
239
+ type: {
240
+ type: string;
241
+ description: string;
242
+ };
243
+ schema: {
244
+ type: string;
245
+ description: string;
246
+ };
247
+ dependencies: {
248
+ type: string;
249
+ items: {
263
250
  type: string;
264
- description: string;
265
251
  };
266
- dependencies: {
267
- type: string;
268
- items: {
252
+ };
253
+ import: {
254
+ type: string;
255
+ properties: {
256
+ requiredProperties: {
269
257
  type: string;
270
- };
271
- };
272
- import: {
273
- type: string;
274
- properties: {
275
- requiredProperties: {
258
+ items: {
276
259
  type: string;
277
- items: {
278
- type: string;
279
- };
280
260
  };
281
261
  };
282
262
  };
283
263
  };
284
- required: string[];
285
264
  };
265
+ required: string[];
286
266
  };
287
267
  declare const ImportRequestDataSchema: {
288
- default: {
289
- $schema: string;
290
- $id: string;
291
- title: string;
292
- type: string;
293
- properties: {
294
- config: {
295
- $ref: string;
296
- };
268
+ $schema: string;
269
+ $id: string;
270
+ title: string;
271
+ type: string;
272
+ properties: {
273
+ config: {
274
+ $ref: string;
297
275
  };
298
- required: string[];
299
276
  };
277
+ required: string[];
300
278
  };
301
279
  declare const ImportResponseDataSchema: {
302
- default: {
303
- $schema: string;
304
- $id: string;
305
- title: string;
306
- type: string;
307
- properties: {
308
- request: {
280
+ $schema: string;
281
+ $id: string;
282
+ title: string;
283
+ type: string;
284
+ properties: {
285
+ request: {
286
+ $ref: string;
287
+ };
288
+ result: {
289
+ type: string;
290
+ items: {
309
291
  $ref: string;
310
292
  };
311
- result: {
312
- type: string;
313
- items: {
314
- $ref: string;
315
- };
316
- };
317
293
  };
318
- required: string[];
319
294
  };
295
+ required: string[];
320
296
  };
321
297
  declare const PlanRequestDataSchema: {
322
- default: {
323
- $schema: string;
324
- $id: string;
325
- title: string;
326
- type: string;
327
- properties: {
328
- desired: {
329
- $ref: string;
330
- };
331
- state: {
332
- $ref: string;
333
- };
334
- isStateful: {
335
- type: string;
336
- description: string;
337
- };
298
+ $schema: string;
299
+ $id: string;
300
+ title: string;
301
+ type: string;
302
+ properties: {
303
+ desired: {
304
+ $ref: string;
305
+ };
306
+ state: {
307
+ $ref: string;
308
+ };
309
+ isStateful: {
310
+ type: string;
311
+ description: string;
338
312
  };
339
- additionalProperties: boolean;
340
- anyOf: {
341
- required: string[];
342
- }[];
343
313
  };
314
+ additionalProperties: boolean;
315
+ anyOf: {
316
+ required: string[];
317
+ }[];
344
318
  };
345
319
  declare const PlanResponseDataSchema: {
346
- default: {
347
- $schema: string;
348
- $id: string;
349
- title: string;
350
- type: string;
351
- properties: {
352
- planId: {
353
- description: string;
354
- type: string;
355
- format: string;
356
- };
357
- operation: {
358
- description: string;
359
- type: string;
360
- enum: string[];
361
- };
362
- statefulMode: {
363
- description: string;
364
- type: string;
365
- };
366
- resourceType: {
367
- description: string;
368
- type: string;
369
- };
370
- resourceName: {
371
- description: string;
372
- type: string[];
373
- };
374
- parameters: {
375
- description: string;
320
+ $schema: string;
321
+ $id: string;
322
+ title: string;
323
+ type: string;
324
+ properties: {
325
+ planId: {
326
+ description: string;
327
+ type: string;
328
+ format: string;
329
+ };
330
+ operation: {
331
+ description: string;
332
+ type: string;
333
+ enum: string[];
334
+ };
335
+ statefulMode: {
336
+ description: string;
337
+ type: string;
338
+ };
339
+ resourceType: {
340
+ description: string;
341
+ type: string;
342
+ };
343
+ resourceName: {
344
+ description: string;
345
+ type: string[];
346
+ };
347
+ parameters: {
348
+ description: string;
349
+ type: string;
350
+ items: {
376
351
  type: string;
377
- items: {
378
- type: string;
379
- properties: {
380
- name: {
381
- description: string;
382
- type: string;
383
- };
384
- operation: {
385
- description: string;
386
- type: string;
387
- enum: string[];
388
- };
389
- previousValue: {
390
- description: string;
391
- };
392
- newValue: {
393
- description: string;
394
- };
352
+ properties: {
353
+ name: {
354
+ description: string;
355
+ type: string;
356
+ };
357
+ operation: {
358
+ description: string;
359
+ type: string;
360
+ enum: string[];
361
+ };
362
+ previousValue: {
363
+ description: string;
364
+ };
365
+ newValue: {
366
+ description: string;
395
367
  };
396
- required: string[];
397
368
  };
369
+ required: string[];
398
370
  };
399
371
  };
400
- required: string[];
401
- additionalProperties: boolean;
402
372
  };
373
+ required: string[];
374
+ additionalProperties: boolean;
403
375
  };
404
376
  declare const ValidateRequestDataSchema: {
405
- default: {
406
- $schema: string;
407
- $id: string;
408
- title: string;
409
- type: string;
410
- properties: {
411
- configs: {
412
- type: string;
413
- items: {
414
- $ref: string;
415
- };
377
+ $schema: string;
378
+ $id: string;
379
+ title: string;
380
+ type: string;
381
+ properties: {
382
+ configs: {
383
+ type: string;
384
+ items: {
385
+ $ref: string;
416
386
  };
417
387
  };
418
- required: never[];
419
- additionalProperties: boolean;
420
388
  };
389
+ required: never[];
390
+ additionalProperties: boolean;
421
391
  };
422
392
  declare const ValidateResponseDataSchema: {
423
- default: {
424
- $schema: string;
425
- $id: string;
426
- title: string;
427
- type: string;
428
- properties: {
429
- resourceValidations: {
393
+ $schema: string;
394
+ $id: string;
395
+ title: string;
396
+ type: string;
397
+ properties: {
398
+ resourceValidations: {
399
+ type: string;
400
+ items: {
430
401
  type: string;
431
- items: {
432
- type: string;
433
- properties: {
434
- resourceType: {
435
- type: string;
436
- };
437
- resourceName: {
438
- type: string;
439
- };
440
- schemaValidationErrors: {
441
- type: string;
442
- description: string;
443
- items: {
444
- type: string;
445
- };
446
- };
447
- customValidationErrorMessage: {
448
- type: string;
449
- description: string;
450
- };
451
- isValid: {
402
+ properties: {
403
+ resourceType: {
404
+ type: string;
405
+ };
406
+ resourceName: {
407
+ type: string;
408
+ };
409
+ schemaValidationErrors: {
410
+ type: string;
411
+ description: string;
412
+ items: {
452
413
  type: string;
453
- description: string;
454
414
  };
455
415
  };
456
- required: string[];
416
+ customValidationErrorMessage: {
417
+ type: string;
418
+ description: string;
419
+ };
420
+ isValid: {
421
+ type: string;
422
+ description: string;
423
+ };
457
424
  };
425
+ required: string[];
458
426
  };
459
427
  };
460
- additionalProperties: boolean;
461
428
  };
429
+ additionalProperties: boolean;
462
430
  };
463
431
  declare const InitializeRequestDataSchema: {
464
- default: {
465
- $schema: string;
466
- $id: string;
467
- title: string;
468
- description: string;
469
- type: string;
470
- properties: {};
471
- additionalProperties: boolean;
472
- };
432
+ $schema: string;
433
+ $id: string;
434
+ title: string;
435
+ description: string;
436
+ type: string;
437
+ properties: {};
438
+ additionalProperties: boolean;
473
439
  };
474
440
  declare const InitializeResponseDataSchema: {
475
- default: {
476
- $schema: string;
477
- $id: string;
478
- title: string;
479
- description: string;
480
- type: string;
481
- properties: {
482
- resourceDefinitions: {
441
+ $schema: string;
442
+ $id: string;
443
+ title: string;
444
+ description: string;
445
+ type: string;
446
+ properties: {
447
+ resourceDefinitions: {
448
+ type: string;
449
+ items: {
483
450
  type: string;
484
- items: {
485
- type: string;
486
- properties: {
487
- type: {
488
- type: string;
489
- };
490
- dependencies: {
451
+ properties: {
452
+ type: {
453
+ type: string;
454
+ };
455
+ dependencies: {
456
+ type: string;
457
+ items: {
491
458
  type: string;
492
- items: {
493
- type: string;
494
- };
495
459
  };
496
460
  };
497
- required: string[];
498
461
  };
462
+ required: string[];
499
463
  };
500
464
  };
501
- required: string[];
502
465
  };
466
+ required: string[];
503
467
  };
504
468
  declare const SudoRequestDataSchema: {
505
- default: {
506
- $schema: string;
507
- $id: string;
508
- title: string;
509
- description: string;
510
- type: string;
511
- properties: {
512
- command: {
513
- type: string;
514
- description: string;
515
- };
516
- options: {
517
- type: string;
518
- description: string;
519
- properties: {
520
- cwd: {
521
- type: string;
522
- description: string;
523
- };
524
- argv0: {
525
- type: string;
526
- description: string;
527
- };
469
+ $schema: string;
470
+ $id: string;
471
+ title: string;
472
+ description: string;
473
+ type: string;
474
+ properties: {
475
+ command: {
476
+ type: string;
477
+ description: string;
478
+ };
479
+ options: {
480
+ type: string;
481
+ description: string;
482
+ properties: {
483
+ cwd: {
484
+ type: string;
485
+ description: string;
486
+ };
487
+ argv0: {
488
+ type: string;
489
+ description: string;
528
490
  };
529
- additionalProperties: boolean;
530
491
  };
492
+ additionalProperties: boolean;
531
493
  };
532
- required: string[];
533
- additionalProperties: boolean;
534
494
  };
495
+ required: string[];
496
+ additionalProperties: boolean;
535
497
  };
536
498
  declare const SudoRequestResponseDataSchema: {
537
- default: {
538
- $schema: string;
539
- $id: string;
540
- title: string;
541
- description: string;
542
- type: string;
543
- properties: {
544
- status: {
545
- enum: string[];
546
- description: string;
547
- };
548
- data: {
549
- type: string;
550
- description: string;
551
- };
499
+ $schema: string;
500
+ $id: string;
501
+ title: string;
502
+ description: string;
503
+ type: string;
504
+ properties: {
505
+ status: {
506
+ enum: string[];
507
+ description: string;
508
+ };
509
+ data: {
510
+ type: string;
511
+ description: string;
552
512
  };
553
- required: string[];
554
- additionalProperties: boolean;
555
513
  };
514
+ required: string[];
515
+ additionalProperties: boolean;
556
516
  };
557
517
  export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, SudoRequestDataSchema, SudoRequestResponseDataSchema, };
558
518
  export * from './types/index.js';
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
- const ConfigFileSchema = await import('./config-file-schema.json', { assert: { type: 'json' } });
2
- const ProjectSchema = await import('./project-schema.json', { assert: { type: 'json' } });
3
- const ResourceSchema = await import('./resource-schema.json', { assert: { type: 'json' } });
4
- const IpcMessageSchema = await import('./ipc-message-schema.json', { assert: { type: 'json' } });
5
- const IpcMessageV2Schema = await import('./ipc-message-schema-v2.json', { assert: { type: 'json' } });
6
- const ApplyRequestDataSchema = await import('./messages/apply-request-data-schema.json', { assert: { type: 'json' } });
7
- const ApplyResponseDataSchema = await import('./messages/apply-response-data-schema.json', { assert: { type: 'json' } });
8
- const ErrorResponseDataSchema = await import('./messages/error-response-data-schema.json', { assert: { type: 'json' } });
9
- const GetResourceInfoRequestDataSchema = await import('./messages/get-resource-info-request-data-schema.json', { assert: { type: 'json' } });
10
- const GetResourceInfoResponseDataSchema = await import('./messages/get-resource-info-response-data-schema.json', { assert: { type: 'json' } });
11
- const ImportRequestDataSchema = await import('./messages/import-request-data-schema.json', { assert: { type: 'json' } });
12
- const ImportResponseDataSchema = await import('./messages/import-response-data-schema.json', { assert: { type: 'json' } });
13
- const PlanRequestDataSchema = await import('./messages/plan-request-data-schema.json', { assert: { type: 'json' } });
14
- const PlanResponseDataSchema = await import('./messages/plan-response-data-schema.json', { assert: { type: 'json' } });
15
- const ValidateRequestDataSchema = await import('./messages/validate-request-data-schema.json', { assert: { type: 'json' } });
16
- const ValidateResponseDataSchema = await import('./messages/validate-response-data-schema.json', { assert: { type: 'json' } });
17
- const InitializeRequestDataSchema = await import('./messages/initialize-request-data-schema.json', { assert: { type: 'json' } });
18
- const InitializeResponseDataSchema = await import('./messages/initialize-response-data-schema.json', { assert: { type: 'json' } });
19
- const SudoRequestDataSchema = await import('./messages/sudo-request-data-schema.json', { assert: { type: 'json' } });
20
- const SudoRequestResponseDataSchema = await import('./messages/sudo-response-data-schema.json', { assert: { type: 'json' } });
1
+ const ConfigFileSchema = (await import('./config-file-schema.json', { assert: { type: 'json' } })).default;
2
+ const ProjectSchema = (await import('./project-schema.json', { assert: { type: 'json' } })).default;
3
+ const ResourceSchema = (await import('./resource-schema.json', { assert: { type: 'json' } })).default;
4
+ const IpcMessageSchema = (await import('./ipc-message-schema.json', { assert: { type: 'json' } })).default;
5
+ const IpcMessageV2Schema = (await import('./ipc-message-schema-v2.json', { assert: { type: 'json' } })).default;
6
+ const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', { assert: { type: 'json' } })).default;
7
+ const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', { assert: { type: 'json' } })).default;
8
+ const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', { assert: { type: 'json' } })).default;
9
+ const GetResourceInfoRequestDataSchema = (await import('./messages/get-resource-info-request-data-schema.json', { assert: { type: 'json' } })).default;
10
+ const GetResourceInfoResponseDataSchema = (await import('./messages/get-resource-info-response-data-schema.json', { assert: { type: 'json' } })).default;
11
+ const ImportRequestDataSchema = (await import('./messages/import-request-data-schema.json', { assert: { type: 'json' } })).default;
12
+ const ImportResponseDataSchema = (await import('./messages/import-response-data-schema.json', { assert: { type: 'json' } })).default;
13
+ const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', { assert: { type: 'json' } })).default;
14
+ const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', { assert: { type: 'json' } })).default;
15
+ const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', { assert: { type: 'json' } })).default;
16
+ const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', { assert: { type: 'json' } })).default;
17
+ const InitializeRequestDataSchema = (await import('./messages/initialize-request-data-schema.json', { assert: { type: 'json' } })).default;
18
+ const InitializeResponseDataSchema = (await import('./messages/initialize-response-data-schema.json', { assert: { type: 'json' } })).default;
19
+ const SudoRequestDataSchema = (await import('./messages/sudo-request-data-schema.json', { assert: { type: 'json' } })).default;
20
+ const SudoRequestResponseDataSchema = (await import('./messages/sudo-response-data-schema.json', { assert: { type: 'json' } })).default;
21
21
  export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, SudoRequestDataSchema, SudoRequestResponseDataSchema, };
22
22
  export * from './types/index.js';
23
23
  export * from './messages/commands.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version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qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,qBAAqB,EACrB,6BAA6B,GAC9B,CAAA;AAED,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}
@@ -4,7 +4,7 @@
4
4
  "title": "Apply Request Schema Data",
5
5
  "description": "Apply the previously generated plan. The plan must already be generated in order for apply to work.",
6
6
  "type": "object",
7
- "anyOf": [
7
+ "oneOf": [
8
8
  {
9
9
  "properties": {
10
10
  "planId": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -1,23 +1,23 @@
1
- const ConfigFileSchema = await import('./config-file-schema.json', {assert: {type: 'json'}})
2
- const ProjectSchema = await import('./project-schema.json', {assert: {type: 'json'}})
3
- const ResourceSchema = await import('./resource-schema.json', {assert: {type: 'json'}})
4
- const IpcMessageSchema = await import('./ipc-message-schema.json', {assert: {type: 'json'}})
5
- const IpcMessageV2Schema = await import('./ipc-message-schema-v2.json', {assert: {type: 'json'}})
6
- const ApplyRequestDataSchema = await import('./messages/apply-request-data-schema.json', {assert: {type: 'json'}})
7
- const ApplyResponseDataSchema = await import('./messages/apply-response-data-schema.json', {assert: {type: 'json'}})
8
- const ErrorResponseDataSchema = await import('./messages/error-response-data-schema.json', {assert: {type: 'json'}})
9
- const GetResourceInfoRequestDataSchema = await import('./messages/get-resource-info-request-data-schema.json', {assert: {type: 'json'}})
10
- const GetResourceInfoResponseDataSchema = await import('./messages/get-resource-info-response-data-schema.json', {assert: {type: 'json'}})
11
- const ImportRequestDataSchema = await import('./messages/import-request-data-schema.json', {assert: {type: 'json'}})
12
- const ImportResponseDataSchema = await import('./messages/import-response-data-schema.json', {assert: {type: 'json'}})
13
- const PlanRequestDataSchema = await import('./messages/plan-request-data-schema.json', {assert: {type: 'json'}})
14
- const PlanResponseDataSchema = await import('./messages/plan-response-data-schema.json', {assert: {type: 'json'}})
15
- const ValidateRequestDataSchema = await import('./messages/validate-request-data-schema.json', {assert: {type: 'json'}})
16
- const ValidateResponseDataSchema = await import('./messages/validate-response-data-schema.json', {assert: {type: 'json'}})
17
- const InitializeRequestDataSchema = await import('./messages/initialize-request-data-schema.json', {assert: {type: 'json'}})
18
- const InitializeResponseDataSchema = await import('./messages/initialize-response-data-schema.json', {assert: {type: 'json'}})
19
- const SudoRequestDataSchema = await import('./messages/sudo-request-data-schema.json', {assert: {type: 'json'}});
20
- const SudoRequestResponseDataSchema = await import('./messages/sudo-response-data-schema.json', {assert: {type: 'json'}});
1
+ const ConfigFileSchema = (await import('./config-file-schema.json', {assert: {type: 'json'}})).default
2
+ const ProjectSchema = (await import('./project-schema.json', {assert: {type: 'json'}})).default
3
+ const ResourceSchema = (await import('./resource-schema.json', {assert: {type: 'json'}})).default
4
+ const IpcMessageSchema = (await import('./ipc-message-schema.json', {assert: {type: 'json'}})).default
5
+ const IpcMessageV2Schema = (await import('./ipc-message-schema-v2.json', {assert: {type: 'json'}})).default
6
+ const ApplyRequestDataSchema = (await import('./messages/apply-request-data-schema.json', {assert: {type: 'json'}})).default
7
+ const ApplyResponseDataSchema = (await import('./messages/apply-response-data-schema.json', {assert: {type: 'json'}})).default
8
+ const ErrorResponseDataSchema = (await import('./messages/error-response-data-schema.json', {assert: {type: 'json'}})).default
9
+ const GetResourceInfoRequestDataSchema = (await import('./messages/get-resource-info-request-data-schema.json', {assert: {type: 'json'}})).default
10
+ const GetResourceInfoResponseDataSchema = (await import('./messages/get-resource-info-response-data-schema.json', {assert: {type: 'json'}})).default
11
+ const ImportRequestDataSchema = (await import('./messages/import-request-data-schema.json', {assert: {type: 'json'}})).default
12
+ const ImportResponseDataSchema = (await import('./messages/import-response-data-schema.json', {assert: {type: 'json'}})).default
13
+ const PlanRequestDataSchema = (await import('./messages/plan-request-data-schema.json', {assert: {type: 'json'}})).default
14
+ const PlanResponseDataSchema = (await import('./messages/plan-response-data-schema.json', {assert: {type: 'json'}})).default
15
+ const ValidateRequestDataSchema = (await import('./messages/validate-request-data-schema.json', {assert: {type: 'json'}})).default
16
+ const ValidateResponseDataSchema = (await import('./messages/validate-response-data-schema.json', {assert: {type: 'json'}})).default
17
+ const InitializeRequestDataSchema = (await import('./messages/initialize-request-data-schema.json', {assert: {type: 'json'}})).default
18
+ const InitializeResponseDataSchema = (await import('./messages/initialize-response-data-schema.json', {assert: {type: 'json'}})).default
19
+ const SudoRequestDataSchema = (await import('./messages/sudo-request-data-schema.json', {assert: {type: 'json'}})).default
20
+ const SudoRequestResponseDataSchema = (await import('./messages/sudo-response-data-schema.json', {assert: {type: 'json'}})).default
21
21
 
22
22
  export {
23
23
  ConfigFileSchema,
@@ -4,7 +4,7 @@
4
4
  "title": "Apply Request Schema Data",
5
5
  "description": "Apply the previously generated plan. The plan must already be generated in order for apply to work.",
6
6
  "type": "object",
7
- "anyOf": [
7
+ "oneOf": [
8
8
  {
9
9
  "properties": {
10
10
  "planId": {
@@ -22,6 +22,7 @@ describe('Plan response data schema', () => {
22
22
  planId: 'eb367e53-21a8-4c9e-a38b-c99e7c821344',
23
23
  operation: ResourceOperation.CREATE,
24
24
  resourceType: 'type1',
25
+ statefulMode: true,
25
26
  parameters: [{
26
27
  name: 'parameter1',
27
28
  operation: ParameterOperation.ADD,