@seamapi/types 1.99.0 → 1.101.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.
@@ -101,6 +101,7 @@ export interface Routes {
101
101
  jsonBody: {
102
102
  device_ids: string[];
103
103
  behavior_when_code_cannot_be_shared?: 'throw' | 'create_random_code';
104
+ preferred_code_length?: number | undefined;
104
105
  name?: string | undefined;
105
106
  starts_at?: string | undefined;
106
107
  ends_at?: string | undefined;
@@ -2072,7 +2073,7 @@ export interface Routes {
2072
2073
  }) & ({
2073
2074
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
2074
2075
  code_constraints?: (Array<{
2075
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
2076
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
2076
2077
  } | {
2077
2078
  constraint_type: 'name_length';
2078
2079
  min_length?: number | undefined;
@@ -2556,7 +2557,7 @@ export interface Routes {
2556
2557
  }) & ({
2557
2558
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
2558
2559
  code_constraints?: (Array<{
2559
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
2560
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
2560
2561
  } | {
2561
2562
  constraint_type: 'name_length';
2562
2563
  min_length?: number | undefined;
@@ -3359,7 +3360,7 @@ export interface Routes {
3359
3360
  }) & ({
3360
3361
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
3361
3362
  code_constraints?: (Array<{
3362
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
3363
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
3363
3364
  } | {
3364
3365
  constraint_type: 'name_length';
3365
3366
  min_length?: number | undefined;
@@ -3820,7 +3821,7 @@ export interface Routes {
3820
3821
  }) & ({
3821
3822
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
3822
3823
  code_constraints?: (Array<{
3823
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
3824
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
3824
3825
  } | {
3825
3826
  constraint_type: 'name_length';
3826
3827
  min_length?: number | undefined;
@@ -4304,7 +4305,7 @@ export interface Routes {
4304
4305
  }) & ({
4305
4306
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
4306
4307
  code_constraints?: (Array<{
4307
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
4308
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
4308
4309
  } | {
4309
4310
  constraint_type: 'name_length';
4310
4311
  min_length?: number | undefined;
@@ -4765,7 +4766,7 @@ export interface Routes {
4765
4766
  }) & ({
4766
4767
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
4767
4768
  code_constraints?: (Array<{
4768
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
4769
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
4769
4770
  } | {
4770
4771
  constraint_type: 'name_length';
4771
4772
  min_length?: number | undefined;
@@ -5818,7 +5819,7 @@ export interface Routes {
5818
5819
  }) & ({
5819
5820
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
5820
5821
  code_constraints?: (Array<{
5821
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
5822
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
5822
5823
  } | {
5823
5824
  constraint_type: 'name_length';
5824
5825
  min_length?: number | undefined;
@@ -6332,7 +6333,7 @@ export interface Routes {
6332
6333
  }) & ({
6333
6334
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
6334
6335
  code_constraints?: (Array<{
6335
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
6336
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
6336
6337
  } | {
6337
6338
  constraint_type: 'name_length';
6338
6339
  min_length?: number | undefined;
@@ -7018,7 +7019,7 @@ export interface Routes {
7018
7019
  }) & ({
7019
7020
  _experimental_supported_code_from_access_codes_lengths?: (number[] | undefined) | undefined;
7020
7021
  code_constraints?: (Array<{
7021
- constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future';
7022
+ constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits';
7022
7023
  } | {
7023
7024
  constraint_type: 'name_length';
7024
7025
  min_length?: number | undefined;
@@ -1,10 +1,10 @@
1
1
  import { z } from 'zod';
2
2
  export declare const access_code_code_constraint: z.ZodObject<{
3
- constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future"]>;
3
+ constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits"]>;
4
4
  }, "strip", z.ZodTypeAny, {
5
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
5
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
6
6
  }, {
7
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
7
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
8
8
  }>;
9
9
  export declare const access_code_name_constraint: z.ZodObject<{
10
10
  constraint_type: z.ZodLiteral<"name_length">;
@@ -20,11 +20,11 @@ export declare const access_code_name_constraint: z.ZodObject<{
20
20
  max_length?: number | undefined;
21
21
  }>;
22
22
  export declare const access_code_constraint: z.ZodUnion<[z.ZodObject<{
23
- constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future"]>;
23
+ constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits"]>;
24
24
  }, "strip", z.ZodTypeAny, {
25
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
25
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
26
26
  }, {
27
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
27
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
28
28
  }>, z.ZodObject<{
29
29
  constraint_type: z.ZodLiteral<"name_length">;
30
30
  min_length: z.ZodOptional<z.ZodNumber>;
@@ -42,11 +42,11 @@ export type AccessCodeConstraint = z.infer<typeof access_code_constraint>;
42
42
  export declare const access_code_capability_properties: z.ZodObject<{
43
43
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
44
44
  code_constraints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
45
- constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future"]>;
45
+ constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits"]>;
46
46
  }, "strip", z.ZodTypeAny, {
47
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
47
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
48
48
  }, {
49
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
49
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
50
50
  }>, z.ZodObject<{
51
51
  constraint_type: z.ZodLiteral<"name_length">;
52
52
  min_length: z.ZodOptional<z.ZodNumber>;
@@ -67,7 +67,7 @@ export declare const access_code_capability_properties: z.ZodObject<{
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
69
69
  code_constraints?: ({
70
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
70
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
71
71
  } | {
72
72
  constraint_type: "name_length";
73
73
  min_length?: number | undefined;
@@ -80,7 +80,7 @@ export declare const access_code_capability_properties: z.ZodObject<{
80
80
  }, {
81
81
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
82
82
  code_constraints?: ({
83
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
83
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
84
84
  } | {
85
85
  constraint_type: "name_length";
86
86
  min_length?: number | undefined;
@@ -7,6 +7,8 @@ export const access_code_code_constraint = z.object({
7
7
  'cannot_specify_pin_code', // Lockly
8
8
  'pin_code_matches_existing_set', // Salto
9
9
  'start_date_in_future', // Kwikset
10
+ 'no_ascending_or_descending_sequence', // Tedee
11
+ 'at_least_three_unique_digits', // Tedee
10
12
  ]),
11
13
  });
12
14
  export const access_code_name_constraint = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"access-code.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/capability-properties/access-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC;QACtB,UAAU,EAAE,OAAO;QACnB,sBAAsB,EAAE,OAAO;QAC/B,4BAA4B,EAAE,QAAQ;QACtC,yBAAyB,EAAE,SAAS;QACpC,+BAA+B,EAAE,QAAQ;QACzC,sBAAsB,EAAE,UAAU;KACnC,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,gBAAgB;IAC3D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC5C,2BAA2B;IAC3B,2BAA2B;CAC5B,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,sDAAsD,EAAE,CAAC;SACtD,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;IACb,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE;IAC5D,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAA"}
1
+ {"version":3,"file":"access-code.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/capability-properties/access-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC;QACtB,UAAU,EAAE,OAAO;QACnB,sBAAsB,EAAE,OAAO;QAC/B,4BAA4B,EAAE,QAAQ;QACtC,yBAAyB,EAAE,SAAS;QACpC,+BAA+B,EAAE,QAAQ;QACzC,sBAAsB,EAAE,UAAU;QAClC,qCAAqC,EAAE,QAAQ;QAC/C,8BAA8B,EAAE,QAAQ;KACzC,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,gBAAgB;IAC3D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC;IAC5C,2BAA2B;IAC3B,2BAA2B;CAC5B,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,sDAAsD,EAAE,CAAC;SACtD,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;IACb,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE;IAC5D,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAA"}
@@ -6,11 +6,11 @@ export { access_code_capability_properties, access_code_code_constraint, climate
6
6
  export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
7
7
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
8
8
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
9
- constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future"]>;
9
+ constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits"]>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
11
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
12
12
  }, {
13
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
13
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
14
14
  }>, z.ZodObject<{
15
15
  constraint_type: z.ZodLiteral<"name_length">;
16
16
  min_length: z.ZodOptional<z.ZodNumber>;
@@ -40,7 +40,7 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
42
42
  code_constraints?: ({
43
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
43
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
44
44
  } | {
45
45
  constraint_type: "name_length";
46
46
  min_length?: number | undefined;
@@ -58,7 +58,7 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
58
58
  }, {
59
59
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
60
60
  code_constraints?: ({
61
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
61
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
62
62
  } | {
63
63
  constraint_type: "name_length";
64
64
  min_length?: number | undefined;
@@ -1160,11 +1160,11 @@ export declare const managed_device: z.ZodObject<{
1160
1160
  }>>, z.ZodIntersection<z.ZodObject<{
1161
1161
  _experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
1162
1162
  code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1163
- constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future"]>;
1163
+ constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits"]>;
1164
1164
  }, "strip", z.ZodTypeAny, {
1165
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
1165
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
1166
1166
  }, {
1167
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
1167
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
1168
1168
  }>, z.ZodObject<{
1169
1169
  constraint_type: z.ZodLiteral<"name_length">;
1170
1170
  min_length: z.ZodOptional<z.ZodNumber>;
@@ -1194,7 +1194,7 @@ export declare const managed_device: z.ZodObject<{
1194
1194
  }, "strip", z.ZodTypeAny, {
1195
1195
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
1196
1196
  code_constraints?: ({
1197
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
1197
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
1198
1198
  } | {
1199
1199
  constraint_type: "name_length";
1200
1200
  min_length?: number | undefined;
@@ -1212,7 +1212,7 @@ export declare const managed_device: z.ZodObject<{
1212
1212
  }, {
1213
1213
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
1214
1214
  code_constraints?: ({
1215
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
1215
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
1216
1216
  } | {
1217
1217
  constraint_type: "name_length";
1218
1218
  min_length?: number | undefined;
@@ -2226,7 +2226,7 @@ export declare const managed_device: z.ZodObject<{
2226
2226
  } & ({
2227
2227
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
2228
2228
  code_constraints?: ({
2229
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
2229
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
2230
2230
  } | {
2231
2231
  constraint_type: "name_length";
2232
2232
  min_length?: number | undefined;
@@ -2630,7 +2630,7 @@ export declare const managed_device: z.ZodObject<{
2630
2630
  } & ({
2631
2631
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
2632
2632
  code_constraints?: ({
2633
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
2633
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
2634
2634
  } | {
2635
2635
  constraint_type: "name_length";
2636
2636
  min_length?: number | undefined;
@@ -3056,7 +3056,7 @@ export declare const managed_device: z.ZodObject<{
3056
3056
  } & ({
3057
3057
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
3058
3058
  code_constraints?: ({
3059
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
3059
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
3060
3060
  } | {
3061
3061
  constraint_type: "name_length";
3062
3062
  min_length?: number | undefined;
@@ -3460,7 +3460,7 @@ export declare const managed_device: z.ZodObject<{
3460
3460
  } & ({
3461
3461
  _experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
3462
3462
  code_constraints?: ({
3463
- constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future";
3463
+ constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits";
3464
3464
  } | {
3465
3465
  constraint_type: "name_length";
3466
3466
  min_length?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.99.0",
3
+ "version": "1.101.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1202,6 +1202,8 @@ export default {
1202
1202
  'cannot_specify_pin_code',
1203
1203
  'pin_code_matches_existing_set',
1204
1204
  'start_date_in_future',
1205
+ 'no_ascending_or_descending_sequence',
1206
+ 'at_least_three_unique_digits',
1205
1207
  ],
1206
1208
  type: 'string',
1207
1209
  },
@@ -2399,6 +2401,7 @@ export default {
2399
2401
  },
2400
2402
  name: { type: 'string' },
2401
2403
  prefer_native_scheduling: { type: 'boolean' },
2404
+ preferred_code_length: { type: 'number' },
2402
2405
  starts_at: { type: 'string' },
2403
2406
  use_backup_access_code_pool: { type: 'boolean' },
2404
2407
  use_offline_access_code: { type: 'boolean' },
@@ -2481,6 +2484,7 @@ export default {
2481
2484
  },
2482
2485
  name: { type: 'string' },
2483
2486
  prefer_native_scheduling: { type: 'boolean' },
2487
+ preferred_code_length: { type: 'number' },
2484
2488
  starts_at: { type: 'string' },
2485
2489
  use_backup_access_code_pool: { type: 'boolean' },
2486
2490
  use_offline_access_code: { type: 'boolean' },
@@ -104,6 +104,7 @@ export interface Routes {
104
104
  jsonBody: {
105
105
  device_ids: string[]
106
106
  behavior_when_code_cannot_be_shared?: 'throw' | 'create_random_code'
107
+ preferred_code_length?: number | undefined
107
108
  name?: string | undefined
108
109
  starts_at?: string | undefined
109
110
  ends_at?: string | undefined
@@ -2421,6 +2422,8 @@ export interface Routes {
2421
2422
  | 'cannot_specify_pin_code'
2422
2423
  | 'pin_code_matches_existing_set'
2423
2424
  | 'start_date_in_future'
2425
+ | 'no_ascending_or_descending_sequence'
2426
+ | 'at_least_three_unique_digits'
2424
2427
  }
2425
2428
  | {
2426
2429
  constraint_type: 'name_length'
@@ -3216,6 +3219,8 @@ export interface Routes {
3216
3219
  | 'cannot_specify_pin_code'
3217
3220
  | 'pin_code_matches_existing_set'
3218
3221
  | 'start_date_in_future'
3222
+ | 'no_ascending_or_descending_sequence'
3223
+ | 'at_least_three_unique_digits'
3219
3224
  }
3220
3225
  | {
3221
3226
  constraint_type: 'name_length'
@@ -4510,6 +4515,8 @@ export interface Routes {
4510
4515
  | 'cannot_specify_pin_code'
4511
4516
  | 'pin_code_matches_existing_set'
4512
4517
  | 'start_date_in_future'
4518
+ | 'no_ascending_or_descending_sequence'
4519
+ | 'at_least_three_unique_digits'
4513
4520
  }
4514
4521
  | {
4515
4522
  constraint_type: 'name_length'
@@ -5178,6 +5185,8 @@ export interface Routes {
5178
5185
  | 'cannot_specify_pin_code'
5179
5186
  | 'pin_code_matches_existing_set'
5180
5187
  | 'start_date_in_future'
5188
+ | 'no_ascending_or_descending_sequence'
5189
+ | 'at_least_three_unique_digits'
5181
5190
  }
5182
5191
  | {
5183
5192
  constraint_type: 'name_length'
@@ -5973,6 +5982,8 @@ export interface Routes {
5973
5982
  | 'cannot_specify_pin_code'
5974
5983
  | 'pin_code_matches_existing_set'
5975
5984
  | 'start_date_in_future'
5985
+ | 'no_ascending_or_descending_sequence'
5986
+ | 'at_least_three_unique_digits'
5976
5987
  }
5977
5988
  | {
5978
5989
  constraint_type: 'name_length'
@@ -6641,6 +6652,8 @@ export interface Routes {
6641
6652
  | 'cannot_specify_pin_code'
6642
6653
  | 'pin_code_matches_existing_set'
6643
6654
  | 'start_date_in_future'
6655
+ | 'no_ascending_or_descending_sequence'
6656
+ | 'at_least_three_unique_digits'
6644
6657
  }
6645
6658
  | {
6646
6659
  constraint_type: 'name_length'
@@ -7934,6 +7947,8 @@ export interface Routes {
7934
7947
  | 'cannot_specify_pin_code'
7935
7948
  | 'pin_code_matches_existing_set'
7936
7949
  | 'start_date_in_future'
7950
+ | 'no_ascending_or_descending_sequence'
7951
+ | 'at_least_three_unique_digits'
7937
7952
  }
7938
7953
  | {
7939
7954
  constraint_type: 'name_length'
@@ -8759,6 +8774,8 @@ export interface Routes {
8759
8774
  | 'cannot_specify_pin_code'
8760
8775
  | 'pin_code_matches_existing_set'
8761
8776
  | 'start_date_in_future'
8777
+ | 'no_ascending_or_descending_sequence'
8778
+ | 'at_least_three_unique_digits'
8762
8779
  }
8763
8780
  | {
8764
8781
  constraint_type: 'name_length'
@@ -9654,6 +9671,8 @@ export interface Routes {
9654
9671
  | 'cannot_specify_pin_code'
9655
9672
  | 'pin_code_matches_existing_set'
9656
9673
  | 'start_date_in_future'
9674
+ | 'no_ascending_or_descending_sequence'
9675
+ | 'at_least_three_unique_digits'
9657
9676
  }
9658
9677
  | {
9659
9678
  constraint_type: 'name_length'
@@ -8,6 +8,8 @@ export const access_code_code_constraint = z.object({
8
8
  'cannot_specify_pin_code', // Lockly
9
9
  'pin_code_matches_existing_set', // Salto
10
10
  'start_date_in_future', // Kwikset
11
+ 'no_ascending_or_descending_sequence', // Tedee
12
+ 'at_least_three_unique_digits', // Tedee
11
13
  ]),
12
14
  })
13
15