@pidgeon-ai/sdk 1.22.0 → 1.24.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/CHANGELOG.md +18 -0
- package/dist/index.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +222 -2
- package/dist/index.d.ts +222 -2
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,24 @@ the two would publish a release for every unrelated product deploy.
|
|
|
7
7
|
Semver applies to **this package's own surface** — the exported names, the
|
|
8
8
|
call shapes, the result shape — not to the API behind it.
|
|
9
9
|
|
|
10
|
+
## 1.24.0 — test mode
|
|
11
|
+
|
|
12
|
+
`keysCreate` takes `test: true` for a `pgn_test_` key: everything works, and
|
|
13
|
+
nothing it sends leaves Pidgeon or counts against the plan. A test key's
|
|
14
|
+
children are test keys. Every key, message and send answer (`messagesSend`,
|
|
15
|
+
`messagesReply`, `messagesReplyAll`, `messagesForward`, `draftsSend`) has
|
|
16
|
+
`test`. `testInbound` (`POST /test/inbound`) delivers a simulated message to
|
|
17
|
+
one of a test key's addresses, optionally as a reply (`in_reply_to`). A test
|
|
18
|
+
key gets `403` creating addresses, domains, pods or app passwords. Additive.
|
|
19
|
+
|
|
20
|
+
## 1.23.0 — rotating a key
|
|
21
|
+
|
|
22
|
+
`keysRotate` (`POST /api-keys/{id}/rotate`) gives a key a new secret and
|
|
23
|
+
keeps its id, so its scope, its ceiling, its expiry and every key it minted
|
|
24
|
+
are unchanged and keep working. The old secret stops at once, or after
|
|
25
|
+
`grace_period_seconds` (at most 86400). The answer carries the new `token`,
|
|
26
|
+
once. Every key gains `rotated_at` and `previous_token_expires_at`. Additive.
|
|
27
|
+
|
|
10
28
|
## 1.22.0 — typed data, and the declared sender
|
|
11
29
|
|
|
12
30
|
Every send — `messagesSend`, `messagesReply`, `messagesReplyAll`,
|
package/dist/index.cjs
CHANGED
|
@@ -85,6 +85,7 @@ __export(index_exports, {
|
|
|
85
85
|
keysGet: () => keysGet,
|
|
86
86
|
keysList: () => keysList,
|
|
87
87
|
keysRevoke: () => keysRevoke,
|
|
88
|
+
keysRotate: () => keysRotate,
|
|
88
89
|
keysUpdate: () => keysUpdate,
|
|
89
90
|
labelsCreate: () => labelsCreate,
|
|
90
91
|
labelsDelete: () => labelsDelete,
|
|
@@ -118,6 +119,7 @@ __export(index_exports, {
|
|
|
118
119
|
routingList: () => routingList,
|
|
119
120
|
routingUpdate: () => routingUpdate,
|
|
120
121
|
streamEvents: () => streamEvents,
|
|
122
|
+
testInbound: () => testInbound,
|
|
121
123
|
threadsGet: () => threadsGet,
|
|
122
124
|
threadsLabelsCreate: () => threadsLabelsCreate,
|
|
123
125
|
threadsLabelsDelete: () => threadsLabelsDelete,
|
|
@@ -1383,6 +1385,24 @@ var keysUpdate = (options) => (options.client ?? client).patch({
|
|
|
1383
1385
|
...options.headers
|
|
1384
1386
|
}
|
|
1385
1387
|
});
|
|
1388
|
+
var keysRotate = (options) => (options.client ?? client).post({
|
|
1389
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1390
|
+
url: "/api-keys/{id}/rotate",
|
|
1391
|
+
...options,
|
|
1392
|
+
headers: {
|
|
1393
|
+
"Content-Type": "application/json",
|
|
1394
|
+
...options.headers
|
|
1395
|
+
}
|
|
1396
|
+
});
|
|
1397
|
+
var testInbound = (options) => (options.client ?? client).post({
|
|
1398
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1399
|
+
url: "/test/inbound",
|
|
1400
|
+
...options,
|
|
1401
|
+
headers: {
|
|
1402
|
+
"Content-Type": "application/json",
|
|
1403
|
+
...options.headers
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1386
1406
|
var appPasswordsList = (options) => (options.client ?? client).get({
|
|
1387
1407
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1388
1408
|
url: "/app-passwords",
|
|
@@ -1870,6 +1890,7 @@ function sleep(ms, signal) {
|
|
|
1870
1890
|
keysGet,
|
|
1871
1891
|
keysList,
|
|
1872
1892
|
keysRevoke,
|
|
1893
|
+
keysRotate,
|
|
1873
1894
|
keysUpdate,
|
|
1874
1895
|
labelsCreate,
|
|
1875
1896
|
labelsDelete,
|
|
@@ -1903,6 +1924,7 @@ function sleep(ms, signal) {
|
|
|
1903
1924
|
routingList,
|
|
1904
1925
|
routingUpdate,
|
|
1905
1926
|
streamEvents,
|
|
1927
|
+
testInbound,
|
|
1906
1928
|
threadsGet,
|
|
1907
1929
|
threadsLabelsCreate,
|
|
1908
1930
|
threadsLabelsDelete,
|