@zurchin/sdk 2.16.0 → 2.16.2

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
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.16.2
4
+
5
+ - `keys.deliverToVercel` and its types `DeliveredKey` and `VercelTarget` are removed:
6
+ Zurchin's Vercel integration is gone, and `POST /v1/keys` no longer takes `deliver_to`.
7
+ Make the key with `keys.create` and set it on the project yourself.
8
+
9
+ ## 2.16.1
10
+
11
+ - The description and README say Zurchin, zurchin.com and @zurchin.email, not Pidgeon. No code changed.
12
+
3
13
  ## 2.16.0
4
14
 
5
15
  - Pidgeon is now Zurchin: this version is published as `@zurchin/sdk`, and the last `@zurchin/sdk` (2.16.0) only re-exports it and says so once.
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # @zurchin/sdk
2
2
 
3
3
  Email for founders, teams and agents. Give each agent its own address beside
4
- your team's, on @pidgeon.email or your own domain, or give every user of your
5
- product inboxes of their own. https://pidgeon.ai
4
+ your team's, on @zurchin.email or your own domain, or give every user of your
5
+ product inboxes of their own. https://zurchin.com
6
6
 
7
7
  ```sh
8
8
  npm install @zurchin/sdk
9
9
  ```
10
10
 
11
- Version 2 is for the new Pidgeon. Code written for 1.x (the old email API at
11
+ Version 2 is for the new Pidgeon, now Zurchin. Code written for 1.x (the old email API at
12
12
  `/api/v1`) keeps working on 1.68.0 until that API is retired.
13
13
 
14
14
  ## Give an agent an inbox
@@ -87,7 +87,7 @@ const inbox = await pidgeon.inboxes.create({ name: 'support', podId: pod.id, dom
87
87
  const { key } = await pidgeon.keys.create({ name: 'Acme', access: 'send', podId: pod.id });
88
88
  ```
89
89
 
90
- ## Sign in with Pidgeon (`@zurchin/sdk/auth`)
90
+ ## Sign in with Zurchin (`@zurchin/sdk/auth`)
91
91
 
92
92
  Agents sign in to websites as themselves, with a key of their own.
93
93
 
@@ -121,7 +121,7 @@ await agent.fetch('https://shop.example/api/orders', {
121
121
  ```
122
122
 
123
123
  Each call is signed afresh: the signature covers the host, method, path and
124
- query, carries a new nonce, and lasts a minute. Pidgeon accepts a signature
124
+ query, carries a new nonce, and lasts a minute. Zurchin accepts a signature
125
125
  once, so sign again to retry; never resend old signature headers.
126
126
 
127
127
  ### Your site
@@ -130,7 +130,7 @@ Register your site with `pidgeon.sites.create({ name, redirectUris })`; ask a
130
130
  person to let your agent act for them with `pidgeon.mandates.create(…)`.
131
131
 
132
132
  People sign in to your site with any OpenID Connect library: the issuer is
133
- `https://pidgeon.ai`, with the client id and secret you registered. Check an
133
+ `https://zurchin.com`, with the client id and secret you registered. Check an
134
134
  ID token with `verifyIdToken(idToken, { clientId })`.
135
135
 
136
136
  An agent signs in with no person present, and sends its ID token with every
@@ -165,13 +165,13 @@ claims.account;
165
165
  claims.reputation;
166
166
  ```
167
167
 
168
- Under a mandate, pass your site's `clientSecret` too: Pidgeon is asked
168
+ Under a mandate, pass your site's `clientSecret` too: Zurchin is asked
169
169
  whether the mandate still holds, so one the person stopped is refused at
170
170
  once (`mandate_ended`) rather than when the token expires. A token under a
171
171
  test mandate (asked with a test key) carries `test: true` and verifies like
172
172
  any other: refuse it in production.
173
173
 
174
- ### For an MCP server that trusts Pidgeon (ID-JAG)
174
+ ### For an MCP server that trusts Zurchin (ID-JAG)
175
175
 
176
176
  ```ts
177
177
  import { requestIdJag } from '@zurchin/sdk/auth';
package/dist/index.d.ts CHANGED
@@ -522,22 +522,6 @@ export type ApiKey = {
522
522
  created_at: string;
523
523
  last_used_at: string | null;
524
524
  };
525
- export type VercelTarget = 'production' | 'preview' | 'development';
526
- /** A key put on a Vercel project: where it went, and never the key. */
527
- export type DeliveredKey = {
528
- id: string;
529
- prefix: string;
530
- name: string;
531
- access: ApiKeyAccess;
532
- pod_id: string | null;
533
- delivered_to: {
534
- vercel_project_id: string;
535
- project_name: string;
536
- env_name: string;
537
- targets: VercelTarget[];
538
- env_id: string;
539
- };
540
- };
541
525
  export type BodyChoice = 'original' | 'clean';
542
526
  /** What to send, or what a draft says. `replyTo` is one of the inbox's messages. */
543
527
  export type MessageInput = {
@@ -1115,20 +1099,6 @@ export declare class Pidgeon {
1115
1099
  key: string;
1116
1100
  prefix: string;
1117
1101
  }>;
1118
- /**
1119
- * Make a key and put it straight on a Vercel project as a sensitive
1120
- * variable, through the account's Vercel installation: the key is never
1121
- * in the answer. `targets`: production and preview when left out.
1122
- */
1123
- deliverToVercel: (input: {
1124
- name: string;
1125
- access?: ApiKeyAccess;
1126
- podId?: string;
1127
- test?: boolean;
1128
- vercelProjectId: string;
1129
- envName: string;
1130
- targets?: VercelTarget[];
1131
- }) => Promise<DeliveredKey>;
1132
1102
  revoke: (id: string) => Promise<void>;
1133
1103
  };
1134
1104
  /** Your webhook endpoints. A key of the whole account only. */
package/dist/index.js CHANGED
@@ -608,24 +608,6 @@ export class Pidgeon {
608
608
  create: (input) => this.request('POST', '/v1/keys', {
609
609
  body: { name: input.name, access: input.access, pod_id: input.podId, test: input.test },
610
610
  }),
611
- /**
612
- * Make a key and put it straight on a Vercel project as a sensitive
613
- * variable, through the account's Vercel installation: the key is never
614
- * in the answer. `targets`: production and preview when left out.
615
- */
616
- deliverToVercel: (input) => this.request('POST', '/v1/keys', {
617
- body: {
618
- name: input.name,
619
- access: input.access,
620
- pod_id: input.podId,
621
- test: input.test,
622
- deliver_to: {
623
- vercel_project_id: input.vercelProjectId,
624
- env_name: input.envName,
625
- targets: input.targets,
626
- },
627
- },
628
- }),
629
611
  revoke: (id) => this.request('DELETE', `/v1/keys/${segment(id)}`),
630
612
  };
631
613
  /** Your webhook endpoints. A key of the whole account only. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zurchin/sdk",
3
- "version": "2.16.0",
4
- "description": "Pidgeon's TypeScript SDK. Email for founders, teams and agents: inboxes for your AI agents beside your team's, on @pidgeon.email or your own domains, with threads, webhooks and calendars.",
3
+ "version": "2.16.2",
4
+ "description": "Zurchin's TypeScript SDK. Email for founders, teams and agents: inboxes for your AI agents beside your team's, on @zurchin.email or your own domains, with threads, webhooks and calendars.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "repository": {