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