@automate.ax/api-contract 0.118.0 → 0.119.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.
@@ -3567,7 +3567,11 @@ export declare const eventsContract: {
3567
3567
  sourceId: import("zod").ZodString;
3568
3568
  value: import("zod").ZodArray<import("zod").ZodObject<{
3569
3569
  clientState: import("zod").ZodString;
3570
- changeType: import("zod").ZodLiteral<"created">;
3570
+ changeType: import("zod").ZodEnum<{
3571
+ created: "created";
3572
+ updated: "updated";
3573
+ deleted: "deleted";
3574
+ }>;
3571
3575
  id: import("zod").ZodOptional<import("zod").ZodString>;
3572
3576
  resource: import("zod").ZodString;
3573
3577
  resourceData: import("zod").ZodOptional<import("zod").ZodObject<{
@@ -4,7 +4,11 @@ export declare const microsoftEventsContract: {
4
4
  sourceId: z.ZodString;
5
5
  value: z.ZodArray<z.ZodObject<{
6
6
  clientState: z.ZodString;
7
- changeType: z.ZodLiteral<"created">;
7
+ changeType: z.ZodEnum<{
8
+ created: "created";
9
+ updated: "updated";
10
+ deleted: "deleted";
11
+ }>;
8
12
  id: z.ZodOptional<z.ZodString>;
9
13
  resource: z.ZodString;
10
14
  resourceData: z.ZodOptional<z.ZodObject<{
@@ -18,7 +18,7 @@ export const microsoftEventsContract = {
18
18
  /** Per-subscription value used to authenticate the callback. */
19
19
  clientState: z.string(),
20
20
  /** Provider change category. */
21
- changeType: z.literal("created"),
21
+ changeType: z.enum(["created", "updated", "deleted"]),
22
22
  /** Provider notification identifier, when Graph supplies one. */
23
23
  id: z.string().optional(),
24
24
  /** Graph resource path for the changed object. */
package/dist/index.d.ts CHANGED
@@ -5833,7 +5833,11 @@ export declare const contract: {
5833
5833
  sourceId: import("zod").ZodString;
5834
5834
  value: import("zod").ZodArray<import("zod").ZodObject<{
5835
5835
  clientState: import("zod").ZodString;
5836
- changeType: import("zod").ZodLiteral<"created">;
5836
+ changeType: import("zod").ZodEnum<{
5837
+ created: "created";
5838
+ updated: "updated";
5839
+ deleted: "deleted";
5840
+ }>;
5837
5841
  id: import("zod").ZodOptional<import("zod").ZodString>;
5838
5842
  resource: import("zod").ZodString;
5839
5843
  resourceData: import("zod").ZodOptional<import("zod").ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/api-contract",
3
- "version": "0.118.0",
3
+ "version": "0.119.1",
4
4
  "description": "Public oRPC contract for the Automate.ax API.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ai-sdk/gateway": "4.0.46",
34
- "@automate.ax/codec": "0.118.0",
35
- "@automate.ax/integration-contracts": "0.118.0",
34
+ "@automate.ax/codec": "0.119.1",
35
+ "@automate.ax/integration-contracts": "0.119.1",
36
36
  "@orpc/contract": "1.15.0",
37
37
  "fast-json-stable-stringify": "^2.1.0",
38
38
  "zod": "^4.3.6"
@@ -22,7 +22,7 @@ export const microsoftEventsContract = {
22
22
  clientState: z.string(),
23
23
 
24
24
  /** Provider change category. */
25
- changeType: z.literal("created"),
25
+ changeType: z.enum(["created", "updated", "deleted"]),
26
26
 
27
27
  /** Provider notification identifier, when Graph supplies one. */
28
28
  id: z.string().optional(),