@pidgeon-ai/sdk 1.48.0 → 1.49.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 CHANGED
@@ -7,6 +7,16 @@ 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.49.0 — what stands between a key and sending
11
+
12
+ - `agentSetup({ query: { identity_id } })` asks every check a send would
13
+ make, without sending, and returns `steps` in order — each with `done`,
14
+ `owner` (`agent` or `person`), `what` and `how` — plus `next`, the first not
15
+ done, and `ready_to_send`. A `domain` step lists the DNS records still to
16
+ publish; a `daily_limit` step says when sending frees up (`resets_at`).
17
+ Without `identity_id` it answers for the address nearest to sending and
18
+ lists the rest under `addresses`. It sees only the addresses the key reaches.
19
+
10
20
  ## 1.48.0 — an agent joins the inbox a person already has
11
21
 
12
22
  - `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,
@@ -995,6 +996,11 @@ var agentConnect = (options) => (options.client ?? client).post({
995
996
  ...options.headers
996
997
  }
997
998
  });
999
+ var agentSetup = (options) => (options?.client ?? client).get({
1000
+ security: [{ scheme: "bearer", type: "http" }],
1001
+ url: "/agent/setup",
1002
+ ...options
1003
+ });
998
1004
  var identitiesList = (options) => (options?.client ?? client).get({
999
1005
  security: [{ scheme: "bearer", type: "http" }],
1000
1006
  url: "/identities",
@@ -1876,6 +1882,7 @@ function sleep(ms, signal) {
1876
1882
  TIMESTAMP_HEADER,
1877
1883
  agentAttachHuman,
1878
1884
  agentConnect,
1885
+ agentSetup,
1879
1886
  agentSignUp,
1880
1887
  agentVerify,
1881
1888
  appPasswordsCreate,