@dereekb/firebase-server 13.12.2 → 13.12.4
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 +86 -18
- package/index.esm.js +85 -19
- package/mailgun/index.cjs.js +6 -3
- package/mailgun/index.esm.js +6 -3
- package/mailgun/package.json +9 -9
- package/mcp/index.cjs.js +526 -183
- package/mcp/index.esm.js +527 -186
- package/mcp/package.json +12 -11
- package/mcp/src/lib/service/analytics/mcp.analytics.config.d.ts +5 -3
- package/mcp/src/lib/service/analytics/mcp.analytics.service.d.ts +3 -2
- package/mcp/src/lib/service/tools/mcp.tool.model-info.d.ts +90 -10
- package/model/package.json +9 -9
- package/oidc/index.cjs.js +116 -8
- package/oidc/index.esm.js +115 -10
- package/oidc/package.json +10 -10
- package/oidc/src/lib/oidc.config.d.ts +40 -2
- package/oidc/src/lib/oidc.module.d.ts +39 -2
- package/oidc/src/lib/service/oidc.client.service.d.ts +12 -4
- package/package.json +13 -10
- package/src/lib/auth/auth.service.d.ts +84 -17
- package/src/lib/env/env.service.d.ts +2 -2
- package/test/index.cjs.js +29 -0
- package/test/index.esm.js +29 -0
- package/test/package.json +11 -11
- package/test/src/lib/firebase/firebase.admin.auth.d.ts +22 -0
- package/twilio/package.json +8 -8
- package/zoho/package.json +9 -9
package/test/index.cjs.js
CHANGED
|
@@ -320,6 +320,20 @@ function _ts_generator$a(thisArg, body) {
|
|
|
320
320
|
return this.instance.callWrappedFunction(fn, params, skipJsonConversion);
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
|
+
{
|
|
324
|
+
/**
|
|
325
|
+
* Convenience function for calling the function without an authenticated user context.
|
|
326
|
+
*
|
|
327
|
+
* Equivalent to `fn(params, options ?? {})`.
|
|
328
|
+
*
|
|
329
|
+
* @param fn
|
|
330
|
+
* @param params
|
|
331
|
+
* @returns
|
|
332
|
+
*/ key: "callWrappedFunctionWithoutUserContext",
|
|
333
|
+
value: function callWrappedFunctionWithoutUserContext(fn, params, options) {
|
|
334
|
+
return this.instance.callWrappedFunctionWithoutUserContext(fn, params, options);
|
|
335
|
+
}
|
|
336
|
+
},
|
|
323
337
|
{
|
|
324
338
|
key: "callCloudFunction",
|
|
325
339
|
value: function callCloudFunction(fn, params) {
|
|
@@ -436,6 +450,21 @@ function _ts_generator$a(thisArg, body) {
|
|
|
436
450
|
});
|
|
437
451
|
}
|
|
438
452
|
},
|
|
453
|
+
{
|
|
454
|
+
/**
|
|
455
|
+
* Convenience function for calling the function without an authenticated user context.
|
|
456
|
+
*
|
|
457
|
+
* Equivalent to `fn(params, options ?? {})`.
|
|
458
|
+
*
|
|
459
|
+
* @param fn - Wrapped gen 2 callable request to invoke.
|
|
460
|
+
* @param params - Request payload to pass to the callable, simulating the JSON body of an HTTP call.
|
|
461
|
+
* @param options - Optional callable options.
|
|
462
|
+
* @returns Promise resolving to the callable's return value.
|
|
463
|
+
*/ key: "callWrappedFunctionWithoutUserContext",
|
|
464
|
+
value: function callWrappedFunctionWithoutUserContext(fn, params, options) {
|
|
465
|
+
return fn(params, options !== null && options !== void 0 ? options : {});
|
|
466
|
+
}
|
|
467
|
+
},
|
|
439
468
|
{
|
|
440
469
|
key: "callCloudFunction",
|
|
441
470
|
value: function callCloudFunction(fn, params) {
|
package/test/index.esm.js
CHANGED
|
@@ -319,6 +319,20 @@ function _ts_generator$a(thisArg, body) {
|
|
|
319
319
|
return this.instance.callWrappedFunction(fn, params, skipJsonConversion);
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
|
+
{
|
|
323
|
+
/**
|
|
324
|
+
* Convenience function for calling the function without an authenticated user context.
|
|
325
|
+
*
|
|
326
|
+
* Equivalent to `fn(params, options ?? {})`.
|
|
327
|
+
*
|
|
328
|
+
* @param fn
|
|
329
|
+
* @param params
|
|
330
|
+
* @returns
|
|
331
|
+
*/ key: "callWrappedFunctionWithoutUserContext",
|
|
332
|
+
value: function callWrappedFunctionWithoutUserContext(fn, params, options) {
|
|
333
|
+
return this.instance.callWrappedFunctionWithoutUserContext(fn, params, options);
|
|
334
|
+
}
|
|
335
|
+
},
|
|
322
336
|
{
|
|
323
337
|
key: "callCloudFunction",
|
|
324
338
|
value: function callCloudFunction(fn, params) {
|
|
@@ -435,6 +449,21 @@ function _ts_generator$a(thisArg, body) {
|
|
|
435
449
|
});
|
|
436
450
|
}
|
|
437
451
|
},
|
|
452
|
+
{
|
|
453
|
+
/**
|
|
454
|
+
* Convenience function for calling the function without an authenticated user context.
|
|
455
|
+
*
|
|
456
|
+
* Equivalent to `fn(params, options ?? {})`.
|
|
457
|
+
*
|
|
458
|
+
* @param fn - Wrapped gen 2 callable request to invoke.
|
|
459
|
+
* @param params - Request payload to pass to the callable, simulating the JSON body of an HTTP call.
|
|
460
|
+
* @param options - Optional callable options.
|
|
461
|
+
* @returns Promise resolving to the callable's return value.
|
|
462
|
+
*/ key: "callWrappedFunctionWithoutUserContext",
|
|
463
|
+
value: function callWrappedFunctionWithoutUserContext(fn, params, options) {
|
|
464
|
+
return fn(params, options !== null && options !== void 0 ? options : {});
|
|
465
|
+
}
|
|
466
|
+
},
|
|
438
467
|
{
|
|
439
468
|
key: "callCloudFunction",
|
|
440
469
|
value: function callCloudFunction(fn, params) {
|
package/test/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/test",
|
|
3
|
-
"version": "13.12.
|
|
3
|
+
"version": "13.12.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.12.
|
|
6
|
-
"@dereekb/date": "13.12.
|
|
7
|
-
"@dereekb/firebase": "13.12.
|
|
8
|
-
"@dereekb/firebase-server": "13.12.
|
|
9
|
-
"@dereekb/firebase-server/oidc": "13.12.
|
|
10
|
-
"@dereekb/model": "13.12.
|
|
11
|
-
"@dereekb/nestjs": "13.12.
|
|
12
|
-
"@dereekb/rxjs": "13.12.
|
|
13
|
-
"@dereekb/util": "13.12.
|
|
5
|
+
"@dereekb/analytics": "13.12.4",
|
|
6
|
+
"@dereekb/date": "13.12.4",
|
|
7
|
+
"@dereekb/firebase": "13.12.4",
|
|
8
|
+
"@dereekb/firebase-server": "13.12.4",
|
|
9
|
+
"@dereekb/firebase-server/oidc": "13.12.4",
|
|
10
|
+
"@dereekb/model": "13.12.4",
|
|
11
|
+
"@dereekb/nestjs": "13.12.4",
|
|
12
|
+
"@dereekb/rxjs": "13.12.4",
|
|
13
|
+
"@dereekb/util": "13.12.4",
|
|
14
14
|
"@google-cloud/firestore": "^7.11.6",
|
|
15
15
|
"@google-cloud/storage": "^7.19.0",
|
|
16
16
|
"@nestjs/common": "^11.1.19",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"supertest": "^7.2.2"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@dereekb/nestjs": "13.12.
|
|
26
|
+
"@dereekb/nestjs": "13.12.4"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
"./package.json": "./package.json",
|
|
@@ -42,6 +42,7 @@ export interface AuthorizedUserTestContext {
|
|
|
42
42
|
loadDecodedIdToken(): Promise<DecodedIdToken>;
|
|
43
43
|
makeContextOptions(): Promise<ContextOptions>;
|
|
44
44
|
callWrappedFunction<F extends WrappedCallableRequest<any, any>>(fn: F, params: WrappedCallableRequestParams<F>, skipJsonConversion?: boolean): Promise<WrappedCallableRequestOutput<F>>;
|
|
45
|
+
callWrappedFunctionWithoutUserContext<F extends WrappedCallableRequest<any, any>>(fn: F, params: WrappedCallableRequestParams<F>, options?: CallableContextOptions): Promise<WrappedCallableRequestOutput<F>>;
|
|
45
46
|
/**
|
|
46
47
|
* Used for calling any non-callable gen 2 function (e.g. scheduled functions, cloud functions, blocking functions) or any gen 1 function.
|
|
47
48
|
*
|
|
@@ -75,6 +76,16 @@ export declare class AuthorizedUserTestContextFixture<PI extends FirebaseAdminTe
|
|
|
75
76
|
loadDecodedIdToken(): Promise<DecodedIdToken>;
|
|
76
77
|
makeContextOptions(): Promise<ContextOptions>;
|
|
77
78
|
callWrappedFunction<F extends WrappedCallableRequest<any, any>>(fn: F, params: WrappedCallableRequestParams<F>, skipJsonConversion?: boolean): Promise<WrappedCallableRequestOutput<F>>;
|
|
79
|
+
/**
|
|
80
|
+
* Convenience function for calling the function without an authenticated user context.
|
|
81
|
+
*
|
|
82
|
+
* Equivalent to `fn(params, options ?? {})`.
|
|
83
|
+
*
|
|
84
|
+
* @param fn
|
|
85
|
+
* @param params
|
|
86
|
+
* @returns
|
|
87
|
+
*/
|
|
88
|
+
callWrappedFunctionWithoutUserContext<F extends WrappedCallableRequest<any, any>>(fn: F, params: WrappedCallableRequestParams<F>, options?: CallableContextOptions): Promise<WrappedCallableRequestOutput<F>>;
|
|
78
89
|
callCloudFunction<F extends WrappedCloudFunction<I, O>, I extends object, O = unknown>(fn: F, params: I, skipJsonConversion?: boolean): Promise<O>;
|
|
79
90
|
callCloudFunction<F extends WrappedScheduledFunction, O = unknown>(fn: F): Promise<O>;
|
|
80
91
|
callCloudFunction<F extends WrappedBlockingFunctionWithHandler<E, O>, E extends object, O>(fn: F, params: E): Promise<O>;
|
|
@@ -115,6 +126,17 @@ export declare class AuthorizedUserTestContextInstance<PI extends FirebaseAdminT
|
|
|
115
126
|
* @returns Promise resolving to the callable's return value.
|
|
116
127
|
*/
|
|
117
128
|
callWrappedFunction<F extends WrappedCallableRequest<any, any>>(fn: F, params: WrappedCallableRequestParams<F>, skipJsonConversion?: boolean): Promise<WrappedCallableRequestOutput<F>>;
|
|
129
|
+
/**
|
|
130
|
+
* Convenience function for calling the function without an authenticated user context.
|
|
131
|
+
*
|
|
132
|
+
* Equivalent to `fn(params, options ?? {})`.
|
|
133
|
+
*
|
|
134
|
+
* @param fn - Wrapped gen 2 callable request to invoke.
|
|
135
|
+
* @param params - Request payload to pass to the callable, simulating the JSON body of an HTTP call.
|
|
136
|
+
* @param options - Optional callable options.
|
|
137
|
+
* @returns Promise resolving to the callable's return value.
|
|
138
|
+
*/
|
|
139
|
+
callWrappedFunctionWithoutUserContext<F extends WrappedCallableRequest<any, any>>(fn: F, params: WrappedCallableRequestParams<F>, options?: CallableContextOptions): Promise<WrappedCallableRequestOutput<F>>;
|
|
118
140
|
/**
|
|
119
141
|
* Calls a wrapped gen 2 scheduled/blocking/event function with the input params and context options from makeContextOptions().
|
|
120
142
|
*
|
package/twilio/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/twilio",
|
|
3
|
-
"version": "13.12.
|
|
3
|
+
"version": "13.12.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/date": "13.12.
|
|
6
|
-
"@dereekb/firebase": "13.12.
|
|
7
|
-
"@dereekb/firebase-server": "13.12.
|
|
8
|
-
"@dereekb/model": "13.12.
|
|
9
|
-
"@dereekb/nestjs": "13.12.
|
|
10
|
-
"@dereekb/rxjs": "13.12.
|
|
11
|
-
"@dereekb/util": "13.12.
|
|
5
|
+
"@dereekb/date": "13.12.4",
|
|
6
|
+
"@dereekb/firebase": "13.12.4",
|
|
7
|
+
"@dereekb/firebase-server": "13.12.4",
|
|
8
|
+
"@dereekb/model": "13.12.4",
|
|
9
|
+
"@dereekb/nestjs": "13.12.4",
|
|
10
|
+
"@dereekb/rxjs": "13.12.4",
|
|
11
|
+
"@dereekb/util": "13.12.4"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
"./package.json": "./package.json",
|
package/zoho/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/zoho",
|
|
3
|
-
"version": "13.12.
|
|
3
|
+
"version": "13.12.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.12.
|
|
6
|
-
"@dereekb/date": "13.12.
|
|
7
|
-
"@dereekb/model": "13.12.
|
|
8
|
-
"@dereekb/nestjs": "13.12.
|
|
9
|
-
"@dereekb/rxjs": "13.12.
|
|
10
|
-
"@dereekb/firebase": "13.12.
|
|
11
|
-
"@dereekb/util": "13.12.
|
|
12
|
-
"@dereekb/zoho": "13.12.
|
|
5
|
+
"@dereekb/analytics": "13.12.4",
|
|
6
|
+
"@dereekb/date": "13.12.4",
|
|
7
|
+
"@dereekb/model": "13.12.4",
|
|
8
|
+
"@dereekb/nestjs": "13.12.4",
|
|
9
|
+
"@dereekb/rxjs": "13.12.4",
|
|
10
|
+
"@dereekb/firebase": "13.12.4",
|
|
11
|
+
"@dereekb/util": "13.12.4",
|
|
12
|
+
"@dereekb/zoho": "13.12.4"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": "./package.json",
|