@seamapi/types 1.164.0 → 1.166.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.
@@ -1626,6 +1626,21 @@ declare const _default: {
1626
1626
  display_name: {
1627
1627
  type: string;
1628
1628
  };
1629
+ errors: {
1630
+ items: {
1631
+ properties: {
1632
+ error_code: {
1633
+ type: string;
1634
+ };
1635
+ message: {
1636
+ type: string;
1637
+ };
1638
+ };
1639
+ required: string[];
1640
+ type: string;
1641
+ };
1642
+ type: string;
1643
+ };
1629
1644
  latch_metadata: {
1630
1645
  nullable: boolean;
1631
1646
  properties: {
@@ -18105,6 +18120,10 @@ interface Routes {
18105
18120
  door_type: string;
18106
18121
  is_connected: boolean;
18107
18122
  } | null;
18123
+ errors: Array<{
18124
+ error_code: string;
18125
+ message: string;
18126
+ }>;
18108
18127
  visionline_metadata: {
18109
18128
  door_name: string;
18110
18129
  door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
@@ -18150,6 +18169,10 @@ interface Routes {
18150
18169
  door_type: string;
18151
18170
  is_connected: boolean;
18152
18171
  } | null;
18172
+ errors: Array<{
18173
+ error_code: string;
18174
+ message: string;
18175
+ }>;
18153
18176
  visionline_metadata: {
18154
18177
  door_name: string;
18155
18178
  door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
@@ -18465,6 +18488,10 @@ interface Routes {
18465
18488
  door_type: string;
18466
18489
  is_connected: boolean;
18467
18490
  } | null;
18491
+ errors: Array<{
18492
+ error_code: string;
18493
+ message: string;
18494
+ }>;
18468
18495
  visionline_metadata: {
18469
18496
  door_name: string;
18470
18497
  door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
@@ -19329,7 +19356,7 @@ interface Routes {
19329
19356
  code_constraints?: (Array<{
19330
19357
  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' | 'cannot_contain_089';
19331
19358
  } | {
19332
- constraint_type: 'name_length';
19359
+ constraint_type: 'name_length' | 'name_must_be_unique';
19333
19360
  min_length?: number | undefined;
19334
19361
  max_length?: number | undefined;
19335
19362
  }> | undefined) | undefined;
@@ -19866,7 +19893,7 @@ interface Routes {
19866
19893
  code_constraints?: (Array<{
19867
19894
  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' | 'cannot_contain_089';
19868
19895
  } | {
19869
- constraint_type: 'name_length';
19896
+ constraint_type: 'name_length' | 'name_must_be_unique';
19870
19897
  min_length?: number | undefined;
19871
19898
  max_length?: number | undefined;
19872
19899
  }> | undefined) | undefined;
@@ -20707,7 +20734,7 @@ interface Routes {
20707
20734
  code_constraints?: (Array<{
20708
20735
  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' | 'cannot_contain_089';
20709
20736
  } | {
20710
- constraint_type: 'name_length';
20737
+ constraint_type: 'name_length' | 'name_must_be_unique';
20711
20738
  min_length?: number | undefined;
20712
20739
  max_length?: number | undefined;
20713
20740
  }> | undefined) | undefined;
@@ -21219,7 +21246,7 @@ interface Routes {
21219
21246
  code_constraints?: (Array<{
21220
21247
  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' | 'cannot_contain_089';
21221
21248
  } | {
21222
- constraint_type: 'name_length';
21249
+ constraint_type: 'name_length' | 'name_must_be_unique';
21223
21250
  min_length?: number | undefined;
21224
21251
  max_length?: number | undefined;
21225
21252
  }> | undefined) | undefined;
@@ -21756,7 +21783,7 @@ interface Routes {
21756
21783
  code_constraints?: (Array<{
21757
21784
  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' | 'cannot_contain_089';
21758
21785
  } | {
21759
- constraint_type: 'name_length';
21786
+ constraint_type: 'name_length' | 'name_must_be_unique';
21760
21787
  min_length?: number | undefined;
21761
21788
  max_length?: number | undefined;
21762
21789
  }> | undefined) | undefined;
@@ -22268,7 +22295,7 @@ interface Routes {
22268
22295
  code_constraints?: (Array<{
22269
22296
  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' | 'cannot_contain_089';
22270
22297
  } | {
22271
- constraint_type: 'name_length';
22298
+ constraint_type: 'name_length' | 'name_must_be_unique';
22272
22299
  min_length?: number | undefined;
22273
22300
  max_length?: number | undefined;
22274
22301
  }> | undefined) | undefined;
@@ -23423,7 +23450,7 @@ interface Routes {
23423
23450
  code_constraints?: (Array<{
23424
23451
  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' | 'cannot_contain_089';
23425
23452
  } | {
23426
- constraint_type: 'name_length';
23453
+ constraint_type: 'name_length' | 'name_must_be_unique';
23427
23454
  min_length?: number | undefined;
23428
23455
  max_length?: number | undefined;
23429
23456
  }> | undefined) | undefined;
@@ -24036,7 +24063,7 @@ interface Routes {
24036
24063
  code_constraints?: (Array<{
24037
24064
  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' | 'cannot_contain_089';
24038
24065
  } | {
24039
- constraint_type: 'name_length';
24066
+ constraint_type: 'name_length' | 'name_must_be_unique';
24040
24067
  min_length?: number | undefined;
24041
24068
  max_length?: number | undefined;
24042
24069
  }> | undefined) | undefined;
@@ -24832,7 +24859,7 @@ interface Routes {
24832
24859
  code_constraints?: (Array<{
24833
24860
  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' | 'cannot_contain_089';
24834
24861
  } | {
24835
- constraint_type: 'name_length';
24862
+ constraint_type: 'name_length' | 'name_must_be_unique';
24836
24863
  min_length?: number | undefined;
24837
24864
  max_length?: number | undefined;
24838
24865
  }> | undefined) | undefined;
@@ -25349,7 +25376,7 @@ interface Routes {
25349
25376
  code_constraints?: (Array<{
25350
25377
  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' | 'cannot_contain_089';
25351
25378
  } | {
25352
- constraint_type: 'name_length';
25379
+ constraint_type: 'name_length' | 'name_must_be_unique';
25353
25380
  min_length?: number | undefined;
25354
25381
  max_length?: number | undefined;
25355
25382
  }> | undefined) | undefined;
@@ -36,6 +36,16 @@ export declare const acs_entrance: z.ZodObject<{
36
36
  door_type: string;
37
37
  is_connected: boolean;
38
38
  }>>;
39
+ errors: z.ZodArray<z.ZodObject<{
40
+ error_code: z.ZodString;
41
+ message: z.ZodString;
42
+ }, "strip", z.ZodTypeAny, {
43
+ message: string;
44
+ error_code: string;
45
+ }, {
46
+ message: string;
47
+ error_code: string;
48
+ }>, "many">;
39
49
  visionline_metadata: z.ZodNullable<z.ZodObject<{
40
50
  door_name: z.ZodString;
41
51
  door_category: z.ZodEnum<["entrance", "guest", "elevator reader", "common", "common (PMS)"]>;
@@ -66,6 +76,10 @@ export declare const acs_entrance: z.ZodObject<{
66
76
  }>>;
67
77
  }, "strip", z.ZodTypeAny, {
68
78
  created_at: string;
79
+ errors: {
80
+ message: string;
81
+ error_code: string;
82
+ }[];
69
83
  acs_system_id: string;
70
84
  display_name: string;
71
85
  visionline_metadata: {
@@ -85,6 +99,10 @@ export declare const acs_entrance: z.ZodObject<{
85
99
  } | null;
86
100
  }, {
87
101
  created_at: string;
102
+ errors: {
103
+ message: string;
104
+ error_code: string;
105
+ }[];
88
106
  acs_system_id: string;
89
107
  display_name: string;
90
108
  visionline_metadata: {
@@ -11,6 +11,10 @@ export const acs_entrance = z.object({
11
11
  acs_system_id: z.string().uuid(),
12
12
  created_at: z.string().datetime(),
13
13
  latch_metadata: acs_entrance_latch_metadata.nullable(),
14
+ errors: z.array(z.object({
15
+ error_code: z.string(),
16
+ message: z.string(),
17
+ })),
14
18
  visionline_metadata: z
15
19
  .object({
16
20
  door_name: z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"entrance.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/entrance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IACtD,mBAAmB,EAAE,CAAC;SACnB,MAAM,CAAC;QACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;YACpB,UAAU;YACV,OAAO;YACP,iBAAiB;YACjB,QAAQ;YACR,cAAc;SACf,CAAC;QACF,QAAQ,EAAE,CAAC;aACR,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;YACtC,4BAA4B,EAAE,CAAC,CAAC,IAAI,CAAC;gBACnC,KAAK;gBACL,YAAY;gBACZ,OAAO;aACR,CAAC;SACH,CAAC,CACH;aACA,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA"}
1
+ {"version":3,"file":"entrance.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/entrance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IACtD,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,mBAAmB,EAAE,CAAC;SACnB,MAAM,CAAC;QACN,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC;YACpB,UAAU;YACV,OAAO;YACP,iBAAiB;YACjB,QAAQ;YACR,cAAc;SACf,CAAC;QACF,QAAQ,EAAE,CAAC;aACR,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;YACP,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;YACtC,4BAA4B,EAAE,CAAC,CAAC,IAAI,CAAC;gBACnC,KAAK;gBACL,YAAY;gBACZ,OAAO;aACR,CAAC;SACH,CAAC,CACH;aACA,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA"}
@@ -7,15 +7,15 @@ export declare const access_code_code_constraint: z.ZodObject<{
7
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" | "cannot_contain_089";
8
8
  }>;
9
9
  export declare const access_code_name_constraint: z.ZodObject<{
10
- constraint_type: z.ZodLiteral<"name_length">;
10
+ constraint_type: z.ZodEnum<["name_length", "name_must_be_unique"]>;
11
11
  min_length: z.ZodOptional<z.ZodNumber>;
12
12
  max_length: z.ZodOptional<z.ZodNumber>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- constraint_type: "name_length";
14
+ constraint_type: "name_length" | "name_must_be_unique";
15
15
  min_length?: number | undefined;
16
16
  max_length?: number | undefined;
17
17
  }, {
18
- constraint_type: "name_length";
18
+ constraint_type: "name_length" | "name_must_be_unique";
19
19
  min_length?: number | undefined;
20
20
  max_length?: number | undefined;
21
21
  }>;
@@ -26,15 +26,15 @@ export declare const access_code_constraint: z.ZodUnion<[z.ZodObject<{
26
26
  }, {
27
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" | "cannot_contain_089";
28
28
  }>, z.ZodObject<{
29
- constraint_type: z.ZodLiteral<"name_length">;
29
+ constraint_type: z.ZodEnum<["name_length", "name_must_be_unique"]>;
30
30
  min_length: z.ZodOptional<z.ZodNumber>;
31
31
  max_length: z.ZodOptional<z.ZodNumber>;
32
32
  }, "strip", z.ZodTypeAny, {
33
- constraint_type: "name_length";
33
+ constraint_type: "name_length" | "name_must_be_unique";
34
34
  min_length?: number | undefined;
35
35
  max_length?: number | undefined;
36
36
  }, {
37
- constraint_type: "name_length";
37
+ constraint_type: "name_length" | "name_must_be_unique";
38
38
  min_length?: number | undefined;
39
39
  max_length?: number | undefined;
40
40
  }>]>;
@@ -48,15 +48,15 @@ export declare const access_code_capability_properties: z.ZodObject<{
48
48
  }, {
49
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" | "cannot_contain_089";
50
50
  }>, z.ZodObject<{
51
- constraint_type: z.ZodLiteral<"name_length">;
51
+ constraint_type: z.ZodEnum<["name_length", "name_must_be_unique"]>;
52
52
  min_length: z.ZodOptional<z.ZodNumber>;
53
53
  max_length: z.ZodOptional<z.ZodNumber>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- constraint_type: "name_length";
55
+ constraint_type: "name_length" | "name_must_be_unique";
56
56
  min_length?: number | undefined;
57
57
  max_length?: number | undefined;
58
58
  }, {
59
- constraint_type: "name_length";
59
+ constraint_type: "name_length" | "name_must_be_unique";
60
60
  min_length?: number | undefined;
61
61
  max_length?: number | undefined;
62
62
  }>]>, "many">>;
@@ -69,7 +69,7 @@ export declare const access_code_capability_properties: z.ZodObject<{
69
69
  code_constraints?: ({
70
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" | "cannot_contain_089";
71
71
  } | {
72
- constraint_type: "name_length";
72
+ constraint_type: "name_length" | "name_must_be_unique";
73
73
  min_length?: number | undefined;
74
74
  max_length?: number | undefined;
75
75
  })[] | undefined;
@@ -82,7 +82,7 @@ export declare const access_code_capability_properties: z.ZodObject<{
82
82
  code_constraints?: ({
83
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" | "cannot_contain_089";
84
84
  } | {
85
- constraint_type: "name_length";
85
+ constraint_type: "name_length" | "name_must_be_unique";
86
86
  min_length?: number | undefined;
87
87
  max_length?: number | undefined;
88
88
  })[] | undefined;
@@ -13,7 +13,7 @@ export const access_code_code_constraint = z.object({
13
13
  ]),
14
14
  });
15
15
  export const access_code_name_constraint = z.object({
16
- constraint_type: z.literal('name_length'), // Nuki, Kwikset
16
+ constraint_type: z.enum(['name_length', 'name_must_be_unique']), // Nuki, Kwikset
17
17
  min_length: z.number().optional(),
18
18
  max_length: z.number().optional(),
19
19
  });
@@ -1 +1 @@
1
- {"version":3,"file":"access-code.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/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;QACxC,oBAAoB,EAAE,0CAA0C;KACjE,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/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;QACxC,oBAAoB,EAAE,0CAA0C;KACjE,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC,EAAE,gBAAgB;IACjF,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"}
@@ -12,15 +12,15 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
12
12
  }, {
13
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" | "cannot_contain_089";
14
14
  }>, z.ZodObject<{
15
- constraint_type: z.ZodLiteral<"name_length">;
15
+ constraint_type: z.ZodEnum<["name_length", "name_must_be_unique"]>;
16
16
  min_length: z.ZodOptional<z.ZodNumber>;
17
17
  max_length: z.ZodOptional<z.ZodNumber>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- constraint_type: "name_length";
19
+ constraint_type: "name_length" | "name_must_be_unique";
20
20
  min_length?: number | undefined;
21
21
  max_length?: number | undefined;
22
22
  }, {
23
- constraint_type: "name_length";
23
+ constraint_type: "name_length" | "name_must_be_unique";
24
24
  min_length?: number | undefined;
25
25
  max_length?: number | undefined;
26
26
  }>]>, "many">>>;
@@ -42,7 +42,7 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
42
42
  code_constraints?: ({
43
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" | "cannot_contain_089";
44
44
  } | {
45
- constraint_type: "name_length";
45
+ constraint_type: "name_length" | "name_must_be_unique";
46
46
  min_length?: number | undefined;
47
47
  max_length?: number | undefined;
48
48
  })[] | undefined;
@@ -60,7 +60,7 @@ export declare const capability_properties: z.ZodIntersection<z.ZodObject<{
60
60
  code_constraints?: ({
61
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" | "cannot_contain_089";
62
62
  } | {
63
- constraint_type: "name_length";
63
+ constraint_type: "name_length" | "name_must_be_unique";
64
64
  min_length?: number | undefined;
65
65
  max_length?: number | undefined;
66
66
  })[] | undefined;
@@ -1388,15 +1388,15 @@ export declare const managed_device: z.ZodObject<{
1388
1388
  }, {
1389
1389
  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" | "cannot_contain_089";
1390
1390
  }>, z.ZodObject<{
1391
- constraint_type: z.ZodLiteral<"name_length">;
1391
+ constraint_type: z.ZodEnum<["name_length", "name_must_be_unique"]>;
1392
1392
  min_length: z.ZodOptional<z.ZodNumber>;
1393
1393
  max_length: z.ZodOptional<z.ZodNumber>;
1394
1394
  }, "strip", z.ZodTypeAny, {
1395
- constraint_type: "name_length";
1395
+ constraint_type: "name_length" | "name_must_be_unique";
1396
1396
  min_length?: number | undefined;
1397
1397
  max_length?: number | undefined;
1398
1398
  }, {
1399
- constraint_type: "name_length";
1399
+ constraint_type: "name_length" | "name_must_be_unique";
1400
1400
  min_length?: number | undefined;
1401
1401
  max_length?: number | undefined;
1402
1402
  }>]>, "many">>>;
@@ -1418,7 +1418,7 @@ export declare const managed_device: z.ZodObject<{
1418
1418
  code_constraints?: ({
1419
1419
  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" | "cannot_contain_089";
1420
1420
  } | {
1421
- constraint_type: "name_length";
1421
+ constraint_type: "name_length" | "name_must_be_unique";
1422
1422
  min_length?: number | undefined;
1423
1423
  max_length?: number | undefined;
1424
1424
  })[] | undefined;
@@ -1436,7 +1436,7 @@ export declare const managed_device: z.ZodObject<{
1436
1436
  code_constraints?: ({
1437
1437
  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" | "cannot_contain_089";
1438
1438
  } | {
1439
- constraint_type: "name_length";
1439
+ constraint_type: "name_length" | "name_must_be_unique";
1440
1440
  min_length?: number | undefined;
1441
1441
  max_length?: number | undefined;
1442
1442
  })[] | undefined;
@@ -2455,7 +2455,7 @@ export declare const managed_device: z.ZodObject<{
2455
2455
  code_constraints?: ({
2456
2456
  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" | "cannot_contain_089";
2457
2457
  } | {
2458
- constraint_type: "name_length";
2458
+ constraint_type: "name_length" | "name_must_be_unique";
2459
2459
  min_length?: number | undefined;
2460
2460
  max_length?: number | undefined;
2461
2461
  })[] | undefined;
@@ -2882,7 +2882,7 @@ export declare const managed_device: z.ZodObject<{
2882
2882
  code_constraints?: ({
2883
2883
  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" | "cannot_contain_089";
2884
2884
  } | {
2885
- constraint_type: "name_length";
2885
+ constraint_type: "name_length" | "name_must_be_unique";
2886
2886
  min_length?: number | undefined;
2887
2887
  max_length?: number | undefined;
2888
2888
  })[] | undefined;
@@ -3338,7 +3338,7 @@ export declare const managed_device: z.ZodObject<{
3338
3338
  code_constraints?: ({
3339
3339
  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" | "cannot_contain_089";
3340
3340
  } | {
3341
- constraint_type: "name_length";
3341
+ constraint_type: "name_length" | "name_must_be_unique";
3342
3342
  min_length?: number | undefined;
3343
3343
  max_length?: number | undefined;
3344
3344
  })[] | undefined;
@@ -3765,7 +3765,7 @@ export declare const managed_device: z.ZodObject<{
3765
3765
  code_constraints?: ({
3766
3766
  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" | "cannot_contain_089";
3767
3767
  } | {
3768
- constraint_type: "name_length";
3768
+ constraint_type: "name_length" | "name_must_be_unique";
3769
3769
  min_length?: number | undefined;
3770
3770
  max_length?: number | undefined;
3771
3771
  })[] | undefined;
@@ -346,6 +346,21 @@ declare const _default: {
346
346
  display_name: {
347
347
  type: string;
348
348
  };
349
+ errors: {
350
+ items: {
351
+ properties: {
352
+ error_code: {
353
+ type: string;
354
+ };
355
+ message: {
356
+ type: string;
357
+ };
358
+ };
359
+ required: string[];
360
+ type: string;
361
+ };
362
+ type: string;
363
+ };
349
364
  latch_metadata: {
350
365
  nullable: boolean;
351
366
  properties: {
@@ -294,6 +294,17 @@ export default {
294
294
  acs_system_id: { format: 'uuid', type: 'string' },
295
295
  created_at: { format: 'date-time', type: 'string' },
296
296
  display_name: { type: 'string' },
297
+ errors: {
298
+ items: {
299
+ properties: {
300
+ error_code: { type: 'string' },
301
+ message: { type: 'string' },
302
+ },
303
+ required: ['error_code', 'message'],
304
+ type: 'object',
305
+ },
306
+ type: 'array',
307
+ },
297
308
  latch_metadata: {
298
309
  nullable: true,
299
310
  properties: {
@@ -352,6 +363,7 @@ export default {
352
363
  'acs_system_id',
353
364
  'created_at',
354
365
  'latch_metadata',
366
+ 'errors',
355
367
  'visionline_metadata',
356
368
  ],
357
369
  type: 'object',
@@ -1458,7 +1470,7 @@ export default {
1458
1470
  {
1459
1471
  properties: {
1460
1472
  constraint_type: {
1461
- enum: ['name_length'],
1473
+ enum: ['name_length', 'name_must_be_unique'],
1462
1474
  type: 'string',
1463
1475
  },
1464
1476
  max_length: { type: 'number' },