@seamapi/types 1.146.0 → 1.147.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.
Files changed (32) hide show
  1. package/dist/connect.cjs +31 -63
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +69 -188
  4. package/lib/seam/connect/internal/model-types.d.ts +2 -1
  5. package/lib/seam/connect/internal/model-types.js +1 -1
  6. package/lib/seam/connect/internal/model-types.js.map +1 -1
  7. package/lib/seam/connect/internal/schemas.d.ts +2 -1
  8. package/lib/seam/connect/internal/schemas.js +2 -1
  9. package/lib/seam/connect/internal/schemas.js.map +1 -1
  10. package/lib/seam/connect/models/connect-webview.d.ts +3 -3
  11. package/lib/seam/connect/models/custom-metadata.d.ts +4 -2
  12. package/lib/seam/connect/models/custom-metadata.js +2 -1
  13. package/lib/seam/connect/models/custom-metadata.js.map +1 -1
  14. package/lib/seam/connect/models/devices/managed-device.d.ts +3 -3
  15. package/lib/seam/connect/models/devices/managed-device.js +1 -1
  16. package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
  17. package/lib/seam/connect/models/devices/phone.d.ts +3 -3
  18. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +13 -1
  19. package/lib/seam/connect/models/devices/unmanaged-device.js +1 -0
  20. package/lib/seam/connect/models/devices/unmanaged-device.js.map +1 -1
  21. package/lib/seam/connect/openapi.d.ts +31 -160
  22. package/lib/seam/connect/openapi.js +24 -60
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +33 -23
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/internal/model-types.ts +2 -32
  27. package/src/lib/seam/connect/internal/schemas.ts +2 -2
  28. package/src/lib/seam/connect/models/custom-metadata.ts +9 -2
  29. package/src/lib/seam/connect/models/devices/managed-device.ts +1 -1
  30. package/src/lib/seam/connect/models/devices/unmanaged-device.ts +1 -0
  31. package/src/lib/seam/connect/openapi.ts +25 -60
  32. package/src/lib/seam/connect/route-types.ts +37 -23
@@ -15,7 +15,7 @@ declare const connect_webview: z.ZodObject<{
15
15
  status: z.ZodEnum<["pending", "failed", "authorized"]>;
16
16
  custom_redirect_url: z.ZodNullable<z.ZodString>;
17
17
  custom_redirect_failure_url: z.ZodNullable<z.ZodString>;
18
- custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>;
18
+ custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
19
19
  automatically_manage_new_devices: z.ZodBoolean;
20
20
  wait_for_device_creation: z.ZodBoolean;
21
21
  authorized_at: z.ZodNullable<z.ZodString>;
@@ -34,7 +34,7 @@ declare const connect_webview: z.ZodObject<{
34
34
  login_successful: boolean;
35
35
  custom_redirect_url: string | null;
36
36
  custom_redirect_failure_url: string | null;
37
- custom_metadata: Record<string, string | boolean | null>;
37
+ custom_metadata: Record<string, string | boolean>;
38
38
  automatically_manage_new_devices: boolean;
39
39
  wait_for_device_creation: boolean;
40
40
  authorized_at: string | null;
@@ -54,7 +54,7 @@ declare const connect_webview: z.ZodObject<{
54
54
  login_successful: boolean;
55
55
  custom_redirect_url: string | null;
56
56
  custom_redirect_failure_url: string | null;
57
- custom_metadata: Record<string, string | boolean | null>;
57
+ custom_metadata: Record<string, string | boolean>;
58
58
  automatically_manage_new_devices: boolean;
59
59
  wait_for_device_creation: boolean;
60
60
  authorized_at: string | null;
@@ -63,8 +63,8 @@ declare const connect_webview: z.ZodObject<{
63
63
  }>;
64
64
  type ConnectWebview = z.infer<typeof connect_webview>;
65
65
 
66
- declare const custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>;
67
- type CustomMetadata = z.infer<typeof custom_metadata>;
66
+ declare const custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
67
+ type CustomMetadata = z.output<typeof custom_metadata>;
68
68
 
69
69
  declare const schemas_connect_webview: typeof connect_webview;
70
70
  declare const schemas_custom_metadata: typeof custom_metadata;
@@ -599,23 +599,9 @@ declare const _default: {
599
599
  };
600
600
  custom_metadata: {
601
601
  additionalProperties: {
602
- nullable: boolean;
603
- oneOf: ({
604
- maxLength: number;
605
- type: string;
606
- format?: never;
607
- nullable?: never;
608
- } | {
609
- type: string;
610
- maxLength?: never;
611
- format?: never;
612
- nullable?: never;
613
- } | {
614
- format: string;
615
- nullable: boolean;
602
+ oneOf: {
616
603
  type: string;
617
- maxLength?: never;
618
- })[];
604
+ }[];
619
605
  };
620
606
  type: string;
621
607
  };
@@ -680,23 +666,9 @@ declare const _default: {
680
666
  };
681
667
  custom_metadata: {
682
668
  additionalProperties: {
683
- nullable: boolean;
684
- oneOf: ({
685
- maxLength: number;
686
- type: string;
687
- format?: never;
688
- nullable?: never;
689
- } | {
669
+ oneOf: {
690
670
  type: string;
691
- maxLength?: never;
692
- format?: never;
693
- nullable?: never;
694
- } | {
695
- format: string;
696
- nullable: boolean;
697
- type: string;
698
- maxLength?: never;
699
- })[];
671
+ }[];
700
672
  };
701
673
  type: string;
702
674
  };
@@ -764,23 +736,9 @@ declare const _default: {
764
736
  };
765
737
  custom_metadata: {
766
738
  additionalProperties: {
767
- nullable: boolean;
768
- oneOf: ({
769
- maxLength: number;
770
- type: string;
771
- format?: never;
772
- nullable?: never;
773
- } | {
774
- type: string;
775
- maxLength?: never;
776
- format?: never;
777
- nullable?: never;
778
- } | {
779
- format: string;
780
- nullable: boolean;
739
+ oneOf: {
781
740
  type: string;
782
- maxLength?: never;
783
- })[];
741
+ }[];
784
742
  };
785
743
  type: string;
786
744
  };
@@ -2416,23 +2374,9 @@ declare const _default: {
2416
2374
  };
2417
2375
  custom_metadata: {
2418
2376
  additionalProperties: {
2419
- nullable: boolean;
2420
- oneOf: ({
2421
- maxLength: number;
2422
- type: string;
2423
- format?: never;
2424
- nullable?: never;
2425
- } | {
2426
- type: string;
2427
- maxLength?: never;
2428
- format?: never;
2429
- nullable?: never;
2430
- } | {
2431
- format: string;
2432
- nullable: boolean;
2377
+ oneOf: {
2433
2378
  type: string;
2434
- maxLength?: never;
2435
- })[];
2379
+ }[];
2436
2380
  };
2437
2381
  type: string;
2438
2382
  };
@@ -2689,6 +2633,17 @@ declare const _default: {
2689
2633
  };
2690
2634
  properties: {
2691
2635
  properties: {
2636
+ accessory_keypad: {
2637
+ description: string;
2638
+ properties: {
2639
+ is_connected: {
2640
+ description: string;
2641
+ type: string;
2642
+ };
2643
+ };
2644
+ required: string[];
2645
+ type: string;
2646
+ };
2692
2647
  battery: {
2693
2648
  description: string;
2694
2649
  properties: {
@@ -10046,23 +10001,9 @@ declare const _default: {
10046
10001
  properties: {
10047
10002
  custom_metadata_has: {
10048
10003
  additionalProperties: {
10049
- nullable: boolean;
10050
- oneOf: ({
10051
- maxLength: number;
10052
- type: string;
10053
- format?: never;
10054
- nullable?: never;
10055
- } | {
10056
- type: string;
10057
- maxLength?: never;
10058
- format?: never;
10059
- nullable?: never;
10060
- } | {
10061
- format: string;
10062
- nullable: boolean;
10004
+ oneOf: {
10063
10005
  type: string;
10064
- maxLength?: never;
10065
- })[];
10006
+ }[];
10066
10007
  };
10067
10008
  description: string;
10068
10009
  type: string;
@@ -10321,23 +10262,9 @@ declare const _default: {
10321
10262
  properties: {
10322
10263
  custom_metadata_has: {
10323
10264
  additionalProperties: {
10324
- nullable: boolean;
10325
- oneOf: ({
10326
- maxLength: number;
10327
- type: string;
10328
- format?: never;
10329
- nullable?: never;
10330
- } | {
10331
- type: string;
10332
- maxLength?: never;
10333
- format?: never;
10334
- nullable?: never;
10335
- } | {
10336
- format: string;
10337
- nullable: boolean;
10265
+ oneOf: {
10338
10266
  type: string;
10339
- maxLength?: never;
10340
- })[];
10267
+ }[];
10341
10268
  };
10342
10269
  description: string;
10343
10270
  type: string;
@@ -10658,23 +10585,9 @@ declare const _default: {
10658
10585
  };
10659
10586
  custom_metadata_has: {
10660
10587
  additionalProperties: {
10661
- nullable: boolean;
10662
- oneOf: ({
10663
- maxLength: number;
10664
- type: string;
10665
- format?: never;
10666
- nullable?: never;
10667
- } | {
10668
- type: string;
10669
- maxLength?: never;
10670
- format?: never;
10671
- nullable?: never;
10672
- } | {
10673
- format: string;
10674
- nullable: boolean;
10588
+ oneOf: {
10675
10589
  type: string;
10676
- maxLength?: never;
10677
- })[];
10590
+ }[];
10678
10591
  };
10679
10592
  type: string;
10680
10593
  };
@@ -11030,23 +10943,9 @@ declare const _default: {
11030
10943
  };
11031
10944
  custom_metadata_has: {
11032
10945
  additionalProperties: {
11033
- nullable: boolean;
11034
- oneOf: ({
11035
- maxLength: number;
11036
- type: string;
11037
- format?: never;
11038
- nullable?: never;
11039
- } | {
11040
- type: string;
11041
- maxLength?: never;
11042
- format?: never;
11043
- nullable?: never;
11044
- } | {
11045
- format: string;
11046
- nullable: boolean;
10946
+ oneOf: {
11047
10947
  type: string;
11048
- maxLength?: never;
11049
- })[];
10948
+ }[];
11050
10949
  };
11051
10950
  type: string;
11052
10951
  };
@@ -12075,23 +11974,9 @@ declare const _default: {
12075
11974
  };
12076
11975
  custom_metadata_has: {
12077
11976
  additionalProperties: {
12078
- nullable: boolean;
12079
- oneOf: ({
12080
- maxLength: number;
12081
- type: string;
12082
- format?: never;
12083
- nullable?: never;
12084
- } | {
12085
- type: string;
12086
- maxLength?: never;
12087
- format?: never;
12088
- nullable?: never;
12089
- } | {
12090
- format: string;
12091
- nullable: boolean;
11977
+ oneOf: {
12092
11978
  type: string;
12093
- maxLength?: never;
12094
- })[];
11979
+ }[];
12095
11980
  };
12096
11981
  type: string;
12097
11982
  };
@@ -14514,23 +14399,9 @@ declare const _default: {
14514
14399
  };
14515
14400
  custom_metadata_has: {
14516
14401
  additionalProperties: {
14517
- nullable: boolean;
14518
- oneOf: ({
14519
- maxLength: number;
14520
- type: string;
14521
- format?: never;
14522
- nullable?: never;
14523
- } | {
14524
- type: string;
14525
- maxLength?: never;
14526
- format?: never;
14527
- nullable?: never;
14528
- } | {
14529
- format: string;
14530
- nullable: boolean;
14402
+ oneOf: {
14531
14403
  type: string;
14532
- maxLength?: never;
14533
- })[];
14404
+ }[];
14534
14405
  };
14535
14406
  type: string;
14536
14407
  };
@@ -19125,7 +18996,7 @@ interface Routes {
19125
18996
  status: 'pending' | 'failed' | 'authorized';
19126
18997
  custom_redirect_url: string | null;
19127
18998
  custom_redirect_failure_url: string | null;
19128
- custom_metadata: Record<string, string | boolean | null>;
18999
+ custom_metadata: Record<string, string | boolean>;
19129
19000
  automatically_manage_new_devices: boolean;
19130
19001
  wait_for_device_creation: boolean;
19131
19002
  authorized_at: string | null;
@@ -19169,7 +19040,7 @@ interface Routes {
19169
19040
  status: 'pending' | 'failed' | 'authorized';
19170
19041
  custom_redirect_url: string | null;
19171
19042
  custom_redirect_failure_url: string | null;
19172
- custom_metadata: Record<string, string | boolean | null>;
19043
+ custom_metadata: Record<string, string | boolean>;
19173
19044
  automatically_manage_new_devices: boolean;
19174
19045
  wait_for_device_creation: boolean;
19175
19046
  authorized_at: string | null;
@@ -19185,7 +19056,7 @@ interface Routes {
19185
19056
  commonParams: {
19186
19057
  user_identifier_key?: string | undefined;
19187
19058
  /** Returns devices where the webview's custom_metadata contains all of the provided key/value pairs. */
19188
- custom_metadata_has?: Record<string, string | boolean | null> | undefined;
19059
+ custom_metadata_has?: Record<string, string | boolean> | undefined;
19189
19060
  };
19190
19061
  formData: {};
19191
19062
  jsonResponse: {
@@ -19204,7 +19075,7 @@ interface Routes {
19204
19075
  status: 'pending' | 'failed' | 'authorized';
19205
19076
  custom_redirect_url: string | null;
19206
19077
  custom_redirect_failure_url: string | null;
19207
- custom_metadata: Record<string, string | boolean | null>;
19078
+ custom_metadata: Record<string, string | boolean>;
19208
19079
  automatically_manage_new_devices: boolean;
19209
19080
  wait_for_device_creation: boolean;
19210
19081
  authorized_at: string | null;
@@ -19262,7 +19133,7 @@ interface Routes {
19262
19133
  account_type_display_name: string;
19263
19134
  errors?: any;
19264
19135
  warnings?: any;
19265
- custom_metadata?: Record<string, string | boolean | null> | undefined;
19136
+ custom_metadata: Record<string, string | boolean>;
19266
19137
  automatically_manage_new_devices: boolean;
19267
19138
  };
19268
19139
  };
@@ -19274,7 +19145,7 @@ interface Routes {
19274
19145
  jsonBody: {};
19275
19146
  commonParams: {
19276
19147
  /** Returns devices where the account's custom_metadata contains all of the provided key/value pairs. */
19277
- custom_metadata_has?: Record<string, string | boolean | null> | undefined;
19148
+ custom_metadata_has?: Record<string, string | boolean> | undefined;
19278
19149
  };
19279
19150
  formData: {};
19280
19151
  jsonResponse: {
@@ -19292,7 +19163,7 @@ interface Routes {
19292
19163
  account_type_display_name: string;
19293
19164
  errors?: any;
19294
19165
  warnings?: any;
19295
- custom_metadata?: Record<string, string | boolean | null> | undefined;
19166
+ custom_metadata: Record<string, string | boolean>;
19296
19167
  automatically_manage_new_devices: boolean;
19297
19168
  }>;
19298
19169
  };
@@ -19323,7 +19194,7 @@ interface Routes {
19323
19194
  account_type_display_name: string;
19324
19195
  errors?: any;
19325
19196
  warnings?: any;
19326
- custom_metadata?: Record<string, string | boolean | null> | undefined;
19197
+ custom_metadata: Record<string, string | boolean>;
19327
19198
  automatically_manage_new_devices: boolean;
19328
19199
  };
19329
19200
  };
@@ -19844,7 +19715,7 @@ interface Routes {
19844
19715
  created_at: string;
19845
19716
  /** Indicates whether Seam manages the device. */
19846
19717
  is_managed: true;
19847
- custom_metadata?: Record<string, string | boolean | null> | undefined;
19718
+ custom_metadata: Record<string, string | boolean>;
19848
19719
  can_remotely_unlock?: boolean | undefined;
19849
19720
  can_remotely_lock?: boolean | undefined;
19850
19721
  can_program_online_access_codes?: boolean | undefined;
@@ -19869,7 +19740,7 @@ interface Routes {
19869
19740
  limit?: number;
19870
19741
  created_before?: Date | undefined;
19871
19742
  user_identifier_key?: string | undefined;
19872
- custom_metadata_has?: Record<string, string | boolean | null> | undefined;
19743
+ custom_metadata_has?: Record<string, string | boolean> | undefined;
19873
19744
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
19874
19745
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
19875
19746
  };
@@ -20369,7 +20240,7 @@ interface Routes {
20369
20240
  created_at: string;
20370
20241
  /** Indicates whether Seam manages the device. */
20371
20242
  is_managed: true;
20372
- custom_metadata?: Record<string, string | boolean | null> | undefined;
20243
+ custom_metadata: Record<string, string | boolean>;
20373
20244
  can_remotely_unlock?: boolean | undefined;
20374
20245
  can_remotely_lock?: boolean | undefined;
20375
20246
  can_program_online_access_codes?: boolean | undefined;
@@ -20442,6 +20313,11 @@ interface Routes {
20442
20313
  created_at: string;
20443
20314
  is_managed: false;
20444
20315
  properties: {
20316
+ /** Represents the accessory keypad state. */
20317
+ accessory_keypad?: {
20318
+ /** Indicates if the accessory_keypad is connected to the device. */
20319
+ is_connected: boolean;
20320
+ } | undefined;
20445
20321
  /**
20446
20322
  ---
20447
20323
  deprecated: use device.display_name instead
@@ -20509,7 +20385,7 @@ interface Routes {
20509
20385
  limit?: number;
20510
20386
  created_before?: Date | undefined;
20511
20387
  user_identifier_key?: string | undefined;
20512
- custom_metadata_has?: Record<string, string | boolean | null> | undefined;
20388
+ custom_metadata_has?: Record<string, string | boolean> | undefined;
20513
20389
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
20514
20390
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
20515
20391
  };
@@ -20540,6 +20416,11 @@ interface Routes {
20540
20416
  created_at: string;
20541
20417
  is_managed: false;
20542
20418
  properties: {
20419
+ /** Represents the accessory keypad state. */
20420
+ accessory_keypad?: {
20421
+ /** Indicates if the accessory_keypad is connected to the device. */
20422
+ is_connected: boolean;
20423
+ } | undefined;
20543
20424
  /**
20544
20425
  ---
20545
20426
  deprecated: use device.display_name instead
@@ -21250,7 +21131,7 @@ interface Routes {
21250
21131
  created_at: string;
21251
21132
  /** Indicates whether Seam manages the device. */
21252
21133
  is_managed: true;
21253
- custom_metadata?: Record<string, string | boolean | null> | undefined;
21134
+ custom_metadata: Record<string, string | boolean>;
21254
21135
  can_remotely_unlock?: boolean | undefined;
21255
21136
  can_remotely_lock?: boolean | undefined;
21256
21137
  can_program_online_access_codes?: boolean | undefined;
@@ -21750,7 +21631,7 @@ interface Routes {
21750
21631
  created_at: string;
21751
21632
  /** Indicates whether Seam manages the device. */
21752
21633
  is_managed: true;
21753
- custom_metadata?: Record<string, string | boolean | null> | undefined;
21634
+ custom_metadata: Record<string, string | boolean>;
21754
21635
  can_remotely_unlock?: boolean | undefined;
21755
21636
  can_remotely_lock?: boolean | undefined;
21756
21637
  can_program_online_access_codes?: boolean | undefined;
@@ -21775,7 +21656,7 @@ interface Routes {
21775
21656
  limit?: number;
21776
21657
  created_before?: Date | undefined;
21777
21658
  user_identifier_key?: string | undefined;
21778
- custom_metadata_has?: Record<string, string | boolean | null> | undefined;
21659
+ custom_metadata_has?: Record<string, string | boolean> | undefined;
21779
21660
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
21780
21661
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
21781
21662
  };
@@ -22275,7 +22156,7 @@ interface Routes {
22275
22156
  created_at: string;
22276
22157
  /** Indicates whether Seam manages the device. */
22277
22158
  is_managed: true;
22278
- custom_metadata?: Record<string, string | boolean | null> | undefined;
22159
+ custom_metadata: Record<string, string | boolean>;
22279
22160
  can_remotely_unlock?: boolean | undefined;
22280
22161
  can_remotely_lock?: boolean | undefined;
22281
22162
  can_program_online_access_codes?: boolean | undefined;
@@ -22775,7 +22656,7 @@ interface Routes {
22775
22656
  created_at: string;
22776
22657
  /** Indicates whether Seam manages the device. */
22777
22658
  is_managed: true;
22778
- custom_metadata?: Record<string, string | boolean | null> | undefined;
22659
+ custom_metadata: Record<string, string | boolean>;
22779
22660
  can_remotely_unlock?: boolean | undefined;
22780
22661
  can_remotely_lock?: boolean | undefined;
22781
22662
  can_program_online_access_codes?: boolean | undefined;
@@ -23130,7 +23011,7 @@ interface Routes {
23130
23011
  created_at: string;
23131
23012
  /** Indicates whether Seam manages the device. */
23132
23013
  is_managed: true;
23133
- custom_metadata?: Record<string, string | boolean | null> | undefined;
23014
+ custom_metadata: Record<string, string | boolean>;
23134
23015
  can_remotely_unlock?: boolean | undefined;
23135
23016
  can_remotely_lock?: boolean | undefined;
23136
23017
  can_program_online_access_codes?: boolean | undefined;
@@ -23205,7 +23086,7 @@ interface Routes {
23205
23086
  created_at: string;
23206
23087
  /** Indicates whether Seam manages the device. */
23207
23088
  is_managed: true;
23208
- custom_metadata?: Record<string, string | boolean | null> | undefined;
23089
+ custom_metadata: Record<string, string | boolean>;
23209
23090
  can_remotely_unlock?: boolean | undefined;
23210
23091
  can_remotely_lock?: boolean | undefined;
23211
23092
  can_program_online_access_codes?: boolean | undefined;
@@ -23916,7 +23797,7 @@ interface Routes {
23916
23797
  created_at: string;
23917
23798
  /** Indicates whether Seam manages the device. */
23918
23799
  is_managed: true;
23919
- custom_metadata?: Record<string, string | boolean | null> | undefined;
23800
+ custom_metadata: Record<string, string | boolean>;
23920
23801
  can_remotely_unlock?: boolean | undefined;
23921
23802
  can_remotely_lock?: boolean | undefined;
23922
23803
  can_program_online_access_codes?: boolean | undefined;
@@ -24017,7 +23898,7 @@ interface Routes {
24017
23898
  limit?: number;
24018
23899
  created_before?: Date | undefined;
24019
23900
  user_identifier_key?: string | undefined;
24020
- custom_metadata_has?: Record<string, string | boolean | null> | undefined;
23901
+ custom_metadata_has?: Record<string, string | boolean> | undefined;
24021
23902
  include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
24022
23903
  exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
24023
23904
  };
@@ -24517,7 +24398,7 @@ interface Routes {
24517
24398
  created_at: string;
24518
24399
  /** Indicates whether Seam manages the device. */
24519
24400
  is_managed: true;
24520
- custom_metadata?: Record<string, string | boolean | null> | undefined;
24401
+ custom_metadata: Record<string, string | boolean>;
24521
24402
  can_remotely_unlock?: boolean | undefined;
24522
24403
  can_remotely_lock?: boolean | undefined;
24523
24404
  can_program_online_access_codes?: boolean | undefined;
@@ -25301,7 +25182,7 @@ interface Routes {
25301
25182
  created_at: string;
25302
25183
  /** Indicates whether Seam manages the device. */
25303
25184
  is_managed: true;
25304
- custom_metadata?: Record<string, string | boolean | null> | undefined;
25185
+ custom_metadata: Record<string, string | boolean>;
25305
25186
  can_remotely_unlock?: boolean | undefined;
25306
25187
  can_remotely_lock?: boolean | undefined;
25307
25188
  can_program_online_access_codes?: boolean | undefined;
@@ -1 +1,2 @@
1
- export type { AccessCodeConstraint, AcsAccessGroup, AcsAccessGroupExternalType, AcsCredential, AcsCredentialExternalType, AcsCredentialPool, AcsCredentialPoolExternalType, AcsEntranceLatchMetadata, AcsSystem, AcsSystemExternalType, AcsUser, AcsUserExternalType, AnyDeviceType, BatteryStatus, Capabilities, ClimateSetting, ConnectWebview, CustomMetadata, ManagedDevice as Device, DeviceMetadata, FanModeSetting, HvacModeSetting, LockDeviceType, ManagedAccessCode, ManagedDevice, ManagedDeviceWithBackendMetadata, NoiseSensorDeviceType, ThermostatDeviceType, UnmanagedAccessCode, UnmanagedDevice, } from '../models/index.js';
1
+ export type { ManagedDevice as Device } from '../models/index.js';
2
+ export * from '../models/index.js';
@@ -1,2 +1,2 @@
1
- export {};
1
+ export * from '../models/index.js';
2
2
  //# sourceMappingURL=model-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model-types.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/model-types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"model-types.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/model-types.ts"],"names":[],"mappings":"AACA,cAAc,oBAAoB,CAAA"}
@@ -1 +1,2 @@
1
- export { access_code_code_constraint, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, capabilities, climate_setting, climate_setting_schedule, common_device_properties, connect_webview, custom_metadata, device_capability_flags, dormakaba_oracode_time_slot, enrollment_automation, fan_mode_setting, lock_device_type, managed_access_code, managed_device, network, noise_sensor_device_type, phone, phone_number, thermostat_capability_properties, thermostat_device_type, unmanaged_access_code, unmanaged_device, user_identity, } from '../models/index.js';
1
+ export { access_code_code_constraint, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, capabilities, climate_setting, climate_setting_schedule, common_device_properties, custom_metadata_input, device_capability_flags, dormakaba_oracode_time_slot, enrollment_automation, fan_mode_setting, lock_device_type, managed_access_code, managed_device, network, noise_sensor_device_type, phone, phone_number, thermostat_capability_properties, thermostat_device_type, unmanaged_access_code, unmanaged_device, user_identity, } from '../models/index.js';
2
+ export * from '../schemas.js';
@@ -1,2 +1,3 @@
1
- export { access_code_code_constraint, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, capabilities, climate_setting, climate_setting_schedule, common_device_properties, connect_webview, custom_metadata, device_capability_flags, dormakaba_oracode_time_slot, enrollment_automation, fan_mode_setting, lock_device_type, managed_access_code, managed_device, network, noise_sensor_device_type, phone, phone_number, thermostat_capability_properties, thermostat_device_type, unmanaged_access_code, unmanaged_device, user_identity, } from '../models/index.js';
1
+ export { access_code_code_constraint, acs_access_group, acs_access_group_external_type, acs_credential, acs_credential_access_method_type, acs_credential_external_type, acs_credential_pool, acs_credential_pool_external_type, acs_credential_provisioning_automation, acs_entrance, acs_system, acs_system_capability_flags, acs_system_external_type, acs_user, acs_user_external_type, any_device_type, battery_status, capabilities, climate_setting, climate_setting_schedule, common_device_properties, custom_metadata_input, device_capability_flags, dormakaba_oracode_time_slot, enrollment_automation, fan_mode_setting, lock_device_type, managed_access_code, managed_device, network, noise_sensor_device_type, phone, phone_number, thermostat_capability_properties, thermostat_device_type, unmanaged_access_code, unmanaged_device, user_identity, } from '../models/index.js';
2
+ export * from '../schemas.js';
2
3
  //# sourceMappingURL=schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EACd,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,iCAAiC,EACjC,sCAAsC,EACtC,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,OAAO,EACP,wBAAwB,EACxB,KAAK,EACL,YAAY,EACZ,gCAAgC,EAChC,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,GACd,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/internal/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EACd,iCAAiC,EACjC,4BAA4B,EAC5B,mBAAmB,EACnB,iCAAiC,EACjC,sCAAsC,EACtC,YAAY,EACZ,UAAU,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,OAAO,EACP,wBAAwB,EACxB,KAAK,EACL,YAAY,EACZ,gCAAgC,EAChC,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,GACd,MAAM,oBAAoB,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -14,7 +14,7 @@ export declare const connect_webview: z.ZodObject<{
14
14
  status: z.ZodEnum<["pending", "failed", "authorized"]>;
15
15
  custom_redirect_url: z.ZodNullable<z.ZodString>;
16
16
  custom_redirect_failure_url: z.ZodNullable<z.ZodString>;
17
- custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>;
17
+ custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
18
18
  automatically_manage_new_devices: z.ZodBoolean;
19
19
  wait_for_device_creation: z.ZodBoolean;
20
20
  authorized_at: z.ZodNullable<z.ZodString>;
@@ -33,7 +33,7 @@ export declare const connect_webview: z.ZodObject<{
33
33
  login_successful: boolean;
34
34
  custom_redirect_url: string | null;
35
35
  custom_redirect_failure_url: string | null;
36
- custom_metadata: Record<string, string | boolean | null>;
36
+ custom_metadata: Record<string, string | boolean>;
37
37
  automatically_manage_new_devices: boolean;
38
38
  wait_for_device_creation: boolean;
39
39
  authorized_at: string | null;
@@ -53,7 +53,7 @@ export declare const connect_webview: z.ZodObject<{
53
53
  login_successful: boolean;
54
54
  custom_redirect_url: string | null;
55
55
  custom_redirect_failure_url: string | null;
56
- custom_metadata: Record<string, string | boolean | null>;
56
+ custom_metadata: Record<string, string | boolean>;
57
57
  automatically_manage_new_devices: boolean;
58
58
  wait_for_device_creation: boolean;
59
59
  authorized_at: string | null;
@@ -1,3 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const custom_metadata: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>;
3
- export type CustomMetadata = z.infer<typeof custom_metadata>;
2
+ export declare const custom_metadata_input: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>;
3
+ export declare const custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
4
+ export type CustomMetadata = z.output<typeof custom_metadata>;
5
+ export type CustomMetadataInput = z.input<typeof custom_metadata_input>;
@@ -1,7 +1,8 @@
1
1
  import { z } from 'zod';
2
- export const custom_metadata = z
2
+ export const custom_metadata_input = z
3
3
  .record(z.string().max(40), z.union([z.string().max(500), z.boolean(), z.null()]))
4
4
  .refine((val) => Object.keys(val).length <= 50, {
5
5
  message: 'Custom metadata is limited to a maximum of 50 keys',
6
6
  });
7
+ export const custom_metadata = z.record(z.string(), z.union([z.string(), z.boolean()]));
7
8
  //# sourceMappingURL=custom-metadata.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-metadata.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/custom-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAClB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CACtD;KACA,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,IAAI,EAAE,EAAE;IAC9C,OAAO,EAAE,oDAAoD;CAC9D,CAAC,CAAA"}
1
+ {"version":3,"file":"custom-metadata.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/custom-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAClB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CACtD;KACA,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,IAAI,EAAE,EAAE;IAC9C,OAAO,EAAE,oDAAoD;CAC9D,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CACrC,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CACnC,CAAA"}