@mastra/nestjs 0.1.8-alpha.0 → 0.1.8-alpha.2

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 (184) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/_types/rxjs/dist/types/index.d.ts +173 -0
  3. package/dist/_types/rxjs/dist/types/internal/AnyCatcher.d.ts +10 -0
  4. package/dist/_types/rxjs/dist/types/internal/AsyncSubject.d.ts +15 -0
  5. package/dist/_types/rxjs/dist/types/internal/BehaviorSubject.d.ts +15 -0
  6. package/dist/_types/rxjs/dist/types/internal/Notification.d.ts +180 -0
  7. package/dist/_types/rxjs/dist/types/internal/Observable.d.ts +128 -0
  8. package/dist/_types/rxjs/dist/types/internal/Operator.d.ts +9 -0
  9. package/dist/_types/rxjs/dist/types/internal/ReplaySubject.d.ts +49 -0
  10. package/dist/_types/rxjs/dist/types/internal/Scheduler.d.ts +55 -0
  11. package/dist/_types/rxjs/dist/types/internal/Subject.d.ts +58 -0
  12. package/dist/_types/rxjs/dist/types/internal/Subscriber.d.ts +78 -0
  13. package/dist/_types/rxjs/dist/types/internal/Subscription.d.ts +96 -0
  14. package/dist/_types/rxjs/dist/types/internal/config.d.ts +73 -0
  15. package/dist/_types/rxjs/dist/types/internal/firstValueFrom.d.ts +7 -0
  16. package/dist/_types/rxjs/dist/types/internal/lastValueFrom.d.ts +7 -0
  17. package/dist/_types/rxjs/dist/types/internal/observable/ConnectableObservable.d.ts +42 -0
  18. package/dist/_types/rxjs/dist/types/internal/observable/bindCallback.d.ts +5 -0
  19. package/dist/_types/rxjs/dist/types/internal/observable/bindNodeCallback.d.ts +5 -0
  20. package/dist/_types/rxjs/dist/types/internal/observable/combineLatest.d.ts +33 -0
  21. package/dist/_types/rxjs/dist/types/internal/observable/concat.d.ts +5 -0
  22. package/dist/_types/rxjs/dist/types/internal/observable/connectable.d.ts +27 -0
  23. package/dist/_types/rxjs/dist/types/internal/observable/defer.d.ts +52 -0
  24. package/dist/_types/rxjs/dist/types/internal/observable/dom/animationFrames.d.ts +76 -0
  25. package/dist/_types/rxjs/dist/types/internal/observable/empty.d.ts +72 -0
  26. package/dist/_types/rxjs/dist/types/internal/observable/forkJoin.d.ts +24 -0
  27. package/dist/_types/rxjs/dist/types/internal/observable/from.d.ts +6 -0
  28. package/dist/_types/rxjs/dist/types/internal/observable/fromEvent.d.ts +45 -0
  29. package/dist/_types/rxjs/dist/types/internal/observable/fromEventPattern.d.ts +5 -0
  30. package/dist/_types/rxjs/dist/types/internal/observable/generate.d.ts +311 -0
  31. package/dist/_types/rxjs/dist/types/internal/observable/iif.d.ts +82 -0
  32. package/dist/_types/rxjs/dist/types/internal/observable/interval.d.ts +49 -0
  33. package/dist/_types/rxjs/dist/types/internal/observable/merge.d.ts +9 -0
  34. package/dist/_types/rxjs/dist/types/internal/observable/never.d.ts +40 -0
  35. package/dist/_types/rxjs/dist/types/internal/observable/of.d.ts +14 -0
  36. package/dist/_types/rxjs/dist/types/internal/observable/onErrorResumeNext.d.ts +5 -0
  37. package/dist/_types/rxjs/dist/types/internal/observable/pairs.d.ts +19 -0
  38. package/dist/_types/rxjs/dist/types/internal/observable/partition.d.ts +9 -0
  39. package/dist/_types/rxjs/dist/types/internal/observable/race.d.ts +12 -0
  40. package/dist/_types/rxjs/dist/types/internal/observable/range.d.ts +8 -0
  41. package/dist/_types/rxjs/dist/types/internal/observable/throwError.d.ts +115 -0
  42. package/dist/_types/rxjs/dist/types/internal/observable/timer.d.ts +126 -0
  43. package/dist/_types/rxjs/dist/types/internal/observable/using.d.ts +32 -0
  44. package/dist/_types/rxjs/dist/types/internal/observable/zip.d.ts +7 -0
  45. package/dist/_types/rxjs/dist/types/internal/operators/audit.d.ts +48 -0
  46. package/dist/_types/rxjs/dist/types/internal/operators/auditTime.d.ts +50 -0
  47. package/dist/_types/rxjs/dist/types/internal/operators/buffer.d.ts +41 -0
  48. package/dist/_types/rxjs/dist/types/internal/operators/bufferCount.d.ts +54 -0
  49. package/dist/_types/rxjs/dist/types/internal/operators/bufferTime.d.ts +5 -0
  50. package/dist/_types/rxjs/dist/types/internal/operators/bufferToggle.d.ts +46 -0
  51. package/dist/_types/rxjs/dist/types/internal/operators/bufferWhen.d.ts +41 -0
  52. package/dist/_types/rxjs/dist/types/internal/operators/catchError.d.ts +4 -0
  53. package/dist/_types/rxjs/dist/types/internal/operators/combineAll.d.ts +6 -0
  54. package/dist/_types/rxjs/dist/types/internal/operators/combineLatestAll.d.ts +6 -0
  55. package/dist/_types/rxjs/dist/types/internal/operators/combineLatestWith.d.ts +43 -0
  56. package/dist/_types/rxjs/dist/types/internal/operators/concatAll.d.ts +59 -0
  57. package/dist/_types/rxjs/dist/types/internal/operators/concatMap.d.ts +7 -0
  58. package/dist/_types/rxjs/dist/types/internal/operators/concatMapTo.d.ts +8 -0
  59. package/dist/_types/rxjs/dist/types/internal/operators/concatWith.d.ts +43 -0
  60. package/dist/_types/rxjs/dist/types/internal/operators/connect.d.ts +87 -0
  61. package/dist/_types/rxjs/dist/types/internal/operators/count.d.ts +58 -0
  62. package/dist/_types/rxjs/dist/types/internal/operators/debounce.d.ts +61 -0
  63. package/dist/_types/rxjs/dist/types/internal/operators/debounceTime.d.ts +60 -0
  64. package/dist/_types/rxjs/dist/types/internal/operators/defaultIfEmpty.d.ts +38 -0
  65. package/dist/_types/rxjs/dist/types/internal/operators/delay.d.ts +59 -0
  66. package/dist/_types/rxjs/dist/types/internal/operators/delayWhen.d.ts +6 -0
  67. package/dist/_types/rxjs/dist/types/internal/operators/dematerialize.d.ts +51 -0
  68. package/dist/_types/rxjs/dist/types/internal/operators/distinct.d.ts +60 -0
  69. package/dist/_types/rxjs/dist/types/internal/operators/distinctUntilChanged.d.ts +4 -0
  70. package/dist/_types/rxjs/dist/types/internal/operators/distinctUntilKeyChanged.d.ts +4 -0
  71. package/dist/_types/rxjs/dist/types/internal/operators/elementAt.d.ts +51 -0
  72. package/dist/_types/rxjs/dist/types/internal/operators/endWith.d.ts +7 -0
  73. package/dist/_types/rxjs/dist/types/internal/operators/every.d.ts +9 -0
  74. package/dist/_types/rxjs/dist/types/internal/operators/exhaust.d.ts +6 -0
  75. package/dist/_types/rxjs/dist/types/internal/operators/exhaustAll.d.ts +47 -0
  76. package/dist/_types/rxjs/dist/types/internal/operators/exhaustMap.d.ts +7 -0
  77. package/dist/_types/rxjs/dist/types/internal/operators/expand.d.ts +9 -0
  78. package/dist/_types/rxjs/dist/types/internal/operators/filter.d.ts +9 -0
  79. package/dist/_types/rxjs/dist/types/internal/operators/finalize.d.ts +64 -0
  80. package/dist/_types/rxjs/dist/types/internal/operators/find.d.ts +12 -0
  81. package/dist/_types/rxjs/dist/types/internal/operators/findIndex.d.ts +9 -0
  82. package/dist/_types/rxjs/dist/types/internal/operators/first.d.ts +9 -0
  83. package/dist/_types/rxjs/dist/types/internal/operators/flatMap.d.ts +6 -0
  84. package/dist/_types/rxjs/dist/types/internal/operators/groupBy.d.ts +119 -0
  85. package/dist/_types/rxjs/dist/types/internal/operators/ignoreElements.d.ts +38 -0
  86. package/dist/_types/rxjs/dist/types/internal/operators/isEmpty.d.ts +64 -0
  87. package/dist/_types/rxjs/dist/types/internal/operators/last.d.ts +8 -0
  88. package/dist/_types/rxjs/dist/types/internal/operators/map.d.ts +5 -0
  89. package/dist/_types/rxjs/dist/types/internal/operators/mapTo.d.ts +10 -0
  90. package/dist/_types/rxjs/dist/types/internal/operators/materialize.d.ts +52 -0
  91. package/dist/_types/rxjs/dist/types/internal/operators/max.d.ts +49 -0
  92. package/dist/_types/rxjs/dist/types/internal/operators/mergeAll.d.ts +62 -0
  93. package/dist/_types/rxjs/dist/types/internal/operators/mergeMap.d.ts +7 -0
  94. package/dist/_types/rxjs/dist/types/internal/operators/mergeMapTo.d.ts +9 -0
  95. package/dist/_types/rxjs/dist/types/internal/operators/mergeScan.d.ts +69 -0
  96. package/dist/_types/rxjs/dist/types/internal/operators/mergeWith.d.ts +44 -0
  97. package/dist/_types/rxjs/dist/types/internal/operators/min.d.ts +49 -0
  98. package/dist/_types/rxjs/dist/types/internal/operators/multicast.d.ts +63 -0
  99. package/dist/_types/rxjs/dist/types/internal/operators/observeOn.d.ts +56 -0
  100. package/dist/_types/rxjs/dist/types/internal/operators/onErrorResumeNextWith.d.ts +8 -0
  101. package/dist/_types/rxjs/dist/types/internal/operators/pairwise.d.ts +46 -0
  102. package/dist/_types/rxjs/dist/types/internal/operators/pluck.d.ts +18 -0
  103. package/dist/_types/rxjs/dist/types/internal/operators/publish.d.ts +30 -0
  104. package/dist/_types/rxjs/dist/types/internal/operators/publishBehavior.d.ts +19 -0
  105. package/dist/_types/rxjs/dist/types/internal/operators/publishLast.d.ts +69 -0
  106. package/dist/_types/rxjs/dist/types/internal/operators/publishReplay.d.ts +56 -0
  107. package/dist/_types/rxjs/dist/types/internal/operators/raceWith.d.ts +29 -0
  108. package/dist/_types/rxjs/dist/types/internal/operators/reduce.d.ts +5 -0
  109. package/dist/_types/rxjs/dist/types/internal/operators/refCount.d.ts +61 -0
  110. package/dist/_types/rxjs/dist/types/internal/operators/repeat.d.ts +108 -0
  111. package/dist/_types/rxjs/dist/types/internal/operators/repeatWhen.d.ts +38 -0
  112. package/dist/_types/rxjs/dist/types/internal/operators/retry.d.ts +28 -0
  113. package/dist/_types/rxjs/dist/types/internal/operators/retryWhen.d.ts +61 -0
  114. package/dist/_types/rxjs/dist/types/internal/operators/sample.d.ts +43 -0
  115. package/dist/_types/rxjs/dist/types/internal/operators/sampleTime.d.ts +46 -0
  116. package/dist/_types/rxjs/dist/types/internal/operators/scan.d.ts +5 -0
  117. package/dist/_types/rxjs/dist/types/internal/operators/sequenceEqual.d.ts +60 -0
  118. package/dist/_types/rxjs/dist/types/internal/operators/share.d.ts +43 -0
  119. package/dist/_types/rxjs/dist/types/internal/operators/shareReplay.d.ts +10 -0
  120. package/dist/_types/rxjs/dist/types/internal/operators/single.d.ts +5 -0
  121. package/dist/_types/rxjs/dist/types/internal/operators/skip.d.ts +36 -0
  122. package/dist/_types/rxjs/dist/types/internal/operators/skipLast.d.ts +45 -0
  123. package/dist/_types/rxjs/dist/types/internal/operators/skipUntil.d.ts +48 -0
  124. package/dist/_types/rxjs/dist/types/internal/operators/skipWhile.d.ts +5 -0
  125. package/dist/_types/rxjs/dist/types/internal/operators/startWith.d.ts +7 -0
  126. package/dist/_types/rxjs/dist/types/internal/operators/subscribeOn.d.ts +62 -0
  127. package/dist/_types/rxjs/dist/types/internal/operators/switchAll.d.ts +61 -0
  128. package/dist/_types/rxjs/dist/types/internal/operators/switchMap.d.ts +7 -0
  129. package/dist/_types/rxjs/dist/types/internal/operators/switchMapTo.d.ts +8 -0
  130. package/dist/_types/rxjs/dist/types/internal/operators/switchScan.d.ts +20 -0
  131. package/dist/_types/rxjs/dist/types/internal/operators/take.d.ts +45 -0
  132. package/dist/_types/rxjs/dist/types/internal/operators/takeLast.d.ts +42 -0
  133. package/dist/_types/rxjs/dist/types/internal/operators/takeUntil.d.ts +42 -0
  134. package/dist/_types/rxjs/dist/types/internal/operators/takeWhile.d.ts +8 -0
  135. package/dist/_types/rxjs/dist/types/internal/operators/tap.d.ts +72 -0
  136. package/dist/_types/rxjs/dist/types/internal/operators/throttle.d.ts +78 -0
  137. package/dist/_types/rxjs/dist/types/internal/operators/throttleTime.d.ts +53 -0
  138. package/dist/_types/rxjs/dist/types/internal/operators/throwIfEmpty.d.ts +39 -0
  139. package/dist/_types/rxjs/dist/types/internal/operators/timeInterval.d.ts +50 -0
  140. package/dist/_types/rxjs/dist/types/internal/operators/timeout.d.ts +257 -0
  141. package/dist/_types/rxjs/dist/types/internal/operators/timeoutWith.d.ts +8 -0
  142. package/dist/_types/rxjs/dist/types/internal/operators/timestamp.d.ts +35 -0
  143. package/dist/_types/rxjs/dist/types/internal/operators/toArray.d.ts +33 -0
  144. package/dist/_types/rxjs/dist/types/internal/operators/window.d.ts +48 -0
  145. package/dist/_types/rxjs/dist/types/internal/operators/windowCount.d.ts +66 -0
  146. package/dist/_types/rxjs/dist/types/internal/operators/windowTime.d.ts +6 -0
  147. package/dist/_types/rxjs/dist/types/internal/operators/windowToggle.d.ts +51 -0
  148. package/dist/_types/rxjs/dist/types/internal/operators/windowWhen.d.ts +48 -0
  149. package/dist/_types/rxjs/dist/types/internal/operators/withLatestFrom.d.ts +4 -0
  150. package/dist/_types/rxjs/dist/types/internal/operators/zipAll.d.ts +14 -0
  151. package/dist/_types/rxjs/dist/types/internal/operators/zipWith.d.ts +26 -0
  152. package/dist/_types/rxjs/dist/types/internal/scheduled/scheduled.d.ts +15 -0
  153. package/dist/_types/rxjs/dist/types/internal/scheduler/Action.d.ts +32 -0
  154. package/dist/_types/rxjs/dist/types/internal/scheduler/AnimationFrameScheduler.d.ts +6 -0
  155. package/dist/_types/rxjs/dist/types/internal/scheduler/AsapScheduler.d.ts +6 -0
  156. package/dist/_types/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts +25 -0
  157. package/dist/_types/rxjs/dist/types/internal/scheduler/AsyncScheduler.d.ts +9 -0
  158. package/dist/_types/rxjs/dist/types/internal/scheduler/QueueScheduler.d.ts +4 -0
  159. package/dist/_types/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts +49 -0
  160. package/dist/_types/rxjs/dist/types/internal/scheduler/animationFrame.d.ts +38 -0
  161. package/dist/_types/rxjs/dist/types/internal/scheduler/asap.d.ts +41 -0
  162. package/dist/_types/rxjs/dist/types/internal/scheduler/async.d.ts +53 -0
  163. package/dist/_types/rxjs/dist/types/internal/scheduler/queue.d.ts +69 -0
  164. package/dist/_types/rxjs/dist/types/internal/scheduler/timerHandle.d.ts +2 -0
  165. package/dist/_types/rxjs/dist/types/internal/symbol/observable.d.ts +8 -0
  166. package/dist/_types/rxjs/dist/types/internal/types.d.ts +301 -0
  167. package/dist/_types/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts +21 -0
  168. package/dist/_types/rxjs/dist/types/internal/util/EmptyError.d.ts +23 -0
  169. package/dist/_types/rxjs/dist/types/internal/util/NotFoundError.d.ts +19 -0
  170. package/dist/_types/rxjs/dist/types/internal/util/ObjectUnsubscribedError.d.ts +20 -0
  171. package/dist/_types/rxjs/dist/types/internal/util/SequenceError.d.ts +19 -0
  172. package/dist/_types/rxjs/dist/types/internal/util/UnsubscriptionError.d.ts +16 -0
  173. package/dist/_types/rxjs/dist/types/internal/util/identity.d.ts +44 -0
  174. package/dist/_types/rxjs/dist/types/internal/util/isObservable.d.ts +8 -0
  175. package/dist/_types/rxjs/dist/types/internal/util/noop.d.ts +2 -0
  176. package/dist/_types/rxjs/dist/types/internal/util/pipe.d.ts +14 -0
  177. package/dist/index.cjs +3 -228
  178. package/dist/index.cjs.map +1 -1
  179. package/dist/index.js +1 -226
  180. package/dist/index.js.map +1 -1
  181. package/dist/interceptors/request-tracking.interceptor.d.ts +1 -1
  182. package/dist/interceptors/streaming.interceptor.d.ts +1 -1
  183. package/dist/interceptors/tracing.interceptor.d.ts +1 -1
  184. package/package.json +9 -8
@@ -0,0 +1,19 @@
1
+ export interface NotFoundError extends Error {
2
+ }
3
+ export interface NotFoundErrorCtor {
4
+ /**
5
+ * @deprecated Internal implementation detail. Do not construct error instances.
6
+ * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
7
+ */
8
+ new (message: string): NotFoundError;
9
+ }
10
+ /**
11
+ * An error thrown when a value or values are missing from an
12
+ * observable sequence.
13
+ *
14
+ * @see {@link operators/single}
15
+ *
16
+ * @class NotFoundError
17
+ */
18
+ export declare const NotFoundError: NotFoundErrorCtor;
19
+ //# sourceMappingURL=NotFoundError.d.ts.map
@@ -0,0 +1,20 @@
1
+ export interface ObjectUnsubscribedError extends Error {
2
+ }
3
+ export interface ObjectUnsubscribedErrorCtor {
4
+ /**
5
+ * @deprecated Internal implementation detail. Do not construct error instances.
6
+ * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
7
+ */
8
+ new (): ObjectUnsubscribedError;
9
+ }
10
+ /**
11
+ * An error thrown when an action is invalid because the object has been
12
+ * unsubscribed.
13
+ *
14
+ * @see {@link Subject}
15
+ * @see {@link BehaviorSubject}
16
+ *
17
+ * @class ObjectUnsubscribedError
18
+ */
19
+ export declare const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor;
20
+ //# sourceMappingURL=ObjectUnsubscribedError.d.ts.map
@@ -0,0 +1,19 @@
1
+ export interface SequenceError extends Error {
2
+ }
3
+ export interface SequenceErrorCtor {
4
+ /**
5
+ * @deprecated Internal implementation detail. Do not construct error instances.
6
+ * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
7
+ */
8
+ new (message: string): SequenceError;
9
+ }
10
+ /**
11
+ * An error thrown when something is wrong with the sequence of
12
+ * values arriving on the observable.
13
+ *
14
+ * @see {@link operators/single}
15
+ *
16
+ * @class SequenceError
17
+ */
18
+ export declare const SequenceError: SequenceErrorCtor;
19
+ //# sourceMappingURL=SequenceError.d.ts.map
@@ -0,0 +1,16 @@
1
+ export interface UnsubscriptionError extends Error {
2
+ readonly errors: any[];
3
+ }
4
+ export interface UnsubscriptionErrorCtor {
5
+ /**
6
+ * @deprecated Internal implementation detail. Do not construct error instances.
7
+ * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269
8
+ */
9
+ new (errors: any[]): UnsubscriptionError;
10
+ }
11
+ /**
12
+ * An error thrown when one or more errors have occurred during the
13
+ * `unsubscribe` of a {@link Subscription}.
14
+ */
15
+ export declare const UnsubscriptionError: UnsubscriptionErrorCtor;
16
+ //# sourceMappingURL=UnsubscriptionError.d.ts.map
@@ -0,0 +1,44 @@
1
+ /**
2
+ * This function takes one parameter and just returns it. Simply put,
3
+ * this is like `<T>(x: T): T => x`.
4
+ *
5
+ * ## Examples
6
+ *
7
+ * This is useful in some cases when using things like `mergeMap`
8
+ *
9
+ * ```ts
10
+ * import { interval, take, map, range, mergeMap, identity } from 'rxjs';
11
+ *
12
+ * const source$ = interval(1000).pipe(take(5));
13
+ *
14
+ * const result$ = source$.pipe(
15
+ * map(i => range(i)),
16
+ * mergeMap(identity) // same as mergeMap(x => x)
17
+ * );
18
+ *
19
+ * result$.subscribe({
20
+ * next: console.log
21
+ * });
22
+ * ```
23
+ *
24
+ * Or when you want to selectively apply an operator
25
+ *
26
+ * ```ts
27
+ * import { interval, take, identity } from 'rxjs';
28
+ *
29
+ * const shouldLimit = () => Math.random() < 0.5;
30
+ *
31
+ * const source$ = interval(1000);
32
+ *
33
+ * const result$ = source$.pipe(shouldLimit() ? take(5) : identity);
34
+ *
35
+ * result$.subscribe({
36
+ * next: console.log
37
+ * });
38
+ * ```
39
+ *
40
+ * @param x Any value that is returned by this function
41
+ * @returns The value passed as the first parameter to this function
42
+ */
43
+ export declare function identity<T>(x: T): T;
44
+ //# sourceMappingURL=identity.d.ts.map
@@ -0,0 +1,8 @@
1
+ /** prettier */
2
+ import { Observable } from '../Observable';
3
+ /**
4
+ * Tests to see if the object is an RxJS {@link Observable}
5
+ * @param obj the object to test
6
+ */
7
+ export declare function isObservable(obj: any): obj is Observable<unknown>;
8
+ //# sourceMappingURL=isObservable.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare function noop(): void;
2
+ //# sourceMappingURL=noop.d.ts.map
@@ -0,0 +1,14 @@
1
+ import { identity } from './identity';
2
+ import { UnaryFunction } from '../types';
3
+ export declare function pipe(): typeof identity;
4
+ export declare function pipe<T, A>(fn1: UnaryFunction<T, A>): UnaryFunction<T, A>;
5
+ export declare function pipe<T, A, B>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>): UnaryFunction<T, B>;
6
+ export declare function pipe<T, A, B, C>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>): UnaryFunction<T, C>;
7
+ export declare function pipe<T, A, B, C, D>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>, fn4: UnaryFunction<C, D>): UnaryFunction<T, D>;
8
+ export declare function pipe<T, A, B, C, D, E>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>, fn4: UnaryFunction<C, D>, fn5: UnaryFunction<D, E>): UnaryFunction<T, E>;
9
+ export declare function pipe<T, A, B, C, D, E, F>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>, fn4: UnaryFunction<C, D>, fn5: UnaryFunction<D, E>, fn6: UnaryFunction<E, F>): UnaryFunction<T, F>;
10
+ export declare function pipe<T, A, B, C, D, E, F, G>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>, fn4: UnaryFunction<C, D>, fn5: UnaryFunction<D, E>, fn6: UnaryFunction<E, F>, fn7: UnaryFunction<F, G>): UnaryFunction<T, G>;
11
+ export declare function pipe<T, A, B, C, D, E, F, G, H>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>, fn4: UnaryFunction<C, D>, fn5: UnaryFunction<D, E>, fn6: UnaryFunction<E, F>, fn7: UnaryFunction<F, G>, fn8: UnaryFunction<G, H>): UnaryFunction<T, H>;
12
+ export declare function pipe<T, A, B, C, D, E, F, G, H, I>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>, fn4: UnaryFunction<C, D>, fn5: UnaryFunction<D, E>, fn6: UnaryFunction<E, F>, fn7: UnaryFunction<F, G>, fn8: UnaryFunction<G, H>, fn9: UnaryFunction<H, I>): UnaryFunction<T, I>;
13
+ export declare function pipe<T, A, B, C, D, E, F, G, H, I>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>, fn4: UnaryFunction<C, D>, fn5: UnaryFunction<D, E>, fn6: UnaryFunction<E, F>, fn7: UnaryFunction<F, G>, fn8: UnaryFunction<G, H>, fn9: UnaryFunction<H, I>, ...fns: UnaryFunction<any, any>[]): UnaryFunction<T, unknown>;
14
+ //# sourceMappingURL=pipe.d.ts.map
package/dist/index.cjs CHANGED
@@ -3,6 +3,7 @@
3
3
  var common = require('@nestjs/common');
4
4
  var serverAdapter = require('@mastra/server/server-adapter');
5
5
  var error = require('@mastra/server/handlers/error');
6
+ var zod = require('zod');
6
7
  var auth = require('@mastra/server/auth');
7
8
  var requestContext = require('@mastra/core/request-context');
8
9
  var core = require('@nestjs/core');
@@ -11652,232 +11653,6 @@ var MASTRA = /* @__PURE__ */ Symbol("MASTRA");
11652
11653
  var MASTRA_OPTIONS = /* @__PURE__ */ Symbol("MASTRA_OPTIONS");
11653
11654
  var IS_PUBLIC_KEY = "isPublic";
11654
11655
  var THROTTLE_KEY = "mastraThrottle";
11655
-
11656
- // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.js
11657
- var util;
11658
- (function(util2) {
11659
- util2.assertEqual = (_) => {
11660
- };
11661
- function assertIs(_arg) {
11662
- }
11663
- __name(assertIs, "assertIs");
11664
- util2.assertIs = assertIs;
11665
- function assertNever(_x) {
11666
- throw new Error();
11667
- }
11668
- __name(assertNever, "assertNever");
11669
- util2.assertNever = assertNever;
11670
- util2.arrayToEnum = (items) => {
11671
- const obj = {};
11672
- for (const item of items) {
11673
- obj[item] = item;
11674
- }
11675
- return obj;
11676
- };
11677
- util2.getValidEnumValues = (obj) => {
11678
- const validKeys = util2.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
11679
- const filtered = {};
11680
- for (const k of validKeys) {
11681
- filtered[k] = obj[k];
11682
- }
11683
- return util2.objectValues(filtered);
11684
- };
11685
- util2.objectValues = (obj) => {
11686
- return util2.objectKeys(obj).map(function(e) {
11687
- return obj[e];
11688
- });
11689
- };
11690
- util2.objectKeys = typeof Object.keys === "function" ? (obj) => Object.keys(obj) : (object) => {
11691
- const keys = [];
11692
- for (const key in object) {
11693
- if (Object.prototype.hasOwnProperty.call(object, key)) {
11694
- keys.push(key);
11695
- }
11696
- }
11697
- return keys;
11698
- };
11699
- util2.find = (arr, checker) => {
11700
- for (const item of arr) {
11701
- if (checker(item)) return item;
11702
- }
11703
- return void 0;
11704
- };
11705
- util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
11706
- function joinValues(array, separator = " | ") {
11707
- return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
11708
- }
11709
- __name(joinValues, "joinValues");
11710
- util2.joinValues = joinValues;
11711
- util2.jsonStringifyReplacer = (_, value) => {
11712
- if (typeof value === "bigint") {
11713
- return value.toString();
11714
- }
11715
- return value;
11716
- };
11717
- })(util || (util = {}));
11718
- var objectUtil;
11719
- (function(objectUtil2) {
11720
- objectUtil2.mergeShapes = (first, second) => {
11721
- return {
11722
- ...first,
11723
- ...second
11724
- };
11725
- };
11726
- })(objectUtil || (objectUtil = {}));
11727
- util.arrayToEnum([
11728
- "string",
11729
- "nan",
11730
- "number",
11731
- "integer",
11732
- "float",
11733
- "boolean",
11734
- "date",
11735
- "bigint",
11736
- "symbol",
11737
- "function",
11738
- "undefined",
11739
- "null",
11740
- "array",
11741
- "object",
11742
- "unknown",
11743
- "promise",
11744
- "void",
11745
- "never",
11746
- "map",
11747
- "set"
11748
- ]);
11749
-
11750
- // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.js
11751
- util.arrayToEnum([
11752
- "invalid_type",
11753
- "invalid_literal",
11754
- "custom",
11755
- "invalid_union",
11756
- "invalid_union_discriminator",
11757
- "invalid_enum_value",
11758
- "unrecognized_keys",
11759
- "invalid_arguments",
11760
- "invalid_return_type",
11761
- "invalid_date",
11762
- "invalid_string",
11763
- "too_small",
11764
- "too_big",
11765
- "invalid_intersection_types",
11766
- "not_multiple_of",
11767
- "not_finite"
11768
- ]);
11769
- var ZodError = class _ZodError extends Error {
11770
- static {
11771
- __name(this, "ZodError");
11772
- }
11773
- get errors() {
11774
- return this.issues;
11775
- }
11776
- constructor(issues) {
11777
- super();
11778
- this.issues = [];
11779
- this.addIssue = (sub) => {
11780
- this.issues = [
11781
- ...this.issues,
11782
- sub
11783
- ];
11784
- };
11785
- this.addIssues = (subs = []) => {
11786
- this.issues = [
11787
- ...this.issues,
11788
- ...subs
11789
- ];
11790
- };
11791
- const actualProto = new.target.prototype;
11792
- if (Object.setPrototypeOf) {
11793
- Object.setPrototypeOf(this, actualProto);
11794
- } else {
11795
- this.__proto__ = actualProto;
11796
- }
11797
- this.name = "ZodError";
11798
- this.issues = issues;
11799
- }
11800
- format(_mapper) {
11801
- const mapper = _mapper || function(issue) {
11802
- return issue.message;
11803
- };
11804
- const fieldErrors = {
11805
- _errors: []
11806
- };
11807
- const processError = /* @__PURE__ */ __name((error) => {
11808
- for (const issue of error.issues) {
11809
- if (issue.code === "invalid_union") {
11810
- issue.unionErrors.map(processError);
11811
- } else if (issue.code === "invalid_return_type") {
11812
- processError(issue.returnTypeError);
11813
- } else if (issue.code === "invalid_arguments") {
11814
- processError(issue.argumentsError);
11815
- } else if (issue.path.length === 0) {
11816
- fieldErrors._errors.push(mapper(issue));
11817
- } else {
11818
- let curr = fieldErrors;
11819
- let i = 0;
11820
- while (i < issue.path.length) {
11821
- const el = issue.path[i];
11822
- const terminal = i === issue.path.length - 1;
11823
- if (!terminal) {
11824
- curr[el] = curr[el] || {
11825
- _errors: []
11826
- };
11827
- } else {
11828
- curr[el] = curr[el] || {
11829
- _errors: []
11830
- };
11831
- curr[el]._errors.push(mapper(issue));
11832
- }
11833
- curr = curr[el];
11834
- i++;
11835
- }
11836
- }
11837
- }
11838
- }, "processError");
11839
- processError(this);
11840
- return fieldErrors;
11841
- }
11842
- static assert(value) {
11843
- if (!(value instanceof _ZodError)) {
11844
- throw new Error(`Not a ZodError: ${value}`);
11845
- }
11846
- }
11847
- toString() {
11848
- return this.message;
11849
- }
11850
- get message() {
11851
- return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
11852
- }
11853
- get isEmpty() {
11854
- return this.issues.length === 0;
11855
- }
11856
- flatten(mapper = (issue) => issue.message) {
11857
- const fieldErrors = {};
11858
- const formErrors = [];
11859
- for (const sub of this.issues) {
11860
- if (sub.path.length > 0) {
11861
- const firstEl = sub.path[0];
11862
- fieldErrors[firstEl] = fieldErrors[firstEl] || [];
11863
- fieldErrors[firstEl].push(mapper(sub));
11864
- } else {
11865
- formErrors.push(mapper(sub));
11866
- }
11867
- }
11868
- return {
11869
- formErrors,
11870
- fieldErrors
11871
- };
11872
- }
11873
- get formErrors() {
11874
- return this.flatten();
11875
- }
11876
- };
11877
- ZodError.create = (issues) => {
11878
- const error = new ZodError(issues);
11879
- return error;
11880
- };
11881
11656
  function _ts_decorate(decorators, target, key, desc) {
11882
11657
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11883
11658
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -11896,7 +11671,7 @@ function _ts_param(paramIndex, decorator) {
11896
11671
  }
11897
11672
  __name(_ts_param, "_ts_param");
11898
11673
  function isZodErrorLike(error) {
11899
- return error instanceof ZodError || typeof error === "object" && error !== null && "name" in error && error.name === "ZodError" && "issues" in error && Array.isArray(error.issues);
11674
+ return error instanceof zod.ZodError || typeof error === "object" && error !== null && "name" in error && error.name === "ZodError" && "issues" in error && Array.isArray(error.issues);
11900
11675
  }
11901
11676
  __name(isZodErrorLike, "isZodErrorLike");
11902
11677
  exports.RouteHandlerService = class _RouteHandlerService {
@@ -12114,7 +11889,7 @@ function _ts_decorate2(decorators, target, key, desc) {
12114
11889
  }
12115
11890
  __name(_ts_decorate2, "_ts_decorate");
12116
11891
  function isZodErrorLike2(exception) {
12117
- return exception instanceof ZodError || typeof exception === "object" && exception !== null && "name" in exception && exception.name === "ZodError" && "issues" in exception && Array.isArray(exception.issues);
11892
+ return exception instanceof zod.ZodError || typeof exception === "object" && exception !== null && "name" in exception && exception.name === "ZodError" && "issues" in exception && Array.isArray(exception.issues);
12118
11893
  }
12119
11894
  __name(isZodErrorLike2, "isZodErrorLike");
12120
11895
  exports.MastraExceptionFilter = class _MastraExceptionFilter {