@dereekb/firebase-server 13.13.0 → 13.15.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/index.cjs.js +13 -8
- package/index.esm.js +13 -8
- package/mailgun/package.json +9 -9
- package/mcp/index.cjs.js +1715 -212
- package/mcp/index.esm.js +1704 -215
- package/mcp/package.json +11 -11
- package/mcp/src/lib/service/index.d.ts +1 -0
- package/mcp/src/lib/service/mcp.manifest.d.ts +13 -0
- package/mcp/src/lib/service/mcp.response-formatter.d.ts +10 -6
- package/mcp/src/lib/service/mcp.server.factory.d.ts +54 -2
- package/mcp/src/lib/service/mcp.tool-generator.d.ts +194 -13
- package/mcp/src/lib/service/tools/mcp.tool.batch-execute.d.ts +151 -0
- package/model/package.json +9 -9
- package/oidc/package.json +10 -10
- package/package.json +10 -10
- package/src/lib/auth/auth.service.d.ts +23 -3
- package/src/lib/nest/model/api.details.d.ts +117 -32
- package/test/package.json +11 -11
- package/twilio/package.json +8 -8
- package/zoho/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -1282,15 +1282,17 @@ function _ts_generator$g(thisArg, body) {
|
|
|
1282
1282
|
},
|
|
1283
1283
|
{
|
|
1284
1284
|
key: "beginResetPassword",
|
|
1285
|
-
value: function beginResetPassword() {
|
|
1285
|
+
value: function beginResetPassword(options) {
|
|
1286
1286
|
return _async_to_generator$g(function() {
|
|
1287
|
-
var password, now, expiresAt, _obj, passwordClaimsData;
|
|
1287
|
+
var _ref, password, now, expiresInMs, expiresAt, _obj, passwordClaimsData;
|
|
1288
1288
|
return _ts_generator$g(this, function(_state) {
|
|
1289
1289
|
switch(_state.label){
|
|
1290
1290
|
case 0:
|
|
1291
1291
|
password = this._generateResetPasswordKey();
|
|
1292
1292
|
now = new Date();
|
|
1293
|
-
|
|
1293
|
+
// An explicit per-call lifetime wins over the context default; otherwise fall back to _resetCodeExpiresInMs().
|
|
1294
|
+
expiresInMs = (_ref = options === null || options === void 0 ? void 0 : options.resetCodeExpiresIn) !== null && _ref !== void 0 ? _ref : this._resetCodeExpiresInMs();
|
|
1295
|
+
expiresAt = new Date(now.getTime() + expiresInMs);
|
|
1294
1296
|
passwordClaimsData = (_obj = {}, _define_property$x(_obj, firebase.FIREBASE_SERVER_AUTH_CLAIMS_RESET_PASSWORD_KEY, password), _define_property$x(_obj, firebase.FIREBASE_SERVER_AUTH_CLAIMS_RESET_LAST_COM_DATE_KEY, date.toISODateString(now)), _define_property$x(_obj, firebase.FIREBASE_SERVER_AUTH_CLAIMS_RESET_EXPIRES_AT_KEY, date.toISODateString(expiresAt)), _obj);
|
|
1295
1297
|
// set the claims
|
|
1296
1298
|
return [
|
|
@@ -2239,11 +2241,11 @@ function _ts_generator$g(thisArg, body) {
|
|
|
2239
2241
|
* Used by {@link AbstractFirebaseServerUserPasswordResetService.sendResetContent} to rate-limit delivery.
|
|
2240
2242
|
*/ var DEFAULT_RESET_COM_THROTTLE_TIME = date.minutesToMs(1);
|
|
2241
2243
|
/**
|
|
2242
|
-
* Default lifetime (
|
|
2244
|
+
* Default lifetime (30 minutes) of a reset code before it expires.
|
|
2243
2245
|
*
|
|
2244
2246
|
* Used by {@link AbstractFirebaseServerAuthUserContext.beginResetPassword} to set
|
|
2245
2247
|
* `resetExpiresAt` in the user's claims.
|
|
2246
|
-
*/ var DEFAULT_RESET_CODE_EXPIRES_IN = date.minutesToMs(
|
|
2248
|
+
*/ var DEFAULT_RESET_CODE_EXPIRES_IN = date.minutesToMs(30);
|
|
2247
2249
|
/**
|
|
2248
2250
|
* Base implementation of {@link FirebaseServerUserPasswordResetService} that handles reset initiation,
|
|
2249
2251
|
* claims management, throttled reset content delivery, and reset completion.
|
|
@@ -2280,11 +2282,11 @@ function _ts_generator$g(thisArg, body) {
|
|
|
2280
2282
|
key: "beginPasswordReset",
|
|
2281
2283
|
value: function beginPasswordReset(input) {
|
|
2282
2284
|
return _async_to_generator$g(function() {
|
|
2283
|
-
var uid, email, sendResetContent, sendResetDetailsOnce, sendResetIgnoreThrottle, sendResetThrowErrors, data, sendDetailsInTestEnvironment, resolvedUid, userRecord, userContext, claims, oobCode;
|
|
2285
|
+
var uid, email, sendResetContent, sendResetDetailsOnce, sendResetIgnoreThrottle, sendResetThrowErrors, data, sendDetailsInTestEnvironment, resetCodeExpiresIn, resolvedUid, userRecord, userContext, claims, oobCode;
|
|
2284
2286
|
return _ts_generator$g(this, function(_state) {
|
|
2285
2287
|
switch(_state.label){
|
|
2286
2288
|
case 0:
|
|
2287
|
-
uid = input.uid, email = input.email, sendResetContent = input.sendResetContent, sendResetDetailsOnce = input.sendResetDetailsOnce, sendResetIgnoreThrottle = input.sendResetIgnoreThrottle, sendResetThrowErrors = input.sendResetThrowErrors, data = input.data, sendDetailsInTestEnvironment = input.sendDetailsInTestEnvironment;
|
|
2289
|
+
uid = input.uid, email = input.email, sendResetContent = input.sendResetContent, sendResetDetailsOnce = input.sendResetDetailsOnce, sendResetIgnoreThrottle = input.sendResetIgnoreThrottle, sendResetThrowErrors = input.sendResetThrowErrors, data = input.data, sendDetailsInTestEnvironment = input.sendDetailsInTestEnvironment, resetCodeExpiresIn = input.resetCodeExpiresIn;
|
|
2288
2290
|
if (!uid) return [
|
|
2289
2291
|
3,
|
|
2290
2292
|
1
|
|
@@ -2316,7 +2318,9 @@ function _ts_generator$g(thisArg, body) {
|
|
|
2316
2318
|
userContext = this.authService.userContext(resolvedUid);
|
|
2317
2319
|
return [
|
|
2318
2320
|
4,
|
|
2319
|
-
userContext.beginResetPassword(
|
|
2321
|
+
userContext.beginResetPassword({
|
|
2322
|
+
resetCodeExpiresIn: resetCodeExpiresIn
|
|
2323
|
+
})
|
|
2320
2324
|
];
|
|
2321
2325
|
case 5:
|
|
2322
2326
|
claims = _state.sent();
|
|
@@ -5235,6 +5239,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
5235
5239
|
"optionalAuth",
|
|
5236
5240
|
"fn"
|
|
5237
5241
|
]);
|
|
5242
|
+
// Stored as the unknown-result form; the narrower handler-result typing lives on the config for authoring only.
|
|
5238
5243
|
fn._apiDetails = apiDetails;
|
|
5239
5244
|
if (optionalAuth) {
|
|
5240
5245
|
fn._requireAuth = false;
|
package/index.esm.js
CHANGED
|
@@ -1280,15 +1280,17 @@ function _ts_generator$g(thisArg, body) {
|
|
|
1280
1280
|
},
|
|
1281
1281
|
{
|
|
1282
1282
|
key: "beginResetPassword",
|
|
1283
|
-
value: function beginResetPassword() {
|
|
1283
|
+
value: function beginResetPassword(options) {
|
|
1284
1284
|
return _async_to_generator$g(function() {
|
|
1285
|
-
var password, now, expiresAt, _obj, passwordClaimsData;
|
|
1285
|
+
var _ref, password, now, expiresInMs, expiresAt, _obj, passwordClaimsData;
|
|
1286
1286
|
return _ts_generator$g(this, function(_state) {
|
|
1287
1287
|
switch(_state.label){
|
|
1288
1288
|
case 0:
|
|
1289
1289
|
password = this._generateResetPasswordKey();
|
|
1290
1290
|
now = new Date();
|
|
1291
|
-
|
|
1291
|
+
// An explicit per-call lifetime wins over the context default; otherwise fall back to _resetCodeExpiresInMs().
|
|
1292
|
+
expiresInMs = (_ref = options === null || options === void 0 ? void 0 : options.resetCodeExpiresIn) !== null && _ref !== void 0 ? _ref : this._resetCodeExpiresInMs();
|
|
1293
|
+
expiresAt = new Date(now.getTime() + expiresInMs);
|
|
1292
1294
|
passwordClaimsData = (_obj = {}, _define_property$x(_obj, FIREBASE_SERVER_AUTH_CLAIMS_RESET_PASSWORD_KEY, password), _define_property$x(_obj, FIREBASE_SERVER_AUTH_CLAIMS_RESET_LAST_COM_DATE_KEY, toISODateString(now)), _define_property$x(_obj, FIREBASE_SERVER_AUTH_CLAIMS_RESET_EXPIRES_AT_KEY, toISODateString(expiresAt)), _obj);
|
|
1293
1295
|
// set the claims
|
|
1294
1296
|
return [
|
|
@@ -2237,11 +2239,11 @@ function _ts_generator$g(thisArg, body) {
|
|
|
2237
2239
|
* Used by {@link AbstractFirebaseServerUserPasswordResetService.sendResetContent} to rate-limit delivery.
|
|
2238
2240
|
*/ var DEFAULT_RESET_COM_THROTTLE_TIME = minutesToMs(1);
|
|
2239
2241
|
/**
|
|
2240
|
-
* Default lifetime (
|
|
2242
|
+
* Default lifetime (30 minutes) of a reset code before it expires.
|
|
2241
2243
|
*
|
|
2242
2244
|
* Used by {@link AbstractFirebaseServerAuthUserContext.beginResetPassword} to set
|
|
2243
2245
|
* `resetExpiresAt` in the user's claims.
|
|
2244
|
-
*/ var DEFAULT_RESET_CODE_EXPIRES_IN = minutesToMs(
|
|
2246
|
+
*/ var DEFAULT_RESET_CODE_EXPIRES_IN = minutesToMs(30);
|
|
2245
2247
|
/**
|
|
2246
2248
|
* Base implementation of {@link FirebaseServerUserPasswordResetService} that handles reset initiation,
|
|
2247
2249
|
* claims management, throttled reset content delivery, and reset completion.
|
|
@@ -2278,11 +2280,11 @@ function _ts_generator$g(thisArg, body) {
|
|
|
2278
2280
|
key: "beginPasswordReset",
|
|
2279
2281
|
value: function beginPasswordReset(input) {
|
|
2280
2282
|
return _async_to_generator$g(function() {
|
|
2281
|
-
var uid, email, sendResetContent, sendResetDetailsOnce, sendResetIgnoreThrottle, sendResetThrowErrors, data, sendDetailsInTestEnvironment, resolvedUid, userRecord, userContext, claims, oobCode;
|
|
2283
|
+
var uid, email, sendResetContent, sendResetDetailsOnce, sendResetIgnoreThrottle, sendResetThrowErrors, data, sendDetailsInTestEnvironment, resetCodeExpiresIn, resolvedUid, userRecord, userContext, claims, oobCode;
|
|
2282
2284
|
return _ts_generator$g(this, function(_state) {
|
|
2283
2285
|
switch(_state.label){
|
|
2284
2286
|
case 0:
|
|
2285
|
-
uid = input.uid, email = input.email, sendResetContent = input.sendResetContent, sendResetDetailsOnce = input.sendResetDetailsOnce, sendResetIgnoreThrottle = input.sendResetIgnoreThrottle, sendResetThrowErrors = input.sendResetThrowErrors, data = input.data, sendDetailsInTestEnvironment = input.sendDetailsInTestEnvironment;
|
|
2287
|
+
uid = input.uid, email = input.email, sendResetContent = input.sendResetContent, sendResetDetailsOnce = input.sendResetDetailsOnce, sendResetIgnoreThrottle = input.sendResetIgnoreThrottle, sendResetThrowErrors = input.sendResetThrowErrors, data = input.data, sendDetailsInTestEnvironment = input.sendDetailsInTestEnvironment, resetCodeExpiresIn = input.resetCodeExpiresIn;
|
|
2286
2288
|
if (!uid) return [
|
|
2287
2289
|
3,
|
|
2288
2290
|
1
|
|
@@ -2314,7 +2316,9 @@ function _ts_generator$g(thisArg, body) {
|
|
|
2314
2316
|
userContext = this.authService.userContext(resolvedUid);
|
|
2315
2317
|
return [
|
|
2316
2318
|
4,
|
|
2317
|
-
userContext.beginResetPassword(
|
|
2319
|
+
userContext.beginResetPassword({
|
|
2320
|
+
resetCodeExpiresIn: resetCodeExpiresIn
|
|
2321
|
+
})
|
|
2318
2322
|
];
|
|
2319
2323
|
case 5:
|
|
2320
2324
|
claims = _state.sent();
|
|
@@ -5233,6 +5237,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
5233
5237
|
"optionalAuth",
|
|
5234
5238
|
"fn"
|
|
5235
5239
|
]);
|
|
5240
|
+
// Stored as the unknown-result form; the narrower handler-result typing lives on the config for authoring only.
|
|
5236
5241
|
fn._apiDetails = apiDetails;
|
|
5237
5242
|
if (optionalAuth) {
|
|
5238
5243
|
fn._requireAuth = false;
|
package/mailgun/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/mailgun",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.15.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.
|
|
6
|
-
"@dereekb/firebase": "13.
|
|
7
|
-
"@dereekb/firebase-server": "13.
|
|
8
|
-
"@dereekb/date": "13.
|
|
9
|
-
"@dereekb/nestjs": "13.
|
|
10
|
-
"@dereekb/model": "13.
|
|
11
|
-
"@dereekb/rxjs": "13.
|
|
12
|
-
"@dereekb/util": "13.
|
|
5
|
+
"@dereekb/analytics": "13.15.0",
|
|
6
|
+
"@dereekb/firebase": "13.15.0",
|
|
7
|
+
"@dereekb/firebase-server": "13.15.0",
|
|
8
|
+
"@dereekb/date": "13.15.0",
|
|
9
|
+
"@dereekb/nestjs": "13.15.0",
|
|
10
|
+
"@dereekb/model": "13.15.0",
|
|
11
|
+
"@dereekb/rxjs": "13.15.0",
|
|
12
|
+
"@dereekb/util": "13.15.0"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": "./package.json",
|