@heroku-cli/plugin-mtls 0.9.2 → 1.0.0-beta.0

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.
Files changed (69) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +207 -110
  3. package/dist/README.md +347 -0
  4. package/{lib → dist}/base.d.ts +2 -2
  5. package/{lib → dist}/base.js +5 -1
  6. package/dist/commands/data/mtls/certificates/create.d.ts +12 -0
  7. package/dist/commands/data/mtls/certificates/create.js +32 -0
  8. package/dist/commands/data/mtls/certificates/delete.d.ts +13 -0
  9. package/dist/commands/data/mtls/certificates/delete.js +32 -0
  10. package/dist/commands/data/mtls/certificates/download.d.ts +15 -0
  11. package/{lib → dist}/commands/data/mtls/certificates/download.js +41 -40
  12. package/dist/commands/data/mtls/certificates/get.d.ts +13 -0
  13. package/dist/commands/data/mtls/certificates/get.js +32 -0
  14. package/dist/commands/data/mtls/certificates/index.d.ts +12 -0
  15. package/{lib → dist}/commands/data/mtls/certificates/index.js +17 -16
  16. package/dist/commands/data/mtls/create.d.ts +12 -0
  17. package/dist/commands/data/mtls/create.js +43 -0
  18. package/dist/commands/data/mtls/destroy.d.ts +13 -0
  19. package/dist/commands/data/mtls/destroy.js +32 -0
  20. package/dist/commands/data/mtls/index.d.ts +12 -0
  21. package/{lib → dist}/commands/data/mtls/index.js +17 -16
  22. package/dist/commands/data/mtls/ip-rules/create.d.ts +14 -0
  23. package/dist/commands/data/mtls/ip-rules/create.js +37 -0
  24. package/dist/commands/data/mtls/ip-rules/delete.d.ts +14 -0
  25. package/dist/commands/data/mtls/ip-rules/delete.js +49 -0
  26. package/dist/commands/data/mtls/ip-rules/get.d.ts +13 -0
  27. package/dist/commands/data/mtls/ip-rules/get.js +27 -0
  28. package/dist/commands/data/mtls/ip-rules/index.d.ts +12 -0
  29. package/dist/commands/data/mtls/ip-rules/index.js +32 -0
  30. package/{lib → dist}/lib/fetcher.js +6 -6
  31. package/dist/oclif.manifest.json +575 -0
  32. package/dist/tsconfig.tsbuildinfo +1 -0
  33. package/dist/utils/file-helper.d.ts +4 -0
  34. package/dist/utils/file-helper.js +11 -0
  35. package/{lib → dist}/utils/is-error-http.js +1 -2
  36. package/{lib → dist}/utils/is-error-message.js +1 -2
  37. package/dist/utils/table.js +42 -0
  38. package/package.json +20 -19
  39. package/lib/README.md +0 -250
  40. package/lib/commands/data/mtls/certificates/create.d.ts +0 -13
  41. package/lib/commands/data/mtls/certificates/create.js +0 -31
  42. package/lib/commands/data/mtls/certificates/delete.d.ts +0 -14
  43. package/lib/commands/data/mtls/certificates/delete.js +0 -31
  44. package/lib/commands/data/mtls/certificates/download.d.ts +0 -16
  45. package/lib/commands/data/mtls/certificates/get.d.ts +0 -14
  46. package/lib/commands/data/mtls/certificates/get.js +0 -31
  47. package/lib/commands/data/mtls/certificates/index.d.ts +0 -13
  48. package/lib/commands/data/mtls/create.d.ts +0 -13
  49. package/lib/commands/data/mtls/create.js +0 -42
  50. package/lib/commands/data/mtls/destroy.d.ts +0 -14
  51. package/lib/commands/data/mtls/destroy.js +0 -31
  52. package/lib/commands/data/mtls/index.d.ts +0 -13
  53. package/lib/commands/data/mtls/ip-rules/create.d.ts +0 -15
  54. package/lib/commands/data/mtls/ip-rules/create.js +0 -33
  55. package/lib/commands/data/mtls/ip-rules/delete.d.ts +0 -15
  56. package/lib/commands/data/mtls/ip-rules/delete.js +0 -48
  57. package/lib/commands/data/mtls/ip-rules/get.d.ts +0 -14
  58. package/lib/commands/data/mtls/ip-rules/get.js +0 -26
  59. package/lib/commands/data/mtls/ip-rules/index.d.ts +0 -13
  60. package/lib/commands/data/mtls/ip-rules/index.js +0 -31
  61. package/lib/oclif.manifest.json +0 -1
  62. package/lib/package.json +0 -34
  63. package/lib/utils/table.js +0 -18
  64. /package/{lib → dist}/index.d.ts +0 -0
  65. /package/{lib → dist}/index.js +0 -0
  66. /package/{lib → dist}/lib/fetcher.d.ts +0 -0
  67. /package/{lib → dist}/utils/is-error-http.d.ts +0 -0
  68. /package/{lib → dist}/utils/is-error-message.d.ts +0 -0
  69. /package/{lib → dist}/utils/table.d.ts +0 -0
@@ -0,0 +1,575 @@
1
+ {
2
+ "commands": {
3
+ "data:mtls:create": {
4
+ "aliases": [],
5
+ "args": {
6
+ "addon": {
7
+ "description": "addon",
8
+ "name": "addon",
9
+ "required": true
10
+ }
11
+ },
12
+ "description": "enable MTLS for your addon",
13
+ "examples": [
14
+ "$ heroku data:mtls:create postgresql-sushi-12345 -a example-app"
15
+ ],
16
+ "flags": {
17
+ "app": {
18
+ "char": "a",
19
+ "description": "app to run command against",
20
+ "name": "app",
21
+ "required": true,
22
+ "hasDynamicHelp": false,
23
+ "multiple": false,
24
+ "type": "option"
25
+ }
26
+ },
27
+ "hasDynamicHelp": false,
28
+ "hiddenAliases": [],
29
+ "id": "data:mtls:create",
30
+ "pluginAlias": "@heroku-cli/plugin-mtls",
31
+ "pluginName": "@heroku-cli/plugin-mtls",
32
+ "pluginType": "core",
33
+ "strict": true,
34
+ "isESM": false,
35
+ "relativePath": [
36
+ "dist",
37
+ "commands",
38
+ "data",
39
+ "mtls",
40
+ "create.js"
41
+ ]
42
+ },
43
+ "data:mtls:destroy": {
44
+ "aliases": [
45
+ "data:mtls:delete"
46
+ ],
47
+ "args": {
48
+ "addon": {
49
+ "description": "addon",
50
+ "name": "addon",
51
+ "required": true
52
+ }
53
+ },
54
+ "description": "destroy MTLS configuration on your addon",
55
+ "examples": [
56
+ "$ heroku data:mtls:destroy postgresql-sushi-12345 -a example-app"
57
+ ],
58
+ "flags": {
59
+ "app": {
60
+ "char": "a",
61
+ "description": "app to run command against",
62
+ "name": "app",
63
+ "required": true,
64
+ "hasDynamicHelp": false,
65
+ "multiple": false,
66
+ "type": "option"
67
+ }
68
+ },
69
+ "hasDynamicHelp": false,
70
+ "hiddenAliases": [],
71
+ "id": "data:mtls:destroy",
72
+ "pluginAlias": "@heroku-cli/plugin-mtls",
73
+ "pluginName": "@heroku-cli/plugin-mtls",
74
+ "pluginType": "core",
75
+ "strict": true,
76
+ "isESM": false,
77
+ "relativePath": [
78
+ "dist",
79
+ "commands",
80
+ "data",
81
+ "mtls",
82
+ "destroy.js"
83
+ ]
84
+ },
85
+ "data:mtls": {
86
+ "aliases": [],
87
+ "args": {
88
+ "addon": {
89
+ "description": "addon",
90
+ "name": "addon",
91
+ "required": true
92
+ }
93
+ },
94
+ "description": "get the status of MTLS for your addon",
95
+ "examples": [
96
+ "$ heroku data:mtls postgresql-sushi-12345 -a example-app"
97
+ ],
98
+ "flags": {
99
+ "app": {
100
+ "char": "a",
101
+ "description": "app to run command against",
102
+ "name": "app",
103
+ "required": true,
104
+ "hasDynamicHelp": false,
105
+ "multiple": false,
106
+ "type": "option"
107
+ }
108
+ },
109
+ "hasDynamicHelp": false,
110
+ "hiddenAliases": [],
111
+ "id": "data:mtls",
112
+ "pluginAlias": "@heroku-cli/plugin-mtls",
113
+ "pluginName": "@heroku-cli/plugin-mtls",
114
+ "pluginType": "core",
115
+ "strict": true,
116
+ "isESM": false,
117
+ "relativePath": [
118
+ "dist",
119
+ "commands",
120
+ "data",
121
+ "mtls",
122
+ "index.js"
123
+ ]
124
+ },
125
+ "data:mtls:certificates:create": {
126
+ "aliases": [],
127
+ "args": {
128
+ "addon": {
129
+ "description": "addon",
130
+ "name": "addon",
131
+ "required": true
132
+ }
133
+ },
134
+ "description": "create a new certificate for your MTLS enabled addon",
135
+ "examples": [
136
+ "$ heroku data:mtls:certificates:create postgresql-sushi-12345 -a example-app"
137
+ ],
138
+ "flags": {
139
+ "app": {
140
+ "char": "a",
141
+ "description": "app to run command against",
142
+ "name": "app",
143
+ "required": true,
144
+ "hasDynamicHelp": false,
145
+ "multiple": false,
146
+ "type": "option"
147
+ }
148
+ },
149
+ "hasDynamicHelp": false,
150
+ "hiddenAliases": [],
151
+ "id": "data:mtls:certificates:create",
152
+ "pluginAlias": "@heroku-cli/plugin-mtls",
153
+ "pluginName": "@heroku-cli/plugin-mtls",
154
+ "pluginType": "core",
155
+ "strict": true,
156
+ "isESM": false,
157
+ "relativePath": [
158
+ "dist",
159
+ "commands",
160
+ "data",
161
+ "mtls",
162
+ "certificates",
163
+ "create.js"
164
+ ]
165
+ },
166
+ "data:mtls:certificates:delete": {
167
+ "aliases": [],
168
+ "args": {
169
+ "addon": {
170
+ "description": "addon",
171
+ "name": "addon",
172
+ "required": true
173
+ }
174
+ },
175
+ "description": "delete a specific certificate for your MTLS enabled addon",
176
+ "examples": [
177
+ "$ heroku data:mtls:certificates:delete postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\" -a example-app"
178
+ ],
179
+ "flags": {
180
+ "app": {
181
+ "char": "a",
182
+ "description": "app to run command against",
183
+ "name": "app",
184
+ "required": true,
185
+ "hasDynamicHelp": false,
186
+ "multiple": false,
187
+ "type": "option"
188
+ },
189
+ "id": {
190
+ "description": "id of certificate",
191
+ "name": "id",
192
+ "required": true,
193
+ "hasDynamicHelp": false,
194
+ "multiple": false,
195
+ "type": "option"
196
+ }
197
+ },
198
+ "hasDynamicHelp": false,
199
+ "hiddenAliases": [],
200
+ "id": "data:mtls:certificates:delete",
201
+ "pluginAlias": "@heroku-cli/plugin-mtls",
202
+ "pluginName": "@heroku-cli/plugin-mtls",
203
+ "pluginType": "core",
204
+ "strict": true,
205
+ "isESM": false,
206
+ "relativePath": [
207
+ "dist",
208
+ "commands",
209
+ "data",
210
+ "mtls",
211
+ "certificates",
212
+ "delete.js"
213
+ ]
214
+ },
215
+ "data:mtls:certificates:download": {
216
+ "aliases": [],
217
+ "args": {
218
+ "addon": {
219
+ "description": "addon",
220
+ "name": "addon",
221
+ "required": true
222
+ }
223
+ },
224
+ "description": "download your certificate bundle for your mTLS addon",
225
+ "examples": [
226
+ "$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f\" -a example-app",
227
+ "$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f\" --dir \"./folder\" -a example-app",
228
+ "$ heroku data:mtls:certificates:download postgresql-sushi-12345 --id \"3559a4df-2c82-4473-86cf-181310a6ef4f --prefix \"prefix_\" -a example-app"
229
+ ],
230
+ "flags": {
231
+ "app": {
232
+ "char": "a",
233
+ "description": "app to run command against",
234
+ "name": "app",
235
+ "required": true,
236
+ "hasDynamicHelp": false,
237
+ "multiple": false,
238
+ "type": "option"
239
+ },
240
+ "dir": {
241
+ "description": "directory to download files to. defaults to HOME:/.postgresql",
242
+ "name": "dir",
243
+ "required": false,
244
+ "hasDynamicHelp": false,
245
+ "multiple": false,
246
+ "type": "option"
247
+ },
248
+ "id": {
249
+ "description": "ID of certificate to download",
250
+ "name": "id",
251
+ "required": false,
252
+ "hasDynamicHelp": false,
253
+ "multiple": false,
254
+ "type": "option"
255
+ },
256
+ "prefix": {
257
+ "description": "prefix to put in front of downloaded file names",
258
+ "name": "prefix",
259
+ "required": true,
260
+ "default": "",
261
+ "hasDynamicHelp": false,
262
+ "multiple": false,
263
+ "type": "option"
264
+ }
265
+ },
266
+ "hasDynamicHelp": false,
267
+ "hiddenAliases": [],
268
+ "id": "data:mtls:certificates:download",
269
+ "pluginAlias": "@heroku-cli/plugin-mtls",
270
+ "pluginName": "@heroku-cli/plugin-mtls",
271
+ "pluginType": "core",
272
+ "strict": true,
273
+ "isESM": false,
274
+ "relativePath": [
275
+ "dist",
276
+ "commands",
277
+ "data",
278
+ "mtls",
279
+ "certificates",
280
+ "download.js"
281
+ ]
282
+ },
283
+ "data:mtls:certificates:get": {
284
+ "aliases": [],
285
+ "args": {
286
+ "addon": {
287
+ "description": "addon",
288
+ "name": "addon",
289
+ "required": true
290
+ }
291
+ },
292
+ "description": "get a specific certificate for your MTLS enabled addon",
293
+ "examples": [
294
+ "$ heroku data:mtls:certificates:get postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\" -a example-app"
295
+ ],
296
+ "flags": {
297
+ "app": {
298
+ "char": "a",
299
+ "description": "app to run command against",
300
+ "name": "app",
301
+ "required": true,
302
+ "hasDynamicHelp": false,
303
+ "multiple": false,
304
+ "type": "option"
305
+ },
306
+ "id": {
307
+ "description": "id of IP Rule",
308
+ "name": "id",
309
+ "required": true,
310
+ "hasDynamicHelp": false,
311
+ "multiple": false,
312
+ "type": "option"
313
+ }
314
+ },
315
+ "hasDynamicHelp": false,
316
+ "hiddenAliases": [],
317
+ "id": "data:mtls:certificates:get",
318
+ "pluginAlias": "@heroku-cli/plugin-mtls",
319
+ "pluginName": "@heroku-cli/plugin-mtls",
320
+ "pluginType": "core",
321
+ "strict": true,
322
+ "isESM": false,
323
+ "relativePath": [
324
+ "dist",
325
+ "commands",
326
+ "data",
327
+ "mtls",
328
+ "certificates",
329
+ "get.js"
330
+ ]
331
+ },
332
+ "data:mtls:certificates": {
333
+ "aliases": [],
334
+ "args": {
335
+ "addon": {
336
+ "description": "addon",
337
+ "name": "addon",
338
+ "required": true
339
+ }
340
+ },
341
+ "description": "get the certificates for your MTLS enabled addon",
342
+ "examples": [
343
+ "$ heroku data:mtls:certificates postgresql-sushi-12345 -a example-app"
344
+ ],
345
+ "flags": {
346
+ "app": {
347
+ "char": "a",
348
+ "description": "app to run command against",
349
+ "name": "app",
350
+ "required": true,
351
+ "hasDynamicHelp": false,
352
+ "multiple": false,
353
+ "type": "option"
354
+ }
355
+ },
356
+ "hasDynamicHelp": false,
357
+ "hiddenAliases": [],
358
+ "id": "data:mtls:certificates",
359
+ "pluginAlias": "@heroku-cli/plugin-mtls",
360
+ "pluginName": "@heroku-cli/plugin-mtls",
361
+ "pluginType": "core",
362
+ "strict": true,
363
+ "isESM": false,
364
+ "relativePath": [
365
+ "dist",
366
+ "commands",
367
+ "data",
368
+ "mtls",
369
+ "certificates",
370
+ "index.js"
371
+ ]
372
+ },
373
+ "data:mtls:ip-rules:create": {
374
+ "aliases": [],
375
+ "args": {
376
+ "addon": {
377
+ "description": "addon",
378
+ "name": "addon",
379
+ "required": true
380
+ }
381
+ },
382
+ "description": "create an IP Rule for your MTLS enabled addon",
383
+ "examples": [
384
+ "$ heroku data:mtls:ip-rules:create postgresql-sushi-12345 --cidr \"1.2.3.4/32\" --description \"home IP address\" -a example-app"
385
+ ],
386
+ "flags": {
387
+ "app": {
388
+ "char": "a",
389
+ "description": "app to run command against",
390
+ "name": "app",
391
+ "required": true,
392
+ "hasDynamicHelp": false,
393
+ "multiple": false,
394
+ "type": "option"
395
+ },
396
+ "cidr": {
397
+ "name": "cidr",
398
+ "required": true,
399
+ "hasDynamicHelp": false,
400
+ "multiple": false,
401
+ "type": "option"
402
+ },
403
+ "description": {
404
+ "name": "description",
405
+ "required": false,
406
+ "hasDynamicHelp": false,
407
+ "multiple": false,
408
+ "type": "option"
409
+ }
410
+ },
411
+ "hasDynamicHelp": false,
412
+ "hiddenAliases": [],
413
+ "id": "data:mtls:ip-rules:create",
414
+ "pluginAlias": "@heroku-cli/plugin-mtls",
415
+ "pluginName": "@heroku-cli/plugin-mtls",
416
+ "pluginType": "core",
417
+ "strict": true,
418
+ "isESM": false,
419
+ "relativePath": [
420
+ "dist",
421
+ "commands",
422
+ "data",
423
+ "mtls",
424
+ "ip-rules",
425
+ "create.js"
426
+ ]
427
+ },
428
+ "data:mtls:ip-rules:delete": {
429
+ "aliases": [],
430
+ "args": {
431
+ "addon": {
432
+ "description": "addon",
433
+ "name": "addon",
434
+ "required": true
435
+ }
436
+ },
437
+ "description": "delete a specific IP Rule for your MTLS enabled addon",
438
+ "examples": [
439
+ "$ heroku data:mtls:ip-rules:delete postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\" -a example-app"
440
+ ],
441
+ "flags": {
442
+ "app": {
443
+ "char": "a",
444
+ "description": "app to run command against",
445
+ "name": "app",
446
+ "required": true,
447
+ "hasDynamicHelp": false,
448
+ "multiple": false,
449
+ "type": "option"
450
+ },
451
+ "cidr": {
452
+ "description": "cidr of IP Rule",
453
+ "name": "cidr",
454
+ "hasDynamicHelp": false,
455
+ "multiple": false,
456
+ "type": "option"
457
+ },
458
+ "id": {
459
+ "description": "id of IP Rule",
460
+ "name": "id",
461
+ "hasDynamicHelp": false,
462
+ "multiple": false,
463
+ "type": "option"
464
+ }
465
+ },
466
+ "hasDynamicHelp": false,
467
+ "hiddenAliases": [],
468
+ "id": "data:mtls:ip-rules:delete",
469
+ "pluginAlias": "@heroku-cli/plugin-mtls",
470
+ "pluginName": "@heroku-cli/plugin-mtls",
471
+ "pluginType": "core",
472
+ "strict": true,
473
+ "isESM": false,
474
+ "relativePath": [
475
+ "dist",
476
+ "commands",
477
+ "data",
478
+ "mtls",
479
+ "ip-rules",
480
+ "delete.js"
481
+ ]
482
+ },
483
+ "data:mtls:ip-rules:get": {
484
+ "aliases": [],
485
+ "args": {
486
+ "addon": {
487
+ "description": "addon",
488
+ "name": "addon",
489
+ "required": true
490
+ }
491
+ },
492
+ "description": "get a specific IP Rule for your MTLS enabled addon",
493
+ "examples": [
494
+ "$ heroku data:mtls:ip-rules:get postgresql-sushi-12345 --id \"1862ec85-fdc1-47b3-924e-a91d26ca3a7c\" -a example-app"
495
+ ],
496
+ "flags": {
497
+ "app": {
498
+ "char": "a",
499
+ "description": "app to run command against",
500
+ "name": "app",
501
+ "required": true,
502
+ "hasDynamicHelp": false,
503
+ "multiple": false,
504
+ "type": "option"
505
+ },
506
+ "id": {
507
+ "description": "id of IP Rule",
508
+ "name": "id",
509
+ "required": true,
510
+ "hasDynamicHelp": false,
511
+ "multiple": false,
512
+ "type": "option"
513
+ }
514
+ },
515
+ "hasDynamicHelp": false,
516
+ "hiddenAliases": [],
517
+ "id": "data:mtls:ip-rules:get",
518
+ "pluginAlias": "@heroku-cli/plugin-mtls",
519
+ "pluginName": "@heroku-cli/plugin-mtls",
520
+ "pluginType": "core",
521
+ "strict": true,
522
+ "isESM": false,
523
+ "relativePath": [
524
+ "dist",
525
+ "commands",
526
+ "data",
527
+ "mtls",
528
+ "ip-rules",
529
+ "get.js"
530
+ ]
531
+ },
532
+ "data:mtls:ip-rules": {
533
+ "aliases": [],
534
+ "args": {
535
+ "addon": {
536
+ "description": "addon",
537
+ "name": "addon",
538
+ "required": true
539
+ }
540
+ },
541
+ "description": "get the IP Rules for your MTLS enabled addon",
542
+ "examples": [
543
+ "$ heroku data:mtls:ip-rules postgresql-sushi-12345 -a example-app"
544
+ ],
545
+ "flags": {
546
+ "app": {
547
+ "char": "a",
548
+ "description": "app to run command against",
549
+ "name": "app",
550
+ "required": true,
551
+ "hasDynamicHelp": false,
552
+ "multiple": false,
553
+ "type": "option"
554
+ }
555
+ },
556
+ "hasDynamicHelp": false,
557
+ "hiddenAliases": [],
558
+ "id": "data:mtls:ip-rules",
559
+ "pluginAlias": "@heroku-cli/plugin-mtls",
560
+ "pluginName": "@heroku-cli/plugin-mtls",
561
+ "pluginType": "core",
562
+ "strict": true,
563
+ "isESM": false,
564
+ "relativePath": [
565
+ "dist",
566
+ "commands",
567
+ "data",
568
+ "mtls",
569
+ "ip-rules",
570
+ "index.js"
571
+ ]
572
+ }
573
+ },
574
+ "version": "1.0.0-beta.0"
575
+ }
@@ -0,0 +1 @@
1
+ {"root":["../src/base.ts","../src/index.ts","../src/commands/data/mtls/create.ts","../src/commands/data/mtls/destroy.ts","../src/commands/data/mtls/index.ts","../src/commands/data/mtls/certificates/create.ts","../src/commands/data/mtls/certificates/delete.ts","../src/commands/data/mtls/certificates/download.ts","../src/commands/data/mtls/certificates/get.ts","../src/commands/data/mtls/certificates/index.ts","../src/commands/data/mtls/ip-rules/create.ts","../src/commands/data/mtls/ip-rules/delete.ts","../src/commands/data/mtls/ip-rules/get.ts","../src/commands/data/mtls/ip-rules/index.ts","../src/lib/fetcher.ts","../src/utils/file-helper.ts","../src/utils/is-error-http.ts","../src/utils/is-error-message.ts","../src/utils/table.ts"],"version":"5.7.3"}
@@ -0,0 +1,4 @@
1
+ import * as fs from 'node:fs';
2
+ export declare const existsSync: (path: string) => boolean;
3
+ export declare const mkdirSync: (path: string) => void;
4
+ export declare const writeFile: (path: string, data: string, options: fs.WriteFileOptions | undefined, err: any) => void;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.writeFile = exports.mkdirSync = exports.existsSync = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const fs = tslib_1.__importStar(require("node:fs"));
6
+ const existsSync = (path) => fs.existsSync(path);
7
+ exports.existsSync = existsSync;
8
+ const mkdirSync = (path) => fs.mkdirSync(path);
9
+ exports.mkdirSync = mkdirSync;
10
+ const writeFile = (path, data, options = null, err) => fs.writeFile(path, data, options, err);
11
+ exports.writeFile = writeFile;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isErrorHttp = void 0;
3
+ exports.isErrorHttp = isErrorHttp;
4
4
  function isErrorHttp(error) {
5
5
  return error !== null && typeof error === 'object' && Reflect.has(error, 'http');
6
6
  }
7
- exports.isErrorHttp = isErrorHttp;
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isErrorMessage = void 0;
3
+ exports.isErrorMessage = isErrorMessage;
4
4
  function isErrorMessage(error) {
5
5
  return error !== null && typeof error === 'object' && Reflect.has(error, 'message');
6
6
  }
7
- exports.isErrorMessage = isErrorMessage;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ipRulesTable = exports.certificatesTable = void 0;
4
+ const core_1 = require("@oclif/core");
5
+ const certificatesTable = (data) => core_1.ux.table(data, {
6
+ id: {
7
+ header: 'ID',
8
+ get: ({ id }) => id
9
+ },
10
+ created_at: {
11
+ header: 'Created At',
12
+ get: ({ created_at }) => created_at
13
+ },
14
+ status: {
15
+ header: 'Status',
16
+ get: ({ status }) => status
17
+ },
18
+ });
19
+ exports.certificatesTable = certificatesTable;
20
+ const ipRulesTable = (data) => core_1.ux.table(data, {
21
+ id: {
22
+ header: 'ID',
23
+ get: ({ id }) => id
24
+ },
25
+ cidr: {
26
+ header: 'CIDR',
27
+ get: ({ cidr }) => cidr
28
+ },
29
+ description: {
30
+ header: 'Description',
31
+ get: ({ description }) => description
32
+ },
33
+ created_at: {
34
+ header: 'Created At',
35
+ get: ({ created_at }) => created_at
36
+ },
37
+ status: {
38
+ header: 'Status',
39
+ get: ({ status }) => status
40
+ },
41
+ });
42
+ exports.ipRulesTable = ipRulesTable;