@basis-theory-labs/cli 4.2.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.2.0",
2
+ "version": "4.3.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,238 @@
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\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
+ }
1135
1367
  }
1136
1368
  }
1137
1369
  }
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.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.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",