@geekmidas/constructs 10.0.0-alpha.21 → 10.0.0-alpha.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +29 -23
  2. package/dist/{Endpoint-DbYQJgb-.d.cts → Endpoint-CrhoafsT.d.cts} +2 -2
  3. package/dist/{Endpoint-BxkRWQ8G.d.mts.map → Endpoint-CrhoafsT.d.cts.map} +1 -1
  4. package/dist/{Endpoint-BxkRWQ8G.d.mts → Endpoint-pTZrMs_h.d.mts} +2 -2
  5. package/dist/{Endpoint-DbYQJgb-.d.cts.map → Endpoint-pTZrMs_h.d.mts.map} +1 -1
  6. package/dist/{EndpointFactory-T06kTFHg.d.mts → EndpointFactory-BSLH4hSU.d.mts} +2 -2
  7. package/dist/{EndpointFactory-DE6nKtFZ.d.cts.map → EndpointFactory-BSLH4hSU.d.mts.map} +1 -1
  8. package/dist/{EndpointFactory-DE6nKtFZ.d.cts → EndpointFactory-CiCzFdMx.d.cts} +2 -2
  9. package/dist/{EndpointFactory-T06kTFHg.d.mts.map → EndpointFactory-CiCzFdMx.d.cts.map} +1 -1
  10. package/dist/Queue-BB2-DgqJ.cjs +123 -0
  11. package/dist/Queue-BB2-DgqJ.cjs.map +1 -0
  12. package/dist/Queue-Dfumm1WR.mjs +118 -0
  13. package/dist/Queue-Dfumm1WR.mjs.map +1 -0
  14. package/dist/Topic-BaNCgP61.cjs +107 -0
  15. package/dist/Topic-BaNCgP61.cjs.map +1 -0
  16. package/dist/Topic-QqnO_6Dl.mjs +102 -0
  17. package/dist/Topic-QqnO_6Dl.mjs.map +1 -0
  18. package/dist/adaptors/aws.d.cts +1 -1
  19. package/dist/adaptors/aws.d.mts +1 -1
  20. package/dist/adaptors/hono.d.cts +1 -1
  21. package/dist/adaptors/hono.d.mts +1 -1
  22. package/dist/adaptors/testing.cjs +136 -32
  23. package/dist/adaptors/testing.cjs.map +1 -1
  24. package/dist/adaptors/testing.d.cts +101 -13
  25. package/dist/adaptors/testing.d.cts.map +1 -1
  26. package/dist/adaptors/testing.d.mts +101 -13
  27. package/dist/adaptors/testing.d.mts.map +1 -1
  28. package/dist/adaptors/testing.mjs +133 -33
  29. package/dist/adaptors/testing.mjs.map +1 -1
  30. package/dist/{auth-BlO8MUkR.d.cts → auth-BR2eYxIW.d.cts} +16 -1
  31. package/dist/{auth-BlO8MUkR.d.cts.map → auth-BR2eYxIW.d.cts.map} +1 -1
  32. package/dist/{auth-CHWIdcQO.d.mts → auth-DtprqoJP.d.mts} +16 -1
  33. package/dist/{auth-CHWIdcQO.d.mts.map → auth-DtprqoJP.d.mts.map} +1 -1
  34. package/dist/auth.cjs +28 -6
  35. package/dist/auth.cjs.map +1 -1
  36. package/dist/auth.d.cts +1 -1
  37. package/dist/auth.d.mts +1 -1
  38. package/dist/auth.mjs +28 -6
  39. package/dist/auth.mjs.map +1 -1
  40. package/dist/endpoints/index.d.cts +2 -2
  41. package/dist/endpoints/index.d.mts +2 -2
  42. package/dist/queue/index.cjs +3 -116
  43. package/dist/queue/index.cjs.map +1 -1
  44. package/dist/queue/index.mjs +1 -114
  45. package/dist/queue/index.mjs.map +1 -1
  46. package/dist/rest-api.d.cts +2 -2
  47. package/dist/rest-api.d.mts +2 -2
  48. package/dist/topic/index.cjs +3 -100
  49. package/dist/topic/index.cjs.map +1 -1
  50. package/dist/topic/index.mjs +1 -98
  51. package/dist/topic/index.mjs.map +1 -1
  52. package/package.json +31 -31
@@ -1,104 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_Construct = require("../Construct-yG9Sw-5p.cjs");
3
2
  const require_clone = require("../clone-UGJpvQnL.cjs");
4
- let _geekmidas_manifest = require("@geekmidas/manifest");
3
+ const require_Topic = require("../Topic-BaNCgP61.cjs");
5
4
  let _geekmidas_logger_console = require("@geekmidas/logger/console");
6
- let _geekmidas_events = require("@geekmidas/events");
7
- //#region src/topic/Topic.ts
8
- /**
9
- * A topic — pub/sub fan-out. Unlike a `Queue` (point-to-point, one consumer), a
10
- * topic is a *resource* owned by no single handler: it declares the event
11
- * contract, derives a typed producer (`topic.publisher`), and any number of
12
- * subscribers (`s.topic(topic)`) bind to it. `gkm build` discovers it into the
13
- * manifest's `topics` field; infra provisions an SNS topic.
14
- *
15
- * This replaces hand-writing a publisher `Service`: the publisher is *derived*
16
- * from the declared event contract, the same way `Queue` derives its publisher.
17
- */
18
- var Topic = class extends require_Construct.Construct {
19
- name;
20
- eventSchemas;
21
- __IS_TOPIC__ = true;
22
- static isTopic(obj) {
23
- return Boolean(obj && obj.__IS_TOPIC__ === true && obj.type === "dev.geekmidas.resource.topic");
24
- }
25
- /**
26
- * The canonical id this topic is declared under.
27
- *
28
- * Derived from the name, so `users` and `Users` are one topic. The name is
29
- * left alone: subscribers bind to it and it is what the broker routes on.
30
- */
31
- id;
32
- /**
33
- * The producer's env key, read by both {@link declare} and
34
- * {@link publisher} so the two cannot drift.
35
- */
36
- connectionKey;
37
- constructor(name, eventSchemas, logger = _geekmidas_logger_console.DEFAULT_LOGGER) {
38
- super("dev.geekmidas.resource.topic", logger, [], []);
39
- this.name = name;
40
- this.eventSchemas = eventSchemas;
41
- this.id = (0, _geekmidas_manifest.canonicalId)(name);
42
- this.connectionKey = (0, _geekmidas_manifest.provideKey)(this.id, "publisherConnectionString");
43
- }
44
- /**
45
- * What this topic is in the manifest.
46
- *
47
- * Only the producer's key: a subscriber is *bound* to a topic rather than
48
- * depending on it, so the binding is an edge the deploy target reads and not
49
- * an env key anyone can hold. Locally both sides meet on the same broker.
50
- */
51
- declare() {
52
- return [{
53
- kind: "topic",
54
- id: this.id,
55
- provides: [this.connectionKey],
56
- events: this.eventTypes,
57
- subscribers: []
58
- }];
59
- }
60
- /** The event type names this topic carries. */
61
- get eventTypes() {
62
- return Object.keys(this.eventSchemas);
63
- }
64
- /**
65
- * The producer side — a `Service` exposing an `EventPublisher` typed to the
66
- * union of this topic's events. Inject via `.publisher(topic.publisher)` (for
67
- * declarative `.event(...)`) or `.services([topic.publisher])` (to publish
68
- * imperatively). Reads `<NAME>_PUBLISHER_CONNECTION_STRING` and selects the
69
- * transport from the URL protocol — `pgboss://` locally, `sns://` deployed.
70
- *
71
- * Because it's a `Service`, the connection-string requirement is sniffed into
72
- * the manifest of whatever construct injects it (least-privilege linking).
73
- */
74
- /**
75
- * The topic as a dependency — what `.dependsOn([users])` dissolves into,
76
- * reachable as `services.users`.
77
- *
78
- * It is the producer, because publishing is the only thing depending on a
79
- * topic can mean: a subscriber *binds* with `s.topic(…)` instead, and is
80
- * deliberately never handed this. {@link publisher} is the same service
81
- * under its older `<name>Publisher` key.
82
- */
83
- get service() {
84
- const { register } = this.publisher;
85
- return {
86
- serviceName: (0, _geekmidas_manifest.serviceKey)(this.id),
87
- register
88
- };
89
- }
90
- get publisher() {
91
- const envVar = this.connectionKey;
92
- return {
93
- serviceName: `${this.name}Publisher`,
94
- async register({ envParser }) {
95
- const { connectionString } = envParser.create((get) => ({ connectionString: get(envVar).string() })).parse();
96
- return _geekmidas_events.Publisher.fromConnectionString(connectionString);
97
- }
98
- };
99
- }
100
- };
101
- //#endregion
102
5
  //#region src/topic/TopicBuilder.ts
103
6
  /**
104
7
  * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.
@@ -121,14 +24,14 @@ var TopicBuilder = class {
121
24
  */
122
25
  events(events) {
123
26
  if (!this._name) throw new Error("Topic requires a name — call .topic(name) before .events().");
124
- return new Topic(this._name, events, this._logger);
27
+ return new require_Topic.Topic(this._name, events, this._logger);
125
28
  }
126
29
  };
127
30
  //#endregion
128
31
  //#region src/topic/index.ts
129
32
  const t = new TopicBuilder();
130
33
  //#endregion
131
- exports.Topic = Topic;
34
+ exports.Topic = require_Topic.Topic;
132
35
  exports.TopicBuilder = TopicBuilder;
133
36
  exports.t = t;
134
37
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Construct","DEFAULT_LOGGER","canonicalId","provideKey","serviceKey","Publisher","DEFAULT_LOGGER","cloneWith"],"sources":["../../src/topic/Topic.ts","../../src/topic/TopicBuilder.ts","../../src/topic/index.ts"],"sourcesContent":["import {\n\ttype EventPublisher,\n\ttype EventPublisherConnectionString,\n\ttype PublishableMessage,\n\tPublisher,\n} from '@geekmidas/events';\nimport type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport {\n\tcanonicalId,\n\ttype Declaration,\n\tprovideKey,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { InferStandardSchema } from '@geekmidas/schema';\nimport type { Service } from '@geekmidas/services';\nimport type { StandardSchemaV1 } from '@standard-schema/spec';\nimport { Construct, ConstructType } from '../Construct';\n\n/** A topic's event contract — a map of event type → payload schema. */\nexport type TopicEvents = Record<string, StandardSchemaV1>;\n\n/**\n * The union of wire messages a topic carries, derived from its event map:\n * `{ type: 'user.created'; payload: … } | { type: 'user.updated'; payload: … }`.\n */\nexport type TopicMessage<TEvents extends TopicEvents> = {\n\t[K in keyof TEvents & string]: PublishableMessage<\n\t\tK,\n\t\tInferStandardSchema<TEvents[K]>\n\t>;\n}[keyof TEvents & string];\n\n/**\n * A topic — pub/sub fan-out. Unlike a `Queue` (point-to-point, one consumer), a\n * topic is a *resource* owned by no single handler: it declares the event\n * contract, derives a typed producer (`topic.publisher`), and any number of\n * subscribers (`s.topic(topic)`) bind to it. `gkm build` discovers it into the\n * manifest's `topics` field; infra provisions an SNS topic.\n *\n * This replaces hand-writing a publisher `Service`: the publisher is *derived*\n * from the declared event contract, the same way `Queue` derives its publisher.\n */\nexport class Topic<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> extends Construct {\n\t__IS_TOPIC__ = true;\n\n\tstatic isTopic(obj: unknown): obj is Topic<string, TopicEvents> {\n\t\treturn Boolean(\n\t\t\tobj &&\n\t\t\t\t(obj as { __IS_TOPIC__?: boolean }).__IS_TOPIC__ === true &&\n\t\t\t\t(obj as Construct).type === ConstructType.Topic,\n\t\t);\n\t}\n\n\t/**\n\t * The canonical id this topic is declared under.\n\t *\n\t * Derived from the name, so `users` and `Users` are one topic. The name is\n\t * left alone: subscribers bind to it and it is what the broker routes on.\n\t */\n\treadonly id: string;\n\n\t/**\n\t * The producer's env key, read by both {@link declare} and\n\t * {@link publisher} so the two cannot drift.\n\t */\n\tprivate readonly connectionKey: string;\n\n\tconstructor(\n\t\tpublic readonly name: TName,\n\t\t/**\n\t\t * The event contract — a map of event type → payload schema. Named\n\t\t * `eventSchemas` (not `events`) to avoid clashing with `Construct.events`,\n\t\t * which is the array of `MappedEvent`s a construct *publishes*.\n\t\t */\n\t\tpublic readonly eventSchemas: TEvents,\n\t\tlogger: Logger = DEFAULT_LOGGER,\n\t) {\n\t\tsuper(ConstructType.Topic, logger, [], []);\n\n\t\tthis.id = canonicalId(name);\n\t\tthis.connectionKey = provideKey(this.id, 'publisherConnectionString');\n\t}\n\n\t/**\n\t * What this topic is in the manifest.\n\t *\n\t * Only the producer's key: a subscriber is *bound* to a topic rather than\n\t * depending on it, so the binding is an edge the deploy target reads and not\n\t * an env key anyone can hold. Locally both sides meet on the same broker.\n\t */\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'topic',\n\t\t\t\tid: this.id,\n\t\t\t\tprovides: [this.connectionKey],\n\t\t\t\t// The contract this topic carries. Structural: which events exist\n\t\t\t\t// is a fact about the application, and a subscriber binding to one\n\t\t\t\t// that does not is a mistake worth catching at build.\n\t\t\t\tevents: this.eventTypes,\n\t\t\t\t// Bound rather than declared here — a subscriber names the topic,\n\t\t\t\t// not the other way round — so the build fills these from what it\n\t\t\t\t// found. Nested when it does, because position is the trigger.\n\t\t\t\tsubscribers: [],\n\t\t\t},\n\t\t];\n\t}\n\n\t/** The event type names this topic carries. */\n\tget eventTypes(): (keyof TEvents & string)[] {\n\t\treturn Object.keys(this.eventSchemas) as (keyof TEvents & string)[];\n\t}\n\n\t/**\n\t * The producer side — a `Service` exposing an `EventPublisher` typed to the\n\t * union of this topic's events. Inject via `.publisher(topic.publisher)` (for\n\t * declarative `.event(...)`) or `.services([topic.publisher])` (to publish\n\t * imperatively). Reads `<NAME>_PUBLISHER_CONNECTION_STRING` and selects the\n\t * transport from the URL protocol — `pgboss://` locally, `sns://` deployed.\n\t *\n\t * Because it's a `Service`, the connection-string requirement is sniffed into\n\t * the manifest of whatever construct injects it (least-privilege linking).\n\t */\n\t/**\n\t * The topic as a dependency — what `.dependsOn([users])` dissolves into,\n\t * reachable as `services.users`.\n\t *\n\t * It is the producer, because publishing is the only thing depending on a\n\t * topic can mean: a subscriber *binds* with `s.topic(…)` instead, and is\n\t * deliberately never handed this. {@link publisher} is the same service\n\t * under its older `<name>Publisher` key.\n\t */\n\tget service(): Service<\n\t\tUncapitalize<TName>,\n\t\tEventPublisher<TopicMessage<TEvents>>\n\t> {\n\t\tconst { register } = this.publisher;\n\n\t\treturn {\n\t\t\tserviceName: serviceKey(this.id) as Uncapitalize<TName>,\n\t\t\tregister,\n\t\t};\n\t}\n\n\tget publisher(): Service<\n\t\t`${TName}Publisher`,\n\t\tEventPublisher<TopicMessage<TEvents>>\n\t> {\n\t\tconst envVar = this.connectionKey;\n\t\treturn {\n\t\t\tserviceName: `${this.name}Publisher`,\n\t\t\tasync register({ envParser }) {\n\t\t\t\tconst { connectionString } = envParser\n\t\t\t\t\t.create((get) => ({\n\t\t\t\t\t\tconnectionString: get(envVar).string(),\n\t\t\t\t\t}))\n\t\t\t\t\t.parse();\n\n\t\t\t\treturn Publisher.fromConnectionString<TopicMessage<TEvents>>(\n\t\t\t\t\tconnectionString as EventPublisherConnectionString,\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t}\n}\n","import type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport { cloneWith } from '../clone';\nimport { Topic, type TopicEvents } from './Topic';\n\n/**\n * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.\n * The event map is the topic's contract: it types the derived `topic.publisher`\n * and the subscribers that bind via `s.topic(topic)`.\n */\nexport class TopicBuilder<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> {\n\tprivate _name?: string;\n\tprivate _logger: Logger = DEFAULT_LOGGER;\n\n\t/** The topic name — drives the infra topic and its `<NAME>_*` env vars. */\n\ttopic<T extends string>(name: T): TopicBuilder<T, TEvents> {\n\t\treturn cloneWith(this, { _name: name }) as unknown as TopicBuilder<\n\t\t\tT,\n\t\t\tTEvents\n\t\t>;\n\t}\n\n\tlogger(logger: Logger): this {\n\t\treturn cloneWith(this, { _logger: logger });\n\t}\n\n\t/**\n\t * The event contract — a map of event type → payload schema. Building the\n\t * topic requires this; it's what types the publisher and subscribers.\n\t */\n\tevents<T extends TopicEvents>(events: T): Topic<TName, T> {\n\t\tif (!this._name) {\n\t\t\tthrow new Error(\n\t\t\t\t'Topic requires a name — call .topic(name) before .events().',\n\t\t\t);\n\t\t}\n\n\t\tconst topic = new Topic<TName, T>(\n\t\t\tthis._name as TName,\n\t\t\tevents,\n\t\t\tthis._logger,\n\t\t);\n\n\t\t// No reset. `.events()` reads this builder and leaves it alone, so a\n\t\t// configured base stays usable for the next topic — and two chains off one\n\t\t// base cannot feed each other.\n\t\treturn topic;\n\t}\n}\n","export {\n\tTopic,\n\ttype TopicEvents,\n\ttype TopicMessage,\n} from './Topic';\n\nimport { TopicBuilder } from './TopicBuilder';\n\nexport { TopicBuilder } from './TopicBuilder';\n\nexport const t = new TopicBuilder();\n"],"mappings":";;;;;;;;;;;;;;;;;AA2CA,IAAa,QAAb,cAGUA,kBAAAA,UAAU;CA0BF;CAMA;CA/BjB,eAAe;CAEf,OAAO,QAAQ,KAAiD;EAC/D,OAAO,QACN,OACE,IAAmC,iBAAiB,QACpD,IAAkB,SAAA,8BACrB;CACD;;;;;;;CAQA;;;;;CAMA;CAEA,YACC,MAMA,cACA,SAAiBC,0BAAAA,gBAChB;EACD,MAAA,gCAA2B,QAAQ,CAAC,GAAG,CAAC,CAAC;EATzB,KAAA,OAAA;EAMA,KAAA,eAAA;EAKhB,KAAK,MAAA,GAAKC,oBAAAA,YAAAA,CAAY,IAAI;EAC1B,KAAK,iBAAA,GAAgBC,oBAAAA,WAAAA,CAAW,KAAK,IAAI,2BAA2B;CACrE;;;;;;;;CASA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,UAAU,CAAC,KAAK,aAAa;GAI7B,QAAQ,KAAK;GAIb,aAAa,CAAC;EACf,CACD;CACD;;CAGA,IAAI,aAAyC;EAC5C,OAAO,OAAO,KAAK,KAAK,YAAY;CACrC;;;;;;;;;;;;;;;;;;;;CAqBA,IAAI,UAGF;EACD,MAAM,EAAE,aAAa,KAAK;EAE1B,OAAO;GACN,cAAA,GAAaC,oBAAAA,WAAAA,CAAW,KAAK,EAAE;GAC/B;EACD;CACD;CAEA,IAAI,YAGF;EACD,MAAM,SAAS,KAAK;EACpB,OAAO;GACN,aAAa,GAAG,KAAK,KAAK;GAC1B,MAAM,SAAS,EAAE,aAAa;IAC7B,MAAM,EAAE,qBAAqB,UAC3B,QAAQ,SAAS,EACjB,kBAAkB,IAAI,MAAM,CAAC,CAAC,OAAO,EACtC,EAAE,CAAC,CACF,MAAM;IAER,OAAOC,kBAAAA,UAAU,qBAChB,gBACD;GACD;EACD;CACD;AACD;;;;;;;;AC9JA,IAAa,eAAb,MAGE;CACD;CACA,UAA0BC,0BAAAA;;CAG1B,MAAwB,MAAmC;EAC1D,OAAOC,cAAAA,UAAU,MAAM,EAAE,OAAO,KAAK,CAAC;CAIvC;CAEA,OAAO,QAAsB;EAC5B,OAAOA,cAAAA,UAAU,MAAM,EAAE,SAAS,OAAO,CAAC;CAC3C;;;;;CAMA,OAA8B,QAA4B;EACzD,IAAI,CAAC,KAAK,OACT,MAAM,IAAI,MACT,6DACD;EAYD,OAAO,IATW,MACjB,KAAK,OACL,QACA,KAAK,OAMK;CACZ;AACD;;;ACzCA,MAAa,IAAI,IAAI,aAAa"}
1
+ {"version":3,"file":"index.cjs","names":["DEFAULT_LOGGER","cloneWith","Topic"],"sources":["../../src/topic/TopicBuilder.ts","../../src/topic/index.ts"],"sourcesContent":["import type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport { cloneWith } from '../clone';\nimport { Topic, type TopicEvents } from './Topic';\n\n/**\n * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.\n * The event map is the topic's contract: it types the derived `topic.publisher`\n * and the subscribers that bind via `s.topic(topic)`.\n */\nexport class TopicBuilder<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> {\n\tprivate _name?: string;\n\tprivate _logger: Logger = DEFAULT_LOGGER;\n\n\t/** The topic name — drives the infra topic and its `<NAME>_*` env vars. */\n\ttopic<T extends string>(name: T): TopicBuilder<T, TEvents> {\n\t\treturn cloneWith(this, { _name: name }) as unknown as TopicBuilder<\n\t\t\tT,\n\t\t\tTEvents\n\t\t>;\n\t}\n\n\tlogger(logger: Logger): this {\n\t\treturn cloneWith(this, { _logger: logger });\n\t}\n\n\t/**\n\t * The event contract — a map of event type → payload schema. Building the\n\t * topic requires this; it's what types the publisher and subscribers.\n\t */\n\tevents<T extends TopicEvents>(events: T): Topic<TName, T> {\n\t\tif (!this._name) {\n\t\t\tthrow new Error(\n\t\t\t\t'Topic requires a name — call .topic(name) before .events().',\n\t\t\t);\n\t\t}\n\n\t\tconst topic = new Topic<TName, T>(\n\t\t\tthis._name as TName,\n\t\t\tevents,\n\t\t\tthis._logger,\n\t\t);\n\n\t\t// No reset. `.events()` reads this builder and leaves it alone, so a\n\t\t// configured base stays usable for the next topic — and two chains off one\n\t\t// base cannot feed each other.\n\t\treturn topic;\n\t}\n}\n","export {\n\tTopic,\n\ttype TopicEvents,\n\ttype TopicMessage,\n} from './Topic';\n\nimport { TopicBuilder } from './TopicBuilder';\n\nexport { TopicBuilder } from './TopicBuilder';\n\nexport const t = new TopicBuilder();\n"],"mappings":";;;;;;;;;;AAUA,IAAa,eAAb,MAGE;CACD;CACA,UAA0BA,0BAAAA;;CAG1B,MAAwB,MAAmC;EAC1D,OAAOC,cAAAA,UAAU,MAAM,EAAE,OAAO,KAAK,CAAC;CAIvC;CAEA,OAAO,QAAsB;EAC5B,OAAOA,cAAAA,UAAU,MAAM,EAAE,SAAS,OAAO,CAAC;CAC3C;;;;;CAMA,OAA8B,QAA4B;EACzD,IAAI,CAAC,KAAK,OACT,MAAM,IAAI,MACT,6DACD;EAYD,OAAO,IATWC,cAAAA,MACjB,KAAK,OACL,QACA,KAAK,OAMK;CACZ;AACD;;;ACzCA,MAAa,IAAI,IAAI,aAAa"}
@@ -1,103 +1,6 @@
1
- import { t as Construct } from "../Construct-Detz65RA.mjs";
2
1
  import { t as cloneWith } from "../clone-EKNovYHu.mjs";
3
- import { canonicalId, provideKey, serviceKey } from "@geekmidas/manifest";
2
+ import { t as Topic } from "../Topic-QqnO_6Dl.mjs";
4
3
  import { DEFAULT_LOGGER } from "@geekmidas/logger/console";
5
- import { Publisher } from "@geekmidas/events";
6
- //#region src/topic/Topic.ts
7
- /**
8
- * A topic — pub/sub fan-out. Unlike a `Queue` (point-to-point, one consumer), a
9
- * topic is a *resource* owned by no single handler: it declares the event
10
- * contract, derives a typed producer (`topic.publisher`), and any number of
11
- * subscribers (`s.topic(topic)`) bind to it. `gkm build` discovers it into the
12
- * manifest's `topics` field; infra provisions an SNS topic.
13
- *
14
- * This replaces hand-writing a publisher `Service`: the publisher is *derived*
15
- * from the declared event contract, the same way `Queue` derives its publisher.
16
- */
17
- var Topic = class extends Construct {
18
- name;
19
- eventSchemas;
20
- __IS_TOPIC__ = true;
21
- static isTopic(obj) {
22
- return Boolean(obj && obj.__IS_TOPIC__ === true && obj.type === "dev.geekmidas.resource.topic");
23
- }
24
- /**
25
- * The canonical id this topic is declared under.
26
- *
27
- * Derived from the name, so `users` and `Users` are one topic. The name is
28
- * left alone: subscribers bind to it and it is what the broker routes on.
29
- */
30
- id;
31
- /**
32
- * The producer's env key, read by both {@link declare} and
33
- * {@link publisher} so the two cannot drift.
34
- */
35
- connectionKey;
36
- constructor(name, eventSchemas, logger = DEFAULT_LOGGER) {
37
- super("dev.geekmidas.resource.topic", logger, [], []);
38
- this.name = name;
39
- this.eventSchemas = eventSchemas;
40
- this.id = canonicalId(name);
41
- this.connectionKey = provideKey(this.id, "publisherConnectionString");
42
- }
43
- /**
44
- * What this topic is in the manifest.
45
- *
46
- * Only the producer's key: a subscriber is *bound* to a topic rather than
47
- * depending on it, so the binding is an edge the deploy target reads and not
48
- * an env key anyone can hold. Locally both sides meet on the same broker.
49
- */
50
- declare() {
51
- return [{
52
- kind: "topic",
53
- id: this.id,
54
- provides: [this.connectionKey],
55
- events: this.eventTypes,
56
- subscribers: []
57
- }];
58
- }
59
- /** The event type names this topic carries. */
60
- get eventTypes() {
61
- return Object.keys(this.eventSchemas);
62
- }
63
- /**
64
- * The producer side — a `Service` exposing an `EventPublisher` typed to the
65
- * union of this topic's events. Inject via `.publisher(topic.publisher)` (for
66
- * declarative `.event(...)`) or `.services([topic.publisher])` (to publish
67
- * imperatively). Reads `<NAME>_PUBLISHER_CONNECTION_STRING` and selects the
68
- * transport from the URL protocol — `pgboss://` locally, `sns://` deployed.
69
- *
70
- * Because it's a `Service`, the connection-string requirement is sniffed into
71
- * the manifest of whatever construct injects it (least-privilege linking).
72
- */
73
- /**
74
- * The topic as a dependency — what `.dependsOn([users])` dissolves into,
75
- * reachable as `services.users`.
76
- *
77
- * It is the producer, because publishing is the only thing depending on a
78
- * topic can mean: a subscriber *binds* with `s.topic(…)` instead, and is
79
- * deliberately never handed this. {@link publisher} is the same service
80
- * under its older `<name>Publisher` key.
81
- */
82
- get service() {
83
- const { register } = this.publisher;
84
- return {
85
- serviceName: serviceKey(this.id),
86
- register
87
- };
88
- }
89
- get publisher() {
90
- const envVar = this.connectionKey;
91
- return {
92
- serviceName: `${this.name}Publisher`,
93
- async register({ envParser }) {
94
- const { connectionString } = envParser.create((get) => ({ connectionString: get(envVar).string() })).parse();
95
- return Publisher.fromConnectionString(connectionString);
96
- }
97
- };
98
- }
99
- };
100
- //#endregion
101
4
  //#region src/topic/TopicBuilder.ts
102
5
  /**
103
6
  * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/topic/Topic.ts","../../src/topic/TopicBuilder.ts","../../src/topic/index.ts"],"sourcesContent":["import {\n\ttype EventPublisher,\n\ttype EventPublisherConnectionString,\n\ttype PublishableMessage,\n\tPublisher,\n} from '@geekmidas/events';\nimport type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport {\n\tcanonicalId,\n\ttype Declaration,\n\tprovideKey,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { InferStandardSchema } from '@geekmidas/schema';\nimport type { Service } from '@geekmidas/services';\nimport type { StandardSchemaV1 } from '@standard-schema/spec';\nimport { Construct, ConstructType } from '../Construct';\n\n/** A topic's event contract — a map of event type → payload schema. */\nexport type TopicEvents = Record<string, StandardSchemaV1>;\n\n/**\n * The union of wire messages a topic carries, derived from its event map:\n * `{ type: 'user.created'; payload: … } | { type: 'user.updated'; payload: … }`.\n */\nexport type TopicMessage<TEvents extends TopicEvents> = {\n\t[K in keyof TEvents & string]: PublishableMessage<\n\t\tK,\n\t\tInferStandardSchema<TEvents[K]>\n\t>;\n}[keyof TEvents & string];\n\n/**\n * A topic — pub/sub fan-out. Unlike a `Queue` (point-to-point, one consumer), a\n * topic is a *resource* owned by no single handler: it declares the event\n * contract, derives a typed producer (`topic.publisher`), and any number of\n * subscribers (`s.topic(topic)`) bind to it. `gkm build` discovers it into the\n * manifest's `topics` field; infra provisions an SNS topic.\n *\n * This replaces hand-writing a publisher `Service`: the publisher is *derived*\n * from the declared event contract, the same way `Queue` derives its publisher.\n */\nexport class Topic<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> extends Construct {\n\t__IS_TOPIC__ = true;\n\n\tstatic isTopic(obj: unknown): obj is Topic<string, TopicEvents> {\n\t\treturn Boolean(\n\t\t\tobj &&\n\t\t\t\t(obj as { __IS_TOPIC__?: boolean }).__IS_TOPIC__ === true &&\n\t\t\t\t(obj as Construct).type === ConstructType.Topic,\n\t\t);\n\t}\n\n\t/**\n\t * The canonical id this topic is declared under.\n\t *\n\t * Derived from the name, so `users` and `Users` are one topic. The name is\n\t * left alone: subscribers bind to it and it is what the broker routes on.\n\t */\n\treadonly id: string;\n\n\t/**\n\t * The producer's env key, read by both {@link declare} and\n\t * {@link publisher} so the two cannot drift.\n\t */\n\tprivate readonly connectionKey: string;\n\n\tconstructor(\n\t\tpublic readonly name: TName,\n\t\t/**\n\t\t * The event contract — a map of event type → payload schema. Named\n\t\t * `eventSchemas` (not `events`) to avoid clashing with `Construct.events`,\n\t\t * which is the array of `MappedEvent`s a construct *publishes*.\n\t\t */\n\t\tpublic readonly eventSchemas: TEvents,\n\t\tlogger: Logger = DEFAULT_LOGGER,\n\t) {\n\t\tsuper(ConstructType.Topic, logger, [], []);\n\n\t\tthis.id = canonicalId(name);\n\t\tthis.connectionKey = provideKey(this.id, 'publisherConnectionString');\n\t}\n\n\t/**\n\t * What this topic is in the manifest.\n\t *\n\t * Only the producer's key: a subscriber is *bound* to a topic rather than\n\t * depending on it, so the binding is an edge the deploy target reads and not\n\t * an env key anyone can hold. Locally both sides meet on the same broker.\n\t */\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'topic',\n\t\t\t\tid: this.id,\n\t\t\t\tprovides: [this.connectionKey],\n\t\t\t\t// The contract this topic carries. Structural: which events exist\n\t\t\t\t// is a fact about the application, and a subscriber binding to one\n\t\t\t\t// that does not is a mistake worth catching at build.\n\t\t\t\tevents: this.eventTypes,\n\t\t\t\t// Bound rather than declared here — a subscriber names the topic,\n\t\t\t\t// not the other way round — so the build fills these from what it\n\t\t\t\t// found. Nested when it does, because position is the trigger.\n\t\t\t\tsubscribers: [],\n\t\t\t},\n\t\t];\n\t}\n\n\t/** The event type names this topic carries. */\n\tget eventTypes(): (keyof TEvents & string)[] {\n\t\treturn Object.keys(this.eventSchemas) as (keyof TEvents & string)[];\n\t}\n\n\t/**\n\t * The producer side — a `Service` exposing an `EventPublisher` typed to the\n\t * union of this topic's events. Inject via `.publisher(topic.publisher)` (for\n\t * declarative `.event(...)`) or `.services([topic.publisher])` (to publish\n\t * imperatively). Reads `<NAME>_PUBLISHER_CONNECTION_STRING` and selects the\n\t * transport from the URL protocol — `pgboss://` locally, `sns://` deployed.\n\t *\n\t * Because it's a `Service`, the connection-string requirement is sniffed into\n\t * the manifest of whatever construct injects it (least-privilege linking).\n\t */\n\t/**\n\t * The topic as a dependency — what `.dependsOn([users])` dissolves into,\n\t * reachable as `services.users`.\n\t *\n\t * It is the producer, because publishing is the only thing depending on a\n\t * topic can mean: a subscriber *binds* with `s.topic(…)` instead, and is\n\t * deliberately never handed this. {@link publisher} is the same service\n\t * under its older `<name>Publisher` key.\n\t */\n\tget service(): Service<\n\t\tUncapitalize<TName>,\n\t\tEventPublisher<TopicMessage<TEvents>>\n\t> {\n\t\tconst { register } = this.publisher;\n\n\t\treturn {\n\t\t\tserviceName: serviceKey(this.id) as Uncapitalize<TName>,\n\t\t\tregister,\n\t\t};\n\t}\n\n\tget publisher(): Service<\n\t\t`${TName}Publisher`,\n\t\tEventPublisher<TopicMessage<TEvents>>\n\t> {\n\t\tconst envVar = this.connectionKey;\n\t\treturn {\n\t\t\tserviceName: `${this.name}Publisher`,\n\t\t\tasync register({ envParser }) {\n\t\t\t\tconst { connectionString } = envParser\n\t\t\t\t\t.create((get) => ({\n\t\t\t\t\t\tconnectionString: get(envVar).string(),\n\t\t\t\t\t}))\n\t\t\t\t\t.parse();\n\n\t\t\t\treturn Publisher.fromConnectionString<TopicMessage<TEvents>>(\n\t\t\t\t\tconnectionString as EventPublisherConnectionString,\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t}\n}\n","import type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport { cloneWith } from '../clone';\nimport { Topic, type TopicEvents } from './Topic';\n\n/**\n * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.\n * The event map is the topic's contract: it types the derived `topic.publisher`\n * and the subscribers that bind via `s.topic(topic)`.\n */\nexport class TopicBuilder<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> {\n\tprivate _name?: string;\n\tprivate _logger: Logger = DEFAULT_LOGGER;\n\n\t/** The topic name — drives the infra topic and its `<NAME>_*` env vars. */\n\ttopic<T extends string>(name: T): TopicBuilder<T, TEvents> {\n\t\treturn cloneWith(this, { _name: name }) as unknown as TopicBuilder<\n\t\t\tT,\n\t\t\tTEvents\n\t\t>;\n\t}\n\n\tlogger(logger: Logger): this {\n\t\treturn cloneWith(this, { _logger: logger });\n\t}\n\n\t/**\n\t * The event contract — a map of event type → payload schema. Building the\n\t * topic requires this; it's what types the publisher and subscribers.\n\t */\n\tevents<T extends TopicEvents>(events: T): Topic<TName, T> {\n\t\tif (!this._name) {\n\t\t\tthrow new Error(\n\t\t\t\t'Topic requires a name — call .topic(name) before .events().',\n\t\t\t);\n\t\t}\n\n\t\tconst topic = new Topic<TName, T>(\n\t\t\tthis._name as TName,\n\t\t\tevents,\n\t\t\tthis._logger,\n\t\t);\n\n\t\t// No reset. `.events()` reads this builder and leaves it alone, so a\n\t\t// configured base stays usable for the next topic — and two chains off one\n\t\t// base cannot feed each other.\n\t\treturn topic;\n\t}\n}\n","export {\n\tTopic,\n\ttype TopicEvents,\n\ttype TopicMessage,\n} from './Topic';\n\nimport { TopicBuilder } from './TopicBuilder';\n\nexport { TopicBuilder } from './TopicBuilder';\n\nexport const t = new TopicBuilder();\n"],"mappings":";;;;;;;;;;;;;;;;AA2CA,IAAa,QAAb,cAGU,UAAU;CA0BF;CAMA;CA/BjB,eAAe;CAEf,OAAO,QAAQ,KAAiD;EAC/D,OAAO,QACN,OACE,IAAmC,iBAAiB,QACpD,IAAkB,SAAA,8BACrB;CACD;;;;;;;CAQA;;;;;CAMA;CAEA,YACC,MAMA,cACA,SAAiB,gBAChB;EACD,MAAA,gCAA2B,QAAQ,CAAC,GAAG,CAAC,CAAC;EATzB,KAAA,OAAA;EAMA,KAAA,eAAA;EAKhB,KAAK,KAAK,YAAY,IAAI;EAC1B,KAAK,gBAAgB,WAAW,KAAK,IAAI,2BAA2B;CACrE;;;;;;;;CASA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,UAAU,CAAC,KAAK,aAAa;GAI7B,QAAQ,KAAK;GAIb,aAAa,CAAC;EACf,CACD;CACD;;CAGA,IAAI,aAAyC;EAC5C,OAAO,OAAO,KAAK,KAAK,YAAY;CACrC;;;;;;;;;;;;;;;;;;;;CAqBA,IAAI,UAGF;EACD,MAAM,EAAE,aAAa,KAAK;EAE1B,OAAO;GACN,aAAa,WAAW,KAAK,EAAE;GAC/B;EACD;CACD;CAEA,IAAI,YAGF;EACD,MAAM,SAAS,KAAK;EACpB,OAAO;GACN,aAAa,GAAG,KAAK,KAAK;GAC1B,MAAM,SAAS,EAAE,aAAa;IAC7B,MAAM,EAAE,qBAAqB,UAC3B,QAAQ,SAAS,EACjB,kBAAkB,IAAI,MAAM,CAAC,CAAC,OAAO,EACtC,EAAE,CAAC,CACF,MAAM;IAER,OAAO,UAAU,qBAChB,gBACD;GACD;EACD;CACD;AACD;;;;;;;;AC9JA,IAAa,eAAb,MAGE;CACD;CACA,UAA0B;;CAG1B,MAAwB,MAAmC;EAC1D,OAAO,UAAU,MAAM,EAAE,OAAO,KAAK,CAAC;CAIvC;CAEA,OAAO,QAAsB;EAC5B,OAAO,UAAU,MAAM,EAAE,SAAS,OAAO,CAAC;CAC3C;;;;;CAMA,OAA8B,QAA4B;EACzD,IAAI,CAAC,KAAK,OACT,MAAM,IAAI,MACT,6DACD;EAYD,OAAO,IATW,MACjB,KAAK,OACL,QACA,KAAK,OAMK;CACZ;AACD;;;ACzCA,MAAa,IAAI,IAAI,aAAa"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/topic/TopicBuilder.ts","../../src/topic/index.ts"],"sourcesContent":["import type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport { cloneWith } from '../clone';\nimport { Topic, type TopicEvents } from './Topic';\n\n/**\n * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.\n * The event map is the topic's contract: it types the derived `topic.publisher`\n * and the subscribers that bind via `s.topic(topic)`.\n */\nexport class TopicBuilder<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> {\n\tprivate _name?: string;\n\tprivate _logger: Logger = DEFAULT_LOGGER;\n\n\t/** The topic name — drives the infra topic and its `<NAME>_*` env vars. */\n\ttopic<T extends string>(name: T): TopicBuilder<T, TEvents> {\n\t\treturn cloneWith(this, { _name: name }) as unknown as TopicBuilder<\n\t\t\tT,\n\t\t\tTEvents\n\t\t>;\n\t}\n\n\tlogger(logger: Logger): this {\n\t\treturn cloneWith(this, { _logger: logger });\n\t}\n\n\t/**\n\t * The event contract — a map of event type → payload schema. Building the\n\t * topic requires this; it's what types the publisher and subscribers.\n\t */\n\tevents<T extends TopicEvents>(events: T): Topic<TName, T> {\n\t\tif (!this._name) {\n\t\t\tthrow new Error(\n\t\t\t\t'Topic requires a name — call .topic(name) before .events().',\n\t\t\t);\n\t\t}\n\n\t\tconst topic = new Topic<TName, T>(\n\t\t\tthis._name as TName,\n\t\t\tevents,\n\t\t\tthis._logger,\n\t\t);\n\n\t\t// No reset. `.events()` reads this builder and leaves it alone, so a\n\t\t// configured base stays usable for the next topic — and two chains off one\n\t\t// base cannot feed each other.\n\t\treturn topic;\n\t}\n}\n","export {\n\tTopic,\n\ttype TopicEvents,\n\ttype TopicMessage,\n} from './Topic';\n\nimport { TopicBuilder } from './TopicBuilder';\n\nexport { TopicBuilder } from './TopicBuilder';\n\nexport const t = new TopicBuilder();\n"],"mappings":";;;;;;;;;AAUA,IAAa,eAAb,MAGE;CACD;CACA,UAA0B;;CAG1B,MAAwB,MAAmC;EAC1D,OAAO,UAAU,MAAM,EAAE,OAAO,KAAK,CAAC;CAIvC;CAEA,OAAO,QAAsB;EAC5B,OAAO,UAAU,MAAM,EAAE,SAAS,OAAO,CAAC;CAC3C;;;;;CAMA,OAA8B,QAA4B;EACzD,IAAI,CAAC,KAAK,OACT,MAAM,IAAI,MACT,6DACD;EAYD,OAAO,IATW,MACjB,KAAK,OACL,QACA,KAAK,OAMK;CACZ;AACD;;;ACzCA,MAAa,IAAI,IAAI,aAAa"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/constructs",
3
- "version": "10.0.0-alpha.21",
3
+ "version": "10.0.0-alpha.23",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -245,13 +245,13 @@
245
245
  "lodash.uniqby": "~4.7.0",
246
246
  "openapi-types": "~12.1.3",
247
247
  "qs": "~6.16.0",
248
- "@geekmidas/envkit": "^10.0.0-alpha.21",
249
- "@geekmidas/errors": "^10.0.0-alpha.21",
250
- "@geekmidas/events": "^10.0.0-alpha.21",
251
- "@geekmidas/logger": "^10.0.0-alpha.21",
252
- "@geekmidas/manifest": "^10.0.0-alpha.21",
253
- "@geekmidas/schema": "^10.0.0-alpha.21",
254
- "@geekmidas/services": "^10.0.0-alpha.21"
248
+ "@geekmidas/envkit": "^10.0.0-alpha.23",
249
+ "@geekmidas/errors": "^10.0.0-alpha.23",
250
+ "@geekmidas/events": "^10.0.0-alpha.23",
251
+ "@geekmidas/logger": "^10.0.0-alpha.23",
252
+ "@geekmidas/manifest": "^10.0.0-alpha.23",
253
+ "@geekmidas/schema": "^10.0.0-alpha.23",
254
+ "@geekmidas/services": "^10.0.0-alpha.23"
255
255
  },
256
256
  "devDependencies": {
257
257
  "@types/lodash.compact": "~3.0.9",
@@ -266,20 +266,20 @@
266
266
  "msw": "~2.15.0",
267
267
  "pg": "~8.23.0",
268
268
  "zod": "~4.6.5",
269
- "@geekmidas/audit": "^10.0.0-alpha.21",
270
- "@geekmidas/auth": "10.0.0-alpha.21",
271
- "@geekmidas/cache": "^10.0.0-alpha.21",
272
- "@geekmidas/db": "^10.0.0-alpha.21",
273
- "@geekmidas/emailkit": "^10.0.0-alpha.21",
274
- "@geekmidas/envkit": "^10.0.0-alpha.21",
275
- "@geekmidas/errors": "^10.0.0-alpha.21",
276
- "@geekmidas/events": "^10.0.0-alpha.21",
277
- "@geekmidas/logger": "^10.0.0-alpha.21",
278
- "@geekmidas/rate-limit": "^10.0.0-alpha.21",
279
- "@geekmidas/schema": "^10.0.0-alpha.21",
280
- "@geekmidas/services": "^10.0.0-alpha.21",
281
- "@geekmidas/telescope": "10.0.0-alpha.21",
282
- "@geekmidas/testkit": "^10.0.0-alpha.21"
269
+ "@geekmidas/audit": "^10.0.0-alpha.23",
270
+ "@geekmidas/auth": "10.0.0-alpha.23",
271
+ "@geekmidas/cache": "^10.0.0-alpha.23",
272
+ "@geekmidas/db": "^10.0.0-alpha.23",
273
+ "@geekmidas/emailkit": "^10.0.0-alpha.23",
274
+ "@geekmidas/envkit": "^10.0.0-alpha.23",
275
+ "@geekmidas/errors": "^10.0.0-alpha.23",
276
+ "@geekmidas/events": "^10.0.0-alpha.23",
277
+ "@geekmidas/logger": "^10.0.0-alpha.23",
278
+ "@geekmidas/rate-limit": "^10.0.0-alpha.23",
279
+ "@geekmidas/schema": "^10.0.0-alpha.23",
280
+ "@geekmidas/services": "^10.0.0-alpha.23",
281
+ "@geekmidas/telescope": "10.0.0-alpha.23",
282
+ "@geekmidas/testkit": "^10.0.0-alpha.23"
283
283
  },
284
284
  "peerDependencies": {
285
285
  "@middy/core": ">=7.9.2",
@@ -289,15 +289,15 @@
289
289
  "kysely": "~0.29.6",
290
290
  "msw": ">=2.15.0",
291
291
  "pg": ">=8.23.0",
292
- "@geekmidas/audit": "^10.0.0-alpha.21",
293
- "@geekmidas/auth": "10.0.0-alpha.21",
294
- "@geekmidas/cache": "^10.0.0-alpha.21",
295
- "@geekmidas/db": "^10.0.0-alpha.21",
296
- "@geekmidas/emailkit": "^10.0.0-alpha.21",
297
- "@geekmidas/rate-limit": "^10.0.0-alpha.21",
298
- "@geekmidas/storage": "^10.0.0-alpha.21",
299
- "@geekmidas/telescope": "10.0.0-alpha.21",
300
- "@geekmidas/testkit": "^10.0.0-alpha.21"
292
+ "@geekmidas/audit": "^10.0.0-alpha.23",
293
+ "@geekmidas/auth": "10.0.0-alpha.23",
294
+ "@geekmidas/cache": "^10.0.0-alpha.23",
295
+ "@geekmidas/db": "^10.0.0-alpha.23",
296
+ "@geekmidas/emailkit": "^10.0.0-alpha.23",
297
+ "@geekmidas/rate-limit": "^10.0.0-alpha.23",
298
+ "@geekmidas/storage": "^10.0.0-alpha.23",
299
+ "@geekmidas/telescope": "10.0.0-alpha.23",
300
+ "@geekmidas/testkit": "^10.0.0-alpha.23"
301
301
  },
302
302
  "peerDependenciesMeta": {
303
303
  "@geekmidas/audit": {