codify-schemas 1.0.56 → 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,554 +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
- resourceType: {
363
- description: string;
364
- type: string;
365
- };
366
- resourceName: {
367
- description: string;
368
- type: string[];
369
- };
370
- parameters: {
371
- 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: {
372
351
  type: string;
373
- items: {
374
- type: string;
375
- properties: {
376
- name: {
377
- description: string;
378
- type: string;
379
- };
380
- operation: {
381
- description: string;
382
- type: string;
383
- enum: string[];
384
- };
385
- previousValue: {
386
- description: string;
387
- };
388
- newValue: {
389
- description: string;
390
- };
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;
391
367
  };
392
- required: string[];
393
368
  };
369
+ required: string[];
394
370
  };
395
371
  };
396
- required: string[];
397
- additionalProperties: boolean;
398
372
  };
373
+ required: string[];
374
+ additionalProperties: boolean;
399
375
  };
400
376
  declare const ValidateRequestDataSchema: {
401
- default: {
402
- $schema: string;
403
- $id: string;
404
- title: string;
405
- type: string;
406
- properties: {
407
- configs: {
408
- type: string;
409
- items: {
410
- $ref: string;
411
- };
377
+ $schema: string;
378
+ $id: string;
379
+ title: string;
380
+ type: string;
381
+ properties: {
382
+ configs: {
383
+ type: string;
384
+ items: {
385
+ $ref: string;
412
386
  };
413
387
  };
414
- required: never[];
415
- additionalProperties: boolean;
416
388
  };
389
+ required: never[];
390
+ additionalProperties: boolean;
417
391
  };
418
392
  declare const ValidateResponseDataSchema: {
419
- default: {
420
- $schema: string;
421
- $id: string;
422
- title: string;
423
- type: string;
424
- properties: {
425
- resourceValidations: {
393
+ $schema: string;
394
+ $id: string;
395
+ title: string;
396
+ type: string;
397
+ properties: {
398
+ resourceValidations: {
399
+ type: string;
400
+ items: {
426
401
  type: string;
427
- items: {
428
- type: string;
429
- properties: {
430
- resourceType: {
431
- type: string;
432
- };
433
- resourceName: {
434
- type: string;
435
- };
436
- schemaValidationErrors: {
437
- type: string;
438
- description: string;
439
- items: {
440
- type: string;
441
- };
442
- };
443
- customValidationErrorMessage: {
444
- type: string;
445
- description: string;
446
- };
447
- 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: {
448
413
  type: string;
449
- description: string;
450
414
  };
451
415
  };
452
- required: string[];
416
+ customValidationErrorMessage: {
417
+ type: string;
418
+ description: string;
419
+ };
420
+ isValid: {
421
+ type: string;
422
+ description: string;
423
+ };
453
424
  };
425
+ required: string[];
454
426
  };
455
427
  };
456
- additionalProperties: boolean;
457
428
  };
429
+ additionalProperties: boolean;
458
430
  };
459
431
  declare const InitializeRequestDataSchema: {
460
- default: {
461
- $schema: string;
462
- $id: string;
463
- title: string;
464
- description: string;
465
- type: string;
466
- properties: {};
467
- additionalProperties: boolean;
468
- };
432
+ $schema: string;
433
+ $id: string;
434
+ title: string;
435
+ description: string;
436
+ type: string;
437
+ properties: {};
438
+ additionalProperties: boolean;
469
439
  };
470
440
  declare const InitializeResponseDataSchema: {
471
- default: {
472
- $schema: string;
473
- $id: string;
474
- title: string;
475
- description: string;
476
- type: string;
477
- properties: {
478
- 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: {
479
450
  type: string;
480
- items: {
481
- type: string;
482
- properties: {
483
- type: {
484
- type: string;
485
- };
486
- dependencies: {
451
+ properties: {
452
+ type: {
453
+ type: string;
454
+ };
455
+ dependencies: {
456
+ type: string;
457
+ items: {
487
458
  type: string;
488
- items: {
489
- type: string;
490
- };
491
459
  };
492
460
  };
493
- required: string[];
494
461
  };
462
+ required: string[];
495
463
  };
496
464
  };
497
- required: string[];
498
465
  };
466
+ required: string[];
499
467
  };
500
468
  declare const SudoRequestDataSchema: {
501
- default: {
502
- $schema: string;
503
- $id: string;
504
- title: string;
505
- description: string;
506
- type: string;
507
- properties: {
508
- command: {
509
- type: string;
510
- description: string;
511
- };
512
- options: {
513
- type: string;
514
- description: string;
515
- properties: {
516
- cwd: {
517
- type: string;
518
- description: string;
519
- };
520
- argv0: {
521
- type: string;
522
- description: string;
523
- };
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;
524
490
  };
525
- additionalProperties: boolean;
526
491
  };
492
+ additionalProperties: boolean;
527
493
  };
528
- required: string[];
529
- additionalProperties: boolean;
530
494
  };
495
+ required: string[];
496
+ additionalProperties: boolean;
531
497
  };
532
498
  declare const SudoRequestResponseDataSchema: {
533
- default: {
534
- $schema: string;
535
- $id: string;
536
- title: string;
537
- description: string;
538
- type: string;
539
- properties: {
540
- status: {
541
- enum: string[];
542
- description: string;
543
- };
544
- data: {
545
- type: string;
546
- description: string;
547
- };
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;
548
512
  };
549
- required: string[];
550
- additionalProperties: boolean;
551
513
  };
514
+ required: string[];
515
+ additionalProperties: boolean;
552
516
  };
553
517
  export { ConfigFileSchema, ProjectSchema, ResourceSchema, IpcMessageSchema, IpcMessageV2Schema, ApplyRequestDataSchema, ApplyResponseDataSchema, ErrorResponseDataSchema, GetResourceInfoRequestDataSchema, GetResourceInfoResponseDataSchema, ImportRequestDataSchema, ImportResponseDataSchema, PlanRequestDataSchema, PlanResponseDataSchema, ValidateRequestDataSchema, ValidateResponseDataSchema, InitializeRequestDataSchema, InitializeResponseDataSchema, SudoRequestDataSchema, SudoRequestResponseDataSchema, };
554
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":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"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ACzB,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": {
@@ -14,6 +14,10 @@
14
14
  "type": "string",
15
15
  "enum": ["create", "destroy", "modify", "recreate", "noop"]
16
16
  },
17
+ "statefulMode": {
18
+ "description": "Describes if the plan was a stateful plan",
19
+ "type": "boolean"
20
+ },
17
21
  "resourceType": {
18
22
  "description": "The resource type",
19
23
  "type": "string"
@@ -48,6 +52,6 @@
48
52
  }
49
53
  }
50
54
  },
51
- "required": ["planId", "operation", "resourceType", "parameters"],
55
+ "required": ["planId", "statefulMode", "operation", "resourceType", "parameters"],
52
56
  "additionalProperties": false
53
57
  }
@@ -66,6 +66,7 @@ export interface PlanResponseData {
66
66
  operation: ResourceOperation;
67
67
  resourceName?: string;
68
68
  resourceType: string;
69
+ statefulMode: boolean;
69
70
  parameters: Array<{
70
71
  name: string;
71
72
  operation: ParameterOperation;
@@ -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;AAmCD,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;AA2ED,MAAM,CAAN,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,KAAX,WAAW,QAGtB"}
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;AAmCD,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;AA4ED,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,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.56",
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": {
@@ -14,6 +14,10 @@
14
14
  "type": "string",
15
15
  "enum" : ["create", "destroy", "modify", "recreate", "noop"]
16
16
  },
17
+ "statefulMode": {
18
+ "description": "Describes if the plan was a stateful plan",
19
+ "type": "boolean"
20
+ },
17
21
  "resourceType": {
18
22
  "description": "The resource type",
19
23
  "type": "string"
@@ -48,6 +52,6 @@
48
52
  }
49
53
  }
50
54
  },
51
- "required": ["planId", "operation", "resourceType", "parameters"],
55
+ "required": ["planId", "statefulMode", "operation", "resourceType", "parameters"],
52
56
  "additionalProperties": false
53
57
  }
@@ -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,
@@ -78,6 +78,7 @@ export interface PlanResponseData {
78
78
  operation: ResourceOperation;
79
79
  resourceName?: string;
80
80
  resourceType: string;
81
+ statefulMode: boolean;
81
82
  parameters: Array<{
82
83
  name: string;
83
84
  operation: ParameterOperation;