@geekmidas/constructs 10.0.0-alpha.147 → 10.0.0-alpha.148
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/{Cron-CQoDSu-n.d.mts → Cron-D8mB_cPX.d.mts} +2 -2
- package/dist/{Cron-CFkpEys6.d.cts.map → Cron-D8mB_cPX.d.mts.map} +1 -1
- package/dist/{Cron-CFkpEys6.d.cts → Cron-D_sfaMGz.d.cts} +2 -2
- package/dist/{Cron-CQoDSu-n.d.mts.map → Cron-D_sfaMGz.d.cts.map} +1 -1
- package/dist/{CronBuilder-OaCRRFVk.d.cts → CronBuilder-C91MVLSr.d.cts} +4 -4
- package/dist/{CronBuilder-1W-G_i15.d.mts.map → CronBuilder-C91MVLSr.d.cts.map} +1 -1
- package/dist/{CronBuilder-1W-G_i15.d.mts → CronBuilder-Cmajva3g.d.mts} +4 -4
- package/dist/{CronBuilder-OaCRRFVk.d.cts.map → CronBuilder-Cmajva3g.d.mts.map} +1 -1
- package/dist/{Endpoint-BcUorcBa.cjs → Endpoint-52z1P0Ue.cjs} +9 -4
- package/dist/Endpoint-52z1P0Ue.cjs.map +1 -0
- package/dist/{Endpoint-DTXDggNl.d.mts → Endpoint-BbHh3Qoc.d.mts} +5 -5
- package/dist/{Endpoint-BEh-jW-f.d.cts.map → Endpoint-BbHh3Qoc.d.mts.map} +1 -1
- package/dist/{Endpoint-BEh-jW-f.d.cts → Endpoint-YYwjqtS1.d.cts} +5 -5
- package/dist/{Endpoint-DTXDggNl.d.mts.map → Endpoint-YYwjqtS1.d.cts.map} +1 -1
- package/dist/{Endpoint-BgvG36NO.mjs → Endpoint-sUOU7uLx.mjs} +9 -4
- package/dist/Endpoint-sUOU7uLx.mjs.map +1 -0
- package/dist/{EndpointFactory-C1NlpCAS.mjs → EndpointFactory-Bzi9Sl7r.mjs} +2 -2
- package/dist/{EndpointFactory-C1NlpCAS.mjs.map → EndpointFactory-Bzi9Sl7r.mjs.map} +1 -1
- package/dist/{EndpointFactory-gqmIRVWg.cjs → EndpointFactory-Cf_Cs1ym.cjs} +2 -2
- package/dist/{EndpointFactory-gqmIRVWg.cjs.map → EndpointFactory-Cf_Cs1ym.cjs.map} +1 -1
- package/dist/{EndpointFactory-B2dCS9dy.d.cts → EndpointFactory-Hh1r6J_C.d.cts} +5 -5
- package/dist/{EndpointFactory-B2dCS9dy.d.cts.map → EndpointFactory-Hh1r6J_C.d.cts.map} +1 -1
- package/dist/{EndpointFactory-D2HXcUrJ.d.mts → EndpointFactory-qcLzi4f-.d.mts} +5 -5
- package/dist/{EndpointFactory-D2HXcUrJ.d.mts.map → EndpointFactory-qcLzi4f-.d.mts.map} +1 -1
- package/dist/{HonoEndpointAdaptor-BJlj20fQ.cjs → HonoEndpointAdaptor-BXBdb2Bt.cjs} +2 -2
- package/dist/{HonoEndpointAdaptor-BJlj20fQ.cjs.map → HonoEndpointAdaptor-BXBdb2Bt.cjs.map} +1 -1
- package/dist/{HonoEndpointAdaptor-BlbkUDNo.mjs → HonoEndpointAdaptor-DR3j7S35.mjs} +2 -2
- package/dist/{HonoEndpointAdaptor-BlbkUDNo.mjs.map → HonoEndpointAdaptor-DR3j7S35.mjs.map} +1 -1
- package/dist/{ObjectSubscriberBuilder-CzgYmOUH.d.mts → ObjectSubscriberBuilder-Cv8C7yS1.d.mts} +2 -2
- package/dist/{ObjectSubscriberBuilder-BuuaYcrm.d.cts.map → ObjectSubscriberBuilder-Cv8C7yS1.d.mts.map} +1 -1
- package/dist/{ObjectSubscriberBuilder-BuuaYcrm.d.cts → ObjectSubscriberBuilder-LWkey_oq.d.cts} +2 -2
- package/dist/{ObjectSubscriberBuilder-CzgYmOUH.d.mts.map → ObjectSubscriberBuilder-LWkey_oq.d.cts.map} +1 -1
- package/dist/{ProcessorBuilder-B2_stA8f.d.mts → ProcessorBuilder-CwfP-M33.d.mts} +2 -2
- package/dist/{ProcessorBuilder-B2_stA8f.d.mts.map → ProcessorBuilder-CwfP-M33.d.mts.map} +1 -1
- package/dist/{ProcessorBuilder-C62bIOwj.d.cts → ProcessorBuilder-_jdZlbfW.d.cts} +2 -2
- package/dist/{ProcessorBuilder-C62bIOwj.d.cts.map → ProcessorBuilder-_jdZlbfW.d.cts.map} +1 -1
- package/dist/{QueueBuilder-B3vL1ED2.d.mts → QueueBuilder-DmwFtLzQ.d.mts} +2 -2
- package/dist/{QueueBuilder-B3vL1ED2.d.mts.map → QueueBuilder-DmwFtLzQ.d.mts.map} +1 -1
- package/dist/{QueueBuilder-BcPBQSSX.d.cts → QueueBuilder-SQli59An.d.cts} +2 -2
- package/dist/{QueueBuilder-BcPBQSSX.d.cts.map → QueueBuilder-SQli59An.d.cts.map} +1 -1
- package/dist/adaptors/aws.cjs +1 -1
- package/dist/adaptors/aws.d.cts +2 -2
- package/dist/adaptors/aws.d.mts +2 -2
- package/dist/adaptors/aws.mjs +1 -1
- package/dist/adaptors/hono.cjs +1 -1
- package/dist/adaptors/hono.d.cts +1 -1
- package/dist/adaptors/hono.d.mts +1 -1
- package/dist/adaptors/hono.mjs +1 -1
- package/dist/adaptors/testing.cjs +2 -2
- package/dist/adaptors/testing.d.cts +4 -4
- package/dist/adaptors/testing.d.mts +4 -4
- package/dist/adaptors/testing.mjs +2 -2
- package/dist/{auth-D_0788uW.d.mts → auth-BqWz2JxC.d.cts} +13 -7
- package/dist/{auth-BMCJN30Y.d.cts.map → auth-BqWz2JxC.d.cts.map} +1 -1
- package/dist/{auth-BMCJN30Y.d.cts → auth-DnB9H9KL.d.mts} +13 -7
- package/dist/{auth-D_0788uW.d.mts.map → auth-DnB9H9KL.d.mts.map} +1 -1
- package/dist/auth.cjs +70 -15
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +1 -1
- package/dist/auth.d.mts +1 -1
- package/dist/auth.mjs +71 -16
- package/dist/auth.mjs.map +1 -1
- package/dist/{cache-5QZzh5Er.d.mts → cache-CQjMNPrC.d.cts} +3 -3
- package/dist/{cache-5QZzh5Er.d.mts.map → cache-CQjMNPrC.d.cts.map} +1 -1
- package/dist/{cache-DnGDGly3.d.cts → cache-e3tfMQ9g.d.mts} +3 -3
- package/dist/{cache-DnGDGly3.d.cts.map → cache-e3tfMQ9g.d.mts.map} +1 -1
- package/dist/cache.d.cts +1 -1
- package/dist/cache.d.mts +1 -1
- package/dist/{construct-interface-B1AfqRl4.d.cts → construct-interface-CSA9VeWM.d.mts} +9 -4
- package/dist/{construct-interface-B1AfqRl4.d.cts.map → construct-interface-CSA9VeWM.d.mts.map} +1 -1
- package/dist/{construct-interface-ZvYQbivO.d.mts → construct-interface-DugP0E5q.d.cts} +9 -4
- package/dist/{construct-interface-ZvYQbivO.d.mts.map → construct-interface-DugP0E5q.d.cts.map} +1 -1
- package/dist/construct-interface.cjs +8 -0
- package/dist/construct-interface.cjs.map +1 -1
- package/dist/construct-interface.d.cts +2 -2
- package/dist/construct-interface.d.mts +2 -2
- package/dist/construct-interface.mjs +8 -1
- package/dist/construct-interface.mjs.map +1 -1
- 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/database/kysely.d.cts +1 -1
- package/dist/database/kysely.d.mts +1 -1
- package/dist/email.d.cts +1 -1
- package/dist/email.d.mts +1 -1
- package/dist/encryption.d.cts +1 -1
- package/dist/encryption.d.mts +1 -1
- package/dist/endpoints/index.cjs +2 -2
- package/dist/endpoints/index.d.cts +2 -2
- package/dist/endpoints/index.d.mts +2 -2
- package/dist/endpoints/index.mjs +2 -2
- package/dist/external-api.d.cts +1 -1
- package/dist/external-api.d.mts +1 -1
- package/dist/{fake-D472nkKb.d.mts → fake-BqhP8RRQ.d.mts} +2 -2
- package/dist/{fake-BUgcX2Dk.d.cts.map → fake-BqhP8RRQ.d.mts.map} +1 -1
- package/dist/{fake-BUgcX2Dk.d.cts → fake-DqieDYYA.d.cts} +2 -2
- package/dist/{fake-D472nkKb.d.mts.map → fake-DqieDYYA.d.cts.map} +1 -1
- package/dist/file-server.d.cts +3 -3
- package/dist/file-server.d.mts +3 -3
- package/dist/functions/index.d.cts +1 -1
- package/dist/functions/index.d.mts +1 -1
- package/dist/{inbox-DqaxrpEk.d.cts → inbox-CR3L1fOI.d.cts} +2 -2
- package/dist/{inbox-DZdICa8F.d.mts.map → inbox-CR3L1fOI.d.cts.map} +1 -1
- package/dist/{inbox-DZdICa8F.d.mts → inbox-CjxpLVkH.d.mts} +2 -2
- package/dist/{inbox-DqaxrpEk.d.cts.map → inbox-CjxpLVkH.d.mts.map} +1 -1
- package/dist/inbox.d.cts +1 -1
- package/dist/inbox.d.mts +1 -1
- package/dist/{index-DuriFjYD.d.mts → index-DCkDQkwj.d.mts} +2 -2
- package/dist/{index-BtzMzhMA.d.cts.map → index-DCkDQkwj.d.mts.map} +1 -1
- package/dist/{index-BtzMzhMA.d.cts → index-DPTHa6Ud.d.cts} +2 -2
- package/dist/{index-DuriFjYD.d.mts.map → index-DPTHa6Ud.d.cts.map} +1 -1
- package/dist/{kysely-BHYV-WC-.d.cts → kysely-CebjCWTl.d.cts} +3 -3
- package/dist/{kysely-BHYV-WC-.d.cts.map → kysely-CebjCWTl.d.cts.map} +1 -1
- package/dist/{kysely-CAW3QSqp.d.mts → kysely-DE4kADWD.d.mts} +3 -3
- package/dist/{kysely-CAW3QSqp.d.mts.map → kysely-DE4kADWD.d.mts.map} +1 -1
- package/dist/mobile-app.d.cts +1 -1
- package/dist/mobile-app.d.mts +1 -1
- package/dist/object-storage.d.cts +1 -1
- package/dist/object-storage.d.mts +1 -1
- package/dist/processors/index.d.cts +1 -1
- package/dist/processors/index.d.mts +1 -1
- package/dist/queue/index.d.cts +1 -1
- package/dist/queue/index.d.mts +1 -1
- package/dist/random-password.d.cts +1 -1
- package/dist/random-password.d.mts +1 -1
- package/dist/rest-api.cjs +12 -1
- package/dist/rest-api.cjs.map +1 -1
- package/dist/rest-api.d.cts +12 -5
- package/dist/rest-api.d.cts.map +1 -1
- package/dist/rest-api.d.mts +12 -5
- package/dist/rest-api.d.mts.map +1 -1
- package/dist/rest-api.mjs +14 -3
- package/dist/rest-api.mjs.map +1 -1
- package/dist/site.cjs +21 -4
- package/dist/site.cjs.map +1 -1
- package/dist/site.d.cts +10 -3
- package/dist/site.d.cts.map +1 -1
- package/dist/site.d.mts +10 -3
- package/dist/site.d.mts.map +1 -1
- package/dist/site.mjs +23 -6
- package/dist/site.mjs.map +1 -1
- package/dist/subscribers/index.d.cts +1 -1
- package/dist/subscribers/index.d.mts +1 -1
- package/dist/{telemetry-B48RLjyk.d.cts → telemetry-C1oqncFY.d.cts} +2 -2
- package/dist/{telemetry-B48RLjyk.d.cts.map → telemetry-C1oqncFY.d.cts.map} +1 -1
- package/dist/{telemetry-BEoBn6GO.d.mts → telemetry-CObow3Dn.d.mts} +2 -2
- package/dist/{telemetry-BEoBn6GO.d.mts.map → telemetry-CObow3Dn.d.mts.map} +1 -1
- package/dist/telemetry.d.cts +1 -1
- package/dist/telemetry.d.mts +1 -1
- package/dist/websocket-api.d.cts +2 -2
- package/dist/websocket-api.d.mts +2 -2
- package/dist/worker.d.cts +8 -8
- package/dist/worker.d.mts +8 -8
- package/package.json +31 -31
- package/dist/Endpoint-BcUorcBa.cjs.map +0 -1
- package/dist/Endpoint-BgvG36NO.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"construct-interface.mjs","names":[],"sources":["../src/construct-interface.ts"],"sourcesContent":["/**\n * The construct contract.\n *\n * A construct is three things at once — an infrastructure requirement at build\n * time, a runtime capability, and something other code can consume — which is\n * what forces exactly these three members.\n *\n * An **interface**, not a base class: `Endpoint`, `Cron`, `Queue`, and `Topic`\n * can satisfy it without inheritance surgery, a lifted `Service` can satisfy it\n * as a plain object, and `.dependsOn()` gets its enforcement structurally — a\n * `Service` (`{ serviceName, register }`) simply does not match\n * `{ id, declare, service }`, with no `instanceof` anywhere.\n *\n * Lives in its own module while the existing abstract `Construct` class is\n * still in use; it takes that name once the class is gone.\n */\n\nimport type { EnvironmentParser } from '@geekmidas/envkit';\nimport type { Declaration, Dependency } from '@geekmidas/manifest';\nimport type { Service } from '@geekmidas/services';\n\n/**\n * @typeParam TName - the construct's canonical id, PascalCase. Keeping it a\n * literal is what lets the service key be `Uncapitalize<TName>` — a TypeScript\n * intrinsic, so no custom transform needs a runtime twin.\n * @typeParam TClient - what consuming this construct hands you. `never` means it\n * owns no address and cannot be consumed: a `Cron` is fired by a schedule and a\n * `Subscriber` is reached through its topic, so `.dependsOn()` on either is a\n * compile error rather than a stub that throws.\n */\nexport interface Construct<TName extends string = string, TClient = never> {\n\t/** Canonical, PascalCase, unique within the manifest. */\n\treadonly id: TName;\n\n\t/**\n\t * The build-time face: what this construct contributes to the manifest.\n\t *\n\t * Returns an array because some constructs contribute more than one node — a\n\t * queue declares the queue and its worker, a database declares its migrator\n\t * and seeder. Most return one.\n\t */\n\tdeclare(): Declaration[];\n\n\t/**\n\t * The consumable face — the address this construct owns, as a client.\n\t *\n\t * A field assigned once rather than a getter. `Construct.getEnvironment`\n\t * and `ServiceDiscovery` cache by service *object*, so a getter returning a\n\t * fresh literal on every access would never hit either cache.\n\t */\n\treadonly service: [TClient] extends [never]\n\t\t? never\n\t\t: Service<Uncapitalize<TName>, TClient>;\n}\n\n/**\n * The build-time face alone — an id and what it contributes to the manifest.\n *\n * Weaker than {@link Consumable} on purpose. An edge is not always an\n * injection: a site depending on an API needs that API's *address at build\n * time* and has no service record to put a client into, so requiring one would\n * make the weakest kind of edge impossible to express with the strongest\n * interface. Discovery asks this same question and nothing more.\n */\nexport interface Declarable<TName extends string = string> {\n\treadonly id: TName;\n\tdeclare(): Declaration[];\n}\n\n/**\n * A construct that authenticates requests — what `RestApi.auth()` takes.\n *\n * `verify` is the one thing every provider shares: given a request's headers,\n * whose request is it — the session, or `null` when there is none. Whether the\n * provider is a server mounted beside the API, deployed elsewhere, or an issuer\n * somebody else runs is its own business; a surface only ever asks this.\n */\nexport interface Authenticator<TSession = unknown> extends Declarable {\n\tverify(\n\t\theaders: Headers,\n\t\tenvParser: EnvironmentParser<{}>,\n\t): Promise<TSession | null>;\n}\n\n/**\n * The edge that points at a construct.\n *\n * A construct's *canonical* node is the one carrying its own id — the others are\n * things it owns rather than things it is, like the signing secret beside an\n * auth server — so the kind an edge records is read off that node instead of\n * being written down beside it. Hand-written kinds are the same fact stated\n * twice, and the copy is what goes stale when a construct changes what it\n * declares.\n *\n * @throws {NotAConstruct} when the value declares nothing under its own id.\n */\nexport function edgeTo(construct: Declarable): Dependency {\n\tconst canonical = construct\n\t\t.declare()\n\t\t.find((declaration) => declaration.id === construct.id);\n\n\tif (!canonical) throw new NotAConstruct(construct);\n\n\treturn { target: construct.id, kind: canonical.kind };\n}\n\n/** What consuming a construct hands you. */\nexport type Infer<C> =\n\tC extends Construct<string, infer TClient> ? TClient : never;\n\n/** A construct's canonical id. */\nexport type NameOf<C> =\n\tC extends Construct<infer TName, unknown> ? TName : never;\n\n/**\n * What `.dependsOn([…])` accepts: a construct that owns a client.\n *\n * Structural, and deliberately narrower than {@link Construct} — it is the\n * face a *consumer* needs, so the builders can accept a database, a bucket, a\n * mail sender, a queue, or a topic without importing any of them. A plain\n * `Service` is not one of these, which is the point: constructs-only confines\n * env sniffing to `.services()` and the explicit lift, so retiring that method\n * retires implicit inference with it.\n */\nexport interface Consumable<TName extends string = string, TClient = unknown> {\n\treadonly id: TName;\n\treadonly service: Service<Uncapitalize<TName>, TClient>;\n\tdeclare(): Declaration[];\n}\n\n/**\n * The services a list of constructs dissolves into.\n *\n * A mapped tuple, so `[db, uploads]` types as `[Service<'orders', Kysely<DB>>,\n * Service<'uploads', StorageClient>]` and the handler's service record gains\n * both keys — the same machinery `.services()` already uses, which is why\n * `dependsOn` needs no type plumbing of its own.\n */\nexport type ServicesOf<T extends readonly Consumable[]> = {\n\t[K in keyof T]: T[K]['service'];\n};\n\n/**\n * The services of a list of constructs, at runtime.\n *\n * @throws {NotAConstruct} when handed something else. The type already refuses\n * it, but a JavaScript caller gets no such warning, and a `Service` slipping\n * through would fail later as an undefined key in the handler.\n */\nexport function servicesOf<const T extends readonly Consumable[]>(\n\tconstructs: T,\n): ServicesOf<T> {\n\treturn constructs.map((construct) => {\n\t\tif (!isConsumable(construct)) throw new NotAConstruct(construct);\n\n\t\treturn construct.service;\n\t}) as ServicesOf<T>;\n}\n\n/**\n * The other half of `servicesOf`: the same edge, as the manifest records it.\n *\n * `.dependsOn()` used to keep only the services, which is what a handler runs\n * with — and an id cannot be recovered from a service name reliably, so the\n * edges were gone by the time the build could read them. Both halves are taken\n * from one call now, and `existing` is folded in so repeated `.dependsOn()`\n * calls accumulate the way `.services()` already does.\n */\nexport function idsOf(\n\tconstructs: readonly Consumable[],\n\texisting: readonly string[] = [],\n): string[] {\n\treturn [...new Set([...existing, ...constructs.map(({ id }) => id)])];\n}\n\n/**\n * The edges after `.database(source)` names a builder's database.\n *\n * A database replaces the one before it — a worker's default, overridden by a\n * runnable that names its own — so the edge the previous one added goes with\n * it. Left behind, a Lambda built from a queue that moved to another database\n * would still be granted the worker's.\n *\n * Only an edge `.database()` added is removed, which is why it is returned as\n * `_databaseEdge` for the next call to read — and not even that one when\n * `.dependsOn()` has since named the same construct, since the handler still\n * reaches it through `services`.\n */\nexport function databaseEdges(\n\tcurrent: {\n\t\tconstructs: readonly string[];\n\t\tedge: string | undefined;\n\t\tservice: Service | undefined;\n\t\tservices: readonly Service[];\n\t},\n\tsource: unknown,\n): { _constructs: string[]; _databaseEdge: string | undefined } {\n\tconst stillDependedOn =\n\t\tcurrent.service !== undefined && current.services.includes(current.service);\n\tconst kept =\n\t\tcurrent.edge && !stillDependedOn\n\t\t\t? current.constructs.filter((id) => id !== current.edge)\n\t\t\t: [...current.constructs];\n\n\tif (!isConsumable(source) || kept.includes(source.id)) {\n\t\treturn { _constructs: kept, _databaseEdge: undefined };\n\t}\n\n\treturn { _constructs: [...kept, source.id], _databaseEdge: source.id };\n}\n\n/** Something that is not a construct was passed to `.dependsOn()`. */\nexport class NotAConstruct extends Error {\n\tconstructor(readonly value: unknown) {\n\t\tconst name =\n\t\t\ttypeof value === 'object' && value !== null && 'serviceName' in value\n\t\t\t\t? `the service '${String((value as { serviceName: unknown }).serviceName)}'`\n\t\t\t\t: `a ${typeof value}`;\n\n\t\tsuper(\n\t\t\t`.dependsOn() takes constructs, and was given ${name}. ` +\n\t\t\t\t`Pass it to .services([…]) instead.`,\n\t\t);\n\t\tthis.name = 'NotAConstruct';\n\t}\n}\n\n/**\n * Whether a value is a construct rather than a bare `Service`.\n *\n * Structural rather than `instanceof`: a construct from a second copy of\n * `@geekmidas/constructs` — a linked workspace, two versions in a lockfile — is\n * still a construct, and `instanceof` is exactly the check that says otherwise.\n */\nexport function isConsumable(value: unknown): value is Consumable {\n\tif (typeof value !== 'object' || value === null) return false;\n\n\tconst candidate = value as Partial<Consumable>;\n\n\treturn (\n\t\ttypeof candidate.id === 'string' &&\n\t\ttypeof candidate.declare === 'function' &&\n\t\ttypeof (candidate.service as Service | undefined)?.serviceName === 'string'\n\t);\n}\n\n/**\n * The service behind either face.\n *\n * `.database()` and the auditor slot take a construct now; they took a\n * `Service` before and still do, because not every hand-written service has a\n * construct to stand for it.\n */\nexport function serviceOf<TName extends string, TClient>(\n\tsource: Consumable<TName, TClient> | Service<TName, TClient>,\n): Service<TName, TClient> {\n\t// A construct's service key is `Uncapitalize<TName>` and the slot is typed\n\t// by `TName`; the two describe the same key, and only the cast says so.\n\treturn isConsumable(source)\n\t\t? (source.service as unknown as Service<TName, TClient>)\n\t\t: (source as Service<TName, TClient>);\n}\n"],"mappings":";;;;;;;;;;;;;AAgGA,SAAgB,OAAO,WAAmC;CACzD,MAAM,YAAY,UAChB,QAAQ,CAAC,CACT,MAAM,gBAAgB,YAAY,OAAO,UAAU,EAAE;CAEvD,IAAI,CAAC,WAAW,MAAM,IAAI,cAAc,SAAS;CAEjD,OAAO;EAAE,QAAQ,UAAU;EAAI,MAAM,UAAU;CAAK;AACrD;;;;;;;;AA6CA,SAAgB,WACf,YACgB;CAChB,OAAO,WAAW,KAAK,cAAc;EACpC,IAAI,CAAC,aAAa,SAAS,GAAG,MAAM,IAAI,cAAc,SAAS;EAE/D,OAAO,UAAU;CAClB,CAAC;AACF;;;;;;;;;;AAWA,SAAgB,MACf,YACA,WAA8B,CAAC,GACpB;CACX,OAAO,CAAC,mBAAG,IAAI,IAAI,CAAC,GAAG,UAAU,GAAG,WAAW,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACrE;;;;;;;;;;;;;;AAeA,SAAgB,cACf,SAMA,QAC+D;CAC/D,MAAM,kBACL,QAAQ,YAAY,KAAA,KAAa,QAAQ,SAAS,SAAS,QAAQ,OAAO;CAC3E,MAAM,OACL,QAAQ,QAAQ,CAAC,kBACd,QAAQ,WAAW,QAAQ,OAAO,OAAO,QAAQ,IAAI,IACrD,CAAC,GAAG,QAAQ,UAAU;CAE1B,IAAI,CAAC,aAAa,MAAM,KAAK,KAAK,SAAS,OAAO,EAAE,GACnD,OAAO;EAAE,aAAa;EAAM,eAAe,KAAA;CAAU;CAGtD,OAAO;EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,EAAE;EAAG,eAAe,OAAO;CAAG;AACtE;;AAGA,IAAa,gBAAb,cAAmC,MAAM;CACnB;CAArB,YAAY,OAAyB;EACpC,MAAM,OACL,OAAO,UAAU,YAAY,UAAU,QAAQ,iBAAiB,QAC7D,gBAAgB,OAAQ,MAAmC,WAAW,EAAE,KACxE,KAAK,OAAO;EAEhB,MACC,gDAAgD,KAAK,qCAEtD;EAToB,KAAA,QAAA;EAUpB,KAAK,OAAO;CACb;AACD;;;;;;;;AASA,SAAgB,aAAa,OAAqC;CACjE,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CAExD,MAAM,YAAY;CAElB,OACC,OAAO,UAAU,OAAO,YACxB,OAAO,UAAU,YAAY,cAC7B,OAAQ,UAAU,SAAiC,gBAAgB;AAErE;;;;;;;;AASA,SAAgB,UACf,QAC0B;CAG1B,OAAO,aAAa,MAAM,IACtB,OAAO,UACP;AACL"}
|
|
1
|
+
{"version":3,"file":"construct-interface.mjs","names":[],"sources":["../src/construct-interface.ts"],"sourcesContent":["/**\n * The construct contract.\n *\n * A construct is three things at once — an infrastructure requirement at build\n * time, a runtime capability, and something other code can consume — which is\n * what forces exactly these three members.\n *\n * An **interface**, not a base class: `Endpoint`, `Cron`, `Queue`, and `Topic`\n * can satisfy it without inheritance surgery, a lifted `Service` can satisfy it\n * as a plain object, and `.dependsOn()` gets its enforcement structurally — a\n * `Service` (`{ serviceName, register }`) simply does not match\n * `{ id, declare, service }`, with no `instanceof` anywhere.\n *\n * Lives in its own module while the existing abstract `Construct` class is\n * still in use; it takes that name once the class is gone.\n */\n\nimport type { EnvironmentParser } from '@geekmidas/envkit';\nimport type { Declaration, Dependency } from '@geekmidas/manifest';\nimport type { Service, ServiceRegisterOptions } from '@geekmidas/services';\n\n/**\n * @typeParam TName - the construct's canonical id, PascalCase. Keeping it a\n * literal is what lets the service key be `Uncapitalize<TName>` — a TypeScript\n * intrinsic, so no custom transform needs a runtime twin.\n * @typeParam TClient - what consuming this construct hands you. `never` means it\n * owns no address and cannot be consumed: a `Cron` is fired by a schedule and a\n * `Subscriber` is reached through its topic, so `.dependsOn()` on either is a\n * compile error rather than a stub that throws.\n */\nexport interface Construct<TName extends string = string, TClient = never> {\n\t/** Canonical, PascalCase, unique within the manifest. */\n\treadonly id: TName;\n\n\t/**\n\t * The build-time face: what this construct contributes to the manifest.\n\t *\n\t * Returns an array because some constructs contribute more than one node — a\n\t * queue declares the queue and its worker, a database declares its migrator\n\t * and seeder. Most return one.\n\t */\n\tdeclare(): Declaration[];\n\n\t/**\n\t * The consumable face — the address this construct owns, as a client.\n\t *\n\t * A field assigned once rather than a getter. `Construct.getEnvironment`\n\t * and `ServiceDiscovery` cache by service *object*, so a getter returning a\n\t * fresh literal on every access would never hit either cache.\n\t */\n\treadonly service: [TClient] extends [never]\n\t\t? never\n\t\t: Service<Uncapitalize<TName>, TClient>;\n}\n\n/**\n * The build-time face alone — an id and what it contributes to the manifest.\n *\n * Weaker than {@link Consumable} on purpose. An edge is not always an\n * injection: a site depending on an API needs that API's *address at build\n * time* and has no service record to put a client into, so requiring one would\n * make the weakest kind of edge impossible to express with the strongest\n * interface. Discovery asks this same question and nothing more.\n */\nexport interface Declarable<TName extends string = string> {\n\treadonly id: TName;\n\tdeclare(): Declaration[];\n}\n\n/**\n * A construct that authenticates requests — what `RestApi.auth()` takes.\n *\n * `verify` is the one thing every provider shares: given a request's headers,\n * whose request is it — the session, or `null` when there is none. Whether the\n * provider is a server mounted beside the API, deployed elsewhere, or an issuer\n * somebody else runs is its own business; a surface only ever asks this.\n */\nexport interface Authenticator<TSession = unknown> extends Declarable {\n\tverify(\n\t\theaders: Headers,\n\t\tenvParser: EnvironmentParser<{}>,\n\t): Promise<TSession | null>;\n}\n\n/**\n * The edge that points at a construct.\n *\n * A construct's *canonical* node is the one carrying its own id — the others are\n * things it owns rather than things it is, like the signing secret beside an\n * auth server — so the kind an edge records is read off that node instead of\n * being written down beside it. Hand-written kinds are the same fact stated\n * twice, and the copy is what goes stale when a construct changes what it\n * declares.\n *\n * @throws {NotAConstruct} when the value declares nothing under its own id.\n */\nexport function edgeTo(construct: Declarable): Dependency {\n\tconst canonical = construct\n\t\t.declare()\n\t\t.find((declaration) => declaration.id === construct.id);\n\n\tif (!canonical) throw new NotAConstruct(construct);\n\n\treturn { target: construct.id, kind: canonical.kind };\n}\n\n/** What consuming a construct hands you. */\nexport type Infer<C> =\n\tC extends Construct<string, infer TClient> ? TClient : never;\n\n/** A construct's canonical id. */\nexport type NameOf<C> =\n\tC extends Construct<infer TName, unknown> ? TName : never;\n\n/**\n * What `.dependsOn([…])` accepts: a construct that owns a client.\n *\n * Structural, and deliberately narrower than {@link Construct} — it is the\n * face a *consumer* needs, so the builders can accept a database, a bucket, a\n * mail sender, a queue, or a topic without importing any of them. A plain\n * `Service` is not one of these, which is the point: constructs-only confines\n * env sniffing to `.services()` and the explicit lift, so retiring that method\n * retires implicit inference with it.\n */\nexport interface Consumable<TName extends string = string, TClient = unknown> {\n\treadonly id: TName;\n\treadonly service: Service<Uncapitalize<TName>, TClient>;\n\tdeclare(): Declaration[];\n}\n\n/**\n * The services a list of constructs dissolves into.\n *\n * A mapped tuple, so `[db, uploads]` types as `[Service<'orders', Kysely<DB>>,\n * Service<'uploads', StorageClient>]` and the handler's service record gains\n * both keys — the same machinery `.services()` already uses, which is why\n * `dependsOn` needs no type plumbing of its own.\n */\nexport type ServicesOf<T extends readonly Consumable[]> = {\n\t[K in keyof T]: T[K]['service'];\n};\n\n/**\n * The services of a list of constructs, at runtime.\n *\n * @throws {NotAConstruct} when handed something else. The type already refuses\n * it, but a JavaScript caller gets no such warning, and a `Service` slipping\n * through would fail later as an undefined key in the handler.\n */\nexport function servicesOf<const T extends readonly Consumable[]>(\n\tconstructs: T,\n): ServicesOf<T> {\n\treturn constructs.map((construct) => {\n\t\tif (!isConsumable(construct)) throw new NotAConstruct(construct);\n\n\t\treturn construct.service;\n\t}) as ServicesOf<T>;\n}\n\n/**\n * The other half of `servicesOf`: the same edge, as the manifest records it.\n *\n * `.dependsOn()` used to keep only the services, which is what a handler runs\n * with — and an id cannot be recovered from a service name reliably, so the\n * edges were gone by the time the build could read them. Both halves are taken\n * from one call now, and `existing` is folded in so repeated `.dependsOn()`\n * calls accumulate the way `.services()` already does.\n */\nexport function idsOf(\n\tconstructs: readonly Consumable[],\n\texisting: readonly string[] = [],\n): string[] {\n\treturn [...new Set([...existing, ...constructs.map(({ id }) => id)])];\n}\n\n/**\n * The edges after `.database(source)` names a builder's database.\n *\n * A database replaces the one before it — a worker's default, overridden by a\n * runnable that names its own — so the edge the previous one added goes with\n * it. Left behind, a Lambda built from a queue that moved to another database\n * would still be granted the worker's.\n *\n * Only an edge `.database()` added is removed, which is why it is returned as\n * `_databaseEdge` for the next call to read — and not even that one when\n * `.dependsOn()` has since named the same construct, since the handler still\n * reaches it through `services`.\n */\nexport function databaseEdges(\n\tcurrent: {\n\t\tconstructs: readonly string[];\n\t\tedge: string | undefined;\n\t\tservice: Service | undefined;\n\t\tservices: readonly Service[];\n\t},\n\tsource: unknown,\n): { _constructs: string[]; _databaseEdge: string | undefined } {\n\tconst stillDependedOn =\n\t\tcurrent.service !== undefined && current.services.includes(current.service);\n\tconst kept =\n\t\tcurrent.edge && !stillDependedOn\n\t\t\t? current.constructs.filter((id) => id !== current.edge)\n\t\t\t: [...current.constructs];\n\n\tif (!isConsumable(source) || kept.includes(source.id)) {\n\t\treturn { _constructs: kept, _databaseEdge: undefined };\n\t}\n\n\treturn { _constructs: [...kept, source.id], _databaseEdge: source.id };\n}\n\n/** Something that is not a construct was passed to `.dependsOn()`. */\nexport class NotAConstruct extends Error {\n\tconstructor(readonly value: unknown) {\n\t\tconst name =\n\t\t\ttypeof value === 'object' && value !== null && 'serviceName' in value\n\t\t\t\t? `the service '${String((value as { serviceName: unknown }).serviceName)}'`\n\t\t\t\t: `a ${typeof value}`;\n\n\t\tsuper(\n\t\t\t`.dependsOn() takes constructs, and was given ${name}. ` +\n\t\t\t\t`Pass it to .services([…]) instead.`,\n\t\t);\n\t\tthis.name = 'NotAConstruct';\n\t}\n}\n\n/**\n * Whether a value is a construct rather than a bare `Service`.\n *\n * Structural rather than `instanceof`: a construct from a second copy of\n * `@geekmidas/constructs` — a linked workspace, two versions in a lockfile — is\n * still a construct, and `instanceof` is exactly the check that says otherwise.\n */\nexport function isConsumable(value: unknown): value is Consumable {\n\tif (typeof value !== 'object' || value === null) return false;\n\n\tconst candidate = value as Partial<Consumable>;\n\n\treturn (\n\t\ttypeof candidate.id === 'string' &&\n\t\ttypeof candidate.declare === 'function' &&\n\t\ttypeof (candidate.service as Service | undefined)?.serviceName === 'string'\n\t);\n}\n\n/**\n * The service behind either face.\n *\n * `.database()` and the auditor slot take a construct now; they took a\n * `Service` before and still do, because not every hand-written service has a\n * construct to stand for it.\n */\nexport function serviceOf<TName extends string, TClient>(\n\tsource: Consumable<TName, TClient> | Service<TName, TClient>,\n): Service<TName, TClient> {\n\t// A construct's service key is `Uncapitalize<TName>` and the slot is typed\n\t// by `TName`; the two describe the same key, and only the cast says so.\n\treturn isConsumable(source)\n\t\t? (source.service as unknown as Service<TName, TClient>)\n\t\t: (source as Service<TName, TClient>);\n}\n\n/**\n * A surface's or a site's public address, read from its `<ID>_URL` — the\n * client a `RestApi` or a `StaticSite` hands whatever `.dependsOn()` it.\n */\nexport function publicUrl(\n\toptions: ServiceRegisterOptions,\n\tkey: string,\n): string {\n\treturn options.envParser.create((get) => ({ url: get(key).string() })).parse()\n\t\t.url;\n}\n"],"mappings":";;;;;;;;;;;;;AAgGA,SAAgB,OAAO,WAAmC;CACzD,MAAM,YAAY,UAChB,QAAQ,CAAC,CACT,MAAM,gBAAgB,YAAY,OAAO,UAAU,EAAE;CAEvD,IAAI,CAAC,WAAW,MAAM,IAAI,cAAc,SAAS;CAEjD,OAAO;EAAE,QAAQ,UAAU;EAAI,MAAM,UAAU;CAAK;AACrD;;;;;;;;AA6CA,SAAgB,WACf,YACgB;CAChB,OAAO,WAAW,KAAK,cAAc;EACpC,IAAI,CAAC,aAAa,SAAS,GAAG,MAAM,IAAI,cAAc,SAAS;EAE/D,OAAO,UAAU;CAClB,CAAC;AACF;;;;;;;;;;AAWA,SAAgB,MACf,YACA,WAA8B,CAAC,GACpB;CACX,OAAO,CAAC,mBAAG,IAAI,IAAI,CAAC,GAAG,UAAU,GAAG,WAAW,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AACrE;;;;;;;;;;;;;;AAeA,SAAgB,cACf,SAMA,QAC+D;CAC/D,MAAM,kBACL,QAAQ,YAAY,KAAA,KAAa,QAAQ,SAAS,SAAS,QAAQ,OAAO;CAC3E,MAAM,OACL,QAAQ,QAAQ,CAAC,kBACd,QAAQ,WAAW,QAAQ,OAAO,OAAO,QAAQ,IAAI,IACrD,CAAC,GAAG,QAAQ,UAAU;CAE1B,IAAI,CAAC,aAAa,MAAM,KAAK,KAAK,SAAS,OAAO,EAAE,GACnD,OAAO;EAAE,aAAa;EAAM,eAAe,KAAA;CAAU;CAGtD,OAAO;EAAE,aAAa,CAAC,GAAG,MAAM,OAAO,EAAE;EAAG,eAAe,OAAO;CAAG;AACtE;;AAGA,IAAa,gBAAb,cAAmC,MAAM;CACnB;CAArB,YAAY,OAAyB;EACpC,MAAM,OACL,OAAO,UAAU,YAAY,UAAU,QAAQ,iBAAiB,QAC7D,gBAAgB,OAAQ,MAAmC,WAAW,EAAE,KACxE,KAAK,OAAO;EAEhB,MACC,gDAAgD,KAAK,qCAEtD;EAToB,KAAA,QAAA;EAUpB,KAAK,OAAO;CACb;AACD;;;;;;;;AASA,SAAgB,aAAa,OAAqC;CACjE,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CAExD,MAAM,YAAY;CAElB,OACC,OAAO,UAAU,OAAO,YACxB,OAAO,UAAU,YAAY,cAC7B,OAAQ,UAAU,SAAiC,gBAAgB;AAErE;;;;;;;;AASA,SAAgB,UACf,QAC0B;CAG1B,OAAO,aAAa,MAAM,IACtB,OAAO,UACP;AACL;;;;;AAMA,SAAgB,UACf,SACA,KACS;CACT,OAAO,QAAQ,UAAU,QAAQ,SAAS,EAAE,KAAK,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAC5E;AACH"}
|
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-DqieDYYA.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-BqhP8RRQ.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-D_sfaMGz.cjs";
|
|
2
|
+
import { t as CronBuilder } from "../CronBuilder-C91MVLSr.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-D8mB_cPX.mjs";
|
|
2
|
+
import { t as CronBuilder } from "../CronBuilder-Cmajva3g.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. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as closeDatabasePools, i as ReadOnlyDatabase, n as KyselyDatabaseOptions, r as PostgresRuntime, t as KyselyDatabase } from "../kysely-
|
|
1
|
+
import { a as closeDatabasePools, i as ReadOnlyDatabase, n as KyselyDatabaseOptions, r as PostgresRuntime, t as KyselyDatabase } from "../kysely-CebjCWTl.cjs";
|
|
2
2
|
export { KyselyDatabase, KyselyDatabaseOptions, PostgresRuntime, ReadOnlyDatabase, closeDatabasePools };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as closeDatabasePools, i as ReadOnlyDatabase, n as KyselyDatabaseOptions, r as PostgresRuntime, t as KyselyDatabase } from "../kysely-
|
|
1
|
+
import { a as closeDatabasePools, i as ReadOnlyDatabase, n as KyselyDatabaseOptions, r as PostgresRuntime, t as KyselyDatabase } from "../kysely-DE4kADWD.mjs";
|
|
2
2
|
export { KyselyDatabase, KyselyDatabaseOptions, PostgresRuntime, ReadOnlyDatabase, closeDatabasePools };
|
package/dist/email.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
1
|
+
import { n as Construct } from "./construct-interface-DugP0E5q.cjs";
|
|
2
2
|
import { Service } from "@geekmidas/services";
|
|
3
3
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
4
4
|
import { EmailClient, TemplateRecord } from "@geekmidas/emailkit";
|
package/dist/email.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
1
|
+
import { n as Construct } from "./construct-interface-CSA9VeWM.mjs";
|
|
2
2
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
3
3
|
import { Service } from "@geekmidas/services";
|
|
4
4
|
import { EmailClient, TemplateRecord } from "@geekmidas/emailkit";
|
package/dist/encryption.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
1
|
+
import { n as Construct } from "./construct-interface-DugP0E5q.cjs";
|
|
2
2
|
import { a as CurrentKeyCannotRetire, c as Keyring, d as generateKeyring, f as keyringCipher, h as rotateKeyring, i as CiphertextNotAuthentic, l as UnknownEncryptionScheme, m as retireKey, n as CipherDriver, o as EncryptionKeyRetired, p as parseKeyring, r as CiphertextMalformed, s as EncryptionUrlInvalid, t as Cipher, u as formatKeyring } from "./cipher-DSDxPRIp.cjs";
|
|
3
3
|
import { Service } from "@geekmidas/services";
|
|
4
4
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
package/dist/encryption.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
1
|
+
import { n as Construct } from "./construct-interface-CSA9VeWM.mjs";
|
|
2
2
|
import { a as CurrentKeyCannotRetire, c as Keyring, d as generateKeyring, f as keyringCipher, h as rotateKeyring, i as CiphertextNotAuthentic, l as UnknownEncryptionScheme, m as retireKey, n as CipherDriver, o as EncryptionKeyRetired, p as parseKeyring, r as CiphertextMalformed, s as EncryptionUrlInvalid, t as Cipher, u as formatKeyring } from "./cipher-DSDxPRIp.mjs";
|
|
3
3
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
4
4
|
import { Service } from "@geekmidas/services";
|
package/dist/endpoints/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_EndpointFactory = require("../EndpointFactory-
|
|
2
|
+
const require_EndpointFactory = require("../EndpointFactory-Cf_Cs1ym.cjs");
|
|
3
3
|
const require_functions = require("../functions-DLF6-IK8.cjs");
|
|
4
|
-
const require_Endpoint = require("../Endpoint-
|
|
4
|
+
const require_Endpoint = require("../Endpoint-52z1P0Ue.cjs");
|
|
5
5
|
const require_surfaceEnv = require("../surfaceEnv-CNimK76p.cjs");
|
|
6
6
|
const require_readRequestBody = require("../readRequestBody-Dej_L3c4.cjs");
|
|
7
7
|
let _geekmidas_manifest = require("@geekmidas/manifest");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as publishConstructEvents } from "../Construct-127M7yrl.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-
|
|
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-
|
|
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-YYwjqtS1.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-Hh1r6J_C.cjs";
|
|
4
4
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
5
5
|
import { trustsOrigin } from "@geekmidas/manifest";
|
|
6
6
|
import { Context } from "hono";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as publishConstructEvents } from "../Construct-DySlwh8o.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-
|
|
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-
|
|
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-BbHh3Qoc.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-qcLzi4f-.mjs";
|
|
4
4
|
import { trustsOrigin } from "@geekmidas/manifest";
|
|
5
5
|
import { HttpError } from "@geekmidas/errors";
|
|
6
6
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
package/dist/endpoints/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-Bzi9Sl7r.mjs";
|
|
2
2
|
import { i as publishConstructEvents } from "../functions-BvIDQKAA.mjs";
|
|
3
|
-
import { a as NoAuthenticator, i as SuccessStatus, n as RedirectStatus, r as ResponseBuilder, t as Endpoint } from "../Endpoint-
|
|
3
|
+
import { a as NoAuthenticator, i as SuccessStatus, n as RedirectStatus, r as ResponseBuilder, t as Endpoint } from "../Endpoint-sUOU7uLx.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
6
|
import { trustsOrigin } from "@geekmidas/manifest";
|
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-DqieDYYA.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-BqhP8RRQ.mjs";
|
|
2
2
|
export { ExternalApi, ExternalApiOptions, ExternalApiUrl, type Fake, type FetchHandler, fake, isFake };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.mjs";
|
|
2
|
-
import { r as Consumable } from "./construct-interface-
|
|
2
|
+
import { r as Consumable } from "./construct-interface-CSA9VeWM.mjs";
|
|
3
3
|
import { n as DeployedStage, r as LocalStage } from "./stages-DaTaoQei.mjs";
|
|
4
4
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
5
5
|
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-BqhP8RRQ.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-
|
|
1
|
+
{"version":3,"file":"fake-BqhP8RRQ.d.mts","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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
|
|
2
|
-
import { r as Consumable } from "./construct-interface-
|
|
2
|
+
import { r as Consumable } from "./construct-interface-DugP0E5q.cjs";
|
|
3
3
|
import { n as DeployedStage, r as LocalStage } from "./stages-DaTaoQei.cjs";
|
|
4
4
|
import { Service, ServiceRegisterOptions } from "@geekmidas/services";
|
|
5
5
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
@@ -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-DqieDYYA.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-
|
|
1
|
+
{"version":3,"file":"fake-DqieDYYA.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"}
|
package/dist/file-server.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
|
|
2
|
-
import { i as Declarable, n as Construct } from "./construct-interface-
|
|
3
|
-
import { n as Telemetry } from "./telemetry-
|
|
2
|
+
import { i as Declarable, n as Construct } from "./construct-interface-DugP0E5q.cjs";
|
|
3
|
+
import { n as Telemetry } from "./telemetry-C1oqncFY.cjs";
|
|
4
4
|
import { r as ObjectExpiry } from "./expire-C586zznE.cjs";
|
|
5
|
-
import { f as PatternParams, i as Processor, t as ProcessorBuilder } from "./ProcessorBuilder-
|
|
5
|
+
import { f as PatternParams, i as Processor, t as ProcessorBuilder } from "./ProcessorBuilder-_jdZlbfW.cjs";
|
|
6
6
|
import { Logger } from "@geekmidas/logger";
|
|
7
7
|
import { Service } from "@geekmidas/services";
|
|
8
8
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
package/dist/file-server.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.mjs";
|
|
2
|
-
import { i as Declarable, n as Construct } from "./construct-interface-
|
|
3
|
-
import { n as Telemetry } from "./telemetry-
|
|
2
|
+
import { i as Declarable, n as Construct } from "./construct-interface-CSA9VeWM.mjs";
|
|
3
|
+
import { n as Telemetry } from "./telemetry-CObow3Dn.mjs";
|
|
4
4
|
import { r as ObjectExpiry } from "./expire-C586zznE.mjs";
|
|
5
|
-
import { f as PatternParams, i as Processor, t as ProcessorBuilder } from "./ProcessorBuilder-
|
|
5
|
+
import { f as PatternParams, i as Processor, t as ProcessorBuilder } from "./ProcessorBuilder-CwfP-M33.mjs";
|
|
6
6
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
7
7
|
import { StorageClient } from "@geekmidas/storage";
|
|
8
8
|
import { Service } from "@geekmidas/services";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as FunctionHandler, n as Function, r as FunctionContext } from "../Function-BIEsY0Hm.cjs";
|
|
2
|
-
import { n as BaseFunctionBuilder, t as FunctionBuilder } from "../index-
|
|
2
|
+
import { n as BaseFunctionBuilder, t as FunctionBuilder } from "../index-DPTHa6Ud.cjs";
|
|
3
3
|
export { BaseFunctionBuilder, Function, FunctionBuilder, type FunctionContext, type FunctionHandler };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as FunctionHandler, n as Function, r as FunctionContext } from "../Function-DfMzTGS4.mjs";
|
|
2
|
-
import { n as BaseFunctionBuilder, t as FunctionBuilder } from "../index-
|
|
2
|
+
import { n as BaseFunctionBuilder, t as FunctionBuilder } from "../index-DCkDQkwj.mjs";
|
|
3
3
|
export { BaseFunctionBuilder, Function, FunctionBuilder, type FunctionContext, type FunctionHandler };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as Topic } from "./Construct-127M7yrl.cjs";
|
|
2
|
-
import { n as Construct } from "./construct-interface-
|
|
2
|
+
import { n as Construct } from "./construct-interface-DugP0E5q.cjs";
|
|
3
3
|
import { Service } from "@geekmidas/services";
|
|
4
4
|
import { ConstructName, Declaration, InboxAddressing, InboxRecipient } from "@geekmidas/manifest";
|
|
5
5
|
import { ParsedEmail } from "@geekmidas/emailkit/inbound";
|
|
@@ -192,4 +192,4 @@ declare function receiveMail(message: ArrivedMessage, inboxes: readonly Receivin
|
|
|
192
192
|
declare function isInbox(value: unknown): value is Inbox;
|
|
193
193
|
//#endregion
|
|
194
194
|
export { InboxHasNoAddresses as a, RawMessageUnreadable as c, ReceivingInbox as d, Verdict as f, unjudgedReceipt as g, receiveMail as h, InboxClient as i, ReceiptNotification as l, isInbox as m, Inbox as n, InboxMessage as o, Verdicts as p, InboxAddressInvalid as r, InboxOptions as s, ArrivedMessage as t, ReceiptNotificationMalformed as u };
|
|
195
|
-
//# sourceMappingURL=inbox-
|
|
195
|
+
//# sourceMappingURL=inbox-CR3L1fOI.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-
|
|
1
|
+
{"version":3,"file":"inbox-CR3L1fOI.d.cts","names":[],"sources":["../src/inbox.ts"],"mappings":";;;;;;UAsDiB;;;;;EAKhB;;;;;EAKA;;;cAIY,4BAA4B;WACnB;EAArB,YAAqB;;;cAUT,4BAA4B;WAE9B;WACA;EAFV,YACU,eACA;;;;;;cAeE,qCAAqC;WAEvC;WACA;EAFV,YACU,eACA;;;;;;;;KAgBC;;UAGK;EAChB,KAAK;EACL,MAAM;EACN,OAAO;EACP,MAAM;EACN,OAAO;;;;;;;;;;UAWS,qBACR,KAAK,6BACZ,KAAK;EACN,WAAW;;;;;EAKX;IAAO;IAAgB;;EACvB,UAAU;;;UAID;EACT;;;;;;;;UASgB;EAChB;EACA;IACC;IACA;;IAEA;IACA;;EAED;IACC;;IAEA;IACA,cAAc;IACd,eAAe;IACf,aAAa;IACb,cAAc;IACd,eAAe;IACf;MACC;MACA;MACA;MACA;;;;;UAMc;;WAEP;;EAET,IAAI,cAAc,QAAQ;;;;;;EAM1B,SAAS,cAAc,sBAAsB,QAAQ;;KAYjD,aAAa;cAEL,MAAM,0CACP,UAAU,OAAO;WAEnB,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;WAEtC,OAAO;;WAGP,YAAY;mBACJ;mBACA;mBACA;EAEjB,YAAY,MAAM,cAAc,QAAQ,SAAS;EAgCjD,WAAW;UAcG;;;cAmEF,6BAA6B;WAE/B;WACA;WACA;EAHV,YACU,eACA,aACA;;;;;;iBA2DK,gBAAgB;EAC/B;EACA;EACA;EACA;EACA;EACA,WAAW,QAAQ;EACnB,YAAY;IACT;;UA+Ba;EAChB;EACA,YAAY;;EAEZ;;EAEA,QAAQ,cAAc,sBAAsB;;;UAI5B;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA,WAAW,QAAQ;;;;;;;;;;;;iBAaE,YACrB,SAAS,gBACT,kBAAkB,mBAChB;;iBAuBa,QAAQ,iBAAiB,SAAS"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as Topic } from "./Construct-DySlwh8o.mjs";
|
|
2
|
-
import { n as Construct } from "./construct-interface-
|
|
2
|
+
import { n as Construct } from "./construct-interface-CSA9VeWM.mjs";
|
|
3
3
|
import { ConstructName, Declaration, InboxAddressing, InboxRecipient } from "@geekmidas/manifest";
|
|
4
4
|
import { Service } from "@geekmidas/services";
|
|
5
5
|
import { ParsedEmail } from "@geekmidas/emailkit/inbound";
|
|
@@ -192,4 +192,4 @@ declare function receiveMail(message: ArrivedMessage, inboxes: readonly Receivin
|
|
|
192
192
|
declare function isInbox(value: unknown): value is Inbox;
|
|
193
193
|
//#endregion
|
|
194
194
|
export { InboxHasNoAddresses as a, RawMessageUnreadable as c, ReceivingInbox as d, Verdict as f, unjudgedReceipt as g, receiveMail as h, InboxClient as i, ReceiptNotification as l, isInbox as m, Inbox as n, InboxMessage as o, Verdicts as p, InboxAddressInvalid as r, InboxOptions as s, ArrivedMessage as t, ReceiptNotificationMalformed as u };
|
|
195
|
-
//# sourceMappingURL=inbox-
|
|
195
|
+
//# sourceMappingURL=inbox-CjxpLVkH.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-
|
|
1
|
+
{"version":3,"file":"inbox-CjxpLVkH.d.mts","names":[],"sources":["../src/inbox.ts"],"mappings":";;;;;;UAsDiB;;;;;EAKhB;;;;;EAKA;;;cAIY,4BAA4B;WACnB;EAArB,YAAqB;;;cAUT,4BAA4B;WAE9B;WACA;EAFV,YACU,eACA;;;;;;cAeE,qCAAqC;WAEvC;WACA;EAFV,YACU,eACA;;;;;;;;KAgBC;;UAGK;EAChB,KAAK;EACL,MAAM;EACN,OAAO;EACP,MAAM;EACN,OAAO;;;;;;;;;;UAWS,qBACR,KAAK,6BACZ,KAAK;EACN,WAAW;;;;;EAKX;IAAO;IAAgB;;EACvB,UAAU;;;UAID;EACT;;;;;;;;UASgB;EAChB;EACA;IACC;IACA;;IAEA;IACA;;EAED;IACC;;IAEA;IACA,cAAc;IACd,eAAe;IACf,aAAa;IACb,cAAc;IACd,eAAe;IACf;MACC;MACA;MACA;MACA;;;;;UAMc;;WAEP;;EAET,IAAI,cAAc,QAAQ;;;;;;EAM1B,SAAS,cAAc,sBAAsB,QAAQ;;KAYjD,aAAa;cAEL,MAAM,0CACP,UAAU,OAAO;WAEnB,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;WAEtC,OAAO;;WAGP,YAAY;mBACJ;mBACA;mBACA;EAEjB,YAAY,MAAM,cAAc,QAAQ,SAAS;EAgCjD,WAAW;UAcG;;;cAmEF,6BAA6B;WAE/B;WACA;WACA;EAHV,YACU,eACA,aACA;;;;;;iBA2DK,gBAAgB;EAC/B;EACA;EACA;EACA;EACA;EACA,WAAW,QAAQ;EACnB,YAAY;IACT;;UA+Ba;EAChB;EACA,YAAY;;EAEZ;;EAEA,QAAQ,cAAc,sBAAsB;;;UAI5B;;EAEhB;;EAEA;;EAEA;;EAEA;;EAEA,WAAW,QAAQ;;;;;;;;;;;;iBAaE,YACrB,SAAS,gBACT,kBAAkB,mBAChB;;iBAuBa,QAAQ,iBAAiB,SAAS"}
|
package/dist/inbox.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InboxHasNoAddresses, c as RawMessageUnreadable, d as ReceivingInbox, f as Verdict, g as unjudgedReceipt, h as receiveMail, i as InboxClient, l as ReceiptNotification, m as isInbox, n as Inbox, o as InboxMessage, p as Verdicts, r as InboxAddressInvalid, s as InboxOptions, t as ArrivedMessage, u as ReceiptNotificationMalformed } from "./inbox-
|
|
1
|
+
import { a as InboxHasNoAddresses, c as RawMessageUnreadable, d as ReceivingInbox, f as Verdict, g as unjudgedReceipt, h as receiveMail, i as InboxClient, l as ReceiptNotification, m as isInbox, n as Inbox, o as InboxMessage, p as Verdicts, r as InboxAddressInvalid, s as InboxOptions, t as ArrivedMessage, u as ReceiptNotificationMalformed } from "./inbox-CR3L1fOI.cjs";
|
|
2
2
|
export { ArrivedMessage, Inbox, InboxAddressInvalid, InboxClient, InboxHasNoAddresses, InboxMessage, InboxOptions, RawMessageUnreadable, ReceiptNotification, ReceiptNotificationMalformed, ReceivingInbox, Verdict, Verdicts, isInbox, receiveMail, unjudgedReceipt };
|
package/dist/inbox.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InboxHasNoAddresses, c as RawMessageUnreadable, d as ReceivingInbox, f as Verdict, g as unjudgedReceipt, h as receiveMail, i as InboxClient, l as ReceiptNotification, m as isInbox, n as Inbox, o as InboxMessage, p as Verdicts, r as InboxAddressInvalid, s as InboxOptions, t as ArrivedMessage, u as ReceiptNotificationMalformed } from "./inbox-
|
|
1
|
+
import { a as InboxHasNoAddresses, c as RawMessageUnreadable, d as ReceivingInbox, f as Verdict, g as unjudgedReceipt, h as receiveMail, i as InboxClient, l as ReceiptNotification, m as isInbox, n as Inbox, o as InboxMessage, p as Verdicts, r as InboxAddressInvalid, s as InboxOptions, t as ArrivedMessage, u as ReceiptNotificationMalformed } from "./inbox-CjxpLVkH.mjs";
|
|
2
2
|
export { ArrivedMessage, Inbox, InboxAddressInvalid, InboxClient, InboxHasNoAddresses, InboxMessage, InboxOptions, RawMessageUnreadable, ReceiptNotification, ReceiptNotificationMalformed, ReceivingInbox, Verdict, Verdicts, isInbox, receiveMail, unjudgedReceipt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.mjs";
|
|
2
2
|
import { a as EventFor, c as Topic, n as ConstructType, o as TopicEvent } from "./Construct-DySlwh8o.mjs";
|
|
3
3
|
import { i as FunctionHandler, n as Function } from "./Function-DfMzTGS4.mjs";
|
|
4
|
-
import { c as ServicesOf, r as Consumable } from "./construct-interface-
|
|
4
|
+
import { c as ServicesOf, r as Consumable } from "./construct-interface-CSA9VeWM.mjs";
|
|
5
5
|
import { Service } from "@geekmidas/services";
|
|
6
6
|
import { AuditStorage, AuditableAction } from "@geekmidas/audit";
|
|
7
7
|
import { Logger } from "@geekmidas/logger";
|
|
@@ -112,4 +112,4 @@ declare class FunctionBuilder<TInput extends ComposableStandardSchema, OutSchema
|
|
|
112
112
|
}
|
|
113
113
|
//#endregion
|
|
114
114
|
export { BaseFunctionBuilder as n, FunctionBuilder as t };
|
|
115
|
-
//# sourceMappingURL=index-
|
|
115
|
+
//# sourceMappingURL=index-DCkDQkwj.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DCkDQkwj.d.mts","names":[],"sources":["../src/functions/BaseFunctionBuilder.ts","../src/functions/FunctionBuilder.ts"],"mappings":";;;;;;;;;uBAsBsB,oBACrB,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA;EAoFmB,MAAI;YAlFb,cAAc;YACd,eAAe;YACf;EAEH,WAAW;;;;;;;;;EASX;EACA,SAAS;;;;;;;EAQT;;;;;;;;EASA;;EAGA,SAAS;YACN,kBAAkB,QAAQ,0BAA0B;YACpD,mBAAmB,QAAQ,sBAAsB;;YAEjD;SAEH,mBAAmB,aAAa,KAAK;SAM/B,8BACZ,UAAU,sCACT,eAAe,QAAQ,IAAI,QAAQ,8BAA8B;EAkCnE,YAAmB,OAAI;WAEd,SAAS,UAAU,WAAW,UAAU;WAExC,OAAO,UAAU,QAAQ,QAAQ;EAE1C,QAAQ;WAIC,OAAO,UAAU,kBAAkB,QAAQ;WAE3C,MAAM,UAAU,0BAA0B,QAAQ;;;;;;;YAQjD,UACT,OAAO,iBACP,OAAO,SAAS;EAcjB,QAAQ,UAAU,cAAc,sBAC/B,SAAS,QAAQ,OAAO,KACtB,oBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA;;;;;EAuBD,SAAS,GAAG,sBACX,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,oBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA;;;;cCzKW,gBACZ,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA,8CACA,qBAAqB,mCAAmC,0CAI/C,oBACT,QACA,WACA,WACA,SACA,eACA,0BACA,WACA;EAI4B,MAAI;YAFtB;EAEV,YAA4B,OAAI;EAIvB,QAAQ;EAIjB,WAAW;EAIX,OAAO,UAAU,kBAChB,QAAQ,IACN,gBACF,QACA,GACA,WACA,SACA,eACA,0BACA,WACA,sBACA;EAiBD,MAAM,UAAU,0BACf,QAAQ,IACN,gBACF,GACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;;;;;;;;EA4BD,gBAAgB,mBAAmB,cAClC,YAAY,IACV,gBACF,QACA,eACI,cAAc,WAAW,KAC7B,SACA,eACA,0BACA,WACA,sBACA;EA8BD,SAAS,UAAU,WAClB,UAAU,IACR,gBACF,QACA,eACI,cAAc,IAClB,SACA,eACA,0BACA,WACA,sBACA;EAoBD,OAAO,UAAU,QAChB,QAAQ,IACN,gBACF,QACA,WACA,WACA,GACA,eACA,0BACA,WACA,sBACA;;;;;;;EAuBD,MAAM,eAAe,iBACpB,OAAO,QACP,OAAO,SAAS,QAAQ,oBAAoB,cAC1C,gBACF,QACA,eACI,WAAW,oBACf,SACA,eACA,0BACA,WACA,sBACA;EAeQ,QAAQ,UAAU,cAAc,sBACxC,SAAS,QAAQ,OAAO,KACtB,gBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA,sBACA;;;;;EAwBD,QAAQ,UAAU,qCAAqC,gBACtD,QACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;EAmBQ,SAAS,GAAG,sBACpB,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,gBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA,OACA;EAkCD,OACC,IAAI,gBACH,QACA,WACA,SACA,WACA,WACA,eACA,gBAEC,SACF,QACA,WACA,SACA,WACA,eACA,0BACA,WACA,sBACA,cACA,gBACC,QACA,WACA,SACA,WACA,WACA,eACA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
|
|
2
2
|
import { a as EventFor, c as Topic, n as ConstructType, o as TopicEvent } from "./Construct-127M7yrl.cjs";
|
|
3
3
|
import { i as FunctionHandler, n as Function } from "./Function-BIEsY0Hm.cjs";
|
|
4
|
-
import { c as ServicesOf, r as Consumable } from "./construct-interface-
|
|
4
|
+
import { c as ServicesOf, r as Consumable } from "./construct-interface-DugP0E5q.cjs";
|
|
5
5
|
import { Logger } from "@geekmidas/logger";
|
|
6
6
|
import { ComposableStandardSchema, InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
|
|
7
7
|
import { Service } from "@geekmidas/services";
|
|
@@ -112,4 +112,4 @@ declare class FunctionBuilder<TInput extends ComposableStandardSchema, OutSchema
|
|
|
112
112
|
}
|
|
113
113
|
//#endregion
|
|
114
114
|
export { BaseFunctionBuilder as n, FunctionBuilder as t };
|
|
115
|
-
//# sourceMappingURL=index-
|
|
115
|
+
//# sourceMappingURL=index-DPTHa6Ud.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DPTHa6Ud.d.cts","names":[],"sources":["../src/functions/BaseFunctionBuilder.ts","../src/functions/FunctionBuilder.ts"],"mappings":";;;;;;;;;uBAsBsB,oBACrB,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA;EAoFmB,MAAI;YAlFb,cAAc;YACd,eAAe;YACf;EAEH,WAAW;;;;;;;;;EASX;EACA,SAAS;;;;;;;EAQT;;;;;;;;EASA;;EAGA,SAAS;YACN,kBAAkB,QAAQ,0BAA0B;YACpD,mBAAmB,QAAQ,sBAAsB;;YAEjD;SAEH,mBAAmB,aAAa,KAAK;SAM/B,8BACZ,UAAU,sCACT,eAAe,QAAQ,IAAI,QAAQ,8BAA8B;EAkCnE,YAAmB,OAAI;WAEd,SAAS,UAAU,WAAW,UAAU;WAExC,OAAO,UAAU,QAAQ,QAAQ;EAE1C,QAAQ;WAIC,OAAO,UAAU,kBAAkB,QAAQ;WAE3C,MAAM,UAAU,0BAA0B,QAAQ;;;;;;;YAQjD,UACT,OAAO,iBACP,OAAO,SAAS;EAcjB,QAAQ,UAAU,cAAc,sBAC/B,SAAS,QAAQ,OAAO,KACtB,oBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA;;;;;EAuBD,SAAS,GAAG,sBACX,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,oBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA;;;;cCzKW,gBACZ,eAAe,0BACf,kBAAkB,0CAClB,kBAAkB,gBAClB,gBAAgB,SAAS,QACzB,sBAAsB,sCACtB,kDACA,uBACA,8CACA,qBAAqB,mCAAmC,0CAI/C,oBACT,QACA,WACA,WACA,SACA,eACA,0BACA,WACA;EAI4B,MAAI;YAFtB;EAEV,YAA4B,OAAI;EAIvB,QAAQ;EAIjB,WAAW;EAIX,OAAO,UAAU,kBAChB,QAAQ,IACN,gBACF,QACA,GACA,WACA,SACA,eACA,0BACA,WACA,sBACA;EAiBD,MAAM,UAAU,0BACf,QAAQ,IACN,gBACF,GACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;;;;;;;;EA4BD,gBAAgB,mBAAmB,cAClC,YAAY,IACV,gBACF,QACA,eACI,cAAc,WAAW,KAC7B,SACA,eACA,0BACA,WACA,sBACA;EA8BD,SAAS,UAAU,WAClB,UAAU,IACR,gBACF,QACA,eACI,cAAc,IAClB,SACA,eACA,0BACA,WACA,sBACA;EAoBD,OAAO,UAAU,QAChB,QAAQ,IACN,gBACF,QACA,WACA,WACA,GACA,eACA,0BACA,WACA,sBACA;;;;;;;EAuBD,MAAM,eAAe,iBACpB,OAAO,QACP,OAAO,SAAS,QAAQ,oBAAoB,cAC1C,gBACF,QACA,eACI,WAAW,oBACf,SACA,eACA,0BACA,WACA,sBACA;EAeQ,QAAQ,UAAU,cAAc,sBACxC,SAAS,QAAQ,OAAO,KACtB,gBACF,QACA,WACA,WACA,SACA,GACA,OACA,WACA,sBACA;;;;;EAwBD,QAAQ,UAAU,qCAAqC,gBACtD,QACA,WACA,WACA,SACA,eACA,0BACA,WACA,sBACA;;;;;EAmBQ,SAAS,GAAG,sBACpB,QAAQ,WAAW,OAAO,KAAK,QAAQ,OAAO,KAC5C,gBACF,QACA,WACA,WACA,SACA,eACA,0BACA,GACA,OACA;EAkCD,OACC,IAAI,gBACH,QACA,WACA,SACA,WACA,WACA,eACA,gBAEC,SACF,QACA,WACA,SACA,WACA,eACA,0BACA,WACA,sBACA,cACA,gBACC,QACA,WACA,SACA,WACA,WACA,eACA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
2
|
-
import { t as Cache } from "./cache-
|
|
1
|
+
import { n as Construct } from "./construct-interface-DugP0E5q.cjs";
|
|
2
|
+
import { t as Cache } from "./cache-CQjMNPrC.cjs";
|
|
3
3
|
import { Service } from "@geekmidas/services";
|
|
4
4
|
import { ConstructName, Declaration, PostgresVersion } from "@geekmidas/manifest";
|
|
5
5
|
import { Kysely, KyselyConfig } from "kysely";
|
|
@@ -213,4 +213,4 @@ declare class KyselyDatabase<DB = unknown, TName extends string = string> implem
|
|
|
213
213
|
type ReadOnlyDatabase<DB, TName extends string> = Omit<KyselyDatabase<DB, TName>, 'reader' | 'cache' | 'schema'>;
|
|
214
214
|
//#endregion
|
|
215
215
|
export { closeDatabasePools as a, ReadOnlyDatabase as i, KyselyDatabaseOptions as n, PostgresRuntime as r, KyselyDatabase as t };
|
|
216
|
-
//# sourceMappingURL=kysely-
|
|
216
|
+
//# sourceMappingURL=kysely-CebjCWTl.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kysely-
|
|
1
|
+
{"version":3,"file":"kysely-CebjCWTl.d.cts","names":[],"sources":["../src/database/pool.ts","../src/database/kysely.ts"],"mappings":";;;;;;;;;;;iBAwGsB,sBAAsB;;;;;;;;;;;;UChElC,kCAAkC,KAAK;;;;;;;;EAQhD;;;;;;;;EAQA;;;;;;;;;;EAUA;;;;;;;;EAQA;;;;;;;KAQW;;;;;;;;;;;EAYT,UAAU;EACV;;;;;;;;;;;;;;;;;EAkBA;EACA;;;;;;KAOS,wBAAwB,4BAA4B;;UAGtD;EACT;EACA;EACA;;;;;;;;;cAUY,eAAe,cAAc,0CAC9B,UAAU,OAAO,OAAO;mBAiBjB;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ,OAAO;;;;;mBAMrC;mBACA;mBACA;mBACA;mBACA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS,uBAC1B,cAAc;EA2Bf,WAAW;;;;;;;;;;;;;EAyDX,UAAU,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;EAyBlC,MAAM,2BAA2B,cAChC,KAAI,cAAc,SAClB;IAAW;MACT,MAAM;;;;;;;;;EAeT,OAAO,UAAU,wBAChB,IAAI,cAAc,UAClB,UAAS,wBACP,eAAe,UAAU;;;;;;;;;;;;;MAoBxB,SAAS,WAAW,aAAa,eAAe,OAAO;;;;;;;;;MAgBvD,gBAAgB,KAAK;UAiBX;;;;;;;;;;;;;;;;;;;KAuCH,iBAAiB,IAAI,wBAAwB,KACxD,eAAe,IAAI"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
2
|
-
import { t as Cache } from "./cache-
|
|
1
|
+
import { n as Construct } from "./construct-interface-CSA9VeWM.mjs";
|
|
2
|
+
import { t as Cache } from "./cache-e3tfMQ9g.mjs";
|
|
3
3
|
import { ConstructName, Declaration, PostgresVersion } from "@geekmidas/manifest";
|
|
4
4
|
import { Service } from "@geekmidas/services";
|
|
5
5
|
import { Kysely, KyselyConfig } from "kysely";
|
|
@@ -213,4 +213,4 @@ declare class KyselyDatabase<DB = unknown, TName extends string = string> implem
|
|
|
213
213
|
type ReadOnlyDatabase<DB, TName extends string> = Omit<KyselyDatabase<DB, TName>, 'reader' | 'cache' | 'schema'>;
|
|
214
214
|
//#endregion
|
|
215
215
|
export { closeDatabasePools as a, ReadOnlyDatabase as i, KyselyDatabaseOptions as n, PostgresRuntime as r, KyselyDatabase as t };
|
|
216
|
-
//# sourceMappingURL=kysely-
|
|
216
|
+
//# sourceMappingURL=kysely-DE4kADWD.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kysely-
|
|
1
|
+
{"version":3,"file":"kysely-DE4kADWD.d.mts","names":[],"sources":["../src/database/pool.ts","../src/database/kysely.ts"],"mappings":";;;;;;;;;;;iBAwGsB,sBAAsB;;;;;;;;;;;;UChElC,kCAAkC,KAAK;;;;;;;;EAQhD;;;;;;;;EAQA;;;;;;;;;;EAUA;;;;;;;;EAQA;;;;;;;KAQW;;;;;;;;;;;EAYT,UAAU;EACV;;;;;;;;;;;;;;;;;EAkBA;EACA;;;;;;KAOS,wBAAwB,4BAA4B;;UAGtD;EACT;EACA;EACA;;;;;;;;;cAUY,eAAe,cAAc,0CAC9B,UAAU,OAAO,OAAO;mBAiBjB;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ,OAAO;;;;;mBAMrC;mBACA;mBACA;mBACA;mBACA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS,uBAC1B,cAAc;EA2Bf,WAAW;;;;;;;;;;;;;EAyDX,UAAU,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;EAyBlC,MAAM,2BAA2B,cAChC,KAAI,cAAc,SAClB;IAAW;MACT,MAAM;;;;;;;;;EAeT,OAAO,UAAU,wBAChB,IAAI,cAAc,UAClB,UAAS,wBACP,eAAe,UAAU;;;;;;;;;;;;;MAoBxB,SAAS,WAAW,aAAa,eAAe,OAAO;;;;;;;;;MAgBvD,gBAAgB,KAAK;UAiBX;;;;;;;;;;;;;;;;;;;KAuCH,iBAAiB,IAAI,wBAAwB,KACxD,eAAe,IAAI"}
|
package/dist/mobile-app.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Declarable } from "./construct-interface-
|
|
1
|
+
import { i as Declarable } from "./construct-interface-DugP0E5q.cjs";
|
|
2
2
|
import { ConstructName, Declaration, Dependency, MobileAppDeclaration, MobileAppStage } from "@geekmidas/manifest";
|
|
3
3
|
//#region src/mobile-app.d.ts
|
|
4
4
|
export interface MobileAppConfig {
|
package/dist/mobile-app.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Declarable } from "./construct-interface-
|
|
1
|
+
import { i as Declarable } from "./construct-interface-CSA9VeWM.mjs";
|
|
2
2
|
import { ConstructName, Declaration, Dependency, MobileAppDeclaration, MobileAppStage } from "@geekmidas/manifest";
|
|
3
3
|
//#region src/mobile-app.d.ts
|
|
4
4
|
export interface MobileAppConfig {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
1
|
+
import { n as Construct } from "./construct-interface-DugP0E5q.cjs";
|
|
2
2
|
import { n as ExpiryPrefixInvalid, r as ObjectExpiry, t as ExpiryDaysInvalid } from "./expire-C586zznE.cjs";
|
|
3
3
|
import { Service } from "@geekmidas/services";
|
|
4
4
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
1
|
+
import { n as Construct } from "./construct-interface-CSA9VeWM.mjs";
|
|
2
2
|
import { n as ExpiryPrefixInvalid, r as ObjectExpiry, t as ExpiryDaysInvalid } from "./expire-C586zznE.mjs";
|
|
3
3
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
4
4
|
import { StorageClient } from "@geekmidas/storage";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as parsePattern, a as ProcessorCache, c as ProcessorParams, d as ParsedPattern, f as PatternParams, g as matchPattern, h as fillPattern, i as Processor, l as ProcessorResult, m as ProcessorPatternInvalid, n as ProcessorNativeInvalid, o as ProcessorContext, p as ProcessorParamMissing, r as DERIVED_PREFIX, s as ProcessorHandler, t as ProcessorBuilder, u as SourceObject } from "../ProcessorBuilder-
|
|
1
|
+
import { _ as parsePattern, a as ProcessorCache, c as ProcessorParams, d as ParsedPattern, f as PatternParams, g as matchPattern, h as fillPattern, i as Processor, l as ProcessorResult, m as ProcessorPatternInvalid, n as ProcessorNativeInvalid, o as ProcessorContext, p as ProcessorParamMissing, r as DERIVED_PREFIX, s as ProcessorHandler, t as ProcessorBuilder, u as SourceObject } from "../ProcessorBuilder-_jdZlbfW.cjs";
|
|
2
2
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
3
3
|
import { ServiceDiscovery } from "@geekmidas/services";
|
|
4
4
|
//#region src/processors/AWSLambdaProcessor.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as parsePattern, a as ProcessorCache, c as ProcessorParams, d as ParsedPattern, f as PatternParams, g as matchPattern, h as fillPattern, i as Processor, l as ProcessorResult, m as ProcessorPatternInvalid, n as ProcessorNativeInvalid, o as ProcessorContext, p as ProcessorParamMissing, r as DERIVED_PREFIX, s as ProcessorHandler, t as ProcessorBuilder, u as SourceObject } from "../ProcessorBuilder-
|
|
1
|
+
import { _ as parsePattern, a as ProcessorCache, c as ProcessorParams, d as ParsedPattern, f as PatternParams, g as matchPattern, h as fillPattern, i as Processor, l as ProcessorResult, m as ProcessorPatternInvalid, n as ProcessorNativeInvalid, o as ProcessorContext, p as ProcessorParamMissing, r as DERIVED_PREFIX, s as ProcessorHandler, t as ProcessorBuilder, u as SourceObject } from "../ProcessorBuilder-CwfP-M33.mjs";
|
|
2
2
|
import { ServiceDiscovery } from "@geekmidas/services";
|
|
3
3
|
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
4
4
|
//#region src/processors/AWSLambdaProcessor.d.ts
|
package/dist/queue/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as QueueMessage, n as QueueContext, r as QueueHandler, t as Queue } from "../Queue-C4rijiM7.cjs";
|
|
2
|
-
import { n as QueueNeedsMessage, r as QueueNeedsName } from "../QueueBuilder-
|
|
2
|
+
import { n as QueueNeedsMessage, r as QueueNeedsName } from "../QueueBuilder-SQli59An.cjs";
|
|
3
3
|
export { Queue, type QueueContext, type QueueHandler, type QueueMessage, QueueNeedsMessage, QueueNeedsName };
|
package/dist/queue/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as QueueMessage, n as QueueContext, r as QueueHandler, t as Queue } from "../Queue-BnK3UH8r.mjs";
|
|
2
|
-
import { n as QueueNeedsMessage, r as QueueNeedsName } from "../QueueBuilder-
|
|
2
|
+
import { n as QueueNeedsMessage, r as QueueNeedsName } from "../QueueBuilder-DmwFtLzQ.mjs";
|
|
3
3
|
export { Queue, type QueueContext, type QueueHandler, type QueueMessage, QueueNeedsMessage, QueueNeedsName };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
1
|
+
import { n as Construct } from "./construct-interface-DugP0E5q.cjs";
|
|
2
2
|
import { Service } from "@geekmidas/services";
|
|
3
3
|
import { ConstructName, Declaration, SecretFormat } from "@geekmidas/manifest";
|
|
4
4
|
//#region src/random-password.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Construct } from "./construct-interface-
|
|
1
|
+
import { n as Construct } from "./construct-interface-CSA9VeWM.mjs";
|
|
2
2
|
import { ConstructName, Declaration, SecretFormat } from "@geekmidas/manifest";
|
|
3
3
|
import { Service } from "@geekmidas/services";
|
|
4
4
|
//#region src/random-password.d.ts
|
package/dist/rest-api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_construct_interface = require("./construct-interface.cjs");
|
|
3
|
-
const require_EndpointFactory = require("./EndpointFactory-
|
|
3
|
+
const require_EndpointFactory = require("./EndpointFactory-Cf_Cs1ym.cjs");
|
|
4
4
|
const require_surfaceEnv = require("./surfaceEnv-CNimK76p.cjs");
|
|
5
5
|
let _geekmidas_manifest = require("@geekmidas/manifest");
|
|
6
6
|
let _geekmidas_logger_console = require("@geekmidas/logger/console");
|
|
@@ -25,6 +25,12 @@ var RestApi = class RestApi {
|
|
|
25
25
|
authenticator;
|
|
26
26
|
id;
|
|
27
27
|
/**
|
|
28
|
+
* Its public address, `https://api.example.com` — what a worker or another
|
|
29
|
+
* surface's endpoint that `.dependsOn([api])` reads to build a link or a
|
|
30
|
+
* callback URL. The same `<ID>_URL` on every command and stage.
|
|
31
|
+
*/
|
|
32
|
+
service;
|
|
33
|
+
/**
|
|
28
34
|
* Declared once and read by both `declare()` and anything that consumes this
|
|
29
35
|
* surface, so what the target publishes and what a consumer reads cannot
|
|
30
36
|
* drift.
|
|
@@ -61,6 +67,11 @@ var RestApi = class RestApi {
|
|
|
61
67
|
trustedOrigins: (0, _geekmidas_manifest.provideKey)(canonical, "trustedOrigins"),
|
|
62
68
|
cookieDomain: (0, _geekmidas_manifest.provideKey)(canonical, "cookieDomain")
|
|
63
69
|
};
|
|
70
|
+
const url = this.keys.url;
|
|
71
|
+
this.service = {
|
|
72
|
+
serviceName: (0, _geekmidas_manifest.serviceKey)(canonical),
|
|
73
|
+
register: (options) => require_construct_interface.publicUrl(options, url)
|
|
74
|
+
};
|
|
64
75
|
this.logger = config.logger ?? _geekmidas_logger_console.DEFAULT_LOGGER;
|
|
65
76
|
this.telescope = config.telescope;
|
|
66
77
|
this.telemetry = config.telemetry;
|