@basis-theory-labs/cli 4.1.0 → 4.3.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.
- package/README.md +235 -65
- package/dist/commands/proxies/logs/read.d.ts +14 -0
- package/dist/commands/proxies/logs/read.js +56 -0
- package/dist/commands/proxies/logs/tail.d.ts +13 -0
- package/dist/commands/proxies/logs/tail.js +50 -0
- package/dist/commands/proxies/logs.js +1 -1
- package/dist/commands/proxies/update.js +1 -1
- package/dist/commands/reactors/logs/read.d.ts +14 -0
- package/dist/commands/reactors/logs/read.js +56 -0
- package/dist/commands/reactors/logs/tail.d.ts +13 -0
- package/dist/commands/reactors/logs/tail.js +50 -0
- package/dist/commands/reactors/logs.js +1 -1
- package/dist/logs/events.d.ts +56 -0
- package/dist/logs/events.js +571 -0
- package/dist/logs/format.d.ts +10 -0
- package/dist/logs/format.js +162 -0
- package/dist/logs/index.js +17 -0
- package/dist/logs/runtime.d.ts +18 -0
- package/dist/logs/runtime.js +362 -0
- package/dist/logs/time.d.ts +16 -0
- package/dist/logs/time.js +74 -0
- package/dist/proxies/runtime.js +1 -1
- package/dist/proxies/utils.js +13 -13
- package/dist/reactors/runtime.js +2 -2
- package/dist/reactors/utils.d.ts +3 -3
- package/dist/reactors/utils.js +1 -1
- package/dist/runtime/flags.js +6 -6
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +3 -1
- package/dist/runtime/utils.d.ts +5 -3
- package/dist/runtime/utils.js +6 -2
- package/oclif.manifest.json +287 -49
- package/package.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.
|
|
2
|
+
"version": "4.3.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"applications:create": {
|
|
5
5
|
"id": "applications:create",
|
|
@@ -289,35 +289,36 @@
|
|
|
289
289
|
"request-transform-image": {
|
|
290
290
|
"name": "request-transform-image",
|
|
291
291
|
"type": "option",
|
|
292
|
-
"description": "request-transform runtime image (node-bt|node22)",
|
|
292
|
+
"description": "request-transform runtime image (node-bt|node22|node24)",
|
|
293
293
|
"multiple": false,
|
|
294
294
|
"options": [
|
|
295
295
|
"node-bt",
|
|
296
|
-
"node22"
|
|
296
|
+
"node22",
|
|
297
|
+
"node24"
|
|
297
298
|
]
|
|
298
299
|
},
|
|
299
300
|
"request-transform-package-json": {
|
|
300
301
|
"name": "request-transform-package-json",
|
|
301
302
|
"type": "option",
|
|
302
|
-
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 only)",
|
|
303
|
+
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 | node24 only)",
|
|
303
304
|
"multiple": false
|
|
304
305
|
},
|
|
305
306
|
"request-transform-timeout": {
|
|
306
307
|
"name": "request-transform-timeout",
|
|
307
308
|
"type": "option",
|
|
308
|
-
"description": "request-transform timeout in seconds, 10-30 (node22 only)",
|
|
309
|
+
"description": "request-transform timeout in seconds, 10-30 (node22 | node24 only)",
|
|
309
310
|
"multiple": false
|
|
310
311
|
},
|
|
311
312
|
"request-transform-warm-concurrency": {
|
|
312
313
|
"name": "request-transform-warm-concurrency",
|
|
313
314
|
"type": "option",
|
|
314
|
-
"description": "request-transform warm concurrency, 0-1 (node22 only)",
|
|
315
|
+
"description": "request-transform warm concurrency, 0-1 (node22 | node24 only)",
|
|
315
316
|
"multiple": false
|
|
316
317
|
},
|
|
317
318
|
"request-transform-resources": {
|
|
318
319
|
"name": "request-transform-resources",
|
|
319
320
|
"type": "option",
|
|
320
|
-
"description": "request-transform resource tier (node22 only)",
|
|
321
|
+
"description": "request-transform resource tier (node22 | node24 only)",
|
|
321
322
|
"multiple": false,
|
|
322
323
|
"options": [
|
|
323
324
|
"standard",
|
|
@@ -328,41 +329,42 @@
|
|
|
328
329
|
"request-transform-permissions": {
|
|
329
330
|
"name": "request-transform-permissions",
|
|
330
331
|
"type": "option",
|
|
331
|
-
"description": "request-transform permission to grant, repeatable (node22 only)",
|
|
332
|
+
"description": "request-transform permission to grant, repeatable (node22 | node24 only)",
|
|
332
333
|
"multiple": true
|
|
333
334
|
},
|
|
334
335
|
"response-transform-image": {
|
|
335
336
|
"name": "response-transform-image",
|
|
336
337
|
"type": "option",
|
|
337
|
-
"description": "response-transform runtime image (node-bt|node22)",
|
|
338
|
+
"description": "response-transform runtime image (node-bt|node22|node24)",
|
|
338
339
|
"multiple": false,
|
|
339
340
|
"options": [
|
|
340
341
|
"node-bt",
|
|
341
|
-
"node22"
|
|
342
|
+
"node22",
|
|
343
|
+
"node24"
|
|
342
344
|
]
|
|
343
345
|
},
|
|
344
346
|
"response-transform-package-json": {
|
|
345
347
|
"name": "response-transform-package-json",
|
|
346
348
|
"type": "option",
|
|
347
|
-
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 only)",
|
|
349
|
+
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 | node24 only)",
|
|
348
350
|
"multiple": false
|
|
349
351
|
},
|
|
350
352
|
"response-transform-timeout": {
|
|
351
353
|
"name": "response-transform-timeout",
|
|
352
354
|
"type": "option",
|
|
353
|
-
"description": "response-transform timeout in seconds, 10-30 (node22 only)",
|
|
355
|
+
"description": "response-transform timeout in seconds, 10-30 (node22 | node24 only)",
|
|
354
356
|
"multiple": false
|
|
355
357
|
},
|
|
356
358
|
"response-transform-warm-concurrency": {
|
|
357
359
|
"name": "response-transform-warm-concurrency",
|
|
358
360
|
"type": "option",
|
|
359
|
-
"description": "response-transform warm concurrency, 0-1 (node22 only)",
|
|
361
|
+
"description": "response-transform warm concurrency, 0-1 (node22 | node24 only)",
|
|
360
362
|
"multiple": false
|
|
361
363
|
},
|
|
362
364
|
"response-transform-resources": {
|
|
363
365
|
"name": "response-transform-resources",
|
|
364
366
|
"type": "option",
|
|
365
|
-
"description": "response-transform resource tier (node22 only)",
|
|
367
|
+
"description": "response-transform resource tier (node22 | node24 only)",
|
|
366
368
|
"multiple": false,
|
|
367
369
|
"options": [
|
|
368
370
|
"standard",
|
|
@@ -373,13 +375,13 @@
|
|
|
373
375
|
"response-transform-permissions": {
|
|
374
376
|
"name": "response-transform-permissions",
|
|
375
377
|
"type": "option",
|
|
376
|
-
"description": "response-transform permission to grant, repeatable (node22 only)",
|
|
378
|
+
"description": "response-transform permission to grant, repeatable (node22 | node24 only)",
|
|
377
379
|
"multiple": true
|
|
378
380
|
},
|
|
379
381
|
"no-wait": {
|
|
380
382
|
"name": "no-wait",
|
|
381
383
|
"type": "boolean",
|
|
382
|
-
"description": "do not wait for proxy to be ready (requires at least one transform with node22)",
|
|
384
|
+
"description": "do not wait for proxy to be ready (requires at least one transform with node22 | node24)",
|
|
383
385
|
"allowNo": false
|
|
384
386
|
}
|
|
385
387
|
},
|
|
@@ -468,7 +470,7 @@
|
|
|
468
470
|
},
|
|
469
471
|
"proxies:logs": {
|
|
470
472
|
"id": "proxies:logs",
|
|
471
|
-
"description": "
|
|
473
|
+
"description": "Legacy tunnel-based Proxy Transform logs. Opens a local tunnel and updates logging configuration. For v2/runtime debugging, use `bt proxies logs tail <id>` or `bt proxies logs read <id>`. Requires `proxy:update` Management Application permissions",
|
|
472
474
|
"strict": true,
|
|
473
475
|
"pluginName": "@basis-theory-labs/cli",
|
|
474
476
|
"pluginAlias": "@basis-theory-labs/cli",
|
|
@@ -605,35 +607,36 @@
|
|
|
605
607
|
"request-transform-image": {
|
|
606
608
|
"name": "request-transform-image",
|
|
607
609
|
"type": "option",
|
|
608
|
-
"description": "request-transform runtime image (node-bt|node22)",
|
|
610
|
+
"description": "request-transform runtime image (node-bt|node22|node24)",
|
|
609
611
|
"multiple": false,
|
|
610
612
|
"options": [
|
|
611
613
|
"node-bt",
|
|
612
|
-
"node22"
|
|
614
|
+
"node22",
|
|
615
|
+
"node24"
|
|
613
616
|
]
|
|
614
617
|
},
|
|
615
618
|
"request-transform-package-json": {
|
|
616
619
|
"name": "request-transform-package-json",
|
|
617
620
|
"type": "option",
|
|
618
|
-
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 only)",
|
|
621
|
+
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 | node24 only)",
|
|
619
622
|
"multiple": false
|
|
620
623
|
},
|
|
621
624
|
"request-transform-timeout": {
|
|
622
625
|
"name": "request-transform-timeout",
|
|
623
626
|
"type": "option",
|
|
624
|
-
"description": "request-transform timeout in seconds, 10-30 (node22 only)",
|
|
627
|
+
"description": "request-transform timeout in seconds, 10-30 (node22 | node24 only)",
|
|
625
628
|
"multiple": false
|
|
626
629
|
},
|
|
627
630
|
"request-transform-warm-concurrency": {
|
|
628
631
|
"name": "request-transform-warm-concurrency",
|
|
629
632
|
"type": "option",
|
|
630
|
-
"description": "request-transform warm concurrency, 0-1 (node22 only)",
|
|
633
|
+
"description": "request-transform warm concurrency, 0-1 (node22 | node24 only)",
|
|
631
634
|
"multiple": false
|
|
632
635
|
},
|
|
633
636
|
"request-transform-resources": {
|
|
634
637
|
"name": "request-transform-resources",
|
|
635
638
|
"type": "option",
|
|
636
|
-
"description": "request-transform resource tier (node22 only)",
|
|
639
|
+
"description": "request-transform resource tier (node22 | node24 only)",
|
|
637
640
|
"multiple": false,
|
|
638
641
|
"options": [
|
|
639
642
|
"standard",
|
|
@@ -644,41 +647,42 @@
|
|
|
644
647
|
"request-transform-permissions": {
|
|
645
648
|
"name": "request-transform-permissions",
|
|
646
649
|
"type": "option",
|
|
647
|
-
"description": "request-transform permission to grant, repeatable (node22 only)",
|
|
650
|
+
"description": "request-transform permission to grant, repeatable (node22 | node24 only)",
|
|
648
651
|
"multiple": true
|
|
649
652
|
},
|
|
650
653
|
"response-transform-image": {
|
|
651
654
|
"name": "response-transform-image",
|
|
652
655
|
"type": "option",
|
|
653
|
-
"description": "response-transform runtime image (node-bt|node22)",
|
|
656
|
+
"description": "response-transform runtime image (node-bt|node22|node24)",
|
|
654
657
|
"multiple": false,
|
|
655
658
|
"options": [
|
|
656
659
|
"node-bt",
|
|
657
|
-
"node22"
|
|
660
|
+
"node22",
|
|
661
|
+
"node24"
|
|
658
662
|
]
|
|
659
663
|
},
|
|
660
664
|
"response-transform-package-json": {
|
|
661
665
|
"name": "response-transform-package-json",
|
|
662
666
|
"type": "option",
|
|
663
|
-
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 only)",
|
|
667
|
+
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 | node24 only)",
|
|
664
668
|
"multiple": false
|
|
665
669
|
},
|
|
666
670
|
"response-transform-timeout": {
|
|
667
671
|
"name": "response-transform-timeout",
|
|
668
672
|
"type": "option",
|
|
669
|
-
"description": "response-transform timeout in seconds, 10-30 (node22 only)",
|
|
673
|
+
"description": "response-transform timeout in seconds, 10-30 (node22 | node24 only)",
|
|
670
674
|
"multiple": false
|
|
671
675
|
},
|
|
672
676
|
"response-transform-warm-concurrency": {
|
|
673
677
|
"name": "response-transform-warm-concurrency",
|
|
674
678
|
"type": "option",
|
|
675
|
-
"description": "response-transform warm concurrency, 0-1 (node22 only)",
|
|
679
|
+
"description": "response-transform warm concurrency, 0-1 (node22 | node24 only)",
|
|
676
680
|
"multiple": false
|
|
677
681
|
},
|
|
678
682
|
"response-transform-resources": {
|
|
679
683
|
"name": "response-transform-resources",
|
|
680
684
|
"type": "option",
|
|
681
|
-
"description": "response-transform resource tier (node22 only)",
|
|
685
|
+
"description": "response-transform resource tier (node22 | node24 only)",
|
|
682
686
|
"multiple": false,
|
|
683
687
|
"options": [
|
|
684
688
|
"standard",
|
|
@@ -689,13 +693,13 @@
|
|
|
689
693
|
"response-transform-permissions": {
|
|
690
694
|
"name": "response-transform-permissions",
|
|
691
695
|
"type": "option",
|
|
692
|
-
"description": "response-transform permission to grant, repeatable (node22 only)",
|
|
696
|
+
"description": "response-transform permission to grant, repeatable (node22 | node24 only)",
|
|
693
697
|
"multiple": true
|
|
694
698
|
},
|
|
695
699
|
"no-wait": {
|
|
696
700
|
"name": "no-wait",
|
|
697
701
|
"type": "boolean",
|
|
698
|
-
"description": "do not wait for proxy to be ready (requires at least one transform with node22)",
|
|
702
|
+
"description": "do not wait for proxy to be ready (requires at least one transform with node22 | node24)",
|
|
699
703
|
"allowNo": false
|
|
700
704
|
},
|
|
701
705
|
"watch": {
|
|
@@ -792,35 +796,36 @@
|
|
|
792
796
|
"image": {
|
|
793
797
|
"name": "image",
|
|
794
798
|
"type": "option",
|
|
795
|
-
"description": "runtime image (node-bt|node22)",
|
|
799
|
+
"description": "runtime image (node-bt|node22|node24)",
|
|
796
800
|
"multiple": false,
|
|
797
801
|
"options": [
|
|
798
802
|
"node-bt",
|
|
799
|
-
"node22"
|
|
803
|
+
"node22",
|
|
804
|
+
"node24"
|
|
800
805
|
]
|
|
801
806
|
},
|
|
802
807
|
"package-json": {
|
|
803
808
|
"name": "package-json",
|
|
804
809
|
"type": "option",
|
|
805
|
-
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 only)",
|
|
810
|
+
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 | node24 only)",
|
|
806
811
|
"multiple": false
|
|
807
812
|
},
|
|
808
813
|
"timeout": {
|
|
809
814
|
"name": "timeout",
|
|
810
815
|
"type": "option",
|
|
811
|
-
"description": "timeout in seconds, 10-900 (node22 only; maximum 30 when runtime async is disabled; default: 10)",
|
|
816
|
+
"description": "timeout in seconds, 10-900 (node22 | node24 only; maximum 30 when runtime async is disabled; default: 10)",
|
|
812
817
|
"multiple": false
|
|
813
818
|
},
|
|
814
819
|
"warm-concurrency": {
|
|
815
820
|
"name": "warm-concurrency",
|
|
816
821
|
"type": "option",
|
|
817
|
-
"description": "number of warm instances, 0-1 (node22 only, default: 0)",
|
|
822
|
+
"description": "number of warm instances, 0-1 (node22 | node24 only, default: 0)",
|
|
818
823
|
"multiple": false
|
|
819
824
|
},
|
|
820
825
|
"resources": {
|
|
821
826
|
"name": "resources",
|
|
822
827
|
"type": "option",
|
|
823
|
-
"description": "resource tier (node22 only, default: standard)",
|
|
828
|
+
"description": "resource tier (node22 | node24 only, default: standard)",
|
|
824
829
|
"multiple": false,
|
|
825
830
|
"options": [
|
|
826
831
|
"standard",
|
|
@@ -831,7 +836,7 @@
|
|
|
831
836
|
"permissions": {
|
|
832
837
|
"name": "permissions",
|
|
833
838
|
"type": "option",
|
|
834
|
-
"description": "permission to grant, repeatable (node22 only)",
|
|
839
|
+
"description": "permission to grant, repeatable (node22 | node24 only)",
|
|
835
840
|
"multiple": true
|
|
836
841
|
},
|
|
837
842
|
"no-wait": {
|
|
@@ -843,7 +848,7 @@
|
|
|
843
848
|
"async": {
|
|
844
849
|
"name": "async",
|
|
845
850
|
"type": "boolean",
|
|
846
|
-
"description": "execute Reactor invocations asynchronously (node22 only)",
|
|
851
|
+
"description": "execute Reactor invocations asynchronously (node22 | node24 only)",
|
|
847
852
|
"allowNo": true
|
|
848
853
|
}
|
|
849
854
|
},
|
|
@@ -932,7 +937,7 @@
|
|
|
932
937
|
},
|
|
933
938
|
"reactors:logs": {
|
|
934
939
|
"id": "reactors:logs",
|
|
935
|
-
"description": "
|
|
940
|
+
"description": "Legacy tunnel-based Reactor logs. Opens a local tunnel and updates logging configuration. For v2/runtime debugging, use `bt reactors logs tail <id>` or `bt reactors logs read <id>`. Requires `reactor:update` Management Application permissions",
|
|
936
941
|
"strict": true,
|
|
937
942
|
"pluginName": "@basis-theory-labs/cli",
|
|
938
943
|
"pluginAlias": "@basis-theory-labs/cli",
|
|
@@ -1048,35 +1053,36 @@
|
|
|
1048
1053
|
"image": {
|
|
1049
1054
|
"name": "image",
|
|
1050
1055
|
"type": "option",
|
|
1051
|
-
"description": "runtime image (node-bt|node22)",
|
|
1056
|
+
"description": "runtime image (node-bt|node22|node24)",
|
|
1052
1057
|
"multiple": false,
|
|
1053
1058
|
"options": [
|
|
1054
1059
|
"node-bt",
|
|
1055
|
-
"node22"
|
|
1060
|
+
"node22",
|
|
1061
|
+
"node24"
|
|
1056
1062
|
]
|
|
1057
1063
|
},
|
|
1058
1064
|
"package-json": {
|
|
1059
1065
|
"name": "package-json",
|
|
1060
1066
|
"type": "option",
|
|
1061
|
-
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 only)",
|
|
1067
|
+
"description": "path to runtime package.json JSON file (top-level dependencies required; supports resolutions or overrides fallback; pinned versions required) (node22 | node24 only)",
|
|
1062
1068
|
"multiple": false
|
|
1063
1069
|
},
|
|
1064
1070
|
"timeout": {
|
|
1065
1071
|
"name": "timeout",
|
|
1066
1072
|
"type": "option",
|
|
1067
|
-
"description": "timeout in seconds, 10-900 (node22 only; maximum 30 when runtime async is disabled; default: 10)",
|
|
1073
|
+
"description": "timeout in seconds, 10-900 (node22 | node24 only; maximum 30 when runtime async is disabled; default: 10)",
|
|
1068
1074
|
"multiple": false
|
|
1069
1075
|
},
|
|
1070
1076
|
"warm-concurrency": {
|
|
1071
1077
|
"name": "warm-concurrency",
|
|
1072
1078
|
"type": "option",
|
|
1073
|
-
"description": "number of warm instances, 0-1 (node22 only, default: 0)",
|
|
1079
|
+
"description": "number of warm instances, 0-1 (node22 | node24 only, default: 0)",
|
|
1074
1080
|
"multiple": false
|
|
1075
1081
|
},
|
|
1076
1082
|
"resources": {
|
|
1077
1083
|
"name": "resources",
|
|
1078
1084
|
"type": "option",
|
|
1079
|
-
"description": "resource tier (node22 only, default: standard)",
|
|
1085
|
+
"description": "resource tier (node22 | node24 only, default: standard)",
|
|
1080
1086
|
"multiple": false,
|
|
1081
1087
|
"options": [
|
|
1082
1088
|
"standard",
|
|
@@ -1087,7 +1093,7 @@
|
|
|
1087
1093
|
"permissions": {
|
|
1088
1094
|
"name": "permissions",
|
|
1089
1095
|
"type": "option",
|
|
1090
|
-
"description": "permission to grant, repeatable (node22 only)",
|
|
1096
|
+
"description": "permission to grant, repeatable (node22 | node24 only)",
|
|
1091
1097
|
"multiple": true
|
|
1092
1098
|
},
|
|
1093
1099
|
"no-wait": {
|
|
@@ -1099,7 +1105,7 @@
|
|
|
1099
1105
|
"async": {
|
|
1100
1106
|
"name": "async",
|
|
1101
1107
|
"type": "boolean",
|
|
1102
|
-
"description": "execute Reactor invocations asynchronously (node22 only)",
|
|
1108
|
+
"description": "execute Reactor invocations asynchronously (node22 | node24 only)",
|
|
1103
1109
|
"allowNo": true
|
|
1104
1110
|
},
|
|
1105
1111
|
"watch": {
|
|
@@ -1126,6 +1132,238 @@
|
|
|
1126
1132
|
"required": true
|
|
1127
1133
|
}
|
|
1128
1134
|
}
|
|
1135
|
+
},
|
|
1136
|
+
"proxies:logs:read": {
|
|
1137
|
+
"id": "proxies:logs:read",
|
|
1138
|
+
"description": "Read a fixed window of Proxy runtime logs through Events and exit. Requires `event:read` and runtime logging already enabled.\n\nDefaults to the five minutes preceding --until, or command start when --until is omitted. Explicit relative values use command-start time. Both request and response transforms are included and distinguished. Windows include their start and exclude their end, filtering event batch timestamps rather than individual record occurrence times. Each matching batch is expanded in record sequence; flattened output has no global chronological ordering. History is tenant-limited (24 hours by default, at most 30 days); the API clamps unavailable history. Indexing is asynchronous and pagination is not a snapshot, so empty or exhausted results do not prove complete coverage. Large windows may hit bounded work limits and fail with partial output. Application logs come from the injected `logger`, not arbitrary stdout or `console.log`; collection requires resource opt-in and the platform runtime-log gate. Does not enable logging or open a tunnel.",
|
|
1139
|
+
"strict": true,
|
|
1140
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
1141
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
1142
|
+
"pluginType": "core",
|
|
1143
|
+
"aliases": [],
|
|
1144
|
+
"examples": [
|
|
1145
|
+
"<%= config.bin %> proxies logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 1h --until 30m",
|
|
1146
|
+
"<%= config.bin %> proxies logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 2026-10-01T10:00:00Z --until 2026-10-01T10:15:00Z --format json"
|
|
1147
|
+
],
|
|
1148
|
+
"flags": {
|
|
1149
|
+
"management-key": {
|
|
1150
|
+
"name": "management-key",
|
|
1151
|
+
"type": "option",
|
|
1152
|
+
"char": "x",
|
|
1153
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
1154
|
+
"required": true,
|
|
1155
|
+
"multiple": false
|
|
1156
|
+
},
|
|
1157
|
+
"api-base-url": {
|
|
1158
|
+
"name": "api-base-url",
|
|
1159
|
+
"type": "option",
|
|
1160
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
1161
|
+
"hidden": true,
|
|
1162
|
+
"multiple": false
|
|
1163
|
+
},
|
|
1164
|
+
"since": {
|
|
1165
|
+
"name": "since",
|
|
1166
|
+
"type": "option",
|
|
1167
|
+
"description": "window start: positive duration (30s, 5m, 2h, 1d, 1w) or ISO timestamp with timezone; defaults to five minutes before the end",
|
|
1168
|
+
"multiple": false
|
|
1169
|
+
},
|
|
1170
|
+
"until": {
|
|
1171
|
+
"name": "until",
|
|
1172
|
+
"type": "option",
|
|
1173
|
+
"description": "window end (exclusive): positive duration or ISO timestamp with timezone; defaults to command start",
|
|
1174
|
+
"multiple": false
|
|
1175
|
+
},
|
|
1176
|
+
"format": {
|
|
1177
|
+
"name": "format",
|
|
1178
|
+
"type": "option",
|
|
1179
|
+
"description": "pretty: readable logs; json: compact objects; json-pretty: indented objects. Entries are separated by blank lines; colors are enabled in terminals",
|
|
1180
|
+
"multiple": false,
|
|
1181
|
+
"options": [
|
|
1182
|
+
"pretty",
|
|
1183
|
+
"json",
|
|
1184
|
+
"json-pretty"
|
|
1185
|
+
],
|
|
1186
|
+
"default": "pretty"
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
"args": {
|
|
1190
|
+
"id": {
|
|
1191
|
+
"name": "id",
|
|
1192
|
+
"description": "Proxy id",
|
|
1193
|
+
"required": true
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
},
|
|
1197
|
+
"proxies:logs:tail": {
|
|
1198
|
+
"id": "proxies:logs:tail",
|
|
1199
|
+
"description": "Tail Proxy runtime logs through Events. Requires `event:read` and runtime logging already enabled.\n\nStarts watching from command time. Supply --since to retrieve initial history before following new logs. Polls every five seconds with a rolling five-minute overlap that never reaches before the requested start. Both request and response transforms are included and distinguished. Time windows filter event batches, not individual record occurrence times; a newly arriving batch can contain records that occurred before command start. History is tenant-limited (24 hours by default, at most 30 days); the API clamps unavailable history. Large initial windows may hit bounded work limits and fail with partial output. Visibility is delayed and best-effort; output has no durable resume or global chronological ordering. Application logs come from the injected `logger`, not arbitrary stdout or `console.log`; collection requires resource opt-in and the platform runtime-log gate. Silence does not distinguish an idle resource, a wrong ID, disabled collection, or delayed indexing. Runs until interrupted, output closes, or an error occurs.",
|
|
1200
|
+
"strict": true,
|
|
1201
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
1202
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
1203
|
+
"pluginType": "core",
|
|
1204
|
+
"aliases": [],
|
|
1205
|
+
"examples": [
|
|
1206
|
+
"<%= config.bin %> proxies logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca",
|
|
1207
|
+
"<%= config.bin %> proxies logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 30m --format json"
|
|
1208
|
+
],
|
|
1209
|
+
"flags": {
|
|
1210
|
+
"management-key": {
|
|
1211
|
+
"name": "management-key",
|
|
1212
|
+
"type": "option",
|
|
1213
|
+
"char": "x",
|
|
1214
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
1215
|
+
"required": true,
|
|
1216
|
+
"multiple": false
|
|
1217
|
+
},
|
|
1218
|
+
"api-base-url": {
|
|
1219
|
+
"name": "api-base-url",
|
|
1220
|
+
"type": "option",
|
|
1221
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
1222
|
+
"hidden": true,
|
|
1223
|
+
"multiple": false
|
|
1224
|
+
},
|
|
1225
|
+
"since": {
|
|
1226
|
+
"name": "since",
|
|
1227
|
+
"type": "option",
|
|
1228
|
+
"description": "include initial history from a positive duration (30s, 5m, 2h, 1d, 1w) or ISO timestamp with timezone; omitted means watch from command start",
|
|
1229
|
+
"multiple": false
|
|
1230
|
+
},
|
|
1231
|
+
"format": {
|
|
1232
|
+
"name": "format",
|
|
1233
|
+
"type": "option",
|
|
1234
|
+
"description": "pretty: readable logs; json: compact objects; json-pretty: indented objects. Entries are separated by blank lines; colors are enabled in terminals",
|
|
1235
|
+
"multiple": false,
|
|
1236
|
+
"options": [
|
|
1237
|
+
"pretty",
|
|
1238
|
+
"json",
|
|
1239
|
+
"json-pretty"
|
|
1240
|
+
],
|
|
1241
|
+
"default": "pretty"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"args": {
|
|
1245
|
+
"id": {
|
|
1246
|
+
"name": "id",
|
|
1247
|
+
"description": "Proxy id",
|
|
1248
|
+
"required": true
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
"reactors:logs:read": {
|
|
1253
|
+
"id": "reactors:logs:read",
|
|
1254
|
+
"description": "Read a fixed window of Reactor runtime logs through Events and exit. Requires `event:read` and runtime logging already enabled.\n\nDefaults to the five minutes preceding --until, or command start when --until is omitted. Explicit relative values use command-start time. Windows include their start and exclude their end, filtering event batch timestamps rather than individual record occurrence times. Each matching batch is expanded in record sequence; flattened output has no global chronological ordering. History is tenant-limited (24 hours by default, at most 30 days); the API clamps unavailable history. Indexing is asynchronous and pagination is not a snapshot, so empty or exhausted results do not prove complete coverage. Large windows may hit bounded work limits and fail with partial output. Application logs come from the injected `logger`, not arbitrary stdout or `console.log`; collection requires resource opt-in and the platform runtime-log gate. Does not enable logging or open a tunnel.",
|
|
1255
|
+
"strict": true,
|
|
1256
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
1257
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
1258
|
+
"pluginType": "core",
|
|
1259
|
+
"aliases": [],
|
|
1260
|
+
"examples": [
|
|
1261
|
+
"<%= config.bin %> reactors logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 1h --until 30m",
|
|
1262
|
+
"<%= config.bin %> reactors logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 2026-10-01T10:00:00Z --until 2026-10-01T10:15:00Z --format json"
|
|
1263
|
+
],
|
|
1264
|
+
"flags": {
|
|
1265
|
+
"management-key": {
|
|
1266
|
+
"name": "management-key",
|
|
1267
|
+
"type": "option",
|
|
1268
|
+
"char": "x",
|
|
1269
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
1270
|
+
"required": true,
|
|
1271
|
+
"multiple": false
|
|
1272
|
+
},
|
|
1273
|
+
"api-base-url": {
|
|
1274
|
+
"name": "api-base-url",
|
|
1275
|
+
"type": "option",
|
|
1276
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
1277
|
+
"hidden": true,
|
|
1278
|
+
"multiple": false
|
|
1279
|
+
},
|
|
1280
|
+
"since": {
|
|
1281
|
+
"name": "since",
|
|
1282
|
+
"type": "option",
|
|
1283
|
+
"description": "window start: positive duration (30s, 5m, 2h, 1d, 1w) or ISO timestamp with timezone; defaults to five minutes before the end",
|
|
1284
|
+
"multiple": false
|
|
1285
|
+
},
|
|
1286
|
+
"until": {
|
|
1287
|
+
"name": "until",
|
|
1288
|
+
"type": "option",
|
|
1289
|
+
"description": "window end (exclusive): positive duration or ISO timestamp with timezone; defaults to command start",
|
|
1290
|
+
"multiple": false
|
|
1291
|
+
},
|
|
1292
|
+
"format": {
|
|
1293
|
+
"name": "format",
|
|
1294
|
+
"type": "option",
|
|
1295
|
+
"description": "pretty: readable logs; json: compact objects; json-pretty: indented objects. Entries are separated by blank lines; colors are enabled in terminals",
|
|
1296
|
+
"multiple": false,
|
|
1297
|
+
"options": [
|
|
1298
|
+
"pretty",
|
|
1299
|
+
"json",
|
|
1300
|
+
"json-pretty"
|
|
1301
|
+
],
|
|
1302
|
+
"default": "pretty"
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
"args": {
|
|
1306
|
+
"id": {
|
|
1307
|
+
"name": "id",
|
|
1308
|
+
"description": "Reactor id",
|
|
1309
|
+
"required": true
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
"reactors:logs:tail": {
|
|
1314
|
+
"id": "reactors:logs:tail",
|
|
1315
|
+
"description": "Tail Reactor runtime logs through Events. Requires `event:read` and runtime logging already enabled.\n\nStarts watching from command time. Supply --since to retrieve initial history before following new logs. Polls every five seconds with a rolling five-minute overlap that never reaches before the requested start. Time windows filter event batches, not individual record occurrence times; a newly arriving batch can contain records that occurred before command start. History is tenant-limited (24 hours by default, at most 30 days); the API clamps unavailable history. Large initial windows may hit bounded work limits and fail with partial output. Visibility is delayed and best-effort; output has no durable resume or global chronological ordering. Application logs come from the injected `logger`, not arbitrary stdout or `console.log`; collection requires resource opt-in and the platform runtime-log gate. Silence does not distinguish an idle resource, a wrong ID, disabled collection, or delayed indexing. Runs until interrupted, output closes, or an error occurs.",
|
|
1316
|
+
"strict": true,
|
|
1317
|
+
"pluginName": "@basis-theory-labs/cli",
|
|
1318
|
+
"pluginAlias": "@basis-theory-labs/cli",
|
|
1319
|
+
"pluginType": "core",
|
|
1320
|
+
"aliases": [],
|
|
1321
|
+
"examples": [
|
|
1322
|
+
"<%= config.bin %> reactors logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca",
|
|
1323
|
+
"<%= config.bin %> reactors logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 30m --format json"
|
|
1324
|
+
],
|
|
1325
|
+
"flags": {
|
|
1326
|
+
"management-key": {
|
|
1327
|
+
"name": "management-key",
|
|
1328
|
+
"type": "option",
|
|
1329
|
+
"char": "x",
|
|
1330
|
+
"description": "management key used for connecting with the reactor / proxy",
|
|
1331
|
+
"required": true,
|
|
1332
|
+
"multiple": false
|
|
1333
|
+
},
|
|
1334
|
+
"api-base-url": {
|
|
1335
|
+
"name": "api-base-url",
|
|
1336
|
+
"type": "option",
|
|
1337
|
+
"description": "base API URL to use in Basis Theory SDK",
|
|
1338
|
+
"hidden": true,
|
|
1339
|
+
"multiple": false
|
|
1340
|
+
},
|
|
1341
|
+
"since": {
|
|
1342
|
+
"name": "since",
|
|
1343
|
+
"type": "option",
|
|
1344
|
+
"description": "include initial history from a positive duration (30s, 5m, 2h, 1d, 1w) or ISO timestamp with timezone; omitted means watch from command start",
|
|
1345
|
+
"multiple": false
|
|
1346
|
+
},
|
|
1347
|
+
"format": {
|
|
1348
|
+
"name": "format",
|
|
1349
|
+
"type": "option",
|
|
1350
|
+
"description": "pretty: readable logs; json: compact objects; json-pretty: indented objects. Entries are separated by blank lines; colors are enabled in terminals",
|
|
1351
|
+
"multiple": false,
|
|
1352
|
+
"options": [
|
|
1353
|
+
"pretty",
|
|
1354
|
+
"json",
|
|
1355
|
+
"json-pretty"
|
|
1356
|
+
],
|
|
1357
|
+
"default": "pretty"
|
|
1358
|
+
}
|
|
1359
|
+
},
|
|
1360
|
+
"args": {
|
|
1361
|
+
"id": {
|
|
1362
|
+
"name": "id",
|
|
1363
|
+
"description": "Reactor id",
|
|
1364
|
+
"required": true
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1129
1367
|
}
|
|
1130
1368
|
}
|
|
1131
1369
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory-labs/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Basis Theory CLI tool",
|
|
5
5
|
"author": "Davi Aquino @djejaquino",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@basis-theory/node-sdk": "^6.
|
|
20
|
+
"@basis-theory/node-sdk": "^6.3.0",
|
|
21
21
|
"@inquirer/checkbox": "^1.5.0",
|
|
22
22
|
"@inquirer/confirm": "^2.0.15",
|
|
23
23
|
"@inquirer/input": "^1.2.14",
|