@zurchin/sdk 2.16.1 → 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 +6 -0
- package/dist/index.d.ts +0 -30
- package/dist/index.js +0 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 2.16.1
|
|
4
10
|
|
|
5
11
|
- The description and README say Zurchin, zurchin.com and @zurchin.email, not Pidgeon. No code changed.
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zurchin/sdk",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.2",
|
|
4
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",
|