@seamapi/types 1.85.0 → 1.86.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.
- package/README.md +5 -0
- package/dist/connect.cjs +30 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +78 -3
- package/lib/seam/connect/openapi.d.ts +64 -0
- package/lib/seam/connect/openapi.js +27 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +14 -3
- package/lib/seam/connect/unstable/models/devices/managed-device.d.ts +3 -0
- package/lib/seam/connect/unstable/models/devices/managed-device.js +2 -0
- package/lib/seam/connect/unstable/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/unstable/models/devices/phone.d.ts +3 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +27 -1
- package/src/lib/seam/connect/route-types.ts +14 -3
- package/src/lib/seam/connect/unstable/models/devices/managed-device.ts +2 -0
|
@@ -1505,7 +1505,7 @@ export interface Routes {
|
|
|
1505
1505
|
device_selection_mode?: ('none' | 'single' | 'multiple') | undefined;
|
|
1506
1506
|
custom_redirect_url?: string | undefined;
|
|
1507
1507
|
custom_redirect_failure_url?: string | undefined;
|
|
1508
|
-
accepted_providers?: Array<'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | '
|
|
1508
|
+
accepted_providers?: Array<'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'seam_bridge' | 'yale_access' | 'hid_cm' | 'google_nest'> | undefined;
|
|
1509
1509
|
provider_category?: ('stable' | 'consumer_smartlocks' | 'internal_beta') | undefined;
|
|
1510
1510
|
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
1511
1511
|
automatically_manage_new_devices?: boolean | undefined;
|
|
@@ -1589,7 +1589,7 @@ export interface Routes {
|
|
|
1589
1589
|
commonParams: {
|
|
1590
1590
|
user_identifier_key?: string | undefined;
|
|
1591
1591
|
/** Returns devices where the webview's custom_metadata contains all of the provided key/value pairs. */
|
|
1592
|
-
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
1592
|
+
custom_metadata_has?: Record<string, string | boolean | null> | undefined;
|
|
1593
1593
|
};
|
|
1594
1594
|
formData: {};
|
|
1595
1595
|
jsonResponse: {
|
|
@@ -1678,7 +1678,7 @@ export interface Routes {
|
|
|
1678
1678
|
jsonBody: {};
|
|
1679
1679
|
commonParams: {
|
|
1680
1680
|
/** Returns devices where the account's custom_metadata contains all of the provided key/value pairs. */
|
|
1681
|
-
custom_metadata_has?: Record<string, string | boolean> | undefined;
|
|
1681
|
+
custom_metadata_has?: Record<string, string | boolean | null> | undefined;
|
|
1682
1682
|
};
|
|
1683
1683
|
formData: {};
|
|
1684
1684
|
jsonResponse: {
|
|
@@ -2204,6 +2204,7 @@ export interface Routes {
|
|
|
2204
2204
|
created_at: string;
|
|
2205
2205
|
/** Indicates whether Seam manages the device. */
|
|
2206
2206
|
is_managed: true;
|
|
2207
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2207
2208
|
};
|
|
2208
2209
|
};
|
|
2209
2210
|
};
|
|
@@ -2677,6 +2678,7 @@ export interface Routes {
|
|
|
2677
2678
|
created_at: string;
|
|
2678
2679
|
/** Indicates whether Seam manages the device. */
|
|
2679
2680
|
is_managed: true;
|
|
2681
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2680
2682
|
}>;
|
|
2681
2683
|
};
|
|
2682
2684
|
};
|
|
@@ -3468,6 +3470,7 @@ export interface Routes {
|
|
|
3468
3470
|
created_at: string;
|
|
3469
3471
|
/** Indicates whether Seam manages the device. */
|
|
3470
3472
|
is_managed: true;
|
|
3473
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
3471
3474
|
};
|
|
3472
3475
|
device: {
|
|
3473
3476
|
/** Unique identifier for the device. */
|
|
@@ -3919,6 +3922,7 @@ export interface Routes {
|
|
|
3919
3922
|
created_at: string;
|
|
3920
3923
|
/** Indicates whether Seam manages the device. */
|
|
3921
3924
|
is_managed: true;
|
|
3925
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
3922
3926
|
};
|
|
3923
3927
|
};
|
|
3924
3928
|
};
|
|
@@ -4392,6 +4396,7 @@ export interface Routes {
|
|
|
4392
4396
|
created_at: string;
|
|
4393
4397
|
/** Indicates whether Seam manages the device. */
|
|
4394
4398
|
is_managed: true;
|
|
4399
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
4395
4400
|
}>;
|
|
4396
4401
|
devices: Array<{
|
|
4397
4402
|
/** Unique identifier for the device. */
|
|
@@ -4843,6 +4848,7 @@ export interface Routes {
|
|
|
4843
4848
|
created_at: string;
|
|
4844
4849
|
/** Indicates whether Seam manages the device. */
|
|
4845
4850
|
is_managed: true;
|
|
4851
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
4846
4852
|
}>;
|
|
4847
4853
|
};
|
|
4848
4854
|
};
|
|
@@ -5587,6 +5593,7 @@ export interface Routes {
|
|
|
5587
5593
|
created_at: string;
|
|
5588
5594
|
/** Indicates whether Seam manages the device. */
|
|
5589
5595
|
is_managed: true;
|
|
5596
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
5590
5597
|
assa_abloy_credential_service_metadata?: {
|
|
5591
5598
|
has_active_endpoint: boolean;
|
|
5592
5599
|
endpoints: Array<{
|
|
@@ -6070,6 +6077,7 @@ export interface Routes {
|
|
|
6070
6077
|
created_at: string;
|
|
6071
6078
|
/** Indicates whether Seam manages the device. */
|
|
6072
6079
|
is_managed: true;
|
|
6080
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
6073
6081
|
assa_abloy_credential_service_metadata?: {
|
|
6074
6082
|
has_active_endpoint: boolean;
|
|
6075
6083
|
endpoints: Array<{
|
|
@@ -6716,6 +6724,7 @@ export interface Routes {
|
|
|
6716
6724
|
created_at: string;
|
|
6717
6725
|
/** Indicates whether Seam manages the device. */
|
|
6718
6726
|
is_managed: true;
|
|
6727
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
6719
6728
|
};
|
|
6720
6729
|
};
|
|
6721
6730
|
};
|
|
@@ -7219,6 +7228,7 @@ export interface Routes {
|
|
|
7219
7228
|
created_at: string;
|
|
7220
7229
|
/** Indicates whether Seam manages the device. */
|
|
7221
7230
|
is_managed: true;
|
|
7231
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
7222
7232
|
}>;
|
|
7223
7233
|
};
|
|
7224
7234
|
};
|
|
@@ -7884,6 +7894,7 @@ export interface Routes {
|
|
|
7884
7894
|
created_at: string;
|
|
7885
7895
|
/** Indicates whether Seam manages the device. */
|
|
7886
7896
|
is_managed: true;
|
|
7897
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
7887
7898
|
}>;
|
|
7888
7899
|
};
|
|
7889
7900
|
};
|
|
@@ -1962,6 +1962,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
1962
1962
|
}>, "many">;
|
|
1963
1963
|
created_at: z.ZodString;
|
|
1964
1964
|
is_managed: z.ZodLiteral<true>;
|
|
1965
|
+
custom_metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>>;
|
|
1965
1966
|
}, "strip", z.ZodTypeAny, {
|
|
1966
1967
|
location: {
|
|
1967
1968
|
location_name?: string | undefined;
|
|
@@ -2773,6 +2774,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
2773
2774
|
message: string;
|
|
2774
2775
|
warning_code: string;
|
|
2775
2776
|
}[];
|
|
2777
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2776
2778
|
}, {
|
|
2777
2779
|
location: {
|
|
2778
2780
|
location_name?: string | undefined;
|
|
@@ -3584,6 +3586,7 @@ export declare const managed_device: z.ZodObject<{
|
|
|
3584
3586
|
message: string;
|
|
3585
3587
|
warning_code: string;
|
|
3586
3588
|
}[];
|
|
3589
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
3587
3590
|
}>;
|
|
3588
3591
|
export type ManagedDevice = z.infer<typeof managed_device>;
|
|
3589
3592
|
export type ManagedDeviceWithBackendMetadata<MetadataKey extends keyof z.infer<typeof device_metadata>> = Simplify<ManagedDevice & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { custom_metadata } from '../../../stable/models/custom-metadata.js';
|
|
2
3
|
import { capability_properties } from '../capability-properties/index.js';
|
|
3
4
|
import { capabilities } from './capabilities-supported.js';
|
|
4
5
|
import { device_metadata } from './device-metadata.js';
|
|
@@ -123,5 +124,6 @@ export const managed_device = z.object({
|
|
|
123
124
|
is_managed: z
|
|
124
125
|
.literal(true)
|
|
125
126
|
.describe('Indicates whether Seam manages the device.'),
|
|
127
|
+
custom_metadata: custom_metadata.optional(),
|
|
126
128
|
});
|
|
127
129
|
//# sourceMappingURL=managed-device.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE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AAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CACP,+YAA+Y,CAChZ;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"managed-device.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/devices/managed-device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAEjE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,iIAAiI,CAClI;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;QACtE,yBAAyB,EAAE,CAAC;aACzB,MAAM,EAAE;aACR,QAAQ,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;SACN,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,sEAAsE,CACvE;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CACP,mYAAmY,CACpY;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CACP,+YAA+Y,CAChZ;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,4CAA4C,CAAC;IACzD,eAAe,EAAE,eAAe,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAA"}
|
|
@@ -13,6 +13,7 @@ export declare const phone: z.ZodObject<{
|
|
|
13
13
|
}>>;
|
|
14
14
|
workspace_id: z.ZodString;
|
|
15
15
|
created_at: z.ZodString;
|
|
16
|
+
custom_metadata: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNull]>>, Record<string, string | boolean | null>, Record<string, string | boolean | null>>>;
|
|
16
17
|
device_id: z.ZodString;
|
|
17
18
|
is_managed: z.ZodLiteral<true>;
|
|
18
19
|
properties: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
@@ -2702,6 +2703,7 @@ export declare const phone: z.ZodObject<{
|
|
|
2702
2703
|
message: string;
|
|
2703
2704
|
warning_code: string;
|
|
2704
2705
|
}[];
|
|
2706
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
2705
2707
|
assa_abloy_credential_service_metadata?: {
|
|
2706
2708
|
has_active_endpoint: boolean;
|
|
2707
2709
|
endpoints: {
|
|
@@ -3519,6 +3521,7 @@ export declare const phone: z.ZodObject<{
|
|
|
3519
3521
|
message: string;
|
|
3520
3522
|
warning_code: string;
|
|
3521
3523
|
}[];
|
|
3524
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined;
|
|
3522
3525
|
assa_abloy_credential_service_metadata?: {
|
|
3523
3526
|
has_active_endpoint: boolean;
|
|
3524
3527
|
endpoints: {
|
package/package.json
CHANGED
|
@@ -545,6 +545,17 @@ export default {
|
|
|
545
545
|
format: 'date-time',
|
|
546
546
|
type: 'string',
|
|
547
547
|
},
|
|
548
|
+
custom_metadata: {
|
|
549
|
+
additionalProperties: {
|
|
550
|
+
nullable: true,
|
|
551
|
+
oneOf: [
|
|
552
|
+
{ maxLength: 500, type: 'string' },
|
|
553
|
+
{ type: 'boolean' },
|
|
554
|
+
{ format: 'null', nullable: true, type: 'string' },
|
|
555
|
+
],
|
|
556
|
+
},
|
|
557
|
+
type: 'object',
|
|
558
|
+
},
|
|
548
559
|
device_id: {
|
|
549
560
|
description: 'Unique identifier for the device.',
|
|
550
561
|
format: 'uuid',
|
|
@@ -1881,6 +1892,17 @@ export default {
|
|
|
1881
1892
|
format: 'date-time',
|
|
1882
1893
|
type: 'string',
|
|
1883
1894
|
},
|
|
1895
|
+
custom_metadata: {
|
|
1896
|
+
additionalProperties: {
|
|
1897
|
+
nullable: true,
|
|
1898
|
+
oneOf: [
|
|
1899
|
+
{ maxLength: 500, type: 'string' },
|
|
1900
|
+
{ type: 'boolean' },
|
|
1901
|
+
{ format: 'null', nullable: true, type: 'string' },
|
|
1902
|
+
],
|
|
1903
|
+
},
|
|
1904
|
+
type: 'object',
|
|
1905
|
+
},
|
|
1884
1906
|
device_id: {
|
|
1885
1907
|
description: 'Unique identifier for the device.',
|
|
1886
1908
|
format: 'uuid',
|
|
@@ -7356,7 +7378,6 @@ export default {
|
|
|
7356
7378
|
'my_2n',
|
|
7357
7379
|
'controlbyweb',
|
|
7358
7380
|
'nest',
|
|
7359
|
-
'google_nest',
|
|
7360
7381
|
'igloohome',
|
|
7361
7382
|
'ecobee',
|
|
7362
7383
|
'hubitat',
|
|
@@ -7370,6 +7391,7 @@ export default {
|
|
|
7370
7391
|
'seam_bridge',
|
|
7371
7392
|
'yale_access',
|
|
7372
7393
|
'hid_cm',
|
|
7394
|
+
'google_nest',
|
|
7373
7395
|
],
|
|
7374
7396
|
type: 'string',
|
|
7375
7397
|
},
|
|
@@ -7539,9 +7561,11 @@ export default {
|
|
|
7539
7561
|
properties: {
|
|
7540
7562
|
custom_metadata_has: {
|
|
7541
7563
|
additionalProperties: {
|
|
7564
|
+
nullable: true,
|
|
7542
7565
|
oneOf: [
|
|
7543
7566
|
{ maxLength: 500, type: 'string' },
|
|
7544
7567
|
{ type: 'boolean' },
|
|
7568
|
+
{ format: 'null', nullable: true, type: 'string' },
|
|
7545
7569
|
],
|
|
7546
7570
|
},
|
|
7547
7571
|
description:
|
|
@@ -7729,9 +7753,11 @@ export default {
|
|
|
7729
7753
|
properties: {
|
|
7730
7754
|
custom_metadata_has: {
|
|
7731
7755
|
additionalProperties: {
|
|
7756
|
+
nullable: true,
|
|
7732
7757
|
oneOf: [
|
|
7733
7758
|
{ maxLength: 500, type: 'string' },
|
|
7734
7759
|
{ type: 'boolean' },
|
|
7760
|
+
{ format: 'null', nullable: true, type: 'string' },
|
|
7735
7761
|
],
|
|
7736
7762
|
},
|
|
7737
7763
|
description:
|
|
@@ -1686,7 +1686,6 @@ export interface Routes {
|
|
|
1686
1686
|
| 'my_2n'
|
|
1687
1687
|
| 'controlbyweb'
|
|
1688
1688
|
| 'nest'
|
|
1689
|
-
| 'google_nest'
|
|
1690
1689
|
| 'igloohome'
|
|
1691
1690
|
| 'ecobee'
|
|
1692
1691
|
| 'hubitat'
|
|
@@ -1700,6 +1699,7 @@ export interface Routes {
|
|
|
1700
1699
|
| 'seam_bridge'
|
|
1701
1700
|
| 'yale_access'
|
|
1702
1701
|
| 'hid_cm'
|
|
1702
|
+
| 'google_nest'
|
|
1703
1703
|
>
|
|
1704
1704
|
| undefined
|
|
1705
1705
|
provider_category?:
|
|
@@ -1787,7 +1787,7 @@ export interface Routes {
|
|
|
1787
1787
|
commonParams: {
|
|
1788
1788
|
user_identifier_key?: string | undefined
|
|
1789
1789
|
/** Returns devices where the webview's custom_metadata contains all of the provided key/value pairs. */
|
|
1790
|
-
custom_metadata_has?: Record<string, string | boolean> | undefined
|
|
1790
|
+
custom_metadata_has?: Record<string, string | boolean | null> | undefined
|
|
1791
1791
|
}
|
|
1792
1792
|
formData: {}
|
|
1793
1793
|
jsonResponse: {
|
|
@@ -1880,7 +1880,7 @@ export interface Routes {
|
|
|
1880
1880
|
jsonBody: {}
|
|
1881
1881
|
commonParams: {
|
|
1882
1882
|
/** Returns devices where the account's custom_metadata contains all of the provided key/value pairs. */
|
|
1883
|
-
custom_metadata_has?: Record<string, string | boolean> | undefined
|
|
1883
|
+
custom_metadata_has?: Record<string, string | boolean | null> | undefined
|
|
1884
1884
|
}
|
|
1885
1885
|
formData: {}
|
|
1886
1886
|
jsonResponse: {
|
|
@@ -2612,6 +2612,7 @@ export interface Routes {
|
|
|
2612
2612
|
created_at: string
|
|
2613
2613
|
/** Indicates whether Seam manages the device. */
|
|
2614
2614
|
is_managed: true
|
|
2615
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
2615
2616
|
}
|
|
2616
2617
|
}
|
|
2617
2618
|
}
|
|
@@ -3388,6 +3389,7 @@ export interface Routes {
|
|
|
3388
3389
|
created_at: string
|
|
3389
3390
|
/** Indicates whether Seam manages the device. */
|
|
3390
3391
|
is_managed: true
|
|
3392
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
3391
3393
|
}>
|
|
3392
3394
|
}
|
|
3393
3395
|
}
|
|
@@ -4660,6 +4662,7 @@ export interface Routes {
|
|
|
4660
4662
|
created_at: string
|
|
4661
4663
|
/** Indicates whether Seam manages the device. */
|
|
4662
4664
|
is_managed: true
|
|
4665
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
4663
4666
|
}
|
|
4664
4667
|
device: {
|
|
4665
4668
|
/** Unique identifier for the device. */
|
|
@@ -5313,6 +5316,7 @@ export interface Routes {
|
|
|
5313
5316
|
created_at: string
|
|
5314
5317
|
/** Indicates whether Seam manages the device. */
|
|
5315
5318
|
is_managed: true
|
|
5319
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
5316
5320
|
}
|
|
5317
5321
|
}
|
|
5318
5322
|
}
|
|
@@ -6089,6 +6093,7 @@ export interface Routes {
|
|
|
6089
6093
|
created_at: string
|
|
6090
6094
|
/** Indicates whether Seam manages the device. */
|
|
6091
6095
|
is_managed: true
|
|
6096
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
6092
6097
|
}>
|
|
6093
6098
|
devices: Array<{
|
|
6094
6099
|
/** Unique identifier for the device. */
|
|
@@ -6742,6 +6747,7 @@ export interface Routes {
|
|
|
6742
6747
|
created_at: string
|
|
6743
6748
|
/** Indicates whether Seam manages the device. */
|
|
6744
6749
|
is_managed: true
|
|
6750
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
6745
6751
|
}>
|
|
6746
6752
|
}
|
|
6747
6753
|
}
|
|
@@ -7673,6 +7679,7 @@ export interface Routes {
|
|
|
7673
7679
|
created_at: string
|
|
7674
7680
|
/** Indicates whether Seam manages the device. */
|
|
7675
7681
|
is_managed: true
|
|
7682
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
7676
7683
|
assa_abloy_credential_service_metadata?:
|
|
7677
7684
|
| {
|
|
7678
7685
|
has_active_endpoint: boolean
|
|
@@ -8330,6 +8337,7 @@ export interface Routes {
|
|
|
8330
8337
|
created_at: string
|
|
8331
8338
|
/** Indicates whether Seam manages the device. */
|
|
8332
8339
|
is_managed: true
|
|
8340
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
8333
8341
|
assa_abloy_credential_service_metadata?:
|
|
8334
8342
|
| {
|
|
8335
8343
|
has_active_endpoint: boolean
|
|
@@ -9180,6 +9188,7 @@ export interface Routes {
|
|
|
9180
9188
|
created_at: string
|
|
9181
9189
|
/** Indicates whether Seam manages the device. */
|
|
9182
9190
|
is_managed: true
|
|
9191
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
9183
9192
|
}
|
|
9184
9193
|
}
|
|
9185
9194
|
}
|
|
@@ -9986,6 +9995,7 @@ export interface Routes {
|
|
|
9986
9995
|
created_at: string
|
|
9987
9996
|
/** Indicates whether Seam manages the device. */
|
|
9988
9997
|
is_managed: true
|
|
9998
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
9989
9999
|
}>
|
|
9990
10000
|
}
|
|
9991
10001
|
}
|
|
@@ -10855,6 +10865,7 @@ export interface Routes {
|
|
|
10855
10865
|
created_at: string
|
|
10856
10866
|
/** Indicates whether Seam manages the device. */
|
|
10857
10867
|
is_managed: true
|
|
10868
|
+
custom_metadata?: Record<string, string | boolean | null> | undefined
|
|
10858
10869
|
}>
|
|
10859
10870
|
}
|
|
10860
10871
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SetRequired, Simplify } from 'type-fest'
|
|
2
2
|
import { z } from 'zod'
|
|
3
3
|
|
|
4
|
+
import { custom_metadata } from '../../../stable/models/custom-metadata.js'
|
|
4
5
|
import { capability_properties } from '../capability-properties/index.js'
|
|
5
6
|
import { capabilities } from './capabilities-supported.js'
|
|
6
7
|
import { device_metadata } from './device-metadata.js'
|
|
@@ -157,6 +158,7 @@ export const managed_device = z.object({
|
|
|
157
158
|
is_managed: z
|
|
158
159
|
.literal(true)
|
|
159
160
|
.describe('Indicates whether Seam manages the device.'),
|
|
161
|
+
custom_metadata: custom_metadata.optional(),
|
|
160
162
|
})
|
|
161
163
|
|
|
162
164
|
export type ManagedDevice = z.infer<typeof managed_device>
|