@seamapi/types 1.384.0 → 1.385.0

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 (30) hide show
  1. package/dist/connect.cjs +456 -137
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1668 -208
  4. package/lib/seam/connect/models/access-grants/access-grant.d.ts +8 -5
  5. package/lib/seam/connect/models/access-grants/access-grant.js +3 -0
  6. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/requested-access-method.d.ts +3 -3
  8. package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
  9. package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +156 -0
  11. package/lib/seam/connect/models/action-attempts/action-attempt.js +4 -0
  12. package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
  13. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.d.ts +80 -0
  14. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js +28 -0
  15. package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js.map +1 -0
  16. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.d.ts +80 -0
  17. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js +28 -0
  18. package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js.map +1 -0
  19. package/lib/seam/connect/openapi.d.ts +266 -175
  20. package/lib/seam/connect/openapi.js +408 -132
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +1246 -33
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/models/access-grants/access-grant.ts +5 -0
  25. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +4 -2
  26. package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +4 -0
  27. package/src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts +39 -0
  28. package/src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts +37 -0
  29. package/src/lib/seam/connect/openapi.ts +426 -136
  30. package/src/lib/seam/connect/route-types.ts +1372 -33
@@ -8,18 +8,19 @@ export declare const access_grant: z.ZodObject<{
8
8
  display_name: z.ZodString;
9
9
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
10
10
  created_at: z.ZodString;
11
- provisioned_access_method_ids: z.ZodArray<z.ZodString, "many">;
11
+ created_access_method_ids: z.ZodArray<z.ZodString, "many">;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  display_name: string;
14
14
  created_at: string;
15
15
  mode: "code" | "card" | "mobile_key";
16
- provisioned_access_method_ids: string[];
16
+ created_access_method_ids: string[];
17
17
  }, {
18
18
  display_name: string;
19
19
  created_at: string;
20
20
  mode: "code" | "card" | "mobile_key";
21
- provisioned_access_method_ids: string[];
21
+ created_access_method_ids: string[];
22
22
  }>, "many">;
23
+ access_method_ids: z.ZodArray<z.ZodString, "many">;
23
24
  display_name: z.ZodString;
24
25
  created_at: z.ZodString;
25
26
  }, "strip", z.ZodTypeAny, {
@@ -33,8 +34,9 @@ export declare const access_grant: z.ZodObject<{
33
34
  display_name: string;
34
35
  created_at: string;
35
36
  mode: "code" | "card" | "mobile_key";
36
- provisioned_access_method_ids: string[];
37
+ created_access_method_ids: string[];
37
38
  }[];
39
+ access_method_ids: string[];
38
40
  }, {
39
41
  display_name: string;
40
42
  created_at: string;
@@ -46,7 +48,8 @@ export declare const access_grant: z.ZodObject<{
46
48
  display_name: string;
47
49
  created_at: string;
48
50
  mode: "code" | "card" | "mobile_key";
49
- provisioned_access_method_ids: string[];
51
+ created_access_method_ids: string[];
50
52
  }[];
53
+ access_method_ids: string[];
51
54
  }>;
52
55
  export type AccessGrant = z.infer<typeof access_grant>;
@@ -16,6 +16,9 @@ export const access_grant = z.object({
16
16
  requested_access_methods: z
17
17
  .array(requested_access_method)
18
18
  .describe('Access methods that the user requested for this access grant.'),
19
+ access_method_ids: z
20
+ .array(z.string().uuid())
21
+ .describe('IDs of the access methods that were created for this access grant.'),
19
22
  display_name: z.string().describe('Display name of the access grant.'),
20
23
  created_at: z
21
24
  .string()
@@ -1 +1 @@
1
- {"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,4EAA4E,CAC7E;IACH,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACtE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,uDAAuD,CAAC;IACpE,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,sDAAsD,CAAC;IACnE,wBAAwB,EAAE,CAAC;SACxB,KAAK,CAAC,uBAAuB,CAAC;SAC9B,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC,QAAQ,CAAC;;;;GAIT,CAAC,CAAA"}
1
+ {"version":3,"file":"access-grant.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/access-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAEtE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,4EAA4E,CAC7E;IACH,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IACtE,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,uDAAuD,CAAC;IACpE,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,sDAAsD,CAAC;IACnE,wBAAwB,EAAE,CAAC;SACxB,KAAK,CAAC,uBAAuB,CAAC;SAC9B,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;IACH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACtE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC,QAAQ,CAAC;;;;GAIT,CAAC,CAAA"}
@@ -3,16 +3,16 @@ export declare const requested_access_method: z.ZodObject<{
3
3
  display_name: z.ZodString;
4
4
  mode: z.ZodEnum<["code", "card", "mobile_key"]>;
5
5
  created_at: z.ZodString;
6
- provisioned_access_method_ids: z.ZodArray<z.ZodString, "many">;
6
+ created_access_method_ids: z.ZodArray<z.ZodString, "many">;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  display_name: string;
9
9
  created_at: string;
10
10
  mode: "code" | "card" | "mobile_key";
11
- provisioned_access_method_ids: string[];
11
+ created_access_method_ids: string[];
12
12
  }, {
13
13
  display_name: string;
14
14
  created_at: string;
15
15
  mode: "code" | "card" | "mobile_key";
16
- provisioned_access_method_ids: string[];
16
+ created_access_method_ids: string[];
17
17
  }>;
18
18
  export type RequestedAccessMethod = z.infer<typeof requested_access_method>;
@@ -8,9 +8,9 @@ export const requested_access_method = z.object({
8
8
  .string()
9
9
  .datetime()
10
10
  .describe('Date and time at which the requested access method was added to this access grant.'),
11
- provisioned_access_method_ids: z
11
+ created_access_method_ids: z
12
12
  .array(z.string().uuid())
13
- .describe('IDs of the locations to which access is being given.'),
13
+ .describe('IDs of the access methods that were created for this requested access method.'),
14
14
  }).describe(`
15
15
  ---
16
16
  undocumented: Unreleased.
@@ -1 +1 @@
1
- {"version":3,"file":"requested-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/requested-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF,CACrF;IACH,6BAA6B,EAAE,CAAC;SAC7B,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC,QAAQ,CAAC;;;;GAIT,CAAC,CAAA"}
1
+ {"version":3,"file":"requested-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/access-grants/requested-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;SACpC,QAAQ,CACP,qEAAqE,CACtE;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oFAAoF,CACrF;IACH,yBAAyB,EAAE,CAAC;SACzB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,+EAA+E,CAChF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;GAIT,CAAC,CAAA"}
@@ -2947,6 +2947,162 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
2947
2947
  status: z.ZodLiteral<"pending">;
2948
2948
  result: z.ZodNull;
2949
2949
  error: z.ZodNull;
2950
+ }>, {
2951
+ action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
2952
+ }>, "strip", z.ZodTypeAny, {
2953
+ error: null;
2954
+ status: "pending";
2955
+ action_attempt_id: string;
2956
+ result: null;
2957
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
2958
+ }, {
2959
+ error: null;
2960
+ status: "pending";
2961
+ action_attempt_id: string;
2962
+ result: null;
2963
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
2964
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2965
+ action_attempt_id: z.ZodString;
2966
+ status: z.ZodEnum<["pending", "success", "error"]>;
2967
+ }, {
2968
+ status: z.ZodLiteral<"success">;
2969
+ error: z.ZodNull;
2970
+ }>, {
2971
+ action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
2972
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2973
+ }>, "strip", z.ZodTypeAny, {
2974
+ error: null;
2975
+ status: "success";
2976
+ action_attempt_id: string;
2977
+ result: {};
2978
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
2979
+ }, {
2980
+ error: null;
2981
+ status: "success";
2982
+ action_attempt_id: string;
2983
+ result: {};
2984
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
2985
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
2986
+ action_attempt_id: z.ZodString;
2987
+ status: z.ZodEnum<["pending", "success", "error"]>;
2988
+ }, {
2989
+ status: z.ZodLiteral<"error">;
2990
+ result: z.ZodNull;
2991
+ }>, {
2992
+ action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
2993
+ error: z.ZodObject<{
2994
+ type: z.ZodString;
2995
+ message: z.ZodString;
2996
+ }, "strip", z.ZodTypeAny, {
2997
+ type: string;
2998
+ message: string;
2999
+ }, {
3000
+ type: string;
3001
+ message: string;
3002
+ }>;
3003
+ }>, "strip", z.ZodTypeAny, {
3004
+ error: {
3005
+ type: string;
3006
+ message: string;
3007
+ };
3008
+ status: "error";
3009
+ action_attempt_id: string;
3010
+ result: null;
3011
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
3012
+ }, {
3013
+ error: {
3014
+ type: string;
3015
+ message: string;
3016
+ };
3017
+ status: "error";
3018
+ action_attempt_id: string;
3019
+ result: null;
3020
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
3021
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3022
+ action_attempt_id: z.ZodString;
3023
+ status: z.ZodEnum<["pending", "success", "error"]>;
3024
+ }, {
3025
+ status: z.ZodLiteral<"pending">;
3026
+ result: z.ZodNull;
3027
+ error: z.ZodNull;
3028
+ }>, {
3029
+ action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
3030
+ }>, "strip", z.ZodTypeAny, {
3031
+ error: null;
3032
+ status: "pending";
3033
+ action_attempt_id: string;
3034
+ result: null;
3035
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
3036
+ }, {
3037
+ error: null;
3038
+ status: "pending";
3039
+ action_attempt_id: string;
3040
+ result: null;
3041
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
3042
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3043
+ action_attempt_id: z.ZodString;
3044
+ status: z.ZodEnum<["pending", "success", "error"]>;
3045
+ }, {
3046
+ status: z.ZodLiteral<"success">;
3047
+ error: z.ZodNull;
3048
+ }>, {
3049
+ action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
3050
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
3051
+ }>, "strip", z.ZodTypeAny, {
3052
+ error: null;
3053
+ status: "success";
3054
+ action_attempt_id: string;
3055
+ result: {};
3056
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
3057
+ }, {
3058
+ error: null;
3059
+ status: "success";
3060
+ action_attempt_id: string;
3061
+ result: {};
3062
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
3063
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3064
+ action_attempt_id: z.ZodString;
3065
+ status: z.ZodEnum<["pending", "success", "error"]>;
3066
+ }, {
3067
+ status: z.ZodLiteral<"error">;
3068
+ result: z.ZodNull;
3069
+ }>, {
3070
+ action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
3071
+ error: z.ZodObject<{
3072
+ type: z.ZodString;
3073
+ message: z.ZodString;
3074
+ }, "strip", z.ZodTypeAny, {
3075
+ type: string;
3076
+ message: string;
3077
+ }, {
3078
+ type: string;
3079
+ message: string;
3080
+ }>;
3081
+ }>, "strip", z.ZodTypeAny, {
3082
+ error: {
3083
+ type: string;
3084
+ message: string;
3085
+ };
3086
+ status: "error";
3087
+ action_attempt_id: string;
3088
+ result: null;
3089
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
3090
+ }, {
3091
+ error: {
3092
+ type: string;
3093
+ message: string;
3094
+ };
3095
+ status: "error";
3096
+ action_attempt_id: string;
3097
+ result: null;
3098
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
3099
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3100
+ action_attempt_id: z.ZodString;
3101
+ status: z.ZodEnum<["pending", "success", "error"]>;
3102
+ }, {
3103
+ status: z.ZodLiteral<"pending">;
3104
+ result: z.ZodNull;
3105
+ error: z.ZodNull;
2950
3106
  }>, {
2951
3107
  action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
2952
3108
  }>, "strip", z.ZodTypeAny, {
@@ -7,6 +7,8 @@ import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspac
7
7
  import { scan_credential_action_attempt } from './scan-credential.js';
8
8
  import { set_fan_mode_action_attempt } from './set-fan-mode.js';
9
9
  import { set_hvac_mode_action_attempt } from './set-hvac-mode.js';
10
+ import { simulate_keypad_code_entry_action_attempt } from './simulate-keypad-code-entry.js';
11
+ import { simulate_manual_lock_via_keypad_action_attempt } from './simulate-manual-lock-via-keypad.js';
10
12
  import { unlock_door_action_attempt } from './unlock-door.js';
11
13
  export const action_attempt = z.union([
12
14
  ...lock_door_action_attempt.options,
@@ -17,6 +19,8 @@ export const action_attempt = z.union([
17
19
  ...set_fan_mode_action_attempt.options,
18
20
  ...set_hvac_mode_action_attempt.options,
19
21
  ...activate_climate_preset_action_attempt.options,
22
+ ...simulate_keypad_code_entry_action_attempt.options,
23
+ ...simulate_manual_lock_via_keypad_action_attempt.options,
20
24
  ...deprecated_action_attempts,
21
25
  ]).describe(`
22
26
  ---
@@ -1 +1 @@
1
- {"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
1
+ {"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
@@ -0,0 +1,80 @@
1
+ import { z } from 'zod';
2
+ export declare const simulate_keypad_code_entry_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ action_attempt_id: z.ZodString;
4
+ status: z.ZodEnum<["pending", "success", "error"]>;
5
+ }, {
6
+ status: z.ZodLiteral<"pending">;
7
+ result: z.ZodNull;
8
+ error: z.ZodNull;
9
+ }>, {
10
+ action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
11
+ }>, "strip", z.ZodTypeAny, {
12
+ error: null;
13
+ status: "pending";
14
+ action_attempt_id: string;
15
+ result: null;
16
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
17
+ }, {
18
+ error: null;
19
+ status: "pending";
20
+ action_attempt_id: string;
21
+ result: null;
22
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
23
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
24
+ action_attempt_id: z.ZodString;
25
+ status: z.ZodEnum<["pending", "success", "error"]>;
26
+ }, {
27
+ status: z.ZodLiteral<"success">;
28
+ error: z.ZodNull;
29
+ }>, {
30
+ action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
31
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
32
+ }>, "strip", z.ZodTypeAny, {
33
+ error: null;
34
+ status: "success";
35
+ action_attempt_id: string;
36
+ result: {};
37
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
38
+ }, {
39
+ error: null;
40
+ status: "success";
41
+ action_attempt_id: string;
42
+ result: {};
43
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
44
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
45
+ action_attempt_id: z.ZodString;
46
+ status: z.ZodEnum<["pending", "success", "error"]>;
47
+ }, {
48
+ status: z.ZodLiteral<"error">;
49
+ result: z.ZodNull;
50
+ }>, {
51
+ action_type: z.ZodLiteral<"SIMULATE_KEYPAD_CODE_ENTRY">;
52
+ error: z.ZodObject<{
53
+ type: z.ZodString;
54
+ message: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ type: string;
57
+ message: string;
58
+ }, {
59
+ type: string;
60
+ message: string;
61
+ }>;
62
+ }>, "strip", z.ZodTypeAny, {
63
+ error: {
64
+ type: string;
65
+ message: string;
66
+ };
67
+ status: "error";
68
+ action_attempt_id: string;
69
+ result: null;
70
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
71
+ }, {
72
+ error: {
73
+ type: string;
74
+ message: string;
75
+ };
76
+ status: "error";
77
+ action_attempt_id: string;
78
+ result: null;
79
+ action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
80
+ }>]>;
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
+ const action_type = z.literal('SIMULATE_KEYPAD_CODE_ENTRY');
4
+ const error = z.object({
5
+ type: z.string(),
6
+ message: z.string(),
7
+ });
8
+ const result = z.object({});
9
+ export const simulate_keypad_code_entry_action_attempt = z.discriminatedUnion('status', [
10
+ common_pending_action_attempt
11
+ .extend({
12
+ action_type,
13
+ })
14
+ .describe('Simulating keypad code entry.'),
15
+ common_succeeded_action_attempt
16
+ .extend({
17
+ action_type,
18
+ result,
19
+ })
20
+ .describe('Simulating keypad code entry succeeded.'),
21
+ common_failed_action_attempt
22
+ .extend({
23
+ action_type,
24
+ error,
25
+ })
26
+ .describe('Simulating keypad code entry failed.'),
27
+ ]);
28
+ //# sourceMappingURL=simulate-keypad-code-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulate-keypad-code-entry.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAA;AAE3D,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,kBAAkB,CAC3E,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,+BAA+B,CAAC;IAC5C,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,yCAAyC,CAAC;IACtD,4BAA4B;SACzB,MAAM,CAAC;QACN,WAAW;QACX,KAAK;KACN,CAAC;SACD,QAAQ,CAAC,sCAAsC,CAAC;CACpD,CACF,CAAA"}
@@ -0,0 +1,80 @@
1
+ import { z } from 'zod';
2
+ export declare const simulate_manual_lock_via_keypad_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ action_attempt_id: z.ZodString;
4
+ status: z.ZodEnum<["pending", "success", "error"]>;
5
+ }, {
6
+ status: z.ZodLiteral<"pending">;
7
+ result: z.ZodNull;
8
+ error: z.ZodNull;
9
+ }>, {
10
+ action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
11
+ }>, "strip", z.ZodTypeAny, {
12
+ error: null;
13
+ status: "pending";
14
+ action_attempt_id: string;
15
+ result: null;
16
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
17
+ }, {
18
+ error: null;
19
+ status: "pending";
20
+ action_attempt_id: string;
21
+ result: null;
22
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
23
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
24
+ action_attempt_id: z.ZodString;
25
+ status: z.ZodEnum<["pending", "success", "error"]>;
26
+ }, {
27
+ status: z.ZodLiteral<"success">;
28
+ error: z.ZodNull;
29
+ }>, {
30
+ action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
31
+ result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
32
+ }>, "strip", z.ZodTypeAny, {
33
+ error: null;
34
+ status: "success";
35
+ action_attempt_id: string;
36
+ result: {};
37
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
38
+ }, {
39
+ error: null;
40
+ status: "success";
41
+ action_attempt_id: string;
42
+ result: {};
43
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
44
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
45
+ action_attempt_id: z.ZodString;
46
+ status: z.ZodEnum<["pending", "success", "error"]>;
47
+ }, {
48
+ status: z.ZodLiteral<"error">;
49
+ result: z.ZodNull;
50
+ }>, {
51
+ action_type: z.ZodLiteral<"SIMULATE_MANUAL_LOCK_VIA_KEYPAD">;
52
+ error: z.ZodObject<{
53
+ type: z.ZodString;
54
+ message: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ type: string;
57
+ message: string;
58
+ }, {
59
+ type: string;
60
+ message: string;
61
+ }>;
62
+ }>, "strip", z.ZodTypeAny, {
63
+ error: {
64
+ type: string;
65
+ message: string;
66
+ };
67
+ status: "error";
68
+ action_attempt_id: string;
69
+ result: null;
70
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
71
+ }, {
72
+ error: {
73
+ type: string;
74
+ message: string;
75
+ };
76
+ status: "error";
77
+ action_attempt_id: string;
78
+ result: null;
79
+ action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
80
+ }>]>;
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
3
+ const action_type = z.literal('SIMULATE_MANUAL_LOCK_VIA_KEYPAD');
4
+ const error = z.object({
5
+ type: z.string(),
6
+ message: z.string(),
7
+ });
8
+ const result = z.object({});
9
+ export const simulate_manual_lock_via_keypad_action_attempt = z.discriminatedUnion('status', [
10
+ common_pending_action_attempt
11
+ .extend({
12
+ action_type,
13
+ })
14
+ .describe('Simulating manual lock via keypad.'),
15
+ common_succeeded_action_attempt
16
+ .extend({
17
+ action_type,
18
+ result,
19
+ })
20
+ .describe('Simulating manual lock via keypad succeeded.'),
21
+ common_failed_action_attempt
22
+ .extend({
23
+ action_type,
24
+ error,
25
+ })
26
+ .describe('Simulating manual lock via keypad failed.'),
27
+ ]);
28
+ //# sourceMappingURL=simulate-manual-lock-via-keypad.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulate-manual-lock-via-keypad.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAA;AAEhE,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAE3B,MAAM,CAAC,MAAM,8CAA8C,GACzD,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7B,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,oCAAoC,CAAC;IACjD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,4BAA4B;SACzB,MAAM,CAAC;QACN,WAAW;QACX,KAAK;KACN,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;CACzD,CAAC,CAAA"}