@vercel/connect 2.0.1 → 2.0.3

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.
Files changed (2) hide show
  1. package/README.md +6 -10
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -30,19 +30,15 @@ const token = await getToken(process.env.CONNECTOR_LINEAR!, {
30
30
  });
31
31
  ```
32
32
 
33
- To create an operator installation request for an app-scoped connector, use the
34
- experimental install helper:
35
-
36
- This feature is gated while experimental. Contact Vercel to enable access
37
- before using it.
33
+ To start an authorization request for a user, use `startAuthorization`:
38
34
 
39
35
  ```ts
40
- import { experimental_startInstallation } from '@vercel/connect';
36
+ import { startAuthorization } from '@vercel/connect';
41
37
 
42
- const { url } = await experimental_startInstallation(
43
- process.env.CONNECTOR_SLACK!,
44
- {},
45
- { returnUrl: 'https://example.com/settings/integrations' }
38
+ const { url } = await startAuthorization(
39
+ process.env.CONNECTOR_LINEAR!,
40
+ { subject: { type: 'user', id: 'user_123' } },
41
+ { callbackUrl: 'https://example.com/settings/integrations' }
46
42
  );
47
43
  ```
48
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/connect",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "repository": {
@@ -42,7 +42,7 @@
42
42
  "dist"
43
43
  ],
44
44
  "dependencies": {
45
- "@vercel/oidc": "3.8.5"
45
+ "@vercel/oidc": "3.8.6"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@ai-sdk/mcp": "^1 || ^2",