@pidgeon-ai/sdk 1.48.0 → 1.50.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 +22 -0
- package/dist/index.cjs +18 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +398 -11
- package/dist/index.d.ts +398 -11
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,28 @@ 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.50.0 — a loop stops at the second message, and an agent can ask first
|
|
11
|
+
|
|
12
|
+
- `messagesCheck({ body })` takes the body `messagesSend` takes, plus
|
|
13
|
+
`forward`, and runs every check a send makes without sending: it returns a
|
|
14
|
+
`SendCheck` (`would_send`, `status`, the envelope) or the exact error the
|
|
15
|
+
send would give. Nothing is written or counted.
|
|
16
|
+
- `Identity.recipient_cooldown_minutes` (default 10, 0 is off, at most 1440),
|
|
17
|
+
settable with `identitiesUpdate`. A send that is not a reply, to somebody the
|
|
18
|
+
address wrote to inside it, is refused `429 recipient_cooldown` with
|
|
19
|
+
`Retry-After`. Replies are exempt.
|
|
20
|
+
- No send's result type changed.
|
|
21
|
+
|
|
22
|
+
## 1.49.0 — what stands between a key and sending
|
|
23
|
+
|
|
24
|
+
- `agentSetup({ query: { identity_id } })` asks every check a send would
|
|
25
|
+
make, without sending, and returns `steps` in order — each with `done`,
|
|
26
|
+
`owner` (`agent` or `person`), `what` and `how` — plus `next`, the first not
|
|
27
|
+
done, and `ready_to_send`. A `domain` step lists the DNS records still to
|
|
28
|
+
publish; a `daily_limit` step says when sending frees up (`resets_at`).
|
|
29
|
+
Without `identity_id` it answers for the address nearest to sending and
|
|
30
|
+
lists the rest under `addresses`. It sees only the addresses the key reaches.
|
|
31
|
+
|
|
10
32
|
## 1.48.0 — an agent joins the inbox a person already has
|
|
11
33
|
|
|
12
34
|
- `agentConnect({ body: { code, name } })` spends a setup code from the
|
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ __export(index_exports, {
|
|
|
24
24
|
TIMESTAMP_HEADER: () => TIMESTAMP_HEADER,
|
|
25
25
|
agentAttachHuman: () => agentAttachHuman,
|
|
26
26
|
agentConnect: () => agentConnect,
|
|
27
|
+
agentSetup: () => agentSetup,
|
|
27
28
|
agentSignUp: () => agentSignUp,
|
|
28
29
|
agentVerify: () => agentVerify,
|
|
29
30
|
appPasswordsCreate: () => appPasswordsCreate,
|
|
@@ -102,6 +103,7 @@ __export(index_exports, {
|
|
|
102
103
|
meGet: () => meGet,
|
|
103
104
|
messagesAct: () => messagesAct,
|
|
104
105
|
messagesAwait: () => messagesAwait,
|
|
106
|
+
messagesCheck: () => messagesCheck,
|
|
105
107
|
messagesForward: () => messagesForward,
|
|
106
108
|
messagesGet: () => messagesGet,
|
|
107
109
|
messagesListInThread: () => messagesListInThread,
|
|
@@ -995,6 +997,11 @@ var agentConnect = (options) => (options.client ?? client).post({
|
|
|
995
997
|
...options.headers
|
|
996
998
|
}
|
|
997
999
|
});
|
|
1000
|
+
var agentSetup = (options) => (options?.client ?? client).get({
|
|
1001
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1002
|
+
url: "/agent/setup",
|
|
1003
|
+
...options
|
|
1004
|
+
});
|
|
998
1005
|
var identitiesList = (options) => (options?.client ?? client).get({
|
|
999
1006
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1000
1007
|
url: "/identities",
|
|
@@ -1186,6 +1193,15 @@ var messagesSend = (options) => (options.client ?? client).post({
|
|
|
1186
1193
|
...options.headers
|
|
1187
1194
|
}
|
|
1188
1195
|
});
|
|
1196
|
+
var messagesCheck = (options) => (options.client ?? client).post({
|
|
1197
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1198
|
+
url: "/messages/check",
|
|
1199
|
+
...options,
|
|
1200
|
+
headers: {
|
|
1201
|
+
"Content-Type": "application/json",
|
|
1202
|
+
...options.headers
|
|
1203
|
+
}
|
|
1204
|
+
});
|
|
1189
1205
|
var messagesSearch = (options) => (options?.client ?? client).get({
|
|
1190
1206
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1191
1207
|
url: "/messages/search",
|
|
@@ -1876,6 +1892,7 @@ function sleep(ms, signal) {
|
|
|
1876
1892
|
TIMESTAMP_HEADER,
|
|
1877
1893
|
agentAttachHuman,
|
|
1878
1894
|
agentConnect,
|
|
1895
|
+
agentSetup,
|
|
1879
1896
|
agentSignUp,
|
|
1880
1897
|
agentVerify,
|
|
1881
1898
|
appPasswordsCreate,
|
|
@@ -1954,6 +1971,7 @@ function sleep(ms, signal) {
|
|
|
1954
1971
|
meGet,
|
|
1955
1972
|
messagesAct,
|
|
1956
1973
|
messagesAwait,
|
|
1974
|
+
messagesCheck,
|
|
1957
1975
|
messagesForward,
|
|
1958
1976
|
messagesGet,
|
|
1959
1977
|
messagesListInThread,
|