@basis-theory-labs/cli 4.2.0 → 4.4.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.2.0",
2
+ "version": "4.4.0",
3
3
  "commands": {
4
4
  "applications:create": {
5
5
  "id": "applications:create",
@@ -470,7 +470,7 @@
470
470
  },
471
471
  "proxies:logs": {
472
472
  "id": "proxies:logs",
473
- "description": "Display live Proxy Transform logs output. Requires `proxy:update` Management Application permissions",
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",
474
474
  "strict": true,
475
475
  "pluginName": "@basis-theory-labs/cli",
476
476
  "pluginAlias": "@basis-theory-labs/cli",
@@ -937,7 +937,7 @@
937
937
  },
938
938
  "reactors:logs": {
939
939
  "id": "reactors:logs",
940
- "description": "Display live Reactor logs output. Requires `reactor:update` Management Application permissions",
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",
941
941
  "strict": true,
942
942
  "pluginName": "@basis-theory-labs/cli",
943
943
  "pluginAlias": "@basis-theory-labs/cli",
@@ -1132,6 +1132,291 @@
1132
1132
  "required": true
1133
1133
  }
1134
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\nOptional --trace-id matches the effective stored BT trace ID exactly and case-sensitively. A submitted header may be sanitized by Vault; the CLI does not normalize or trim it. A reused trace ID can match multiple invocations. --transform-type filters request or response transforms, alone or combined with trace ID using AND; omitting it includes both directions.\n\nDefaults to the five minutes preceding --until, or command start when --until is omitted, regardless of filters. Supply --since, for example --since 30d, to request a larger window. 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 limited by server retention and tenant entitlements; 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 --trace-id customer_Order-42 --since 30d",
1146
+ "<%= config.bin %> proxies logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --transform-type request_transform",
1147
+ "<%= config.bin %> proxies logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --trace-id customer_Order-42 --transform-type response_transform --since 30m",
1148
+ "<%= config.bin %> proxies logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 1h --until 30m",
1149
+ "<%= config.bin %> proxies logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 2026-10-01T10:00:00Z --until 2026-10-01T10:15:00Z --format json"
1150
+ ],
1151
+ "flags": {
1152
+ "management-key": {
1153
+ "name": "management-key",
1154
+ "type": "option",
1155
+ "char": "x",
1156
+ "description": "management key used for connecting with the reactor / proxy",
1157
+ "required": true,
1158
+ "multiple": false
1159
+ },
1160
+ "api-base-url": {
1161
+ "name": "api-base-url",
1162
+ "type": "option",
1163
+ "description": "base API URL to use in Basis Theory SDK",
1164
+ "hidden": true,
1165
+ "multiple": false
1166
+ },
1167
+ "trace-id": {
1168
+ "name": "trace-id",
1169
+ "type": "option",
1170
+ "description": "exact, case-sensitive stored BT trace ID; combines with transform direction using AND",
1171
+ "multiple": false
1172
+ },
1173
+ "transform-type": {
1174
+ "name": "transform-type",
1175
+ "type": "option",
1176
+ "description": "exact transform direction; includes both directions when omitted",
1177
+ "multiple": false,
1178
+ "options": [
1179
+ "request_transform",
1180
+ "response_transform"
1181
+ ]
1182
+ },
1183
+ "since": {
1184
+ "name": "since",
1185
+ "type": "option",
1186
+ "description": "window start: positive duration (30s, 5m, 2h, 1d, 1w) or ISO timestamp with timezone; defaults to five minutes before the end",
1187
+ "multiple": false
1188
+ },
1189
+ "until": {
1190
+ "name": "until",
1191
+ "type": "option",
1192
+ "description": "window end (exclusive): positive duration or ISO timestamp with timezone; defaults to command start",
1193
+ "multiple": false
1194
+ },
1195
+ "format": {
1196
+ "name": "format",
1197
+ "type": "option",
1198
+ "description": "pretty: readable logs; json: compact objects; json-pretty: indented objects. Entries are separated by blank lines; colors are enabled in terminals",
1199
+ "multiple": false,
1200
+ "options": [
1201
+ "pretty",
1202
+ "json",
1203
+ "json-pretty"
1204
+ ],
1205
+ "default": "pretty"
1206
+ }
1207
+ },
1208
+ "args": {
1209
+ "id": {
1210
+ "name": "id",
1211
+ "description": "Proxy id",
1212
+ "required": true
1213
+ }
1214
+ }
1215
+ },
1216
+ "proxies:logs:tail": {
1217
+ "id": "proxies:logs:tail",
1218
+ "description": "Tail Proxy runtime logs through Events. Requires `event:read` and runtime logging already enabled.\n\nOptional --trace-id matches the effective stored BT trace ID exactly and case-sensitively. A submitted header may be sanitized by Vault; the CLI does not normalize or trim it. A reused trace ID can match multiple invocations. --transform-type filters request or response transforms, alone or combined with trace ID using AND; omitting it includes both directions. Filters apply to initial history and every live poll.\n\nStarts watching from command time, regardless of filters. 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 limited by server retention and tenant entitlements; 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 or filter, disabled collection, or delayed indexing. Runs until interrupted, output closes, or an error occurs.",
1219
+ "strict": true,
1220
+ "pluginName": "@basis-theory-labs/cli",
1221
+ "pluginAlias": "@basis-theory-labs/cli",
1222
+ "pluginType": "core",
1223
+ "aliases": [],
1224
+ "examples": [
1225
+ "<%= config.bin %> proxies logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca",
1226
+ "<%= config.bin %> proxies logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --trace-id customer_Order-42",
1227
+ "<%= config.bin %> proxies logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --transform-type request_transform",
1228
+ "<%= config.bin %> proxies logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --trace-id customer_Order-42 --transform-type response_transform --since 30m --format json",
1229
+ "<%= config.bin %> proxies logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 30m --format json"
1230
+ ],
1231
+ "flags": {
1232
+ "management-key": {
1233
+ "name": "management-key",
1234
+ "type": "option",
1235
+ "char": "x",
1236
+ "description": "management key used for connecting with the reactor / proxy",
1237
+ "required": true,
1238
+ "multiple": false
1239
+ },
1240
+ "api-base-url": {
1241
+ "name": "api-base-url",
1242
+ "type": "option",
1243
+ "description": "base API URL to use in Basis Theory SDK",
1244
+ "hidden": true,
1245
+ "multiple": false
1246
+ },
1247
+ "trace-id": {
1248
+ "name": "trace-id",
1249
+ "type": "option",
1250
+ "description": "exact, case-sensitive stored BT trace ID; combines with transform direction using AND",
1251
+ "multiple": false
1252
+ },
1253
+ "transform-type": {
1254
+ "name": "transform-type",
1255
+ "type": "option",
1256
+ "description": "exact transform direction; includes both directions when omitted",
1257
+ "multiple": false,
1258
+ "options": [
1259
+ "request_transform",
1260
+ "response_transform"
1261
+ ]
1262
+ },
1263
+ "since": {
1264
+ "name": "since",
1265
+ "type": "option",
1266
+ "description": "include initial history from a positive duration (30s, 5m, 2h, 1d, 1w) or ISO timestamp with timezone; omitted means watch from command start",
1267
+ "multiple": false
1268
+ },
1269
+ "format": {
1270
+ "name": "format",
1271
+ "type": "option",
1272
+ "description": "pretty: readable logs; json: compact objects; json-pretty: indented objects. Entries are separated by blank lines; colors are enabled in terminals",
1273
+ "multiple": false,
1274
+ "options": [
1275
+ "pretty",
1276
+ "json",
1277
+ "json-pretty"
1278
+ ],
1279
+ "default": "pretty"
1280
+ }
1281
+ },
1282
+ "args": {
1283
+ "id": {
1284
+ "name": "id",
1285
+ "description": "Proxy id",
1286
+ "required": true
1287
+ }
1288
+ }
1289
+ },
1290
+ "reactors:logs:read": {
1291
+ "id": "reactors:logs:read",
1292
+ "description": "Read a fixed window of Reactor runtime logs through Events and exit. Requires `event:read` and runtime logging already enabled.\n\nOptional --trace-id matches the effective stored BT trace ID exactly and case-sensitively. A submitted header may be sanitized by Vault; the CLI does not normalize or trim it. A reused trace ID can match multiple invocations.\n\nDefaults to the five minutes preceding --until, or command start when --until is omitted, regardless of filters. Supply --since, for example --since 30d, to request a larger window. 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 limited by server retention and tenant entitlements; 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.",
1293
+ "strict": true,
1294
+ "pluginName": "@basis-theory-labs/cli",
1295
+ "pluginAlias": "@basis-theory-labs/cli",
1296
+ "pluginType": "core",
1297
+ "aliases": [],
1298
+ "examples": [
1299
+ "<%= config.bin %> reactors logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --trace-id customer_Order-42 --since 30d",
1300
+ "<%= config.bin %> reactors logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 1h --until 30m",
1301
+ "<%= config.bin %> reactors logs read 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 2026-10-01T10:00:00Z --until 2026-10-01T10:15:00Z --format json"
1302
+ ],
1303
+ "flags": {
1304
+ "management-key": {
1305
+ "name": "management-key",
1306
+ "type": "option",
1307
+ "char": "x",
1308
+ "description": "management key used for connecting with the reactor / proxy",
1309
+ "required": true,
1310
+ "multiple": false
1311
+ },
1312
+ "api-base-url": {
1313
+ "name": "api-base-url",
1314
+ "type": "option",
1315
+ "description": "base API URL to use in Basis Theory SDK",
1316
+ "hidden": true,
1317
+ "multiple": false
1318
+ },
1319
+ "trace-id": {
1320
+ "name": "trace-id",
1321
+ "type": "option",
1322
+ "description": "exact, case-sensitive stored BT trace ID",
1323
+ "multiple": false
1324
+ },
1325
+ "since": {
1326
+ "name": "since",
1327
+ "type": "option",
1328
+ "description": "window start: positive duration (30s, 5m, 2h, 1d, 1w) or ISO timestamp with timezone; defaults to five minutes before the end",
1329
+ "multiple": false
1330
+ },
1331
+ "until": {
1332
+ "name": "until",
1333
+ "type": "option",
1334
+ "description": "window end (exclusive): positive duration or ISO timestamp with timezone; defaults to command start",
1335
+ "multiple": false
1336
+ },
1337
+ "format": {
1338
+ "name": "format",
1339
+ "type": "option",
1340
+ "description": "pretty: readable logs; json: compact objects; json-pretty: indented objects. Entries are separated by blank lines; colors are enabled in terminals",
1341
+ "multiple": false,
1342
+ "options": [
1343
+ "pretty",
1344
+ "json",
1345
+ "json-pretty"
1346
+ ],
1347
+ "default": "pretty"
1348
+ }
1349
+ },
1350
+ "args": {
1351
+ "id": {
1352
+ "name": "id",
1353
+ "description": "Reactor id",
1354
+ "required": true
1355
+ }
1356
+ }
1357
+ },
1358
+ "reactors:logs:tail": {
1359
+ "id": "reactors:logs:tail",
1360
+ "description": "Tail Reactor runtime logs through Events. Requires `event:read` and runtime logging already enabled.\n\nOptional --trace-id matches the effective stored BT trace ID exactly and case-sensitively. A submitted header may be sanitized by Vault; the CLI does not normalize or trim it. A reused trace ID can match multiple invocations.\n\nStarts watching from command time, regardless of filters. 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 limited by server retention and tenant entitlements; 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 or filter, disabled collection, or delayed indexing. Runs until interrupted, output closes, or an error occurs.",
1361
+ "strict": true,
1362
+ "pluginName": "@basis-theory-labs/cli",
1363
+ "pluginAlias": "@basis-theory-labs/cli",
1364
+ "pluginType": "core",
1365
+ "aliases": [],
1366
+ "examples": [
1367
+ "<%= config.bin %> reactors logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca",
1368
+ "<%= config.bin %> reactors logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --trace-id customer_Order-42",
1369
+ "<%= config.bin %> reactors logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --trace-id customer_Order-42 --since 30m --format json",
1370
+ "<%= config.bin %> reactors logs tail 03858bf5-32d3-4a2e-b74b-daeea0883bca --since 30m --format json"
1371
+ ],
1372
+ "flags": {
1373
+ "management-key": {
1374
+ "name": "management-key",
1375
+ "type": "option",
1376
+ "char": "x",
1377
+ "description": "management key used for connecting with the reactor / proxy",
1378
+ "required": true,
1379
+ "multiple": false
1380
+ },
1381
+ "api-base-url": {
1382
+ "name": "api-base-url",
1383
+ "type": "option",
1384
+ "description": "base API URL to use in Basis Theory SDK",
1385
+ "hidden": true,
1386
+ "multiple": false
1387
+ },
1388
+ "trace-id": {
1389
+ "name": "trace-id",
1390
+ "type": "option",
1391
+ "description": "exact, case-sensitive stored BT trace ID",
1392
+ "multiple": false
1393
+ },
1394
+ "since": {
1395
+ "name": "since",
1396
+ "type": "option",
1397
+ "description": "include initial history from a positive duration (30s, 5m, 2h, 1d, 1w) or ISO timestamp with timezone; omitted means watch from command start",
1398
+ "multiple": false
1399
+ },
1400
+ "format": {
1401
+ "name": "format",
1402
+ "type": "option",
1403
+ "description": "pretty: readable logs; json: compact objects; json-pretty: indented objects. Entries are separated by blank lines; colors are enabled in terminals",
1404
+ "multiple": false,
1405
+ "options": [
1406
+ "pretty",
1407
+ "json",
1408
+ "json-pretty"
1409
+ ],
1410
+ "default": "pretty"
1411
+ }
1412
+ },
1413
+ "args": {
1414
+ "id": {
1415
+ "name": "id",
1416
+ "description": "Reactor id",
1417
+ "required": true
1418
+ }
1419
+ }
1135
1420
  }
1136
1421
  }
1137
1422
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory-labs/cli",
3
- "version": "4.2.0",
3
+ "version": "4.4.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.1.1",
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",