@geekmidas/constructs 10.0.0-alpha.118 → 10.0.0-alpha.119
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/{Construct-BQALFCh2.d.cts → Construct-B7AXn0xH.d.mts} +7 -7
- package/dist/{Construct-BQALFCh2.d.cts.map → Construct-B7AXn0xH.d.mts.map} +1 -1
- package/dist/{Construct-QXnl3VqT.d.mts → Construct-CFW0zjdD.d.cts} +7 -7
- package/dist/{Construct-QXnl3VqT.d.mts.map → Construct-CFW0zjdD.d.cts.map} +1 -1
- package/dist/{Cron-CQJqqkhY.d.mts → Cron-bdGRSROY.d.cts} +7 -7
- package/dist/{Cron-CQJqqkhY.d.mts.map → Cron-bdGRSROY.d.cts.map} +1 -1
- package/dist/{Cron-DI3nKoic.d.cts → Cron-i4Uetezh.d.mts} +7 -7
- package/dist/{Cron-DI3nKoic.d.cts.map → Cron-i4Uetezh.d.mts.map} +1 -1
- package/dist/{CronBuilder-Xx_zakuc.d.mts → CronBuilder-9H4BnD6W.d.mts} +6 -6
- package/dist/{CronBuilder-Xx_zakuc.d.mts.map → CronBuilder-9H4BnD6W.d.mts.map} +1 -1
- package/dist/{CronBuilder-g1lZLWyG.d.cts → CronBuilder-B_24LZpn.d.cts} +6 -6
- package/dist/{CronBuilder-g1lZLWyG.d.cts.map → CronBuilder-B_24LZpn.d.cts.map} +1 -1
- package/dist/{Endpoint-CrE9Ppdk.d.mts → Endpoint-CeFkSwh5.d.mts} +5 -5
- package/dist/{Endpoint-BWyKCa2x.d.cts.map → Endpoint-CeFkSwh5.d.mts.map} +1 -1
- package/dist/{Endpoint-BWyKCa2x.d.cts → Endpoint-DgrpG15P.d.cts} +5 -5
- package/dist/{Endpoint-CrE9Ppdk.d.mts.map → Endpoint-DgrpG15P.d.cts.map} +1 -1
- package/dist/{EndpointFactory-BVv6EIDu.cjs → EndpointFactory-CSrAyazj.cjs} +264 -1
- package/dist/EndpointFactory-CSrAyazj.cjs.map +1 -0
- package/dist/{EndpointFactory-C1-IBwm4.d.cts → EndpointFactory-Cc863XJS.d.cts} +111 -6
- package/dist/EndpointFactory-Cc863XJS.d.cts.map +1 -0
- package/dist/{EndpointFactory-BV-nfnaP.d.mts → EndpointFactory-Dbw9ugkX.d.mts} +111 -6
- package/dist/EndpointFactory-Dbw9ugkX.d.mts.map +1 -0
- package/dist/{EndpointFactory-Cs8IHvwF.mjs → EndpointFactory-c2ZugGig.mjs} +223 -2
- package/dist/EndpointFactory-c2ZugGig.mjs.map +1 -0
- package/dist/{Function-DuqGcbOI.d.mts → Function-B0uZhZnU.d.cts} +5 -5
- package/dist/{Function-DuqGcbOI.d.mts.map → Function-B0uZhZnU.d.cts.map} +1 -1
- package/dist/{Function-Pu-1kKZz.d.cts → Function-B_9R7Zy1.d.mts} +5 -5
- package/dist/{Function-Pu-1kKZz.d.cts.map → Function-B_9R7Zy1.d.mts.map} +1 -1
- package/dist/{Queue-DlsHRzUp.d.mts → Queue-B-dDXyjF.d.mts} +4 -4
- package/dist/{Queue-DlsHRzUp.d.mts.map → Queue-B-dDXyjF.d.mts.map} +1 -1
- package/dist/{Queue-HPyi0e1i.d.cts → Queue-JbIjVtTf.d.cts} +4 -4
- package/dist/{Queue-HPyi0e1i.d.cts.map → Queue-JbIjVtTf.d.cts.map} +1 -1
- package/dist/{QueueBuilder-Cx9lKC5d.d.mts → QueueBuilder-48W-q8In.d.mts} +3 -3
- package/dist/{QueueBuilder-Cx9lKC5d.d.mts.map → QueueBuilder-48W-q8In.d.mts.map} +1 -1
- package/dist/{QueueBuilder-OSi6LkV9.d.cts → QueueBuilder-MfpkJ3R9.d.cts} +3 -3
- package/dist/{QueueBuilder-OSi6LkV9.d.cts.map → QueueBuilder-MfpkJ3R9.d.cts.map} +1 -1
- package/dist/{Subscriber-Bpp02cGr.d.cts → Subscriber-CEt7kHkc.d.cts} +4 -4
- package/dist/{Subscriber-Bpp02cGr.d.cts.map → Subscriber-CEt7kHkc.d.cts.map} +1 -1
- package/dist/{Subscriber-CtN9R48-.d.mts → Subscriber-dsxc5LKa.d.mts} +4 -4
- package/dist/{Subscriber-CtN9R48-.d.mts.map → Subscriber-dsxc5LKa.d.mts.map} +1 -1
- package/dist/{SubscriberBuilder-g3fAVWgs.d.cts → SubscriberBuilder-BRa_nrmH.d.cts} +4 -4
- package/dist/{SubscriberBuilder-4DWe9feX.d.mts.map → SubscriberBuilder-BRa_nrmH.d.cts.map} +1 -1
- package/dist/{SubscriberBuilder-4DWe9feX.d.mts → SubscriberBuilder-D9bkrYzH.d.mts} +4 -4
- package/dist/{SubscriberBuilder-g3fAVWgs.d.cts.map → SubscriberBuilder-D9bkrYzH.d.mts.map} +1 -1
- package/dist/adaptors/aws.d.cts +6 -6
- package/dist/adaptors/aws.d.mts +6 -6
- package/dist/adaptors/hono.d.cts +2 -2
- package/dist/adaptors/hono.d.mts +2 -2
- package/dist/adaptors/testing.d.cts +6 -6
- package/dist/adaptors/testing.d.mts +6 -6
- package/dist/credential.d.cts +1 -1
- package/dist/credential.d.mts +1 -1
- package/dist/crons/index.d.cts +2 -2
- package/dist/crons/index.d.mts +2 -2
- package/dist/endpoints/index.cjs +8 -1
- package/dist/endpoints/index.d.cts +4 -4
- package/dist/endpoints/index.d.mts +4 -4
- package/dist/endpoints/index.mjs +2 -2
- package/dist/expire-C586zznE.d.cts +38 -0
- package/dist/expire-C586zznE.d.cts.map +1 -0
- package/dist/expire-C586zznE.d.mts +38 -0
- package/dist/expire-C586zznE.d.mts.map +1 -0
- package/dist/expire-CieftS01.cjs +67 -0
- package/dist/expire-CieftS01.cjs.map +1 -0
- package/dist/expire-CpzUAfr9.mjs +50 -0
- package/dist/expire-CpzUAfr9.mjs.map +1 -0
- package/dist/external-api.d.cts +1 -1
- package/dist/external-api.d.mts +1 -1
- package/dist/{fake-Dvion_Fh.d.cts → fake-B7rvi4Qp.d.cts} +2 -2
- package/dist/{fake-DqKo8INJ.d.mts.map → fake-B7rvi4Qp.d.cts.map} +1 -1
- package/dist/{fake-DqKo8INJ.d.mts → fake-JXbkdao8.d.mts} +2 -2
- package/dist/{fake-Dvion_Fh.d.cts.map → fake-JXbkdao8.d.mts.map} +1 -1
- package/dist/file-server.cjs +24 -1
- package/dist/file-server.cjs.map +1 -1
- package/dist/file-server.d.cts +19 -0
- package/dist/file-server.d.cts.map +1 -1
- package/dist/file-server.d.mts +19 -0
- package/dist/file-server.d.mts.map +1 -1
- package/dist/file-server.mjs +24 -2
- package/dist/file-server.mjs.map +1 -1
- package/dist/functions/index.d.cts +2 -2
- package/dist/functions/index.d.mts +2 -2
- package/dist/{index-BuzRvKOQ.d.cts → index-Cd2w-DRL.d.cts} +4 -4
- package/dist/{index-B13kQB_U.d.mts.map → index-Cd2w-DRL.d.cts.map} +1 -1
- package/dist/{index-CeEtxDmK.d.cts → index-DdRjYhiJ.d.cts} +42 -2
- package/dist/{index-CeEtxDmK.d.cts.map → index-DdRjYhiJ.d.cts.map} +1 -1
- package/dist/{index-CeEtxDmK.d.mts → index-DdRjYhiJ.d.mts} +42 -2
- package/dist/{index-CeEtxDmK.d.mts.map → index-DdRjYhiJ.d.mts.map} +1 -1
- package/dist/{index-B13kQB_U.d.mts → index-aBIcAiH5.d.mts} +4 -4
- package/dist/{index-BuzRvKOQ.d.cts.map → index-aBIcAiH5.d.mts.map} +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/object-storage.cjs +8 -1
- package/dist/object-storage.cjs.map +1 -1
- package/dist/object-storage.d.cts +9 -0
- package/dist/object-storage.d.cts.map +1 -1
- package/dist/object-storage.d.mts +9 -0
- package/dist/object-storage.d.mts.map +1 -1
- package/dist/object-storage.mjs +7 -2
- package/dist/object-storage.mjs.map +1 -1
- package/dist/queue/index.d.cts +2 -2
- package/dist/queue/index.d.mts +2 -2
- package/dist/rest-api.cjs +1 -1
- package/dist/rest-api.d.cts +2 -2
- package/dist/rest-api.d.mts +2 -2
- package/dist/rest-api.mjs +1 -1
- package/dist/subscribers/index.d.cts +2 -2
- package/dist/subscribers/index.d.mts +2 -2
- package/dist/topic/index.d.cts +1 -1
- package/dist/topic/index.d.mts +1 -1
- package/dist/worker.d.cts +8 -8
- package/dist/worker.d.mts +8 -8
- package/package.json +31 -31
- package/dist/EndpointFactory-BV-nfnaP.d.mts.map +0 -1
- package/dist/EndpointFactory-BVv6EIDu.cjs.map +0 -1
- package/dist/EndpointFactory-C1-IBwm4.d.cts.map +0 -1
- package/dist/EndpointFactory-Cs8IHvwF.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
|
|
2
2
|
import { c as ServicesOf, r as Consumable } from "./construct-interface-B1AfqRl4.cjs";
|
|
3
|
-
import { r as QueueHandler, t as Queue } from "./Queue-
|
|
3
|
+
import { r as QueueHandler, t as Queue } from "./Queue-JbIjVtTf.cjs";
|
|
4
4
|
import { Logger } from "@geekmidas/logger";
|
|
5
5
|
import { Service } from "@geekmidas/services";
|
|
6
6
|
//#region src/queue/QueueBuilder.d.ts
|
|
@@ -72,4 +72,4 @@ declare class QueueNeedsMessage extends Error {
|
|
|
72
72
|
}
|
|
73
73
|
//#endregion
|
|
74
74
|
export { QueueNeedsMessage as n, QueueNeedsName as r, QueueBuilder as t };
|
|
75
|
-
//# sourceMappingURL=QueueBuilder-
|
|
75
|
+
//# sourceMappingURL=QueueBuilder-MfpkJ3R9.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueueBuilder-
|
|
1
|
+
{"version":3,"file":"QueueBuilder-MfpkJ3R9.d.cts","names":[],"sources":["../src/queue/QueueBuilder.ts"],"mappings":";;;;;;;;;;;;;;cAuBa,aACZ,+BACA,iBAAiB,0CACjB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,uBACA;UAEQ;UACA;UACA;UACA;UACA;UACA;;EAED;UACC;;EAED;;UAEC;;UAEA;;EAGR,MAAM,kBACL,MAAM,IACJ,aACF,GACA,UACA,WACA,SACA,WACA;EAYD,QAAQ;;EAKR,UAAU;;EAKV,KAAK;;;;;;;;;;;;EAeL,gBAAgB,mBAAmB,cAClC,YAAY,IACV,aACF,OACA,cACI,cAAc,WAAW,KAC7B,SACA,WACA;EAwBD,SAAS,UAAU,WAClB,UAAU,IACR,aACF,OACA,cACI,cAAc,IAClB,SACA,WACA;EAcD,OAAO,UAAU,QAChB,QAAQ,IACN,aACF,OACA,UACA,WACA,GACA,WACA;;;;;;;;EAqBD,SAAS,GAAG,wBACX,QAAQ,WAAW,SAAS,KAAK,QAAQ,SAAS,KAChD,aAAa,OAAO,UAAU,WAAW,SAAS,GAAG;;EAuBxD,QAAQ,UAAU,kBACjB,QAAQ,IACN,aACF,OACA,GACA,WACA,SACA,WACA;EAcD,OACC,IAAI,aAAa,YAAY,WAAW,WAAW,SAAS,aAC1D,MACF,OACA,YAAY,WACZ,WACA,SACA,WACA;;;cAsCW,uBAAuB;EACnC;;;cASY,0BAA0B;WACjB;EAArB,YAAqB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Construct } from "./Construct-
|
|
3
|
-
import { t as DatabaseContext } from "./Function-
|
|
1
|
+
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
|
|
2
|
+
import { t as Construct } from "./Construct-CFW0zjdD.cjs";
|
|
3
|
+
import { t as DatabaseContext } from "./Function-B0uZhZnU.cjs";
|
|
4
4
|
import { Logger } from "@geekmidas/logger";
|
|
5
5
|
import { InferStandardSchema } from "@geekmidas/schema";
|
|
6
6
|
import { Service, ServiceRecord } from "@geekmidas/services";
|
|
@@ -58,4 +58,4 @@ type SubscriberContext<TEventPublisher extends EventPublisher<any> | undefined,
|
|
|
58
58
|
} & DatabaseContext<TDatabase>;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { SubscriberHandler as n, Subscriber as t };
|
|
61
|
-
//# sourceMappingURL=Subscriber-
|
|
61
|
+
//# sourceMappingURL=Subscriber-CEt7kHkc.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscriber-
|
|
1
|
+
{"version":3,"file":"Subscriber-CEt7kHkc.d.cts","names":[],"sources":["../src/subscribers/Subscriber.ts"],"mappings":";;;;;;;;KAaK,qBACJ,mBAAmB,iCACnB,6BACG,mBAAmB,sBACpB,QAAQ,wBAAwB;EAAe,MAAM;;;;;;;cAQ3C,WACZ,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,kBAAkB;;AAElB,wBAAwB,6CACxB,0BACC,wBAAwB,6BAA6B,wBAAwB,4BAC9E,uBACA,sDACS,UACT,SACA,WACA,8BAGA,sBACA;WAeiB,SAAS,kBACxB,iBACA,mBACA,WACA,SACA,WACA;WAEwB;YACf,oBAAoB;WACL,eAAe;WACf,UAAU;WACV,QAAQ;;;;;;WAMjB;EA/BjB;SAEO,aACN,WACE,OAAO;EAQV,YACiB,SAAS,kBACxB,iBACA,mBACA,WACA,SACA,WACA,YAEwB,kBACf,oBAAoB,+BACL,eAAe,uBACf,WAAU,WACV,SAAQ,SAMjB;;;;;;EAAA,gCAKhB;;;;;EAAA,uBAKA;;;;;EAAA,kBAAkB,QAAQ,sBAAsB;MAiB7C,oBAAoB;;KAMb,kBACX,wBAAwB,iCACxB,0BAA0B,wBAAwB,4BAClD,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,kBAAkB,0CAClB,0BAEA,KAAK,kBACJ,iBACA,mBACA,WACA,SACA,eAEG,kBAAkB,mBACpB,oBAAoB,aAAa,QAAQ,oBAAoB,oBACvD;KAGG,kBACX,wBAAwB,iCACxB,0BAA0B,wBAAwB,4BAClD,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB;EAEA,QAAQ,qBAAqB,iBAAiB;EAC9C,UAAU,cAAc;EACxB,QAAQ;IACL,gBAAgB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Construct } from "./Construct-
|
|
3
|
-
import { t as DatabaseContext } from "./Function-
|
|
1
|
+
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.mjs";
|
|
2
|
+
import { t as Construct } from "./Construct-B7AXn0xH.mjs";
|
|
3
|
+
import { t as DatabaseContext } from "./Function-B_9R7Zy1.mjs";
|
|
4
4
|
import { EventPublisher, ExtractPublisherMessage } from "@geekmidas/events";
|
|
5
5
|
import { Service, ServiceRecord } from "@geekmidas/services";
|
|
6
6
|
import { Logger } from "@geekmidas/logger";
|
|
@@ -58,4 +58,4 @@ type SubscriberContext<TEventPublisher extends EventPublisher<any> | undefined,
|
|
|
58
58
|
} & DatabaseContext<TDatabase>;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { SubscriberHandler as n, Subscriber as t };
|
|
61
|
-
//# sourceMappingURL=Subscriber-
|
|
61
|
+
//# sourceMappingURL=Subscriber-dsxc5LKa.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subscriber-
|
|
1
|
+
{"version":3,"file":"Subscriber-dsxc5LKa.d.mts","names":[],"sources":["../src/subscribers/Subscriber.ts"],"mappings":";;;;;;;;KAaK,qBACJ,mBAAmB,iCACnB,6BACG,mBAAmB,sBACpB,QAAQ,wBAAwB;EAAe,MAAM;;;;;;;cAQ3C,WACZ,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,kBAAkB;;AAElB,wBAAwB,6CACxB,0BACC,wBAAwB,6BAA6B,wBAAwB,4BAC9E,uBACA,sDACS,UACT,SACA,WACA,8BAGA,sBACA;WAeiB,SAAS,kBACxB,iBACA,mBACA,WACA,SACA,WACA;WAEwB;YACf,oBAAoB;WACL,eAAe;WACf,UAAU;WACV,QAAQ;;;;;;WAMjB;EA/BjB;SAEO,aACN,WACE,OAAO;EAQV,YACiB,SAAS,kBACxB,iBACA,mBACA,WACA,SACA,WACA,YAEwB,kBACf,oBAAoB,+BACL,eAAe,uBACf,WAAU,WACV,SAAQ,SAMjB;;;;;;EAAA,gCAKhB;;;;;EAAA,uBAKA;;;;;EAAA,kBAAkB,QAAQ,sBAAsB;MAiB7C,oBAAoB;;KAMb,kBACX,wBAAwB,iCACxB,0BAA0B,wBAAwB,4BAClD,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,kBAAkB,0CAClB,0BAEA,KAAK,kBACJ,iBACA,mBACA,WACA,SACA,eAEG,kBAAkB,mBACpB,oBAAoB,aAAa,QAAQ,oBAAoB,oBACvD;KAGG,kBACX,wBAAwB,iCACxB,0BAA0B,wBAAwB,4BAClD,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB;EAEA,QAAQ,qBAAqB,iBAAiB;EAC9C,UAAU,cAAc;EACxB,QAAQ;IACL,gBAAgB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as Topic, l as TopicEvents, u as TopicMessage } from "./Construct-
|
|
1
|
+
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
|
|
2
|
+
import { c as Topic, l as TopicEvents, u as TopicMessage } from "./Construct-CFW0zjdD.cjs";
|
|
3
3
|
import { c as ServicesOf, r as Consumable } from "./construct-interface-B1AfqRl4.cjs";
|
|
4
|
-
import { n as SubscriberHandler, t as Subscriber } from "./Subscriber-
|
|
4
|
+
import { n as SubscriberHandler, t as Subscriber } from "./Subscriber-CEt7kHkc.cjs";
|
|
5
5
|
import { Logger } from "@geekmidas/logger";
|
|
6
6
|
import { Service } from "@geekmidas/services";
|
|
7
7
|
import { EventPublisher, ExtractPublisherMessage } from "@geekmidas/events";
|
|
@@ -64,4 +64,4 @@ declare class SubscriberBuilder<TServices extends Service[] = [], TLogger extend
|
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
export { SubscriberBuilder as t };
|
|
67
|
-
//# sourceMappingURL=SubscriberBuilder-
|
|
67
|
+
//# sourceMappingURL=SubscriberBuilder-BRa_nrmH.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriberBuilder-
|
|
1
|
+
{"version":3,"file":"SubscriberBuilder-BRa_nrmH.d.cts","names":[],"sources":["../src/subscribers/SubscriberBuilder.ts"],"mappings":";;;;;;;;cAoBa,kBACZ,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,kBAAkB,0CAClB,wBAAwB,6CACxB,sCACA,uBACA;UAEQ;UACA;UACA;UACA;;EAED;UACC;;;;;EAKD;UACC;;UAEA;;UAEA;EAER;;;;;;;;;;EAaA,MAAM,sBAAsB,gBAAgB,aAC3C,OAAO,MAAM,OAAO,WAClB,kBACF,WACA,SACA,WACA,eAAe,aAAa,WAC5B,mBACA,WACA;EAeD,QAAQ;EAIR,OAAO,UAAU,kBAChB,QAAQ,IACN,kBACF,WACA,SACA,GACA,iBACA,mBACA,WACA;;;;;;;;;;;;EAkBD,gBAAgB,mBAAmB,cAClC,YAAY,IACV,sBACE,cAAc,WAAW,KAC7B,SACA,WACA,iBACA,mBACA,WACA;EAyBD,SAAS,UAAU,WAClB,UAAU,IACR,sBACE,cAAc,IAClB,SACA,WACA,iBACA,mBACA,WACA;EAOD,OAAO,UAAU,QAChB,QAAQ,IACN,kBACF,WACA,GACA,WACA,iBACA,mBACA,WACA;;;;;;;;EAYD,SAAS,GAAG,wBACX,QAAQ,WAAW,SAAS,KAAK,QAAQ,SAAS,KAChD,kBACF,WACA,SACA,WACA,iBACA,mBACA,GACA;EAwBD,UACC,eAAe,wBAAwB,sBAElC,wBAAwB,2BACxB,wBAAwB,oCAG7B,OAAO,SACL,kBACF,WACA,SACA,WACA,iBACA,2BACO,sBAAsB,cACtB,mBAAmB,SAC1B,WACA;EAQD,OACC,IAAI,kBACH,iBACA,mBACA,WACA,SACA,WACA,aAEC,WACF,WACA,SACA,WACA,iBACA,mBACA,WACA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as Topic, l as TopicEvents, u as TopicMessage } from "./Construct-
|
|
1
|
+
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.mjs";
|
|
2
|
+
import { c as Topic, l as TopicEvents, u as TopicMessage } from "./Construct-B7AXn0xH.mjs";
|
|
3
3
|
import { c as ServicesOf, r as Consumable } from "./construct-interface-ZvYQbivO.mjs";
|
|
4
|
-
import { n as SubscriberHandler, t as Subscriber } from "./Subscriber-
|
|
4
|
+
import { n as SubscriberHandler, t as Subscriber } from "./Subscriber-dsxc5LKa.mjs";
|
|
5
5
|
import { EventPublisher, ExtractPublisherMessage } from "@geekmidas/events";
|
|
6
6
|
import { Service } from "@geekmidas/services";
|
|
7
7
|
import { Logger } from "@geekmidas/logger";
|
|
@@ -64,4 +64,4 @@ declare class SubscriberBuilder<TServices extends Service[] = [], TLogger extend
|
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
export { SubscriberBuilder as t };
|
|
67
|
-
//# sourceMappingURL=SubscriberBuilder-
|
|
67
|
+
//# sourceMappingURL=SubscriberBuilder-D9bkrYzH.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriberBuilder-
|
|
1
|
+
{"version":3,"file":"SubscriberBuilder-D9bkrYzH.d.mts","names":[],"sources":["../src/subscribers/SubscriberBuilder.ts"],"mappings":";;;;;;;;cAoBa,kBACZ,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,kBAAkB,0CAClB,wBAAwB,6CACxB,sCACA,uBACA;UAEQ;UACA;UACA;UACA;;EAED;UACC;;;;;EAKD;UACC;;UAEA;;UAEA;EAER;;;;;;;;;;EAaA,MAAM,sBAAsB,gBAAgB,aAC3C,OAAO,MAAM,OAAO,WAClB,kBACF,WACA,SACA,WACA,eAAe,aAAa,WAC5B,mBACA,WACA;EAeD,QAAQ;EAIR,OAAO,UAAU,kBAChB,QAAQ,IACN,kBACF,WACA,SACA,GACA,iBACA,mBACA,WACA;;;;;;;;;;;;EAkBD,gBAAgB,mBAAmB,cAClC,YAAY,IACV,sBACE,cAAc,WAAW,KAC7B,SACA,WACA,iBACA,mBACA,WACA;EAyBD,SAAS,UAAU,WAClB,UAAU,IACR,sBACE,cAAc,IAClB,SACA,WACA,iBACA,mBACA,WACA;EAOD,OAAO,UAAU,QAChB,QAAQ,IACN,kBACF,WACA,GACA,WACA,iBACA,mBACA,WACA;;;;;;;;EAYD,SAAS,GAAG,wBACX,QAAQ,WAAW,SAAS,KAAK,QAAQ,SAAS,KAChD,kBACF,WACA,SACA,WACA,iBACA,mBACA,GACA;EAwBD,UACC,eAAe,wBAAwB,sBAElC,wBAAwB,2BACxB,wBAAwB,oCAG7B,OAAO,SACL,kBACF,WACA,SACA,WACA,iBACA,2BACO,sBAAsB,cACtB,mBAAmB,SAC1B,WACA;EAQD,OACC,IAAI,kBACH,iBACA,mBACA,WACA,SACA,WACA,aAEC,WACF,WACA,SACA,WACA,iBACA,mBACA,WACA"}
|
package/dist/adaptors/aws.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as FunctionHandler, n as Function$1 } from "../Function-
|
|
3
|
-
import { t as Cron } from "../Cron-
|
|
1
|
+
import { n as StandardSchemaV1 } from "../index-DdRjYhiJ.cjs";
|
|
2
|
+
import { i as FunctionHandler, n as Function$1 } from "../Function-B0uZhZnU.cjs";
|
|
3
|
+
import { t as Cron } from "../Cron-bdGRSROY.cjs";
|
|
4
4
|
import { t as HttpMethod } from "../types-DMuSQeLL.cjs";
|
|
5
|
-
import { c as EndpointSchemas, i as Endpoint, r as CookieFn } from "../Endpoint-
|
|
5
|
+
import { c as EndpointSchemas, i as Endpoint, r as CookieFn } from "../Endpoint-DgrpG15P.cjs";
|
|
6
6
|
import { t as Telemetry } from "../lambdaTelemetry-8vnmVZQ5.cjs";
|
|
7
|
-
import { t as Queue } from "../Queue-
|
|
8
|
-
import { t as Subscriber } from "../Subscriber-
|
|
7
|
+
import { t as Queue } from "../Queue-JbIjVtTf.cjs";
|
|
8
|
+
import { t as Subscriber } from "../Subscriber-CEt7kHkc.cjs";
|
|
9
9
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
10
10
|
import { Logger } from "@geekmidas/logger";
|
|
11
11
|
import { ComposableStandardSchema, InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
|
package/dist/adaptors/aws.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as FunctionHandler, n as Function$1 } from "../Function-
|
|
3
|
-
import { t as Cron } from "../Cron-
|
|
1
|
+
import { n as StandardSchemaV1 } from "../index-DdRjYhiJ.mjs";
|
|
2
|
+
import { i as FunctionHandler, n as Function$1 } from "../Function-B_9R7Zy1.mjs";
|
|
3
|
+
import { t as Cron } from "../Cron-i4Uetezh.mjs";
|
|
4
4
|
import { t as HttpMethod } from "../types-DMuSQeLL.mjs";
|
|
5
|
-
import { c as EndpointSchemas, i as Endpoint, r as CookieFn } from "../Endpoint-
|
|
5
|
+
import { c as EndpointSchemas, i as Endpoint, r as CookieFn } from "../Endpoint-CeFkSwh5.mjs";
|
|
6
6
|
import { t as Telemetry } from "../lambdaTelemetry-8vnmVZQ5.mjs";
|
|
7
|
-
import { t as Queue } from "../Queue-
|
|
8
|
-
import { t as Subscriber } from "../Subscriber-
|
|
7
|
+
import { t as Queue } from "../Queue-B-dDXyjF.mjs";
|
|
8
|
+
import { t as Subscriber } from "../Subscriber-dsxc5LKa.mjs";
|
|
9
9
|
import { EventPublisher } from "@geekmidas/events";
|
|
10
10
|
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
|
11
11
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
package/dist/adaptors/hono.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as StandardSchemaV1 } from "../index-DdRjYhiJ.cjs";
|
|
2
2
|
import { t as HttpMethod } from "../types-DMuSQeLL.cjs";
|
|
3
|
-
import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-
|
|
3
|
+
import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-DgrpG15P.cjs";
|
|
4
4
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
5
5
|
import { Logger } from "@geekmidas/logger";
|
|
6
6
|
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
package/dist/adaptors/hono.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as StandardSchemaV1 } from "../index-DdRjYhiJ.mjs";
|
|
2
2
|
import { t as HttpMethod } from "../types-DMuSQeLL.mjs";
|
|
3
|
-
import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-
|
|
3
|
+
import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-CeFkSwh5.mjs";
|
|
4
4
|
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
|
5
5
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
6
6
|
import { Context, Hono } from "hono";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as Function } from "../Function-
|
|
1
|
+
import { n as StandardSchemaV1 } from "../index-DdRjYhiJ.cjs";
|
|
2
|
+
import { n as Function } from "../Function-B0uZhZnU.cjs";
|
|
3
3
|
import { t as HttpMethod } from "../types-DMuSQeLL.cjs";
|
|
4
|
-
import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-
|
|
5
|
-
import { t as Queue } from "../Queue-
|
|
6
|
-
import { t as Subscriber } from "../Subscriber-
|
|
4
|
+
import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-DgrpG15P.cjs";
|
|
5
|
+
import { t as Queue } from "../Queue-JbIjVtTf.cjs";
|
|
6
|
+
import { t as Subscriber } from "../Subscriber-CEt7kHkc.cjs";
|
|
7
7
|
import { t as KyselyDatabase } from "../kysely-BHYV-WC-.cjs";
|
|
8
|
-
import { t as Fake } from "../fake-
|
|
8
|
+
import { t as Fake } from "../fake-B7rvi4Qp.cjs";
|
|
9
9
|
import { o as TestStage } from "../stages-BSCF19o2.cjs";
|
|
10
10
|
import { Logger } from "@geekmidas/logger";
|
|
11
11
|
import { ComposableStandardSchema, InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as Function } from "../Function-
|
|
1
|
+
import { n as StandardSchemaV1 } from "../index-DdRjYhiJ.mjs";
|
|
2
|
+
import { n as Function } from "../Function-B_9R7Zy1.mjs";
|
|
3
3
|
import { t as HttpMethod } from "../types-DMuSQeLL.mjs";
|
|
4
|
-
import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-
|
|
5
|
-
import { t as Queue } from "../Queue-
|
|
6
|
-
import { t as Subscriber } from "../Subscriber-
|
|
4
|
+
import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-CeFkSwh5.mjs";
|
|
5
|
+
import { t as Queue } from "../Queue-B-dDXyjF.mjs";
|
|
6
|
+
import { t as Subscriber } from "../Subscriber-dsxc5LKa.mjs";
|
|
7
7
|
import { t as KyselyDatabase } from "../kysely-CAW3QSqp.mjs";
|
|
8
|
-
import { t as Fake } from "../fake-
|
|
8
|
+
import { t as Fake } from "../fake-JXbkdao8.mjs";
|
|
9
9
|
import { o as TestStage } from "../stages-BSCF19o2.mjs";
|
|
10
10
|
import { EventPublisher, ExtractPublisherMessage } from "@geekmidas/events";
|
|
11
11
|
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
package/dist/credential.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as Credential, d as decodeCredentials, f as readCredentials, i as isFake, l as CredentialOptions, r as fake, t as Fake, u as MalformedCredential } from "./fake-
|
|
1
|
+
import { c as Credential, d as decodeCredentials, f as readCredentials, i as isFake, l as CredentialOptions, r as fake, t as Fake, u as MalformedCredential } from "./fake-B7rvi4Qp.cjs";
|
|
2
2
|
export { Credential, CredentialOptions, type Fake, MalformedCredential, decodeCredentials, fake, isFake, readCredentials };
|
package/dist/credential.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as Credential, d as decodeCredentials, f as readCredentials, i as isFake, l as CredentialOptions, r as fake, t as Fake, u as MalformedCredential } from "./fake-
|
|
1
|
+
import { c as Credential, d as decodeCredentials, f as readCredentials, i as isFake, l as CredentialOptions, r as fake, t as Fake, u as MalformedCredential } from "./fake-JXbkdao8.mjs";
|
|
2
2
|
export { Credential, CredentialOptions, type Fake, MalformedCredential, decodeCredentials, fake, isFake, readCredentials };
|
package/dist/crons/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ScheduleExpression, n as CronExpression, r as RateExpression, t as Cron } from "../Cron-
|
|
2
|
-
import { t as CronBuilder } from "../CronBuilder-
|
|
1
|
+
import { i as ScheduleExpression, n as CronExpression, r as RateExpression, t as Cron } from "../Cron-bdGRSROY.cjs";
|
|
2
|
+
import { t as CronBuilder } from "../CronBuilder-B_24LZpn.cjs";
|
|
3
3
|
import { ServiceDiscovery } from "@geekmidas/services";
|
|
4
4
|
//#region src/crons/inProcess.d.ts
|
|
5
5
|
/** A schedule that is running, and the way to stop it. */
|
package/dist/crons/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as ScheduleExpression, n as CronExpression, r as RateExpression, t as Cron } from "../Cron-
|
|
2
|
-
import { t as CronBuilder } from "../CronBuilder-
|
|
1
|
+
import { i as ScheduleExpression, n as CronExpression, r as RateExpression, t as Cron } from "../Cron-i4Uetezh.mjs";
|
|
2
|
+
import { t as CronBuilder } from "../CronBuilder-9H4BnD6W.mjs";
|
|
3
3
|
import { ServiceDiscovery } from "@geekmidas/services";
|
|
4
4
|
//#region src/crons/inProcess.d.ts
|
|
5
5
|
/** A schedule that is running, and the way to stop it. */
|
package/dist/endpoints/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_EndpointFactory = require("../EndpointFactory-
|
|
2
|
+
const require_EndpointFactory = require("../EndpointFactory-CSrAyazj.cjs");
|
|
3
3
|
const require_functions = require("../functions-D7O5SGVc.cjs");
|
|
4
4
|
const require_Endpoint = require("../Endpoint-yhR2T2Wt.cjs");
|
|
5
5
|
const require_surfaceEnv = require("../surfaceEnv-CNimK76p.cjs");
|
|
@@ -15,7 +15,14 @@ exports.RedirectStatus = require_Endpoint.RedirectStatus;
|
|
|
15
15
|
exports.ResponseBuilder = require_Endpoint.ResponseBuilder;
|
|
16
16
|
exports.SUPPORTED_BODY_TYPES = require_readRequestBody.SUPPORTED_BODY_TYPES;
|
|
17
17
|
exports.SuccessStatus = require_Endpoint.SuccessStatus;
|
|
18
|
+
exports.UPLOAD_POST_SCHEMA = require_EndpointFactory.UPLOAD_POST_SCHEMA;
|
|
18
19
|
exports.UnsupportedRequestContentType = require_readRequestBody.UnsupportedRequestContentType;
|
|
20
|
+
exports.UploadAcceptInvalid = require_EndpointFactory.UploadAcceptInvalid;
|
|
21
|
+
exports.UploadContentTypeRefused = require_EndpointFactory.UploadContentTypeRefused;
|
|
22
|
+
exports.UploadContentTypeUnresolved = require_EndpointFactory.UploadContentTypeUnresolved;
|
|
23
|
+
exports.UploadEndpointBuilder = require_EndpointFactory.UploadEndpointBuilder;
|
|
24
|
+
exports.UploadExpiryInvalid = require_EndpointFactory.UploadExpiryInvalid;
|
|
25
|
+
exports.UploadMaxSizeInvalid = require_EndpointFactory.UploadMaxSizeInvalid;
|
|
19
26
|
exports.createApiGatewayCookies = require_readRequestBody.createApiGatewayCookies;
|
|
20
27
|
exports.createApiGatewayHeaders = require_readRequestBody.createApiGatewayHeaders;
|
|
21
28
|
exports.createAuthorizer = require_EndpointFactory.createAuthorizer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as publishConstructEvents } from "../Construct-
|
|
2
|
-
import { A as SecurityScheme, C as ActorExtractor, D as BuiltInSecuritySchemeId, E as BUILT_IN_SECURITY_SCHEMES, M as getSecurityScheme, N as isBuiltInSecurityScheme, O as OAuthFlow, S as RlsContextExtractor, T as Authorizer, _ as SessionAuth, a as EndpointContext, b as RlsConfig, c as EndpointSchemas, d as HeaderFn, f as RedirectStatus, g as NoAuthenticator, h as SuccessStatus, i as Endpoint, j as createAuthorizer, k as OAuthFlows, l as EndpointStatus, n as ConvertRouteParams, o as EndpointHandler, p as ResponseBuilder, r as CookieFn, s as EndpointOutput, u as EndpointSurface, v as RLS_BYPASS, w as MappedAudit, x as RlsContext, y as RlsBypass } from "../Endpoint-
|
|
3
|
-
import { n as EndpointBuilder, t as EndpointFactory } from "../EndpointFactory-
|
|
1
|
+
import { s as publishConstructEvents } from "../Construct-CFW0zjdD.cjs";
|
|
2
|
+
import { A as SecurityScheme, C as ActorExtractor, D as BuiltInSecuritySchemeId, E as BUILT_IN_SECURITY_SCHEMES, M as getSecurityScheme, N as isBuiltInSecurityScheme, O as OAuthFlow, S as RlsContextExtractor, T as Authorizer, _ as SessionAuth, a as EndpointContext, b as RlsConfig, c as EndpointSchemas, d as HeaderFn, f as RedirectStatus, g as NoAuthenticator, h as SuccessStatus, i as Endpoint, j as createAuthorizer, k as OAuthFlows, l as EndpointStatus, n as ConvertRouteParams, o as EndpointHandler, p as ResponseBuilder, r as CookieFn, s as EndpointOutput, u as EndpointSurface, v as RLS_BYPASS, w as MappedAudit, x as RlsContext, y as RlsBypass } from "../Endpoint-DgrpG15P.cjs";
|
|
3
|
+
import { a as UPLOAD_POST_SCHEMA, c as UploadContentTypeUnresolved, d as UploadOptions, f as UploadPost, i as UploadHandler, l as UploadExpiryInvalid, n as EndpointBuilder, o as UploadAcceptInvalid, r as UploadEndpointBuilder, s as UploadContentTypeRefused, t as EndpointFactory, u as UploadMaxSizeInvalid } from "../EndpointFactory-Cc863XJS.cjs";
|
|
4
4
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
5
5
|
import { Context } from "hono";
|
|
6
6
|
import { HttpError } from "@geekmidas/errors";
|
|
@@ -101,5 +101,5 @@ export declare function defaultEnvParser(): EnvironmentParser<{}>;
|
|
|
101
101
|
/** The parser for an endpoint, from its surface or the default. */
|
|
102
102
|
export declare function envParserFor(surface: EndpointSurface | undefined): EnvironmentParser<{}>;
|
|
103
103
|
//#endregion
|
|
104
|
-
export { type ActorExtractor, type Authorizer, BUILT_IN_SECURITY_SCHEMES, type BuiltInSecuritySchemeId, type ConvertRouteParams, Endpoint, EndpointBuilder, type EndpointContext, EndpointFactory, type EndpointHandler, type EndpointOutput, type EndpointSchemas, type EndpointStatus, type MappedAudit, NoAuthenticator, type OAuthFlow, type OAuthFlows, RLS_BYPASS, RedirectStatus, type RequestBodySource, ResponseBuilder, type RlsBypass, type RlsConfig, type RlsContext, type RlsContextExtractor, type SecurityScheme, type SessionAuth, SuccessStatus, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme, publishConstructEvents };
|
|
104
|
+
export { type ActorExtractor, type Authorizer, BUILT_IN_SECURITY_SCHEMES, type BuiltInSecuritySchemeId, type ConvertRouteParams, Endpoint, EndpointBuilder, type EndpointContext, EndpointFactory, type EndpointHandler, type EndpointOutput, type EndpointSchemas, type EndpointStatus, type MappedAudit, NoAuthenticator, type OAuthFlow, type OAuthFlows, RLS_BYPASS, RedirectStatus, type RequestBodySource, ResponseBuilder, type RlsBypass, type RlsConfig, type RlsContext, type RlsContextExtractor, type SecurityScheme, type SessionAuth, SuccessStatus, UPLOAD_POST_SCHEMA, UploadAcceptInvalid, UploadContentTypeRefused, UploadContentTypeUnresolved, UploadEndpointBuilder, UploadExpiryInvalid, type UploadHandler, UploadMaxSizeInvalid, type UploadOptions, type UploadPost, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme, publishConstructEvents };
|
|
105
105
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as publishConstructEvents } from "../Construct-
|
|
2
|
-
import { A as SecurityScheme, C as ActorExtractor, D as BuiltInSecuritySchemeId, E as BUILT_IN_SECURITY_SCHEMES, M as getSecurityScheme, N as isBuiltInSecurityScheme, O as OAuthFlow, S as RlsContextExtractor, T as Authorizer, _ as SessionAuth, a as EndpointContext, b as RlsConfig, c as EndpointSchemas, d as HeaderFn, f as RedirectStatus, g as NoAuthenticator, h as SuccessStatus, i as Endpoint, j as createAuthorizer, k as OAuthFlows, l as EndpointStatus, n as ConvertRouteParams, o as EndpointHandler, p as ResponseBuilder, r as CookieFn, s as EndpointOutput, u as EndpointSurface, v as RLS_BYPASS, w as MappedAudit, x as RlsContext, y as RlsBypass } from "../Endpoint-
|
|
3
|
-
import { n as EndpointBuilder, t as EndpointFactory } from "../EndpointFactory-
|
|
1
|
+
import { s as publishConstructEvents } from "../Construct-B7AXn0xH.mjs";
|
|
2
|
+
import { A as SecurityScheme, C as ActorExtractor, D as BuiltInSecuritySchemeId, E as BUILT_IN_SECURITY_SCHEMES, M as getSecurityScheme, N as isBuiltInSecurityScheme, O as OAuthFlow, S as RlsContextExtractor, T as Authorizer, _ as SessionAuth, a as EndpointContext, b as RlsConfig, c as EndpointSchemas, d as HeaderFn, f as RedirectStatus, g as NoAuthenticator, h as SuccessStatus, i as Endpoint, j as createAuthorizer, k as OAuthFlows, l as EndpointStatus, n as ConvertRouteParams, o as EndpointHandler, p as ResponseBuilder, r as CookieFn, s as EndpointOutput, u as EndpointSurface, v as RLS_BYPASS, w as MappedAudit, x as RlsContext, y as RlsBypass } from "../Endpoint-CeFkSwh5.mjs";
|
|
3
|
+
import { a as UPLOAD_POST_SCHEMA, c as UploadContentTypeUnresolved, d as UploadOptions, f as UploadPost, i as UploadHandler, l as UploadExpiryInvalid, n as EndpointBuilder, o as UploadAcceptInvalid, r as UploadEndpointBuilder, s as UploadContentTypeRefused, t as EndpointFactory, u as UploadMaxSizeInvalid } from "../EndpointFactory-Dbw9ugkX.mjs";
|
|
4
4
|
import { HttpError } from "@geekmidas/errors";
|
|
5
5
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
6
6
|
import { Context } from "hono";
|
|
@@ -101,5 +101,5 @@ export declare function defaultEnvParser(): EnvironmentParser<{}>;
|
|
|
101
101
|
/** The parser for an endpoint, from its surface or the default. */
|
|
102
102
|
export declare function envParserFor(surface: EndpointSurface | undefined): EnvironmentParser<{}>;
|
|
103
103
|
//#endregion
|
|
104
|
-
export { type ActorExtractor, type Authorizer, BUILT_IN_SECURITY_SCHEMES, type BuiltInSecuritySchemeId, type ConvertRouteParams, Endpoint, EndpointBuilder, type EndpointContext, EndpointFactory, type EndpointHandler, type EndpointOutput, type EndpointSchemas, type EndpointStatus, type MappedAudit, NoAuthenticator, type OAuthFlow, type OAuthFlows, RLS_BYPASS, RedirectStatus, type RequestBodySource, ResponseBuilder, type RlsBypass, type RlsConfig, type RlsContext, type RlsContextExtractor, type SecurityScheme, type SessionAuth, SuccessStatus, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme, publishConstructEvents };
|
|
104
|
+
export { type ActorExtractor, type Authorizer, BUILT_IN_SECURITY_SCHEMES, type BuiltInSecuritySchemeId, type ConvertRouteParams, Endpoint, EndpointBuilder, type EndpointContext, EndpointFactory, type EndpointHandler, type EndpointOutput, type EndpointSchemas, type EndpointStatus, type MappedAudit, NoAuthenticator, type OAuthFlow, type OAuthFlows, RLS_BYPASS, RedirectStatus, type RequestBodySource, ResponseBuilder, type RlsBypass, type RlsConfig, type RlsContext, type RlsContextExtractor, type SecurityScheme, type SessionAuth, SuccessStatus, UPLOAD_POST_SCHEMA, UploadAcceptInvalid, UploadContentTypeRefused, UploadContentTypeUnresolved, UploadEndpointBuilder, UploadExpiryInvalid, type UploadHandler, UploadMaxSizeInvalid, type UploadOptions, type UploadPost, createAuthorizer, getSecurityScheme, isBuiltInSecurityScheme, publishConstructEvents };
|
|
105
105
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/endpoints/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as createAuthorizer, i as
|
|
1
|
+
import { a as UploadAcceptInvalid, c as UploadExpiryInvalid, d as BUILT_IN_SECURITY_SCHEMES, f as createAuthorizer, i as UPLOAD_POST_SCHEMA, l as UploadMaxSizeInvalid, m as isBuiltInSecurityScheme, n as EndpointBuilder, o as UploadContentTypeRefused, p as getSecurityScheme, r as UploadEndpointBuilder, s as UploadContentTypeUnresolved, t as EndpointFactory, u as RLS_BYPASS } from "../EndpointFactory-c2ZugGig.mjs";
|
|
2
2
|
import { i as publishConstructEvents } from "../functions-CTI-hDem.mjs";
|
|
3
3
|
import { a as NoAuthenticator, i as SuccessStatus, n as RedirectStatus, r as ResponseBuilder, t as Endpoint } from "../Endpoint-gPXhHKhJ.mjs";
|
|
4
4
|
import { n as envParserFor, t as defaultEnvParser } from "../surfaceEnv-wMT5QzgZ.mjs";
|
|
5
5
|
import { a as createApiGatewayCookies, c as createHonoCookies, d as createNoopHeaders, i as readRequestBody, l as createHonoHeaders, n as SUPPORTED_BODY_TYPES, o as createApiGatewayHeaders, r as UnsupportedRequestContentType, t as MalformedRequestBody, u as createNoopCookies } from "../readRequestBody-BTIl3k-D.mjs";
|
|
6
|
-
export { BUILT_IN_SECURITY_SCHEMES, Endpoint, EndpointBuilder, EndpointFactory, MalformedRequestBody, NoAuthenticator, RLS_BYPASS, RedirectStatus, ResponseBuilder, SUPPORTED_BODY_TYPES, SuccessStatus, UnsupportedRequestContentType, createApiGatewayCookies, createApiGatewayHeaders, createAuthorizer, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, defaultEnvParser, envParserFor, getSecurityScheme, isBuiltInSecurityScheme, publishConstructEvents, readRequestBody };
|
|
6
|
+
export { BUILT_IN_SECURITY_SCHEMES, Endpoint, EndpointBuilder, EndpointFactory, MalformedRequestBody, NoAuthenticator, RLS_BYPASS, RedirectStatus, ResponseBuilder, SUPPORTED_BODY_TYPES, SuccessStatus, UPLOAD_POST_SCHEMA, UnsupportedRequestContentType, UploadAcceptInvalid, UploadContentTypeRefused, UploadContentTypeUnresolved, UploadEndpointBuilder, UploadExpiryInvalid, UploadMaxSizeInvalid, createApiGatewayCookies, createApiGatewayHeaders, createAuthorizer, createHonoCookies, createHonoHeaders, createNoopCookies, createNoopHeaders, defaultEnvParser, envParserFor, getSecurityScheme, isBuiltInSecurityScheme, publishConstructEvents, readRequestBody };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/expire.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* How long a bucket keeps the objects under a prefix.
|
|
4
|
+
*
|
|
5
|
+
* Shared by `ObjectStorage` and the bucket a `FileServer` vends, because it is
|
|
6
|
+
* a fact about the bucket rather than about who serves it: a prefix of
|
|
7
|
+
* generated files that nobody reads back grows for ever unless the bucket
|
|
8
|
+
* itself is told to drop them.
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* new ObjectStorage('Private', { expire: { 'quotes/': { days: 30 } } });
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* Whole days, because that is the unit S3's lifecycle — and MinIO's — counts
|
|
15
|
+
* in. Prefixes are literal: a lifecycle rule matches the start of a key and
|
|
16
|
+
* has no globs, so a pattern that looks like one is refused rather than
|
|
17
|
+
* silently matching nothing.
|
|
18
|
+
*/
|
|
19
|
+
type ObjectExpiry = Readonly<Record<string, {
|
|
20
|
+
readonly days: number;
|
|
21
|
+
}>>;
|
|
22
|
+
/** An expiry prefix the bucket could not match the way it reads. */
|
|
23
|
+
declare class ExpiryPrefixInvalid extends Error {
|
|
24
|
+
readonly bucket: string;
|
|
25
|
+
readonly prefix: string;
|
|
26
|
+
readonly reason: string;
|
|
27
|
+
constructor(bucket: string, prefix: string, reason: string);
|
|
28
|
+
}
|
|
29
|
+
/** An expiry that is not a whole number of days, one or more. */
|
|
30
|
+
declare class ExpiryDaysInvalid extends Error {
|
|
31
|
+
readonly bucket: string;
|
|
32
|
+
readonly prefix: string;
|
|
33
|
+
readonly days: unknown;
|
|
34
|
+
constructor(bucket: string, prefix: string, days: unknown);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { ExpiryPrefixInvalid as n, ObjectExpiry as r, ExpiryDaysInvalid as t };
|
|
38
|
+
//# sourceMappingURL=expire-C586zznE.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expire-C586zznE.d.cts","names":[],"sources":["../src/expire.ts"],"mappings":";;;;;;;;;;;;;;;;;;KAiBY,eAAe,SAAS;WAA0B;;;cAGjD,4BAA4B;WAE9B;WACA;WACA;EAHV,YACU,gBACA,gBACA;;;cAWE,0BAA0B;WAE5B;WACA;WACA;EAHV,YACU,gBACA,gBACA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/expire.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* How long a bucket keeps the objects under a prefix.
|
|
4
|
+
*
|
|
5
|
+
* Shared by `ObjectStorage` and the bucket a `FileServer` vends, because it is
|
|
6
|
+
* a fact about the bucket rather than about who serves it: a prefix of
|
|
7
|
+
* generated files that nobody reads back grows for ever unless the bucket
|
|
8
|
+
* itself is told to drop them.
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* new ObjectStorage('Private', { expire: { 'quotes/': { days: 30 } } });
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* Whole days, because that is the unit S3's lifecycle — and MinIO's — counts
|
|
15
|
+
* in. Prefixes are literal: a lifecycle rule matches the start of a key and
|
|
16
|
+
* has no globs, so a pattern that looks like one is refused rather than
|
|
17
|
+
* silently matching nothing.
|
|
18
|
+
*/
|
|
19
|
+
type ObjectExpiry = Readonly<Record<string, {
|
|
20
|
+
readonly days: number;
|
|
21
|
+
}>>;
|
|
22
|
+
/** An expiry prefix the bucket could not match the way it reads. */
|
|
23
|
+
declare class ExpiryPrefixInvalid extends Error {
|
|
24
|
+
readonly bucket: string;
|
|
25
|
+
readonly prefix: string;
|
|
26
|
+
readonly reason: string;
|
|
27
|
+
constructor(bucket: string, prefix: string, reason: string);
|
|
28
|
+
}
|
|
29
|
+
/** An expiry that is not a whole number of days, one or more. */
|
|
30
|
+
declare class ExpiryDaysInvalid extends Error {
|
|
31
|
+
readonly bucket: string;
|
|
32
|
+
readonly prefix: string;
|
|
33
|
+
readonly days: unknown;
|
|
34
|
+
constructor(bucket: string, prefix: string, days: unknown);
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { ExpiryPrefixInvalid as n, ObjectExpiry as r, ExpiryDaysInvalid as t };
|
|
38
|
+
//# sourceMappingURL=expire-C586zznE.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expire-C586zznE.d.mts","names":[],"sources":["../src/expire.ts"],"mappings":";;;;;;;;;;;;;;;;;;KAiBY,eAAe,SAAS;WAA0B;;;cAGjD,4BAA4B;WAE9B;WACA;WACA;EAHV,YACU,gBACA,gBACA;;;cAWE,0BAA0B;WAE5B;WACA;WACA;EAHV,YACU,gBACA,gBACA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region src/expire.ts
|
|
2
|
+
/** An expiry prefix the bucket could not match the way it reads. */
|
|
3
|
+
var ExpiryPrefixInvalid = class extends Error {
|
|
4
|
+
bucket;
|
|
5
|
+
prefix;
|
|
6
|
+
reason;
|
|
7
|
+
constructor(bucket, prefix, reason) {
|
|
8
|
+
super(`'${bucket}' expires objects under '${prefix}', which ${reason}. Name the start of the keys as they are stored, e.g. 'quotes/'.`);
|
|
9
|
+
this.bucket = bucket;
|
|
10
|
+
this.prefix = prefix;
|
|
11
|
+
this.reason = reason;
|
|
12
|
+
this.name = "ExpiryPrefixInvalid";
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
/** An expiry that is not a whole number of days, one or more. */
|
|
16
|
+
var ExpiryDaysInvalid = class extends Error {
|
|
17
|
+
bucket;
|
|
18
|
+
prefix;
|
|
19
|
+
days;
|
|
20
|
+
constructor(bucket, prefix, days) {
|
|
21
|
+
super(`'${bucket}' expires '${prefix}' after ${String(days)} days. A bucket counts lifecycle in whole days, so give an integer of 1 or more.`);
|
|
22
|
+
this.bucket = bucket;
|
|
23
|
+
this.prefix = prefix;
|
|
24
|
+
this.days = days;
|
|
25
|
+
this.name = "ExpiryDaysInvalid";
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The expiry as the manifest records it — prefix → days — after checking
|
|
30
|
+
* each entry, or nothing when there is none.
|
|
31
|
+
*
|
|
32
|
+
* @throws {ExpiryPrefixInvalid} for an empty, rooted or globbed prefix
|
|
33
|
+
* @throws {ExpiryDaysInvalid} for anything but a positive integer of days
|
|
34
|
+
*/
|
|
35
|
+
function expiryDays(bucket, expire) {
|
|
36
|
+
if (!expire) return void 0;
|
|
37
|
+
const days = {};
|
|
38
|
+
for (const [prefix, { days: count }] of Object.entries(expire)) {
|
|
39
|
+
if (prefix.length === 0) throw new ExpiryPrefixInvalid(bucket, prefix, "is empty");
|
|
40
|
+
if (prefix.startsWith("/")) throw new ExpiryPrefixInvalid(bucket, prefix, "starts with '/', which no stored key does");
|
|
41
|
+
if (/[*?]/.test(prefix)) throw new ExpiryPrefixInvalid(bucket, prefix, "is a pattern, and a lifecycle prefix is matched literally");
|
|
42
|
+
if (!Number.isInteger(count) || count < 1) throw new ExpiryDaysInvalid(bucket, prefix, count);
|
|
43
|
+
days[prefix] = count;
|
|
44
|
+
}
|
|
45
|
+
return Object.keys(days).length > 0 ? days : void 0;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
Object.defineProperty(exports, "ExpiryDaysInvalid", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function() {
|
|
51
|
+
return ExpiryDaysInvalid;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "ExpiryPrefixInvalid", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function() {
|
|
57
|
+
return ExpiryPrefixInvalid;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "expiryDays", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function() {
|
|
63
|
+
return expiryDays;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=expire-CieftS01.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expire-CieftS01.cjs","names":[],"sources":["../src/expire.ts"],"sourcesContent":["/**\n * How long a bucket keeps the objects under a prefix.\n *\n * Shared by `ObjectStorage` and the bucket a `FileServer` vends, because it is\n * a fact about the bucket rather than about who serves it: a prefix of\n * generated files that nobody reads back grows for ever unless the bucket\n * itself is told to drop them.\n *\n * ```ts\n * new ObjectStorage('Private', { expire: { 'quotes/': { days: 30 } } });\n * ```\n *\n * Whole days, because that is the unit S3's lifecycle — and MinIO's — counts\n * in. Prefixes are literal: a lifecycle rule matches the start of a key and\n * has no globs, so a pattern that looks like one is refused rather than\n * silently matching nothing.\n */\nexport type ObjectExpiry = Readonly<Record<string, { readonly days: number }>>;\n\n/** An expiry prefix the bucket could not match the way it reads. */\nexport class ExpiryPrefixInvalid extends Error {\n\tconstructor(\n\t\treadonly bucket: string,\n\t\treadonly prefix: string,\n\t\treadonly reason: string,\n\t) {\n\t\tsuper(\n\t\t\t`'${bucket}' expires objects under '${prefix}', which ${reason}. ` +\n\t\t\t\t`Name the start of the keys as they are stored, e.g. 'quotes/'.`,\n\t\t);\n\t\tthis.name = 'ExpiryPrefixInvalid';\n\t}\n}\n\n/** An expiry that is not a whole number of days, one or more. */\nexport class ExpiryDaysInvalid extends Error {\n\tconstructor(\n\t\treadonly bucket: string,\n\t\treadonly prefix: string,\n\t\treadonly days: unknown,\n\t) {\n\t\tsuper(\n\t\t\t`'${bucket}' expires '${prefix}' after ${String(days)} days. A bucket ` +\n\t\t\t\t`counts lifecycle in whole days, so give an integer of 1 or more.`,\n\t\t);\n\t\tthis.name = 'ExpiryDaysInvalid';\n\t}\n}\n\n/**\n * The expiry as the manifest records it — prefix → days — after checking\n * each entry, or nothing when there is none.\n *\n * @throws {ExpiryPrefixInvalid} for an empty, rooted or globbed prefix\n * @throws {ExpiryDaysInvalid} for anything but a positive integer of days\n */\nexport function expiryDays(\n\tbucket: string,\n\texpire: ObjectExpiry | undefined,\n): Record<string, number> | undefined {\n\tif (!expire) return undefined;\n\n\tconst days: Record<string, number> = {};\n\tfor (const [prefix, { days: count }] of Object.entries(expire)) {\n\t\tif (prefix.length === 0) {\n\t\t\tthrow new ExpiryPrefixInvalid(bucket, prefix, 'is empty');\n\t\t}\n\t\tif (prefix.startsWith('/')) {\n\t\t\tthrow new ExpiryPrefixInvalid(\n\t\t\t\tbucket,\n\t\t\t\tprefix,\n\t\t\t\t\"starts with '/', which no stored key does\",\n\t\t\t);\n\t\t}\n\t\tif (/[*?]/.test(prefix)) {\n\t\t\tthrow new ExpiryPrefixInvalid(\n\t\t\t\tbucket,\n\t\t\t\tprefix,\n\t\t\t\t'is a pattern, and a lifecycle prefix is matched literally',\n\t\t\t);\n\t\t}\n\t\tif (!Number.isInteger(count) || count < 1) {\n\t\t\tthrow new ExpiryDaysInvalid(bucket, prefix, count);\n\t\t}\n\t\tdays[prefix] = count;\n\t}\n\n\treturn Object.keys(days).length > 0 ? days : undefined;\n}\n"],"mappings":";;AAoBA,IAAa,sBAAb,cAAyC,MAAM;CAEpC;CACA;CACA;CAHV,YACC,QACA,QACA,QACC;EACD,MACC,IAAI,OAAO,2BAA2B,OAAO,WAAW,OAAO,iEAEhE;EAPS,KAAA,SAAA;EACA,KAAA,SAAA;EACA,KAAA,SAAA;EAMT,KAAK,OAAO;CACb;AACD;;AAGA,IAAa,oBAAb,cAAuC,MAAM;CAElC;CACA;CACA;CAHV,YACC,QACA,QACA,MACC;EACD,MACC,IAAI,OAAO,aAAa,OAAO,UAAU,OAAO,IAAI,EAAE,iFAEvD;EAPS,KAAA,SAAA;EACA,KAAA,SAAA;EACA,KAAA,OAAA;EAMT,KAAK,OAAO;CACb;AACD;;;;;;;;AASA,SAAgB,WACf,QACA,QACqC;CACrC,IAAI,CAAC,QAAQ,OAAO,KAAA;CAEpB,MAAM,OAA+B,CAAC;CACtC,KAAK,MAAM,CAAC,QAAQ,EAAE,MAAM,YAAY,OAAO,QAAQ,MAAM,GAAG;EAC/D,IAAI,OAAO,WAAW,GACrB,MAAM,IAAI,oBAAoB,QAAQ,QAAQ,UAAU;EAEzD,IAAI,OAAO,WAAW,GAAG,GACxB,MAAM,IAAI,oBACT,QACA,QACA,2CACD;EAED,IAAI,OAAO,KAAK,MAAM,GACrB,MAAM,IAAI,oBACT,QACA,QACA,2DACD;EAED,IAAI,CAAC,OAAO,UAAU,KAAK,KAAK,QAAQ,GACvC,MAAM,IAAI,kBAAkB,QAAQ,QAAQ,KAAK;EAElD,KAAK,UAAU;CAChB;CAEA,OAAO,OAAO,KAAK,IAAI,CAAC,CAAC,SAAS,IAAI,OAAO,KAAA;AAC9C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//#region src/expire.ts
|
|
2
|
+
/** An expiry prefix the bucket could not match the way it reads. */
|
|
3
|
+
var ExpiryPrefixInvalid = class extends Error {
|
|
4
|
+
bucket;
|
|
5
|
+
prefix;
|
|
6
|
+
reason;
|
|
7
|
+
constructor(bucket, prefix, reason) {
|
|
8
|
+
super(`'${bucket}' expires objects under '${prefix}', which ${reason}. Name the start of the keys as they are stored, e.g. 'quotes/'.`);
|
|
9
|
+
this.bucket = bucket;
|
|
10
|
+
this.prefix = prefix;
|
|
11
|
+
this.reason = reason;
|
|
12
|
+
this.name = "ExpiryPrefixInvalid";
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
/** An expiry that is not a whole number of days, one or more. */
|
|
16
|
+
var ExpiryDaysInvalid = class extends Error {
|
|
17
|
+
bucket;
|
|
18
|
+
prefix;
|
|
19
|
+
days;
|
|
20
|
+
constructor(bucket, prefix, days) {
|
|
21
|
+
super(`'${bucket}' expires '${prefix}' after ${String(days)} days. A bucket counts lifecycle in whole days, so give an integer of 1 or more.`);
|
|
22
|
+
this.bucket = bucket;
|
|
23
|
+
this.prefix = prefix;
|
|
24
|
+
this.days = days;
|
|
25
|
+
this.name = "ExpiryDaysInvalid";
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The expiry as the manifest records it — prefix → days — after checking
|
|
30
|
+
* each entry, or nothing when there is none.
|
|
31
|
+
*
|
|
32
|
+
* @throws {ExpiryPrefixInvalid} for an empty, rooted or globbed prefix
|
|
33
|
+
* @throws {ExpiryDaysInvalid} for anything but a positive integer of days
|
|
34
|
+
*/
|
|
35
|
+
function expiryDays(bucket, expire) {
|
|
36
|
+
if (!expire) return void 0;
|
|
37
|
+
const days = {};
|
|
38
|
+
for (const [prefix, { days: count }] of Object.entries(expire)) {
|
|
39
|
+
if (prefix.length === 0) throw new ExpiryPrefixInvalid(bucket, prefix, "is empty");
|
|
40
|
+
if (prefix.startsWith("/")) throw new ExpiryPrefixInvalid(bucket, prefix, "starts with '/', which no stored key does");
|
|
41
|
+
if (/[*?]/.test(prefix)) throw new ExpiryPrefixInvalid(bucket, prefix, "is a pattern, and a lifecycle prefix is matched literally");
|
|
42
|
+
if (!Number.isInteger(count) || count < 1) throw new ExpiryDaysInvalid(bucket, prefix, count);
|
|
43
|
+
days[prefix] = count;
|
|
44
|
+
}
|
|
45
|
+
return Object.keys(days).length > 0 ? days : void 0;
|
|
46
|
+
}
|
|
47
|
+
//#endregion
|
|
48
|
+
export { ExpiryPrefixInvalid as n, expiryDays as r, ExpiryDaysInvalid as t };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=expire-CpzUAfr9.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expire-CpzUAfr9.mjs","names":[],"sources":["../src/expire.ts"],"sourcesContent":["/**\n * How long a bucket keeps the objects under a prefix.\n *\n * Shared by `ObjectStorage` and the bucket a `FileServer` vends, because it is\n * a fact about the bucket rather than about who serves it: a prefix of\n * generated files that nobody reads back grows for ever unless the bucket\n * itself is told to drop them.\n *\n * ```ts\n * new ObjectStorage('Private', { expire: { 'quotes/': { days: 30 } } });\n * ```\n *\n * Whole days, because that is the unit S3's lifecycle — and MinIO's — counts\n * in. Prefixes are literal: a lifecycle rule matches the start of a key and\n * has no globs, so a pattern that looks like one is refused rather than\n * silently matching nothing.\n */\nexport type ObjectExpiry = Readonly<Record<string, { readonly days: number }>>;\n\n/** An expiry prefix the bucket could not match the way it reads. */\nexport class ExpiryPrefixInvalid extends Error {\n\tconstructor(\n\t\treadonly bucket: string,\n\t\treadonly prefix: string,\n\t\treadonly reason: string,\n\t) {\n\t\tsuper(\n\t\t\t`'${bucket}' expires objects under '${prefix}', which ${reason}. ` +\n\t\t\t\t`Name the start of the keys as they are stored, e.g. 'quotes/'.`,\n\t\t);\n\t\tthis.name = 'ExpiryPrefixInvalid';\n\t}\n}\n\n/** An expiry that is not a whole number of days, one or more. */\nexport class ExpiryDaysInvalid extends Error {\n\tconstructor(\n\t\treadonly bucket: string,\n\t\treadonly prefix: string,\n\t\treadonly days: unknown,\n\t) {\n\t\tsuper(\n\t\t\t`'${bucket}' expires '${prefix}' after ${String(days)} days. A bucket ` +\n\t\t\t\t`counts lifecycle in whole days, so give an integer of 1 or more.`,\n\t\t);\n\t\tthis.name = 'ExpiryDaysInvalid';\n\t}\n}\n\n/**\n * The expiry as the manifest records it — prefix → days — after checking\n * each entry, or nothing when there is none.\n *\n * @throws {ExpiryPrefixInvalid} for an empty, rooted or globbed prefix\n * @throws {ExpiryDaysInvalid} for anything but a positive integer of days\n */\nexport function expiryDays(\n\tbucket: string,\n\texpire: ObjectExpiry | undefined,\n): Record<string, number> | undefined {\n\tif (!expire) return undefined;\n\n\tconst days: Record<string, number> = {};\n\tfor (const [prefix, { days: count }] of Object.entries(expire)) {\n\t\tif (prefix.length === 0) {\n\t\t\tthrow new ExpiryPrefixInvalid(bucket, prefix, 'is empty');\n\t\t}\n\t\tif (prefix.startsWith('/')) {\n\t\t\tthrow new ExpiryPrefixInvalid(\n\t\t\t\tbucket,\n\t\t\t\tprefix,\n\t\t\t\t\"starts with '/', which no stored key does\",\n\t\t\t);\n\t\t}\n\t\tif (/[*?]/.test(prefix)) {\n\t\t\tthrow new ExpiryPrefixInvalid(\n\t\t\t\tbucket,\n\t\t\t\tprefix,\n\t\t\t\t'is a pattern, and a lifecycle prefix is matched literally',\n\t\t\t);\n\t\t}\n\t\tif (!Number.isInteger(count) || count < 1) {\n\t\t\tthrow new ExpiryDaysInvalid(bucket, prefix, count);\n\t\t}\n\t\tdays[prefix] = count;\n\t}\n\n\treturn Object.keys(days).length > 0 ? days : undefined;\n}\n"],"mappings":";;AAoBA,IAAa,sBAAb,cAAyC,MAAM;CAEpC;CACA;CACA;CAHV,YACC,QACA,QACA,QACC;EACD,MACC,IAAI,OAAO,2BAA2B,OAAO,WAAW,OAAO,iEAEhE;EAPS,KAAA,SAAA;EACA,KAAA,SAAA;EACA,KAAA,SAAA;EAMT,KAAK,OAAO;CACb;AACD;;AAGA,IAAa,oBAAb,cAAuC,MAAM;CAElC;CACA;CACA;CAHV,YACC,QACA,QACA,MACC;EACD,MACC,IAAI,OAAO,aAAa,OAAO,UAAU,OAAO,IAAI,EAAE,iFAEvD;EAPS,KAAA,SAAA;EACA,KAAA,SAAA;EACA,KAAA,OAAA;EAMT,KAAK,OAAO;CACb;AACD;;;;;;;;AASA,SAAgB,WACf,QACA,QACqC;CACrC,IAAI,CAAC,QAAQ,OAAO,KAAA;CAEpB,MAAM,OAA+B,CAAC;CACtC,KAAK,MAAM,CAAC,QAAQ,EAAE,MAAM,YAAY,OAAO,QAAQ,MAAM,GAAG;EAC/D,IAAI,OAAO,WAAW,GACrB,MAAM,IAAI,oBAAoB,QAAQ,QAAQ,UAAU;EAEzD,IAAI,OAAO,WAAW,GAAG,GACxB,MAAM,IAAI,oBACT,QACA,QACA,2CACD;EAED,IAAI,OAAO,KAAK,MAAM,GACrB,MAAM,IAAI,oBACT,QACA,QACA,2DACD;EAED,IAAI,CAAC,OAAO,UAAU,KAAK,KAAK,QAAQ,GACvC,MAAM,IAAI,kBAAkB,QAAQ,QAAQ,KAAK;EAElD,KAAK,UAAU;CAChB;CAEA,OAAO,OAAO,KAAK,IAAI,CAAC,CAAC,SAAS,IAAI,OAAO,KAAA;AAC9C"}
|
package/dist/external-api.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ExternalApi, i as isFake, n as FetchHandler, o as ExternalApiOptions, r as fake, s as ExternalApiUrl, t as Fake } from "./fake-
|
|
1
|
+
import { a as ExternalApi, i as isFake, n as FetchHandler, o as ExternalApiOptions, r as fake, s as ExternalApiUrl, t as Fake } from "./fake-B7rvi4Qp.cjs";
|
|
2
2
|
export { ExternalApi, ExternalApiOptions, ExternalApiUrl, type Fake, type FetchHandler, fake, isFake };
|
package/dist/external-api.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ExternalApi, i as isFake, n as FetchHandler, o as ExternalApiOptions, r as fake, s as ExternalApiUrl, t as Fake } from "./fake-
|
|
1
|
+
import { a as ExternalApi, i as isFake, n as FetchHandler, o as ExternalApiOptions, r as fake, s as ExternalApiUrl, t as Fake } from "./fake-JXbkdao8.mjs";
|
|
2
2
|
export { ExternalApi, ExternalApiOptions, ExternalApiUrl, type Fake, type FetchHandler, fake, isFake };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
|
|
2
2
|
import { r as Consumable } from "./construct-interface-B1AfqRl4.cjs";
|
|
3
3
|
import { n as DeployedStage, r as LocalStage } from "./stages-BSCF19o2.cjs";
|
|
4
4
|
import { Service, ServiceRegisterOptions } from "@geekmidas/services";
|
|
@@ -198,4 +198,4 @@ declare const fake: {
|
|
|
198
198
|
declare function isFake(value: unknown): value is Fake;
|
|
199
199
|
//#endregion
|
|
200
200
|
export { ExternalApi as a, Credential as c, decodeCredentials as d, readCredentials as f, isFake as i, CredentialOptions as l, FetchHandler as n, ExternalApiOptions as o, fake as r, ExternalApiUrl as s, Fake as t, MalformedCredential as u };
|
|
201
|
-
//# sourceMappingURL=fake-
|
|
201
|
+
//# sourceMappingURL=fake-B7rvi4Qp.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-
|
|
1
|
+
{"version":3,"file":"fake-B7rvi4Qp.d.cts","names":["Value"],"sources":["../src/credential.ts","../src/external-api.ts","../src/fake.ts"],"mappings":";;;;;;;KAiEKA,QAAM,gBAAgB,oBAC1B,iBAAiB,YAAY;UAEb,kBAAkB,gBAAgB;;;;;;;;EAQlD,QAAQ;;;;;;;;;;EAUR;;cAGY,WACZ,+BACA,gBAAgB,mBAAmB,6BACvB,WAAW,OAAOA,QAAM;mBA6BlB;WApBT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQA,QAAM;;;;;mBAMpC;;;;;;;;UAST;EAER,YACC,IAAI,cAAc,QACD,SAAS,kBAAkB;;;;;;;MAoBzC,qBAAqB;EAIzB,WAAW;UAUH;UAQA;;;;;;;;;;;iBAmBa,gBAAgB,gBAAgB,kBACrD,YACA,aACA,QAAQ,SACR,WAAW,sCACT,QAAQA,QAAM;;;;;;;;;;;iBAsBD,kBAAkB;;cAoBrB,4BAA4B;WAE9B;WACA;WACA;EAHV,YACU,YACA,aACA;;;;;KCpLN,MAAM,gBAAgB,oBAC1B,iBAAiB,YAAY;;;;;;;;;KAUlB,0CAEO,aAAa,gBAC3B,SAAS,sCACG,KAAK,aAAa;WACrB;;UAGG,mBAAmB,gBAAgB,kBAAkB;;;;;EAKrE,KAAK;;EAEL,aAAa;;EAEb,SAAS;IACR;IACA,aAAa,MAAM;QACd,UAAU,QAAQ;;cAGZ,YACZ,+BACA,gBAAgB,mBAAmB,kBACnC,8BACY,WAAW,OAAO;mBAeZ;WAXT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;mBAG9B;;UAGT;EAER,YACC,IAAI,cAAc,QACD,SAAS,mBAAmB,SAAS;;;;;;;MA0BnD,qBAAqB;EAIzB,WAAW;UAaG;;;;;;;;cCjHT;;UAGW;EAChB,MAAM,SAAS,UAAU,WAAW,QAAQ;;;;;;KAOxC,cAAc,cAClB,mBAAmB,0BAA0B,oBAC1C,iBAAiB,WAAW,WAC5B,mBAAmB,yBAAyB,WAC3C,iBAAiB,WAAW;;;;;;;;KAUrB;YACD;WACD;;WAGE;;WAEA,SAAS;;WAGT;;WAEA;;WAEA;;;WAIA;;;;;;;;cAUC;;EAEZ,IAAI,gBAAc,SACR,cAAY;IACV,aAAa,cAAc;MACpC;;EAUH,MAAM,gBAAc,eACN;IACF;IAAc,aAAa,cAAc;MAClD;;;;;;EAeH,WAAW,uBAAqB,aAClB,cAAc,eACzB;;;iBAMY,OAAO,iBAAiB,SAAS"}
|