@pidgeon-ai/sdk 1.47.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,25 @@ 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
+
20
+ ## 1.48.0 — an agent joins the inbox a person already has
21
+
22
+ - `agentConnect({ body: { code, name } })` spends a setup code from the
23
+ dashboard's Overview and returns `api_key` with `send` on that one address,
24
+ plus `address` and `identity_id`. No account is created and no code is
25
+ emailed. A code works once, for 10 minutes; every failure is the same
26
+ `400`. The key shows under the person's API keys and is held for approval
27
+ like any other.
28
+
10
29
  ## 1.47.0 — a code that beat the wait is not lost
11
30
 
12
31
  - `messagesAwait` with `after: "now"`, `has_code: "true"` and a `timeout`
package/dist/index.cjs CHANGED
@@ -23,6 +23,8 @@ __export(index_exports, {
23
23
  SIGNATURE_HEADER: () => SIGNATURE_HEADER,
24
24
  TIMESTAMP_HEADER: () => TIMESTAMP_HEADER,
25
25
  agentAttachHuman: () => agentAttachHuman,
26
+ agentConnect: () => agentConnect,
27
+ agentSetup: () => agentSetup,
26
28
  agentSignUp: () => agentSignUp,
27
29
  agentVerify: () => agentVerify,
28
30
  appPasswordsCreate: () => appPasswordsCreate,
@@ -986,6 +988,19 @@ var agentVerify = (options) => (options.client ?? client).post({
986
988
  ...options.headers
987
989
  }
988
990
  });
991
+ var agentConnect = (options) => (options.client ?? client).post({
992
+ url: "/agent/connect",
993
+ ...options,
994
+ headers: {
995
+ "Content-Type": "application/json",
996
+ ...options.headers
997
+ }
998
+ });
999
+ var agentSetup = (options) => (options?.client ?? client).get({
1000
+ security: [{ scheme: "bearer", type: "http" }],
1001
+ url: "/agent/setup",
1002
+ ...options
1003
+ });
989
1004
  var identitiesList = (options) => (options?.client ?? client).get({
990
1005
  security: [{ scheme: "bearer", type: "http" }],
991
1006
  url: "/identities",
@@ -1866,6 +1881,8 @@ function sleep(ms, signal) {
1866
1881
  SIGNATURE_HEADER,
1867
1882
  TIMESTAMP_HEADER,
1868
1883
  agentAttachHuman,
1884
+ agentConnect,
1885
+ agentSetup,
1869
1886
  agentSignUp,
1870
1887
  agentVerify,
1871
1888
  appPasswordsCreate,