ardent-cli-beta 0.0.17 → 0.0.19

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 (54) hide show
  1. package/NOTICE +4 -0
  2. package/README.md +96 -18
  3. package/dist/api/client.d.ts +6 -1
  4. package/dist/api/client.js +44 -5
  5. package/dist/auth/credentials.d.ts +1 -0
  6. package/dist/auth/credentials.js +44 -4
  7. package/dist/branches/client.d.ts +3 -1
  8. package/dist/branches/client.js +41 -4
  9. package/dist/branches/connection.d.ts +21 -0
  10. package/dist/branches/connection.js +143 -0
  11. package/dist/branches/credentials.d.ts +18 -0
  12. package/dist/branches/credentials.js +188 -0
  13. package/dist/branches/drivers.d.ts +6 -0
  14. package/dist/branches/drivers.js +77 -0
  15. package/dist/branches/env.d.ts +1 -0
  16. package/dist/branches/env.js +55 -0
  17. package/dist/branches/poll.d.ts +3 -0
  18. package/dist/branches/poll.js +40 -0
  19. package/dist/branches/psql.d.ts +14 -0
  20. package/dist/branches/psql.js +159 -0
  21. package/dist/branches/recovery.d.ts +19 -0
  22. package/dist/branches/recovery.js +211 -0
  23. package/dist/command.d.ts +1 -0
  24. package/dist/command.js +10 -0
  25. package/dist/commands/branch/connect.d.ts +12 -0
  26. package/dist/commands/branch/connect.js +87 -0
  27. package/dist/commands/branch/create.d.ts +9 -1
  28. package/dist/commands/branch/create.js +73 -15
  29. package/dist/commands/branch/recover.d.ts +11 -0
  30. package/dist/commands/branch/recover.js +37 -0
  31. package/dist/commands/branch/suspend.d.ts +11 -0
  32. package/dist/commands/branch/suspend.js +37 -0
  33. package/dist/commands/branch/switch.js +1 -1
  34. package/dist/commands/branch/wake.d.ts +11 -0
  35. package/dist/commands/branch/wake.js +37 -0
  36. package/dist/commands/connector/create.d.ts +2 -0
  37. package/dist/commands/connector/create.js +20 -2
  38. package/dist/commands/connector/delete.d.ts +10 -0
  39. package/dist/commands/connector/delete.js +62 -0
  40. package/dist/commands/connector/status.d.ts +10 -0
  41. package/dist/commands/connector/status.js +28 -0
  42. package/dist/commands/connector/switch.d.ts +12 -0
  43. package/dist/commands/connector/switch.js +45 -0
  44. package/dist/commands/login.js +9 -2
  45. package/dist/commands/project/switch.js +1 -1
  46. package/dist/connectors/client.d.ts +8 -4
  47. package/dist/connectors/client.js +85 -15
  48. package/dist/members/client.js +5 -5
  49. package/dist/projects/client.js +4 -4
  50. package/dist/terminal.d.ts +1 -0
  51. package/dist/terminal.js +7 -0
  52. package/oclif.manifest.json +319 -2
  53. package/openapi.json +1970 -0
  54. package/package.json +8 -2
@@ -95,6 +95,63 @@
95
95
  "status.js"
96
96
  ]
97
97
  },
98
+ "branch:connect": {
99
+ "aliases": [],
100
+ "args": {},
101
+ "description": "Connect to the selected active branch with psql, or print a connection string for your driver",
102
+ "flags": {
103
+ "json": {
104
+ "description": "Format output as json.",
105
+ "helpGroup": "GLOBAL",
106
+ "name": "json",
107
+ "allowNo": false,
108
+ "type": "boolean"
109
+ },
110
+ "driver": {
111
+ "description": "The driver --print writes a connection string for: libpq (psql, psycopg, pgx), node (node-postgres, postgres.js), jdbc (pgjdbc) or prisma (Prisma)",
112
+ "name": "driver",
113
+ "default": "libpq",
114
+ "hasDynamicHelp": false,
115
+ "multiple": false,
116
+ "options": [
117
+ "libpq",
118
+ "node",
119
+ "jdbc",
120
+ "prisma"
121
+ ],
122
+ "type": "option"
123
+ },
124
+ "print": {
125
+ "description": "Print a connection string for --driver and keep the credential active, instead of opening psql",
126
+ "name": "print",
127
+ "allowNo": false,
128
+ "type": "boolean"
129
+ },
130
+ "role": {
131
+ "description": "Sign in as this source role on the branch (for example postgres), with a fresh password that works on this branch only",
132
+ "name": "role",
133
+ "hasDynamicHelp": false,
134
+ "multiple": false,
135
+ "type": "option"
136
+ }
137
+ },
138
+ "hasDynamicHelp": false,
139
+ "hiddenAliases": [],
140
+ "id": "branch:connect",
141
+ "pluginAlias": "ardent-cli-beta",
142
+ "pluginName": "ardent-cli-beta",
143
+ "pluginType": "core",
144
+ "strict": true,
145
+ "enableJsonFlag": true,
146
+ "helpGroup": "Branches",
147
+ "isESM": true,
148
+ "relativePath": [
149
+ "dist",
150
+ "commands",
151
+ "branch",
152
+ "connect.js"
153
+ ]
154
+ },
98
155
  "branch:create": {
99
156
  "aliases": [],
100
157
  "args": {
@@ -104,7 +161,7 @@
104
161
  "required": true
105
162
  }
106
163
  },
107
- "description": "Create a branch in the selected connector",
164
+ "description": "Create a branch in the selected connector and print its connection URL when ready",
108
165
  "flags": {
109
166
  "json": {
110
167
  "description": "Format output as json.",
@@ -112,6 +169,36 @@
112
169
  "name": "json",
113
170
  "allowNo": false,
114
171
  "type": "boolean"
172
+ },
173
+ "driver": {
174
+ "description": "Connection string format: libpq, node, jdbc or prisma",
175
+ "name": "driver",
176
+ "default": "libpq",
177
+ "hasDynamicHelp": false,
178
+ "multiple": false,
179
+ "options": [
180
+ "libpq",
181
+ "node",
182
+ "jdbc",
183
+ "prisma"
184
+ ],
185
+ "type": "option"
186
+ },
187
+ "print": {
188
+ "description": "Print the connection string when ready (the default behavior)",
189
+ "name": "print",
190
+ "allowNo": false,
191
+ "type": "boolean"
192
+ },
193
+ "to-env": {
194
+ "description": "Write DATABASE_URL to .env instead of printing it",
195
+ "exclusive": [
196
+ "print",
197
+ "json"
198
+ ],
199
+ "name": "to-env",
200
+ "allowNo": false,
201
+ "type": "boolean"
115
202
  }
116
203
  },
117
204
  "hasDynamicHelp": false,
@@ -197,6 +284,78 @@
197
284
  "list.js"
198
285
  ]
199
286
  },
287
+ "branch:recover": {
288
+ "aliases": [],
289
+ "args": {
290
+ "name": {
291
+ "description": "Branch name",
292
+ "name": "name",
293
+ "required": true
294
+ }
295
+ },
296
+ "description": "Recover a failed branch in the selected connector on its retained disk",
297
+ "flags": {
298
+ "json": {
299
+ "description": "Format output as json.",
300
+ "helpGroup": "GLOBAL",
301
+ "name": "json",
302
+ "allowNo": false,
303
+ "type": "boolean"
304
+ }
305
+ },
306
+ "hasDynamicHelp": false,
307
+ "hiddenAliases": [],
308
+ "id": "branch:recover",
309
+ "pluginAlias": "ardent-cli-beta",
310
+ "pluginName": "ardent-cli-beta",
311
+ "pluginType": "core",
312
+ "strict": false,
313
+ "enableJsonFlag": true,
314
+ "helpGroup": "Branches",
315
+ "isESM": true,
316
+ "relativePath": [
317
+ "dist",
318
+ "commands",
319
+ "branch",
320
+ "recover.js"
321
+ ]
322
+ },
323
+ "branch:suspend": {
324
+ "aliases": [],
325
+ "args": {
326
+ "name": {
327
+ "description": "Branch name",
328
+ "name": "name",
329
+ "required": true
330
+ }
331
+ },
332
+ "description": "Park a branch in the selected connector; it refuses connections until woken",
333
+ "flags": {
334
+ "json": {
335
+ "description": "Format output as json.",
336
+ "helpGroup": "GLOBAL",
337
+ "name": "json",
338
+ "allowNo": false,
339
+ "type": "boolean"
340
+ }
341
+ },
342
+ "hasDynamicHelp": false,
343
+ "hiddenAliases": [],
344
+ "id": "branch:suspend",
345
+ "pluginAlias": "ardent-cli-beta",
346
+ "pluginName": "ardent-cli-beta",
347
+ "pluginType": "core",
348
+ "strict": false,
349
+ "enableJsonFlag": true,
350
+ "helpGroup": "Branches",
351
+ "isESM": true,
352
+ "relativePath": [
353
+ "dist",
354
+ "commands",
355
+ "branch",
356
+ "suspend.js"
357
+ ]
358
+ },
200
359
  "branch:switch": {
201
360
  "aliases": [],
202
361
  "args": {
@@ -233,6 +392,42 @@
233
392
  "switch.js"
234
393
  ]
235
394
  },
395
+ "branch:wake": {
396
+ "aliases": [],
397
+ "args": {
398
+ "name": {
399
+ "description": "Branch name",
400
+ "name": "name",
401
+ "required": true
402
+ }
403
+ },
404
+ "description": "Wake a parked branch in the selected connector; a parked branch refuses connections until woken",
405
+ "flags": {
406
+ "json": {
407
+ "description": "Format output as json.",
408
+ "helpGroup": "GLOBAL",
409
+ "name": "json",
410
+ "allowNo": false,
411
+ "type": "boolean"
412
+ }
413
+ },
414
+ "hasDynamicHelp": false,
415
+ "hiddenAliases": [],
416
+ "id": "branch:wake",
417
+ "pluginAlias": "ardent-cli-beta",
418
+ "pluginName": "ardent-cli-beta",
419
+ "pluginType": "core",
420
+ "strict": false,
421
+ "enableJsonFlag": true,
422
+ "helpGroup": "Branches",
423
+ "isESM": true,
424
+ "relativePath": [
425
+ "dist",
426
+ "commands",
427
+ "branch",
428
+ "wake.js"
429
+ ]
430
+ },
236
431
  "connector:create": {
237
432
  "aliases": [],
238
433
  "args": {
@@ -270,6 +465,20 @@
270
465
  "hasDynamicHelp": false,
271
466
  "multiple": false,
272
467
  "type": "option"
468
+ },
469
+ "tls-client-cert": {
470
+ "description": "PEM client certificate file (requires sslmode=require in the URL)",
471
+ "name": "tls-client-cert",
472
+ "hasDynamicHelp": false,
473
+ "multiple": false,
474
+ "type": "option"
475
+ },
476
+ "tls-client-key": {
477
+ "description": "PEM client private-key file (requires sslmode=require in the URL)",
478
+ "name": "tls-client-key",
479
+ "hasDynamicHelp": false,
480
+ "multiple": false,
481
+ "type": "option"
273
482
  }
274
483
  },
275
484
  "hasDynamicHelp": false,
@@ -289,6 +498,42 @@
289
498
  "create.js"
290
499
  ]
291
500
  },
501
+ "connector:delete": {
502
+ "aliases": [],
503
+ "args": {
504
+ "name": {
505
+ "description": "Connector name",
506
+ "name": "name",
507
+ "required": true
508
+ }
509
+ },
510
+ "description": "Delete a connector in the selected project after its branches are deleted",
511
+ "flags": {
512
+ "json": {
513
+ "description": "Format output as json.",
514
+ "helpGroup": "GLOBAL",
515
+ "name": "json",
516
+ "allowNo": false,
517
+ "type": "boolean"
518
+ }
519
+ },
520
+ "hasDynamicHelp": false,
521
+ "hiddenAliases": [],
522
+ "id": "connector:delete",
523
+ "pluginAlias": "ardent-cli-beta",
524
+ "pluginName": "ardent-cli-beta",
525
+ "pluginType": "core",
526
+ "strict": true,
527
+ "enableJsonFlag": true,
528
+ "helpGroup": "Connectors",
529
+ "isESM": true,
530
+ "relativePath": [
531
+ "dist",
532
+ "commands",
533
+ "connector",
534
+ "delete.js"
535
+ ]
536
+ },
292
537
  "connector:list": {
293
538
  "aliases": [],
294
539
  "args": {},
@@ -319,6 +564,78 @@
319
564
  "list.js"
320
565
  ]
321
566
  },
567
+ "connector:status": {
568
+ "aliases": [],
569
+ "args": {
570
+ "id": {
571
+ "description": "Connector ID returned by create or delete",
572
+ "name": "id",
573
+ "required": true
574
+ }
575
+ },
576
+ "description": "Show connector registration or deletion status by ID",
577
+ "flags": {
578
+ "json": {
579
+ "description": "Format output as json.",
580
+ "helpGroup": "GLOBAL",
581
+ "name": "json",
582
+ "allowNo": false,
583
+ "type": "boolean"
584
+ }
585
+ },
586
+ "hasDynamicHelp": false,
587
+ "hiddenAliases": [],
588
+ "id": "connector:status",
589
+ "pluginAlias": "ardent-cli-beta",
590
+ "pluginName": "ardent-cli-beta",
591
+ "pluginType": "core",
592
+ "strict": true,
593
+ "enableJsonFlag": true,
594
+ "helpGroup": "Connectors",
595
+ "isESM": true,
596
+ "relativePath": [
597
+ "dist",
598
+ "commands",
599
+ "connector",
600
+ "status.js"
601
+ ]
602
+ },
603
+ "connector:switch": {
604
+ "aliases": [],
605
+ "args": {
606
+ "name": {
607
+ "description": "Connector name",
608
+ "name": "name",
609
+ "required": true
610
+ }
611
+ },
612
+ "description": "Switch to a connector in the selected project",
613
+ "flags": {
614
+ "json": {
615
+ "description": "Format output as json.",
616
+ "helpGroup": "GLOBAL",
617
+ "name": "json",
618
+ "allowNo": false,
619
+ "type": "boolean"
620
+ }
621
+ },
622
+ "hasDynamicHelp": false,
623
+ "hiddenAliases": [],
624
+ "id": "connector:switch",
625
+ "pluginAlias": "ardent-cli-beta",
626
+ "pluginName": "ardent-cli-beta",
627
+ "pluginType": "core",
628
+ "strict": true,
629
+ "enableJsonFlag": true,
630
+ "helpGroup": "Connectors",
631
+ "isESM": true,
632
+ "relativePath": [
633
+ "dist",
634
+ "commands",
635
+ "connector",
636
+ "switch.js"
637
+ ]
638
+ },
322
639
  "member:delete": {
323
640
  "aliases": [],
324
641
  "args": {
@@ -574,5 +891,5 @@
574
891
  ]
575
892
  }
576
893
  },
577
- "version": "0.0.17"
894
+ "version": "0.0.19"
578
895
  }