@base44-preview/sdk 0.8.24-pr.156.8ddb70c → 0.8.24-pr.156.b7d6285
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.
|
@@ -32,6 +32,15 @@ export interface ConnectorConnectionResponse {
|
|
|
32
32
|
/** Key-value configuration for the connection, or `null` if the connector does not provide one. */
|
|
33
33
|
connectionConfig: Record<string, string> | null;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Connection details for an app-user connector.
|
|
37
|
+
*/
|
|
38
|
+
export interface AppUserConnectorConnectionResponse {
|
|
39
|
+
/** The OAuth access token for the end user's connection. */
|
|
40
|
+
accessToken: string;
|
|
41
|
+
/** Key-value configuration for the connection, or `null` if the connector does not provide one. */
|
|
42
|
+
connectionConfig: Record<string, string> | null;
|
|
43
|
+
}
|
|
35
44
|
/**
|
|
36
45
|
* Connectors module for managing app-scoped OAuth tokens for external services.
|
|
37
46
|
*
|
|
@@ -253,7 +262,7 @@ export interface ConnectorsModule {
|
|
|
253
262
|
* belongs to the currently authenticated end user for the specified connector.
|
|
254
263
|
*
|
|
255
264
|
* @param connectorId - The connector ID (OrgConnector database ID).
|
|
256
|
-
* @returns Promise resolving to
|
|
265
|
+
* @returns Promise resolving to an {@link AppUserConnectorConnectionResponse} with `accessToken` and `connectionConfig`.
|
|
257
266
|
*
|
|
258
267
|
* @example
|
|
259
268
|
* ```typescript
|
|
@@ -265,7 +274,7 @@ export interface ConnectorsModule {
|
|
|
265
274
|
* });
|
|
266
275
|
* ```
|
|
267
276
|
*/
|
|
268
|
-
getCurrentAppUserConnection(connectorId: string): Promise<
|
|
277
|
+
getCurrentAppUserConnection(connectorId: string): Promise<AppUserConnectorConnectionResponse>;
|
|
269
278
|
}
|
|
270
279
|
/**
|
|
271
280
|
* User-scoped connectors module for managing app-user OAuth connections.
|