sst 2.38.8 → 2.39.1

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.
@@ -12,7 +12,7 @@ import { ZodObject, ZodSchema, z } from "zod";
12
12
  * More information here: https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1519138189
13
13
  */
14
14
  export { PutEventsCommandOutput };
15
- export declare function createEventBuilder<Bus extends keyof typeof EventBus, MetadataFunction extends () => any, Validator extends (schema: any) => (input: any) => any, MetadataSchema extends Parameters<Validator>[0]>(input: {
15
+ export declare function createEventBuilder<Bus extends keyof typeof EventBus, MetadataFunction extends () => any, Validator extends (schema: any) => (input: any) => any, MetadataSchema extends Parameters<Validator>[0] | undefined>(input: {
16
16
  bus: Bus;
17
17
  metadata?: MetadataSchema;
18
18
  metadataFn?: MetadataFunction;
@@ -61,7 +61,11 @@ export type inferParser<TParser extends Parser> = TParser extends ParserWithInpu
61
61
  export type inferEvent<T extends {
62
62
  shape: ZodObject<any>;
63
63
  }> = z.infer<T["shape"]>;
64
- type Event = ReturnType<ReturnType<typeof createEventBuilder>>;
64
+ type Event = {
65
+ type: string;
66
+ $output: any;
67
+ $metadata: any;
68
+ };
65
69
  type EventPayload<E extends Event> = {
66
70
  type: E["type"];
67
71
  properties: E["$output"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.38.8",
4
+ "version": "2.39.1",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
@@ -120,7 +120,7 @@
120
120
  "@types/ws": "^8.5.3",
121
121
  "@types/yargs": "^17.0.13",
122
122
  "archiver": "^5.3.1",
123
- "astro-sst": "2.38.8",
123
+ "astro-sst": "2.39.1",
124
124
  "async": "^3.2.4",
125
125
  "tsx": "^3.12.1",
126
126
  "typescript": "^5.2.2",