@seamapi/types 1.147.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.
- package/dist/connect.cjs +20 -63
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +48 -188
- package/lib/seam/connect/internal/model-types.d.ts +2 -1
- package/lib/seam/connect/internal/model-types.js +1 -1
- package/lib/seam/connect/internal/model-types.js.map +1 -1
- package/lib/seam/connect/internal/schemas.d.ts +2 -1
- package/lib/seam/connect/internal/schemas.js +2 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/models/connect-webview.d.ts +3 -3
- package/lib/seam/connect/models/custom-metadata.d.ts +4 -2
- package/lib/seam/connect/models/custom-metadata.js +2 -1
- package/lib/seam/connect/models/custom-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/managed-device.d.ts +3 -3
- package/lib/seam/connect/models/devices/managed-device.js +1 -1
- package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +3 -3
- package/lib/seam/connect/openapi.d.ts +20 -160
- package/lib/seam/connect/openapi.js +13 -60
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +23 -23
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/model-types.ts +2 -32
- package/src/lib/seam/connect/internal/schemas.ts +2 -2
- package/src/lib/seam/connect/models/custom-metadata.ts +9 -2
- package/src/lib/seam/connect/models/devices/managed-device.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +13 -60
- package/src/lib/seam/connect/route-types.ts +23 -23
package/dist/connect.d.cts
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
|
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.
|
|
67
|
-
type CustomMetadata = z.
|
|
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
|
-
|
|
603
|
-
oneOf: ({
|
|
604
|
-
maxLength: number;
|
|
605
|
-
type: string;
|
|
606
|
-
format?: never;
|
|
607
|
-
nullable?: never;
|
|
608
|
-
} | {
|
|
602
|
+
oneOf: {
|
|
609
603
|
type: string;
|
|
610
|
-
|
|
611
|
-
format?: never;
|
|
612
|
-
nullable?: never;
|
|
613
|
-
} | {
|
|
614
|
-
format: string;
|
|
615
|
-
nullable: boolean;
|
|
616
|
-
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
|
-
|
|
684
|
-
oneOf: ({
|
|
685
|
-
maxLength: number;
|
|
669
|
+
oneOf: {
|
|
686
670
|
type: string;
|
|
687
|
-
|
|
688
|
-
nullable?: never;
|
|
689
|
-
} | {
|
|
690
|
-
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
|
-
|
|
768
|
-
oneOf: ({
|
|
769
|
-
maxLength: number;
|
|
770
|
-
type: string;
|
|
771
|
-
format?: never;
|
|
772
|
-
nullable?: never;
|
|
773
|
-
} | {
|
|
739
|
+
oneOf: {
|
|
774
740
|
type: string;
|
|
775
|
-
|
|
776
|
-
format?: never;
|
|
777
|
-
nullable?: never;
|
|
778
|
-
} | {
|
|
779
|
-
format: string;
|
|
780
|
-
nullable: boolean;
|
|
781
|
-
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
|
-
|
|
2420
|
-
oneOf: ({
|
|
2421
|
-
maxLength: number;
|
|
2377
|
+
oneOf: {
|
|
2422
2378
|
type: string;
|
|
2423
|
-
|
|
2424
|
-
nullable?: never;
|
|
2425
|
-
} | {
|
|
2426
|
-
type: string;
|
|
2427
|
-
maxLength?: never;
|
|
2428
|
-
format?: never;
|
|
2429
|
-
nullable?: never;
|
|
2430
|
-
} | {
|
|
2431
|
-
format: string;
|
|
2432
|
-
nullable: boolean;
|
|
2433
|
-
type: string;
|
|
2434
|
-
maxLength?: never;
|
|
2435
|
-
})[];
|
|
2379
|
+
}[];
|
|
2436
2380
|
};
|
|
2437
2381
|
type: string;
|
|
2438
2382
|
};
|
|
@@ -10057,23 +10001,9 @@ declare const _default: {
|
|
|
10057
10001
|
properties: {
|
|
10058
10002
|
custom_metadata_has: {
|
|
10059
10003
|
additionalProperties: {
|
|
10060
|
-
|
|
10061
|
-
oneOf: ({
|
|
10062
|
-
maxLength: number;
|
|
10063
|
-
type: string;
|
|
10064
|
-
format?: never;
|
|
10065
|
-
nullable?: never;
|
|
10066
|
-
} | {
|
|
10067
|
-
type: string;
|
|
10068
|
-
maxLength?: never;
|
|
10069
|
-
format?: never;
|
|
10070
|
-
nullable?: never;
|
|
10071
|
-
} | {
|
|
10072
|
-
format: string;
|
|
10073
|
-
nullable: boolean;
|
|
10004
|
+
oneOf: {
|
|
10074
10005
|
type: string;
|
|
10075
|
-
|
|
10076
|
-
})[];
|
|
10006
|
+
}[];
|
|
10077
10007
|
};
|
|
10078
10008
|
description: string;
|
|
10079
10009
|
type: string;
|
|
@@ -10332,23 +10262,9 @@ declare const _default: {
|
|
|
10332
10262
|
properties: {
|
|
10333
10263
|
custom_metadata_has: {
|
|
10334
10264
|
additionalProperties: {
|
|
10335
|
-
|
|
10336
|
-
oneOf: ({
|
|
10337
|
-
maxLength: number;
|
|
10338
|
-
type: string;
|
|
10339
|
-
format?: never;
|
|
10340
|
-
nullable?: never;
|
|
10341
|
-
} | {
|
|
10342
|
-
type: string;
|
|
10343
|
-
maxLength?: never;
|
|
10344
|
-
format?: never;
|
|
10345
|
-
nullable?: never;
|
|
10346
|
-
} | {
|
|
10347
|
-
format: string;
|
|
10348
|
-
nullable: boolean;
|
|
10265
|
+
oneOf: {
|
|
10349
10266
|
type: string;
|
|
10350
|
-
|
|
10351
|
-
})[];
|
|
10267
|
+
}[];
|
|
10352
10268
|
};
|
|
10353
10269
|
description: string;
|
|
10354
10270
|
type: string;
|
|
@@ -10669,23 +10585,9 @@ declare const _default: {
|
|
|
10669
10585
|
};
|
|
10670
10586
|
custom_metadata_has: {
|
|
10671
10587
|
additionalProperties: {
|
|
10672
|
-
|
|
10673
|
-
oneOf: ({
|
|
10674
|
-
maxLength: number;
|
|
10675
|
-
type: string;
|
|
10676
|
-
format?: never;
|
|
10677
|
-
nullable?: never;
|
|
10678
|
-
} | {
|
|
10679
|
-
type: string;
|
|
10680
|
-
maxLength?: never;
|
|
10681
|
-
format?: never;
|
|
10682
|
-
nullable?: never;
|
|
10683
|
-
} | {
|
|
10684
|
-
format: string;
|
|
10685
|
-
nullable: boolean;
|
|
10588
|
+
oneOf: {
|
|
10686
10589
|
type: string;
|
|
10687
|
-
|
|
10688
|
-
})[];
|
|
10590
|
+
}[];
|
|
10689
10591
|
};
|
|
10690
10592
|
type: string;
|
|
10691
10593
|
};
|
|
@@ -11041,23 +10943,9 @@ declare const _default: {
|
|
|
11041
10943
|
};
|
|
11042
10944
|
custom_metadata_has: {
|
|
11043
10945
|
additionalProperties: {
|
|
11044
|
-
|
|
11045
|
-
oneOf: ({
|
|
11046
|
-
maxLength: number;
|
|
11047
|
-
type: string;
|
|
11048
|
-
format?: never;
|
|
11049
|
-
nullable?: never;
|
|
11050
|
-
} | {
|
|
11051
|
-
type: string;
|
|
11052
|
-
maxLength?: never;
|
|
11053
|
-
format?: never;
|
|
11054
|
-
nullable?: never;
|
|
11055
|
-
} | {
|
|
11056
|
-
format: string;
|
|
11057
|
-
nullable: boolean;
|
|
10946
|
+
oneOf: {
|
|
11058
10947
|
type: string;
|
|
11059
|
-
|
|
11060
|
-
})[];
|
|
10948
|
+
}[];
|
|
11061
10949
|
};
|
|
11062
10950
|
type: string;
|
|
11063
10951
|
};
|
|
@@ -12086,23 +11974,9 @@ declare const _default: {
|
|
|
12086
11974
|
};
|
|
12087
11975
|
custom_metadata_has: {
|
|
12088
11976
|
additionalProperties: {
|
|
12089
|
-
|
|
12090
|
-
oneOf: ({
|
|
12091
|
-
maxLength: number;
|
|
12092
|
-
type: string;
|
|
12093
|
-
format?: never;
|
|
12094
|
-
nullable?: never;
|
|
12095
|
-
} | {
|
|
12096
|
-
type: string;
|
|
12097
|
-
maxLength?: never;
|
|
12098
|
-
format?: never;
|
|
12099
|
-
nullable?: never;
|
|
12100
|
-
} | {
|
|
12101
|
-
format: string;
|
|
12102
|
-
nullable: boolean;
|
|
11977
|
+
oneOf: {
|
|
12103
11978
|
type: string;
|
|
12104
|
-
|
|
12105
|
-
})[];
|
|
11979
|
+
}[];
|
|
12106
11980
|
};
|
|
12107
11981
|
type: string;
|
|
12108
11982
|
};
|
|
@@ -14525,23 +14399,9 @@ declare const _default: {
|
|
|
14525
14399
|
};
|
|
14526
14400
|
custom_metadata_has: {
|
|
14527
14401
|
additionalProperties: {
|
|
14528
|
-
|
|
14529
|
-
oneOf: ({
|
|
14530
|
-
maxLength: number;
|
|
14531
|
-
type: string;
|
|
14532
|
-
format?: never;
|
|
14533
|
-
nullable?: never;
|
|
14534
|
-
} | {
|
|
14535
|
-
type: string;
|
|
14536
|
-
maxLength?: never;
|
|
14537
|
-
format?: never;
|
|
14538
|
-
nullable?: never;
|
|
14539
|
-
} | {
|
|
14540
|
-
format: string;
|
|
14541
|
-
nullable: boolean;
|
|
14402
|
+
oneOf: {
|
|
14542
14403
|
type: string;
|
|
14543
|
-
|
|
14544
|
-
})[];
|
|
14404
|
+
}[];
|
|
14545
14405
|
};
|
|
14546
14406
|
type: string;
|
|
14547
14407
|
};
|
|
@@ -19136,7 +18996,7 @@ interface Routes {
|
|
|
19136
18996
|
status: 'pending' | 'failed' | 'authorized';
|
|
19137
18997
|
custom_redirect_url: string | null;
|
|
19138
18998
|
custom_redirect_failure_url: string | null;
|
|
19139
|
-
custom_metadata: Record<string, string | boolean
|
|
18999
|
+
custom_metadata: Record<string, string | boolean>;
|
|
19140
19000
|
automatically_manage_new_devices: boolean;
|
|
19141
19001
|
wait_for_device_creation: boolean;
|
|
19142
19002
|
authorized_at: string | null;
|
|
@@ -19180,7 +19040,7 @@ interface Routes {
|
|
|
19180
19040
|
status: 'pending' | 'failed' | 'authorized';
|
|
19181
19041
|
custom_redirect_url: string | null;
|
|
19182
19042
|
custom_redirect_failure_url: string | null;
|
|
19183
|
-
custom_metadata: Record<string, string | boolean
|
|
19043
|
+
custom_metadata: Record<string, string | boolean>;
|
|
19184
19044
|
automatically_manage_new_devices: boolean;
|
|
19185
19045
|
wait_for_device_creation: boolean;
|
|
19186
19046
|
authorized_at: string | null;
|
|
@@ -19196,7 +19056,7 @@ interface Routes {
|
|
|
19196
19056
|
commonParams: {
|
|
19197
19057
|
user_identifier_key?: string | undefined;
|
|
19198
19058
|
/** Returns devices where the webview's custom_metadata contains all of the provided key/value pairs. */
|
|
19199
|
-
custom_metadata_has?: Record<string, string | boolean
|
|
19059
|
+
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
19200
19060
|
};
|
|
19201
19061
|
formData: {};
|
|
19202
19062
|
jsonResponse: {
|
|
@@ -19215,7 +19075,7 @@ interface Routes {
|
|
|
19215
19075
|
status: 'pending' | 'failed' | 'authorized';
|
|
19216
19076
|
custom_redirect_url: string | null;
|
|
19217
19077
|
custom_redirect_failure_url: string | null;
|
|
19218
|
-
custom_metadata: Record<string, string | boolean
|
|
19078
|
+
custom_metadata: Record<string, string | boolean>;
|
|
19219
19079
|
automatically_manage_new_devices: boolean;
|
|
19220
19080
|
wait_for_device_creation: boolean;
|
|
19221
19081
|
authorized_at: string | null;
|
|
@@ -19273,7 +19133,7 @@ interface Routes {
|
|
|
19273
19133
|
account_type_display_name: string;
|
|
19274
19134
|
errors?: any;
|
|
19275
19135
|
warnings?: any;
|
|
19276
|
-
custom_metadata
|
|
19136
|
+
custom_metadata: Record<string, string | boolean>;
|
|
19277
19137
|
automatically_manage_new_devices: boolean;
|
|
19278
19138
|
};
|
|
19279
19139
|
};
|
|
@@ -19285,7 +19145,7 @@ interface Routes {
|
|
|
19285
19145
|
jsonBody: {};
|
|
19286
19146
|
commonParams: {
|
|
19287
19147
|
/** Returns devices where the account's custom_metadata contains all of the provided key/value pairs. */
|
|
19288
|
-
custom_metadata_has?: Record<string, string | boolean
|
|
19148
|
+
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
19289
19149
|
};
|
|
19290
19150
|
formData: {};
|
|
19291
19151
|
jsonResponse: {
|
|
@@ -19303,7 +19163,7 @@ interface Routes {
|
|
|
19303
19163
|
account_type_display_name: string;
|
|
19304
19164
|
errors?: any;
|
|
19305
19165
|
warnings?: any;
|
|
19306
|
-
custom_metadata
|
|
19166
|
+
custom_metadata: Record<string, string | boolean>;
|
|
19307
19167
|
automatically_manage_new_devices: boolean;
|
|
19308
19168
|
}>;
|
|
19309
19169
|
};
|
|
@@ -19334,7 +19194,7 @@ interface Routes {
|
|
|
19334
19194
|
account_type_display_name: string;
|
|
19335
19195
|
errors?: any;
|
|
19336
19196
|
warnings?: any;
|
|
19337
|
-
custom_metadata
|
|
19197
|
+
custom_metadata: Record<string, string | boolean>;
|
|
19338
19198
|
automatically_manage_new_devices: boolean;
|
|
19339
19199
|
};
|
|
19340
19200
|
};
|
|
@@ -19855,7 +19715,7 @@ interface Routes {
|
|
|
19855
19715
|
created_at: string;
|
|
19856
19716
|
/** Indicates whether Seam manages the device. */
|
|
19857
19717
|
is_managed: true;
|
|
19858
|
-
custom_metadata
|
|
19718
|
+
custom_metadata: Record<string, string | boolean>;
|
|
19859
19719
|
can_remotely_unlock?: boolean | undefined;
|
|
19860
19720
|
can_remotely_lock?: boolean | undefined;
|
|
19861
19721
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -19880,7 +19740,7 @@ interface Routes {
|
|
|
19880
19740
|
limit?: number;
|
|
19881
19741
|
created_before?: Date | undefined;
|
|
19882
19742
|
user_identifier_key?: string | undefined;
|
|
19883
|
-
custom_metadata_has?: Record<string, string | boolean
|
|
19743
|
+
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
19884
19744
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
19885
19745
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
19886
19746
|
};
|
|
@@ -20380,7 +20240,7 @@ interface Routes {
|
|
|
20380
20240
|
created_at: string;
|
|
20381
20241
|
/** Indicates whether Seam manages the device. */
|
|
20382
20242
|
is_managed: true;
|
|
20383
|
-
custom_metadata
|
|
20243
|
+
custom_metadata: Record<string, string | boolean>;
|
|
20384
20244
|
can_remotely_unlock?: boolean | undefined;
|
|
20385
20245
|
can_remotely_lock?: boolean | undefined;
|
|
20386
20246
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -20525,7 +20385,7 @@ interface Routes {
|
|
|
20525
20385
|
limit?: number;
|
|
20526
20386
|
created_before?: Date | undefined;
|
|
20527
20387
|
user_identifier_key?: string | undefined;
|
|
20528
|
-
custom_metadata_has?: Record<string, string | boolean
|
|
20388
|
+
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
20529
20389
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
20530
20390
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
20531
20391
|
};
|
|
@@ -21271,7 +21131,7 @@ interface Routes {
|
|
|
21271
21131
|
created_at: string;
|
|
21272
21132
|
/** Indicates whether Seam manages the device. */
|
|
21273
21133
|
is_managed: true;
|
|
21274
|
-
custom_metadata
|
|
21134
|
+
custom_metadata: Record<string, string | boolean>;
|
|
21275
21135
|
can_remotely_unlock?: boolean | undefined;
|
|
21276
21136
|
can_remotely_lock?: boolean | undefined;
|
|
21277
21137
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -21771,7 +21631,7 @@ interface Routes {
|
|
|
21771
21631
|
created_at: string;
|
|
21772
21632
|
/** Indicates whether Seam manages the device. */
|
|
21773
21633
|
is_managed: true;
|
|
21774
|
-
custom_metadata
|
|
21634
|
+
custom_metadata: Record<string, string | boolean>;
|
|
21775
21635
|
can_remotely_unlock?: boolean | undefined;
|
|
21776
21636
|
can_remotely_lock?: boolean | undefined;
|
|
21777
21637
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -21796,7 +21656,7 @@ interface Routes {
|
|
|
21796
21656
|
limit?: number;
|
|
21797
21657
|
created_before?: Date | undefined;
|
|
21798
21658
|
user_identifier_key?: string | undefined;
|
|
21799
|
-
custom_metadata_has?: Record<string, string | boolean
|
|
21659
|
+
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
21800
21660
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
21801
21661
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
21802
21662
|
};
|
|
@@ -22296,7 +22156,7 @@ interface Routes {
|
|
|
22296
22156
|
created_at: string;
|
|
22297
22157
|
/** Indicates whether Seam manages the device. */
|
|
22298
22158
|
is_managed: true;
|
|
22299
|
-
custom_metadata
|
|
22159
|
+
custom_metadata: Record<string, string | boolean>;
|
|
22300
22160
|
can_remotely_unlock?: boolean | undefined;
|
|
22301
22161
|
can_remotely_lock?: boolean | undefined;
|
|
22302
22162
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -22796,7 +22656,7 @@ interface Routes {
|
|
|
22796
22656
|
created_at: string;
|
|
22797
22657
|
/** Indicates whether Seam manages the device. */
|
|
22798
22658
|
is_managed: true;
|
|
22799
|
-
custom_metadata
|
|
22659
|
+
custom_metadata: Record<string, string | boolean>;
|
|
22800
22660
|
can_remotely_unlock?: boolean | undefined;
|
|
22801
22661
|
can_remotely_lock?: boolean | undefined;
|
|
22802
22662
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -23151,7 +23011,7 @@ interface Routes {
|
|
|
23151
23011
|
created_at: string;
|
|
23152
23012
|
/** Indicates whether Seam manages the device. */
|
|
23153
23013
|
is_managed: true;
|
|
23154
|
-
custom_metadata
|
|
23014
|
+
custom_metadata: Record<string, string | boolean>;
|
|
23155
23015
|
can_remotely_unlock?: boolean | undefined;
|
|
23156
23016
|
can_remotely_lock?: boolean | undefined;
|
|
23157
23017
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -23226,7 +23086,7 @@ interface Routes {
|
|
|
23226
23086
|
created_at: string;
|
|
23227
23087
|
/** Indicates whether Seam manages the device. */
|
|
23228
23088
|
is_managed: true;
|
|
23229
|
-
custom_metadata
|
|
23089
|
+
custom_metadata: Record<string, string | boolean>;
|
|
23230
23090
|
can_remotely_unlock?: boolean | undefined;
|
|
23231
23091
|
can_remotely_lock?: boolean | undefined;
|
|
23232
23092
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -23937,7 +23797,7 @@ interface Routes {
|
|
|
23937
23797
|
created_at: string;
|
|
23938
23798
|
/** Indicates whether Seam manages the device. */
|
|
23939
23799
|
is_managed: true;
|
|
23940
|
-
custom_metadata
|
|
23800
|
+
custom_metadata: Record<string, string | boolean>;
|
|
23941
23801
|
can_remotely_unlock?: boolean | undefined;
|
|
23942
23802
|
can_remotely_lock?: boolean | undefined;
|
|
23943
23803
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -24038,7 +23898,7 @@ interface Routes {
|
|
|
24038
23898
|
limit?: number;
|
|
24039
23899
|
created_before?: Date | undefined;
|
|
24040
23900
|
user_identifier_key?: string | undefined;
|
|
24041
|
-
custom_metadata_has?: Record<string, string | boolean
|
|
23901
|
+
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
24042
23902
|
include_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
24043
23903
|
exclude_if?: Array<'can_remotely_unlock' | 'can_remotely_lock' | 'can_program_online_access_codes' | 'can_simulate_removal'> | undefined;
|
|
24044
23904
|
};
|
|
@@ -24538,7 +24398,7 @@ interface Routes {
|
|
|
24538
24398
|
created_at: string;
|
|
24539
24399
|
/** Indicates whether Seam manages the device. */
|
|
24540
24400
|
is_managed: true;
|
|
24541
|
-
custom_metadata
|
|
24401
|
+
custom_metadata: Record<string, string | boolean>;
|
|
24542
24402
|
can_remotely_unlock?: boolean | undefined;
|
|
24543
24403
|
can_remotely_lock?: boolean | undefined;
|
|
24544
24404
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -25322,7 +25182,7 @@ interface Routes {
|
|
|
25322
25182
|
created_at: string;
|
|
25323
25183
|
/** Indicates whether Seam manages the device. */
|
|
25324
25184
|
is_managed: true;
|
|
25325
|
-
custom_metadata
|
|
25185
|
+
custom_metadata: Record<string, string | boolean>;
|
|
25326
25186
|
can_remotely_unlock?: boolean | undefined;
|
|
25327
25187
|
can_remotely_lock?: boolean | undefined;
|
|
25328
25188
|
can_program_online_access_codes?: boolean | undefined;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export type {
|
|
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,
|
|
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,
|
|
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,
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
3
|
-
export
|
|
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
|
|
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,
|
|
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"}
|
|
@@ -186,7 +186,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
186
186
|
workspace_id: z.ZodString;
|
|
187
187
|
display_name: z.ZodString;
|
|
188
188
|
connected_account_id: z.ZodString;
|
|
189
|
-
custom_metadata: z.
|
|
189
|
+
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
190
190
|
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
191
191
|
nickname: z.ZodOptional<z.ZodString>;
|
|
192
192
|
capabilities_supported: z.ZodArray<z.ZodEnum<["access_code", "lock", "noise_detection", "thermostat", "battery", "phone"]>, "many">;
|
|
@@ -2144,6 +2144,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2144
2144
|
workspace_id: string;
|
|
2145
2145
|
display_name: string;
|
|
2146
2146
|
connected_account_id: string;
|
|
2147
|
+
custom_metadata: Record<string, string | boolean>;
|
|
2147
2148
|
device_type: "akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "ios_phone" | "android_phone";
|
|
2148
2149
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
2149
2150
|
properties: ({
|
|
@@ -2981,7 +2982,6 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2981
2982
|
max_cooling_set_point_fahrenheit?: number | undefined;
|
|
2982
2983
|
is_cooling_available?: true | undefined;
|
|
2983
2984
|
}))) | undefined);
|
|
2984
|
-
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2985
2985
|
nickname?: string | undefined;
|
|
2986
2986
|
can_remotely_unlock?: boolean | undefined;
|
|
2987
2987
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -3007,6 +3007,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
3007
3007
|
workspace_id: string;
|
|
3008
3008
|
display_name: string;
|
|
3009
3009
|
connected_account_id: string;
|
|
3010
|
+
custom_metadata: Record<string, string | boolean>;
|
|
3010
3011
|
device_type: "akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "noiseaware_activity_zone" | "minut_sensor" | "ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "ios_phone" | "android_phone";
|
|
3011
3012
|
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
3012
3013
|
properties: ({
|
|
@@ -3844,7 +3845,6 @@ export declare const managed_device: z.ZodObject<{
|
|
|
3844
3845
|
max_cooling_set_point_fahrenheit?: number | undefined;
|
|
3845
3846
|
is_cooling_available?: true | undefined;
|
|
3846
3847
|
}))) | undefined);
|
|
3847
|
-
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
3848
3848
|
nickname?: string | undefined;
|
|
3849
3849
|
can_remotely_unlock?: boolean | undefined;
|
|
3850
3850
|
can_remotely_lock?: boolean | undefined;
|
|
@@ -168,7 +168,7 @@ export const managed_device = z
|
|
|
168
168
|
is_managed: z
|
|
169
169
|
.literal(true)
|
|
170
170
|
.describe('Indicates whether Seam manages the device.'),
|
|
171
|
-
custom_metadata
|
|
171
|
+
custom_metadata,
|
|
172
172
|
})
|
|
173
173
|
.merge(device_capability_flags);
|
|
174
174
|
//# sourceMappingURL=managed-device.js.map
|