@cntrl-site/sdk 1.12.4-alpha.1 → 1.12.4-alpha.2

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.
@@ -14,5 +14,6 @@ const StateSchema = zod_1.z.object({
14
14
  exports.InteractionSchema = zod_1.z.object({
15
15
  id: zod_1.z.string(),
16
16
  triggers: zod_1.z.array(TriggerSchema),
17
- states: zod_1.z.array(StateSchema)
17
+ states: zod_1.z.array(StateSchema),
18
+ startStateId: zod_1.z.string(),
18
19
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/sdk",
3
- "version": "1.12.4-alpha.1",
3
+ "version": "1.12.4-alpha.2",
4
4
  "description": "Generic SDK for use in public websites.",
5
5
  "main": "lib/index.js",
6
6
  "types": "src/index.ts",
@@ -15,5 +15,6 @@ const StateSchema = z.object({
15
15
  export const InteractionSchema = z.object({
16
16
  id: z.string(),
17
17
  triggers: z.array(TriggerSchema),
18
- states: z.array(StateSchema)
18
+ states: z.array(StateSchema),
19
+ startStateId: z.string(),
19
20
  }) satisfies ZodType<Interaction>;
@@ -2,6 +2,7 @@ export interface Interaction {
2
2
  id: string;
3
3
  triggers: InteractionTrigger[];
4
4
  states: InteractionState[];
5
+ startStateId: string;
5
6
  }
6
7
 
7
8
  export interface InteractionTrigger {