@limitry/cli 1.0.0-rc.12 → 1.0.0-rc.13
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/CHANGELOG.md +23 -0
- package/dist/limitry.mjs +129 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in the Limitry CLI (`@limitry/cli`). Generated from the source on each release; newest first.
|
|
4
4
|
|
|
5
|
+
## 1.0.0-rc.13 (2026-11-07)
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Lists can start from a date. `GET /v1/workspace/audit-events` and
|
|
10
|
+
`GET /v1/workspace/webhook-endpoints/{endpointId}/deliveries` take
|
|
11
|
+
`before`, an ISO time, and return the items older than it, newest first.
|
|
12
|
+
|
|
13
|
+
Audit events take two filters. `action` keeps one kind of event.
|
|
14
|
+
`actor` keeps what one person, key or token did: pass `user:` and an
|
|
15
|
+
item's `actor.id`, or `credential:` and its `credential.id`. Each audit
|
|
16
|
+
event now carries those ids.
|
|
17
|
+
|
|
18
|
+
Webhook deliveries take `status`: `pending`, `delivered` or `failed`.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- `limitry.limits.credits.list()` and `limitry limits credits list` now page
|
|
23
|
+
like every other list (`GET /v1/limits/{limitId}/credits`). They return
|
|
24
|
+
one page of credits and a `nextCursor`, and take `limit`, `cursor` and
|
|
25
|
+
`before`. `subjectId` keeps one subject's credits. The list no longer
|
|
26
|
+
stops at the newest 200.
|
|
27
|
+
|
|
5
28
|
## 1.0.0-rc.12 (2026-11-07)
|
|
6
29
|
|
|
7
30
|
### Added
|
package/dist/limitry.mjs
CHANGED
|
@@ -1291,7 +1291,7 @@ function resources(client) {
|
|
|
1291
1291
|
),
|
|
1292
1292
|
list: (
|
|
1293
1293
|
/** List a balance's credits */
|
|
1294
|
-
(limitId, options) => call(client, { "method": "get", "path": "/limits/{limitId}/credits", "query": [], "hasBody": false }, { "limitId": limitId },
|
|
1294
|
+
(limitId, input, options) => call(client, { "method": "get", "path": "/limits/{limitId}/credits", "query": ["limit", "cursor", "before", "subjectId"], "hasBody": false }, { "limitId": limitId }, input, options)
|
|
1295
1295
|
)
|
|
1296
1296
|
},
|
|
1297
1297
|
get: (
|
|
@@ -1391,7 +1391,7 @@ function resources(client) {
|
|
|
1391
1391
|
auditEvents: {
|
|
1392
1392
|
list: (
|
|
1393
1393
|
/** List workspace audit events */
|
|
1394
|
-
(input, options) => call(client, { "method": "get", "path": "/workspace/audit-events", "query": ["limit", "cursor"], "hasBody": false }, {}, input, options)
|
|
1394
|
+
(input, options) => call(client, { "method": "get", "path": "/workspace/audit-events", "query": ["limit", "cursor", "before", "action", "actor"], "hasBody": false }, {}, input, options)
|
|
1395
1395
|
)
|
|
1396
1396
|
},
|
|
1397
1397
|
eventTypes: {
|
|
@@ -1429,7 +1429,7 @@ function resources(client) {
|
|
|
1429
1429
|
webhookDeliveries: {
|
|
1430
1430
|
list: (
|
|
1431
1431
|
/** List an endpoint's deliveries */
|
|
1432
|
-
(endpointId, input, options) => call(client, { "method": "get", "path": "/workspace/webhook-endpoints/{endpointId}/deliveries", "query": ["limit", "cursor"], "hasBody": false }, { "endpointId": endpointId }, input, options)
|
|
1432
|
+
(endpointId, input, options) => call(client, { "method": "get", "path": "/workspace/webhook-endpoints/{endpointId}/deliveries", "query": ["limit", "cursor", "before", "status"], "hasBody": false }, { "endpointId": endpointId }, input, options)
|
|
1433
1433
|
),
|
|
1434
1434
|
redeliver: (
|
|
1435
1435
|
/** Redeliver an event */
|
|
@@ -6010,7 +6010,7 @@ var OPERATIONS = [
|
|
|
6010
6010
|
"idempotentHint": true
|
|
6011
6011
|
}
|
|
6012
6012
|
},
|
|
6013
|
-
"description": "Lists the credits added to subjects' balances on this limit, including any taken back.
|
|
6013
|
+
"description": "Lists the credits added to subjects' balances on this limit, including any taken back, newest first. Page through them with the opaque `nextCursor`. `before` starts from a moment, and `subjectId` keeps one subject's credits.",
|
|
6014
6014
|
"fields": [
|
|
6015
6015
|
{
|
|
6016
6016
|
"name": "limitId",
|
|
@@ -6023,6 +6023,59 @@ var OPERATIONS = [
|
|
|
6023
6023
|
"type": "string",
|
|
6024
6024
|
"description": "The limit's ID."
|
|
6025
6025
|
}
|
|
6026
|
+
},
|
|
6027
|
+
{
|
|
6028
|
+
"name": "limit",
|
|
6029
|
+
"in": "query",
|
|
6030
|
+
"type": "number",
|
|
6031
|
+
"required": false,
|
|
6032
|
+
"description": "Items per page, 1\u2013100 (default 25).",
|
|
6033
|
+
"example": 25,
|
|
6034
|
+
"schema": {
|
|
6035
|
+
"type": "integer",
|
|
6036
|
+
"minimum": 1,
|
|
6037
|
+
"maximum": 100,
|
|
6038
|
+
"default": 25,
|
|
6039
|
+
"description": "Items per page, 1\u2013100 (default 25)."
|
|
6040
|
+
}
|
|
6041
|
+
},
|
|
6042
|
+
{
|
|
6043
|
+
"name": "cursor",
|
|
6044
|
+
"in": "query",
|
|
6045
|
+
"type": "string",
|
|
6046
|
+
"required": false,
|
|
6047
|
+
"description": "Opaque token from a previous page's nextCursor.",
|
|
6048
|
+
"schema": {
|
|
6049
|
+
"type": "string",
|
|
6050
|
+
"description": "Opaque token from a previous page's nextCursor."
|
|
6051
|
+
}
|
|
6052
|
+
},
|
|
6053
|
+
{
|
|
6054
|
+
"name": "before",
|
|
6055
|
+
"in": "query",
|
|
6056
|
+
"type": "string",
|
|
6057
|
+
"required": false,
|
|
6058
|
+
"description": "Start from this moment: items older than it, newest first. Ignored with `cursor`, which already says where to go on.",
|
|
6059
|
+
"example": "2026-11-01T00:00:00.000Z",
|
|
6060
|
+
"schema": {
|
|
6061
|
+
"type": "string",
|
|
6062
|
+
"format": "date-time",
|
|
6063
|
+
"description": "Start from this moment: items older than it, newest first. Ignored with `cursor`, which already says where to go on."
|
|
6064
|
+
}
|
|
6065
|
+
},
|
|
6066
|
+
{
|
|
6067
|
+
"name": "subjectId",
|
|
6068
|
+
"in": "query",
|
|
6069
|
+
"type": "string",
|
|
6070
|
+
"required": false,
|
|
6071
|
+
"description": "Only the credits for this subject.",
|
|
6072
|
+
"example": "team_42",
|
|
6073
|
+
"schema": {
|
|
6074
|
+
"type": "string",
|
|
6075
|
+
"minLength": 1,
|
|
6076
|
+
"maxLength": 200,
|
|
6077
|
+
"description": "Only the credits for this subject."
|
|
6078
|
+
}
|
|
6026
6079
|
}
|
|
6027
6080
|
],
|
|
6028
6081
|
"hasBody": false,
|
|
@@ -7295,7 +7348,7 @@ var OPERATIONS = [
|
|
|
7295
7348
|
"idempotentHint": true
|
|
7296
7349
|
}
|
|
7297
7350
|
},
|
|
7298
|
-
"description": "Lists the workspace's audit events, newest first. Paginate with the opaque `nextCursor` token. `limit` takes 1 to 100 and defaults to 25. With a personal access token, only workspace owners can call this, as with the audit page in the app. A workspace API key always can, because it acts as the workspace itself.",
|
|
7351
|
+
"description": "Lists the workspace's audit events, newest first. Paginate with the opaque `nextCursor` token. `limit` takes 1 to 100 and defaults to 25. `before` starts from a moment. `action` keeps one kind of event, and `actor` what one person, key or token did. With a personal access token, only workspace owners can call this, as with the audit page in the app. A workspace API key always can, because it acts as the workspace itself.",
|
|
7299
7352
|
"fields": [
|
|
7300
7353
|
{
|
|
7301
7354
|
"name": "limit",
|
|
@@ -7322,6 +7375,45 @@ var OPERATIONS = [
|
|
|
7322
7375
|
"type": "string",
|
|
7323
7376
|
"description": "Opaque token from a previous page's nextCursor."
|
|
7324
7377
|
}
|
|
7378
|
+
},
|
|
7379
|
+
{
|
|
7380
|
+
"name": "before",
|
|
7381
|
+
"in": "query",
|
|
7382
|
+
"type": "string",
|
|
7383
|
+
"required": false,
|
|
7384
|
+
"description": "Start from this moment: items older than it, newest first. Ignored with `cursor`, which already says where to go on.",
|
|
7385
|
+
"example": "2026-11-01T00:00:00.000Z",
|
|
7386
|
+
"schema": {
|
|
7387
|
+
"type": "string",
|
|
7388
|
+
"format": "date-time",
|
|
7389
|
+
"description": "Start from this moment: items older than it, newest first. Ignored with `cursor`, which already says where to go on."
|
|
7390
|
+
}
|
|
7391
|
+
},
|
|
7392
|
+
{
|
|
7393
|
+
"name": "action",
|
|
7394
|
+
"in": "query",
|
|
7395
|
+
"type": "string",
|
|
7396
|
+
"required": false,
|
|
7397
|
+
"description": "Only events of this action.",
|
|
7398
|
+
"example": "workspace.member_invited",
|
|
7399
|
+
"schema": {
|
|
7400
|
+
"type": "string",
|
|
7401
|
+
"maxLength": 100,
|
|
7402
|
+
"description": "Only events of this action."
|
|
7403
|
+
}
|
|
7404
|
+
},
|
|
7405
|
+
{
|
|
7406
|
+
"name": "actor",
|
|
7407
|
+
"in": "query",
|
|
7408
|
+
"type": "string",
|
|
7409
|
+
"required": false,
|
|
7410
|
+
"description": "Only what one person did (`user:` and the item's `actor.id`), or one key or token (`credential:` and the item's `credential.id`).",
|
|
7411
|
+
"example": "user:usr_k3TAiF2ZP5sQ",
|
|
7412
|
+
"schema": {
|
|
7413
|
+
"type": "string",
|
|
7414
|
+
"pattern": "^(user|credential):[\\w-]+$",
|
|
7415
|
+
"description": "Only what one person did (`user:` and the item's `actor.id`), or one key or token (`credential:` and the item's `credential.id`)."
|
|
7416
|
+
}
|
|
7325
7417
|
}
|
|
7326
7418
|
],
|
|
7327
7419
|
"hasBody": false,
|
|
@@ -7587,7 +7679,7 @@ var OPERATIONS = [
|
|
|
7587
7679
|
"idempotentHint": true
|
|
7588
7680
|
}
|
|
7589
7681
|
},
|
|
7590
|
-
"description": "Lists one endpoint's delivery history, newest first. Each entry shows the event's status, attempts and last HTTP status. Payloads aren't included. We keep the history for 30 days. Paginate with the opaque `nextCursor`. With a personal access token, only workspace owners can call this. A workspace API key with this scope can.",
|
|
7682
|
+
"description": "Lists one endpoint's delivery history, newest first. Each entry shows the event's status, attempts and last HTTP status. Payloads aren't included. We keep the history for 30 days. Paginate with the opaque `nextCursor`. `before` starts from a moment, and `status` keeps one kind of delivery. With a personal access token, only workspace owners can call this. A workspace API key with this scope can.",
|
|
7591
7683
|
"fields": [
|
|
7592
7684
|
{
|
|
7593
7685
|
"name": "endpointId",
|
|
@@ -7626,6 +7718,36 @@ var OPERATIONS = [
|
|
|
7626
7718
|
"type": "string",
|
|
7627
7719
|
"description": "Opaque token from a previous page's nextCursor."
|
|
7628
7720
|
}
|
|
7721
|
+
},
|
|
7722
|
+
{
|
|
7723
|
+
"name": "before",
|
|
7724
|
+
"in": "query",
|
|
7725
|
+
"type": "string",
|
|
7726
|
+
"required": false,
|
|
7727
|
+
"description": "Start from this moment: items older than it, newest first. Ignored with `cursor`, which already says where to go on.",
|
|
7728
|
+
"example": "2026-11-01T00:00:00.000Z",
|
|
7729
|
+
"schema": {
|
|
7730
|
+
"type": "string",
|
|
7731
|
+
"format": "date-time",
|
|
7732
|
+
"description": "Start from this moment: items older than it, newest first. Ignored with `cursor`, which already says where to go on."
|
|
7733
|
+
}
|
|
7734
|
+
},
|
|
7735
|
+
{
|
|
7736
|
+
"name": "status",
|
|
7737
|
+
"in": "query",
|
|
7738
|
+
"type": "string",
|
|
7739
|
+
"required": false,
|
|
7740
|
+
"description": "Only deliveries with this status.",
|
|
7741
|
+
"example": "failed",
|
|
7742
|
+
"schema": {
|
|
7743
|
+
"type": "string",
|
|
7744
|
+
"enum": [
|
|
7745
|
+
"pending",
|
|
7746
|
+
"delivered",
|
|
7747
|
+
"failed"
|
|
7748
|
+
],
|
|
7749
|
+
"description": "Only deliveries with this status."
|
|
7750
|
+
}
|
|
7629
7751
|
}
|
|
7630
7752
|
],
|
|
7631
7753
|
"hasBody": false,
|
|
@@ -8437,7 +8559,7 @@ function tokenEnvVar() {
|
|
|
8437
8559
|
function build(io) {
|
|
8438
8560
|
let actedIn = null;
|
|
8439
8561
|
let sending;
|
|
8440
|
-
const program2 = new Command().name(brand.name).description(`The ${brand.productName} CLI`).version("1.0.0-rc.
|
|
8562
|
+
const program2 = new Command().name(brand.name).description(`The ${brand.productName} CLI`).version("1.0.0-rc.13").addHelpText(
|
|
8441
8563
|
"after",
|
|
8442
8564
|
`
|
|
8443
8565
|
Token: \`${brand.name} login\` stores it in ~/.config/${brand.name}/; ${tokenEnvVar()} overrides.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limitry/cli",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.13",
|
|
4
4
|
"description": "Limitry command line",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"typecheck": "tsc --noEmit"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@limitry/sdk": "1.0.0-rc.
|
|
20
|
+
"@limitry/sdk": "1.0.0-rc.13",
|
|
21
21
|
"@types/node": "26.6.6",
|
|
22
22
|
"commander": "15.0.0",
|
|
23
23
|
"esbuild": "0.28.2",
|