@crossdelta/platform-sdk 0.16.2 → 0.16.3

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/README.md CHANGED
@@ -394,10 +394,17 @@ See [@crossdelta/infrastructure](https://www.npmjs.com/package/@crossdelta/infra
394
394
  import { createContract } from '@crossdelta/cloudevents'
395
395
  import { z } from 'zod'
396
396
 
397
+ export const OrdersCreatedSchema = z.object({
398
+ orderId: z.string(),
399
+ total: z.number(),
400
+ })
401
+
402
+ export type OrdersCreatedData = z.infer<typeof OrdersCreatedSchema>
403
+
397
404
  export const OrdersCreatedContract = createContract({
398
405
  type: 'orders.created',
399
406
  channel: { stream: 'ORDERS' },
400
- schema: z.object({ orderId: z.string(), total: z.number() }),
407
+ schema: OrdersCreatedSchema,
401
408
  })
402
409
  ```
403
410
 
@@ -7,7 +7,7 @@
7
7
  "pulumi": "pulumi"
8
8
  },
9
9
  "dependencies": {
10
- "@crossdelta/cloudevents": "^0.5.4",
10
+ "@crossdelta/cloudevents": "^0.5.5",
11
11
  "@crossdelta/infrastructure": "^0.5.3",
12
12
  "{{scope}}/contracts": "workspace:*",
13
13
  "@pulumi/digitalocean": "^4.55.0",
@@ -11,7 +11,7 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@crossdelta/cloudevents": "^0.5.4",
14
+ "@crossdelta/cloudevents": "^0.5.5",
15
15
  "@crossdelta/infrastructure": "^0.5.3",
16
16
  "zod": "^4.0.0"
17
17
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossdelta/platform-sdk",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "Platform toolkit for event-driven microservices — keeping code and infrastructure in lockstep.",
5
5
  "keywords": [
6
6
  "cli",