@almadar/integrations 2.37.0 → 2.39.0
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/dist/index.d.ts +44 -4
- package/dist/index.js +100 -33
- package/dist/index.js.map +1 -1
- package/dist/mocks/index.js +2 -2
- package/dist/mocks/index.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.js +99 -32
- package/dist/runtime/index.js.map +1 -1
- package/dist/{store-RNvxZO-q.d.ts → store-DG5OGiuQ.d.ts} +8 -2
- package/package.json +5 -5
|
@@ -1401,15 +1401,17 @@ type RedisActions = {
|
|
|
1401
1401
|
};
|
|
1402
1402
|
};
|
|
1403
1403
|
type OAuthActions = {
|
|
1404
|
-
/** Build the provider authorization URL (PKCE + state) for an OAuth/OIDC login redirect;
|
|
1404
|
+
/** Build the provider authorization URL (PKCE + state) for an OAuth/OIDC login redirect; OIDC discovery (Google) or static OAuth 2 metadata (GitHub) when OAUTH_CLIENT_ID/SECRET are configured, an in-memory mock otherwise. */
|
|
1405
1405
|
authorize: {
|
|
1406
1406
|
params: {
|
|
1407
|
-
/** Identity provider; OIDC issuer defaults to Google unless OIDC_ISSUER_URL overrides it. */
|
|
1407
|
+
/** Identity provider; OIDC issuer defaults to Google unless OIDC_ISSUER_URL overrides it; GitHub uses its OAuth 2 endpoints. */
|
|
1408
1408
|
provider: 'google' | 'github' | 'auth0';
|
|
1409
1409
|
/** OAuth scopes to request. */
|
|
1410
1410
|
scopes: string[];
|
|
1411
1411
|
/** Callback URL the provider redirects back to after consent. */
|
|
1412
1412
|
redirectUri: string;
|
|
1413
|
+
/** Opaque id of whoever started the flow (the verified user); `token` returns it so the host can refuse anyone else completing. */
|
|
1414
|
+
subject?: string;
|
|
1413
1415
|
};
|
|
1414
1416
|
result: {
|
|
1415
1417
|
authUrl: string;
|
|
@@ -1423,12 +1425,16 @@ type OAuthActions = {
|
|
|
1423
1425
|
code: string;
|
|
1424
1426
|
/** The `state` value returned by `authorize`. */
|
|
1425
1427
|
state: string;
|
|
1428
|
+
/** Who is completing; must equal the `subject` bound at `authorize`, checked before the code is exchanged. */
|
|
1429
|
+
subject?: string;
|
|
1426
1430
|
};
|
|
1427
1431
|
result: {
|
|
1428
1432
|
accessToken: string;
|
|
1429
1433
|
refreshToken: string;
|
|
1430
1434
|
expiresIn: number;
|
|
1431
1435
|
tokenType: 'bearer';
|
|
1436
|
+
scope: string[];
|
|
1437
|
+
subject?: string;
|
|
1432
1438
|
};
|
|
1433
1439
|
};
|
|
1434
1440
|
/** Exchange a refresh token for a new access token. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/integrations",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.39.0",
|
|
4
4
|
"description": "External service integrations for Almadar applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@almadar/core": "^10.
|
|
37
|
-
"@almadar/llm": "^2.
|
|
38
|
-
"@almadar/logger": "^1.
|
|
36
|
+
"@almadar/core": "^10.107.0",
|
|
37
|
+
"@almadar/llm": "^2.56.0",
|
|
38
|
+
"@almadar/logger": "^1.14.0",
|
|
39
39
|
"@aws-sdk/client-s3": "^3.700.0",
|
|
40
40
|
"@aws-sdk/s3-request-presigner": "^3.700.0",
|
|
41
41
|
"@sendgrid/mail": "^8.1.4",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"zod": "^3.23.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@almadar/eslint-plugin": "^2.
|
|
53
|
+
"@almadar/eslint-plugin": "^2.20.0",
|
|
54
54
|
"@types/node": "^20.0.0",
|
|
55
55
|
"@types/pg": "^8.11.10",
|
|
56
56
|
"@types/web-push": "^3.6.4",
|