@vellumai/plugin-api 0.11.2-dev.202608071820.0d9e564 → 0.11.2-dev.202608071923.e834602

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 (3) hide show
  1. package/index.d.ts +15 -0
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -5985,6 +5985,21 @@ export declare function resolveMediaSourceData(source: MediaSource_2): {
5985
5985
  media_type: string;
5986
5986
  } | null;
5987
5987
 
5988
+ /**
5989
+ * Resolve the redirect URI an authorization server should send the user
5990
+ * back to.
5991
+ *
5992
+ * Takes no arguments on purpose: every caller shares one route, so there
5993
+ * is nothing to vary. That is what makes the URI stable across callers and
5994
+ * across attempts, which is what an exact-match `redirect_uri` check needs.
5995
+ *
5996
+ * @throws when no public ingress is configured and the assistant is not
5997
+ * connected to the platform. There is no URL that would work in that
5998
+ * case, and returning a plausible one produces an authorization request
5999
+ * whose callback silently never arrives.
6000
+ */
6001
+ export declare function resolveOauthCallbackUrl(): Promise<string>;
6002
+
5988
6003
  /**
5989
6004
  * Read the user's display name from the guardian's persona file
5990
6005
  * (`users/<slug>.md`, resolved via the guardian-delivery binding), falling
package/index.js CHANGED
@@ -44,6 +44,7 @@ export const queryIndex = api.queryIndex;
44
44
  export const removeDocument = api.removeDocument;
45
45
  export const resolveCredential = api.resolveCredential;
46
46
  export const resolveMediaSourceData = api.resolveMediaSourceData;
47
+ export const resolveOauthCallbackUrl = api.resolveOauthCallbackUrl;
47
48
  export const resolveUserName = api.resolveUserName;
48
49
  export const resolveWebhookUrl = api.resolveWebhookUrl;
49
50
  export const runConversationTurn = api.runConversationTurn;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/plugin-api",
3
- "version": "0.11.2-dev.202608071820.0d9e564",
3
+ "version": "0.11.2-dev.202608071923.e834602",
4
4
  "description": "Public TypeScript authoring contract for Vellum assistant plugins.",
5
5
  "license": "MIT",
6
6
  "type": "module",