@seamapi/types 1.456.0 → 1.457.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 +418 -225
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +15440 -3086
- package/dist/devicedb.d.cts +56 -56
- package/dist/index.cjs +418 -225
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batches/access_grants.d.ts +48 -49
- package/lib/seam/connect/models/batches/access_methods.d.ts +5681 -0
- package/lib/seam/connect/models/batches/access_methods.js +11 -0
- package/lib/seam/connect/models/batches/access_methods.js.map +1 -0
- package/lib/seam/connect/models/batches/batch.d.ts +5774 -98
- package/lib/seam/connect/models/batches/batch.js +6 -1
- package/lib/seam/connect/models/batches/batch.js.map +1 -1
- package/lib/seam/connect/models/batches/index.d.ts +1 -0
- package/lib/seam/connect/models/batches/index.js +1 -0
- package/lib/seam/connect/models/batches/index.js.map +1 -1
- package/lib/seam/connect/models/batches/spaces.d.ts +48 -49
- package/lib/seam/connect/models/devices/device-metadata.d.ts +22 -22
- package/lib/seam/connect/models/devices/device-provider.d.ts +0 -1
- package/lib/seam/connect/models/devices/device.d.ts +49 -51
- package/lib/seam/connect/models/devices/device.js +16 -7
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +29 -31
- package/lib/seam/connect/openapi.d.ts +285 -0
- package/lib/seam/connect/openapi.js +390 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +9300 -2903
- package/lib/seam/devicedb/models/device-model.d.ts +20 -20
- package/lib/seam/devicedb/route-specs.d.ts +41 -41
- package/package.json +1 -1
- package/src/lib/seam/connect/models/batches/access_methods.ts +14 -0
- package/src/lib/seam/connect/models/batches/batch.ts +6 -1
- package/src/lib/seam/connect/models/batches/index.ts +1 -0
- package/src/lib/seam/connect/models/devices/device.ts +15 -8
- package/src/lib/seam/connect/openapi.ts +394 -1
- package/src/lib/seam/connect/route-types.ts +9271 -1024
package/dist/index.cjs
CHANGED
|
@@ -520,220 +520,6 @@ var capability_properties = zod.z.intersection(
|
|
|
520
520
|
access_code_capability_properties.partial().merge(lock_capability_properties.partial()),
|
|
521
521
|
thermostat_capability_properties
|
|
522
522
|
);
|
|
523
|
-
|
|
524
|
-
// src/lib/seam/devicedb/models/index.ts
|
|
525
|
-
var models_exports = {};
|
|
526
|
-
__export(models_exports, {
|
|
527
|
-
base_device_model_v1: () => base_device_model_v1,
|
|
528
|
-
device_capability_flags: () => device_capability_flags,
|
|
529
|
-
device_category: () => device_category,
|
|
530
|
-
device_connection_type: () => device_connection_type,
|
|
531
|
-
device_model_category_specific_properties: () => device_model_category_specific_properties,
|
|
532
|
-
device_model_v1: () => device_model_v1,
|
|
533
|
-
image_reference: () => image_reference,
|
|
534
|
-
manufacturer: () => manufacturer,
|
|
535
|
-
manufacturer_annotation: () => manufacturer_annotation,
|
|
536
|
-
manufacturer_annotation_code: () => manufacturer_annotation_code,
|
|
537
|
-
manufacturer_integration_support_level: () => manufacturer_integration_support_level,
|
|
538
|
-
thermostat: () => thermostat
|
|
539
|
-
});
|
|
540
|
-
var device_capability_flags = zod.z.object({
|
|
541
|
-
can_remotely_unlock: zod.z.boolean(),
|
|
542
|
-
can_remotely_lock: zod.z.boolean(),
|
|
543
|
-
can_program_offline_access_codes: zod.z.boolean(),
|
|
544
|
-
can_program_online_access_codes: zod.z.boolean(),
|
|
545
|
-
can_hvac_heat: zod.z.boolean(),
|
|
546
|
-
can_hvac_cool: zod.z.boolean(),
|
|
547
|
-
can_hvac_heat_cool: zod.z.boolean(),
|
|
548
|
-
can_turn_off_hvac: zod.z.boolean()
|
|
549
|
-
}).partial();
|
|
550
|
-
var device_model_capability_flags_map = {
|
|
551
|
-
can_remotely_lock: zod.z.literal(true),
|
|
552
|
-
can_remotely_unlock: zod.z.literal(true),
|
|
553
|
-
can_program_offline_access_codes: zod.z.literal(true),
|
|
554
|
-
can_program_online_access_codes: zod.z.literal(true),
|
|
555
|
-
can_hvac_heat: zod.z.literal(true),
|
|
556
|
-
can_hvac_cool: zod.z.literal(true),
|
|
557
|
-
can_hvac_heat_cool: zod.z.literal(true),
|
|
558
|
-
can_turn_off_hvac: zod.z.literal(true)
|
|
559
|
-
};
|
|
560
|
-
var device_model_capability_flags = zod.z.object(device_model_capability_flags_map).partial();
|
|
561
|
-
var hardware = zod.z.object({
|
|
562
|
-
has_physical_key: zod.z.boolean()
|
|
563
|
-
}).partial();
|
|
564
|
-
var image_reference = zod.z.object({
|
|
565
|
-
url: zod.z.string().url(),
|
|
566
|
-
width: zod.z.number(),
|
|
567
|
-
height: zod.z.number()
|
|
568
|
-
});
|
|
569
|
-
var manufacturer_integration_support_level = zod.z.enum([
|
|
570
|
-
"stable",
|
|
571
|
-
"beta",
|
|
572
|
-
"planned",
|
|
573
|
-
"unsupported",
|
|
574
|
-
"inquire"
|
|
575
|
-
]);
|
|
576
|
-
var manufacturer_annotation_code = zod.z.enum(["subscription_required"]);
|
|
577
|
-
var manufacturer_annotation = zod.z.object({
|
|
578
|
-
annotation_code: manufacturer_annotation_code,
|
|
579
|
-
message: zod.z.string().trim().nonempty()
|
|
580
|
-
});
|
|
581
|
-
var manufacturer = zod.z.object({
|
|
582
|
-
manufacturer_id: zod.z.string().uuid(),
|
|
583
|
-
display_name: zod.z.string(),
|
|
584
|
-
logo: image_reference.optional(),
|
|
585
|
-
/** @deprecated */
|
|
586
|
-
integration: manufacturer_integration_support_level,
|
|
587
|
-
integration_support_level: manufacturer_integration_support_level,
|
|
588
|
-
is_connect_webview_supported: zod.z.boolean(),
|
|
589
|
-
requires_seam_support_to_add_account: zod.z.boolean(),
|
|
590
|
-
device_model_count: zod.z.number(),
|
|
591
|
-
annotations: zod.z.array(manufacturer_annotation),
|
|
592
|
-
website: zod.z.string().url().optional(),
|
|
593
|
-
legal_name: zod.z.string().optional(),
|
|
594
|
-
parent_organization: zod.z.string().optional(),
|
|
595
|
-
headquarters: zod.z.array(zod.z.string()).optional(),
|
|
596
|
-
countries_of_origin: zod.z.array(zod.z.string()).optional(),
|
|
597
|
-
founding_year: zod.z.string().optional(),
|
|
598
|
-
us_customer_support_tel: zod.z.string().optional(),
|
|
599
|
-
us_customer_support_email: zod.z.string().email().optional(),
|
|
600
|
-
us_customer_support_contact_url: zod.z.string().url().optional(),
|
|
601
|
-
seam_api_guide: zod.z.string().optional(),
|
|
602
|
-
description: zod.z.string().optional()
|
|
603
|
-
});
|
|
604
|
-
|
|
605
|
-
// src/lib/seam/devicedb/models/device-model.ts
|
|
606
|
-
var device_category = zod.z.enum([
|
|
607
|
-
"smartlock",
|
|
608
|
-
"sensor",
|
|
609
|
-
"thermostat",
|
|
610
|
-
"relay",
|
|
611
|
-
"intercom",
|
|
612
|
-
"accessory"
|
|
613
|
-
]);
|
|
614
|
-
var device_connection_type = zod.z.enum([
|
|
615
|
-
"wifi",
|
|
616
|
-
"zwave",
|
|
617
|
-
"zigbee",
|
|
618
|
-
"unknown"
|
|
619
|
-
]);
|
|
620
|
-
var smartlock = zod.z.object({
|
|
621
|
-
main_category: zod.z.literal(device_category.enum.smartlock),
|
|
622
|
-
physical_properties: zod.z.object({
|
|
623
|
-
lock_type: zod.z.enum([
|
|
624
|
-
"deadbolt",
|
|
625
|
-
"lever",
|
|
626
|
-
"mortise",
|
|
627
|
-
"lockbox",
|
|
628
|
-
"cylinder",
|
|
629
|
-
"padlock",
|
|
630
|
-
"locker",
|
|
631
|
-
"unknown"
|
|
632
|
-
]),
|
|
633
|
-
has_physical_key: zod.z.boolean(),
|
|
634
|
-
has_camera: zod.z.boolean()
|
|
635
|
-
}),
|
|
636
|
-
software_features: zod.z.object({
|
|
637
|
-
can_remotely_unlock: zod.z.boolean(),
|
|
638
|
-
can_program_access_codes: zod.z.boolean(),
|
|
639
|
-
can_program_access_schedules: zod.z.boolean(),
|
|
640
|
-
can_program_access_codes_offline: zod.z.boolean()
|
|
641
|
-
})
|
|
642
|
-
}).merge(
|
|
643
|
-
device_model_capability_flags.pick({
|
|
644
|
-
can_remotely_lock: true,
|
|
645
|
-
can_remotely_unlock: true,
|
|
646
|
-
can_program_offline_access_codes: true,
|
|
647
|
-
can_program_online_access_codes: true
|
|
648
|
-
})
|
|
649
|
-
);
|
|
650
|
-
var sensor = zod.z.object({
|
|
651
|
-
main_category: zod.z.literal(device_category.enum.sensor),
|
|
652
|
-
physical_properties: zod.z.object({
|
|
653
|
-
has_noise_sensor: zod.z.boolean(),
|
|
654
|
-
has_humidity_sensor: zod.z.boolean(),
|
|
655
|
-
has_temperature_sensor: zod.z.boolean(),
|
|
656
|
-
has_occupancy_detection: zod.z.boolean()
|
|
657
|
-
})
|
|
658
|
-
});
|
|
659
|
-
var thermostat = zod.z.object({
|
|
660
|
-
main_category: zod.z.literal(device_category.enum.thermostat),
|
|
661
|
-
physical_properties: zod.z.object({
|
|
662
|
-
available_modes: zod.z.enum(["heat", "cool", "fan", "eco"]).array(),
|
|
663
|
-
is_heat_pump_compatible: zod.z.boolean(),
|
|
664
|
-
has_occupancy_detection: zod.z.boolean(),
|
|
665
|
-
supports_demand_response: zod.z.boolean(),
|
|
666
|
-
has_humidity_sensor: zod.z.boolean(),
|
|
667
|
-
has_temperature_sensor: zod.z.boolean(),
|
|
668
|
-
supports_emergency_heating_mode: zod.z.boolean()
|
|
669
|
-
}),
|
|
670
|
-
software_features: zod.z.object({
|
|
671
|
-
can_program_climate_schedules: zod.z.boolean()
|
|
672
|
-
})
|
|
673
|
-
}).merge(
|
|
674
|
-
device_model_capability_flags.pick({
|
|
675
|
-
can_hvac_heat: true,
|
|
676
|
-
can_hvac_cool: true,
|
|
677
|
-
can_hvac_heat_cool: true,
|
|
678
|
-
can_turn_off_hvac: true
|
|
679
|
-
})
|
|
680
|
-
);
|
|
681
|
-
var relay = zod.z.object({
|
|
682
|
-
main_category: zod.z.literal(device_category.enum.relay)
|
|
683
|
-
});
|
|
684
|
-
var intercom = zod.z.object({
|
|
685
|
-
main_category: zod.z.literal(device_category.enum.intercom),
|
|
686
|
-
physical_properties: zod.z.object({
|
|
687
|
-
has_camera: zod.z.boolean(),
|
|
688
|
-
has_rfid_reader: zod.z.boolean().default(false),
|
|
689
|
-
has_nfc_reader: zod.z.boolean().default(false),
|
|
690
|
-
has_wiegand_interface: zod.z.boolean().default(false)
|
|
691
|
-
}),
|
|
692
|
-
software_features: zod.z.object({
|
|
693
|
-
can_remotely_unlock: zod.z.boolean(),
|
|
694
|
-
can_program_access_codes: zod.z.boolean(),
|
|
695
|
-
can_unlock_with_face_recognition: zod.z.boolean().default(false),
|
|
696
|
-
supports_onvif: zod.z.boolean().default(false)
|
|
697
|
-
})
|
|
698
|
-
});
|
|
699
|
-
var accessory = zod.z.object({
|
|
700
|
-
main_category: zod.z.literal(device_category.enum.accessory)
|
|
701
|
-
});
|
|
702
|
-
var device_model_category_specific_properties = zod.z.discriminatedUnion(
|
|
703
|
-
"main_category",
|
|
704
|
-
[smartlock, sensor, thermostat, relay, intercom, accessory]
|
|
705
|
-
);
|
|
706
|
-
var base_device_model_v1 = zod.z.object({
|
|
707
|
-
device_model_id: zod.z.string().uuid(),
|
|
708
|
-
manufacturer: manufacturer.omit({
|
|
709
|
-
device_model_count: true
|
|
710
|
-
}),
|
|
711
|
-
is_device_supported: zod.z.boolean(),
|
|
712
|
-
display_name: zod.z.string(),
|
|
713
|
-
description: zod.z.string(),
|
|
714
|
-
product_url: zod.z.string().optional(),
|
|
715
|
-
main_connection_type: device_connection_type,
|
|
716
|
-
hardware,
|
|
717
|
-
aesthetic_variants: zod.z.object({
|
|
718
|
-
slug: zod.z.string(),
|
|
719
|
-
display_name: zod.z.string(),
|
|
720
|
-
primary_color_hex: zod.z.string().optional(),
|
|
721
|
-
manufacturer_sku: zod.z.string().optional(),
|
|
722
|
-
front_image: image_reference.optional(),
|
|
723
|
-
back_image: image_reference.optional(),
|
|
724
|
-
images: image_reference.array()
|
|
725
|
-
}).array(),
|
|
726
|
-
power_sources: zod.z.enum([
|
|
727
|
-
"battery",
|
|
728
|
-
"hardwired",
|
|
729
|
-
"mechanical_harvesting",
|
|
730
|
-
"wireless",
|
|
731
|
-
"ethernet"
|
|
732
|
-
]).array()
|
|
733
|
-
});
|
|
734
|
-
var device_model_v1 = base_device_model_v1.and(
|
|
735
|
-
device_model_category_specific_properties
|
|
736
|
-
);
|
|
737
523
|
zod.z.record(
|
|
738
524
|
zod.z.string().max(40),
|
|
739
525
|
zod.z.union([zod.z.string().max(500), zod.z.boolean(), zod.z.null()])
|
|
@@ -1324,12 +1110,20 @@ var phone_specific_properties = zod.z.object({
|
|
|
1324
1110
|
`);
|
|
1325
1111
|
|
|
1326
1112
|
// src/lib/seam/connect/models/devices/device.ts
|
|
1327
|
-
var
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1113
|
+
var device_capability_flags = zod.z.object({
|
|
1114
|
+
can_remotely_unlock: zod.z.boolean(),
|
|
1115
|
+
can_remotely_lock: zod.z.boolean(),
|
|
1116
|
+
can_program_offline_access_codes: zod.z.boolean(),
|
|
1117
|
+
can_program_online_access_codes: zod.z.boolean(),
|
|
1118
|
+
can_hvac_heat: zod.z.boolean(),
|
|
1119
|
+
can_hvac_cool: zod.z.boolean(),
|
|
1120
|
+
can_hvac_heat_cool: zod.z.boolean(),
|
|
1121
|
+
can_turn_off_hvac: zod.z.boolean(),
|
|
1122
|
+
can_simulate_removal: zod.z.boolean(),
|
|
1123
|
+
can_simulate_connection: zod.z.boolean(),
|
|
1124
|
+
can_simulate_disconnection: zod.z.boolean(),
|
|
1125
|
+
can_unlock_with_code: zod.z.boolean()
|
|
1126
|
+
}).partial();
|
|
1333
1127
|
var battery_status = zod.z.enum(["critical", "low", "good", "full"]).describe(`Represents the current status of the battery charge level. Values are \`critical\`, which indicates an extremely low level, suggesting imminent shutdown or an urgent need for charging; \`low\`, which signifies that the battery is under the preferred threshold and should be charged soon; \`good\`, which denotes a satisfactory charge level, adequate for normal use without the immediate need for recharging; and \`full\`, which represents a battery that is fully charged, providing the maximum duration of usage.
|
|
1334
1128
|
`);
|
|
1335
1129
|
var common_device_error = zod.z.object({
|
|
@@ -1878,7 +1672,7 @@ var device = zod.z.object({
|
|
|
1878
1672
|
"Indicates whether Seam manages the device. See also [Managed and Unmanaged Devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices)."
|
|
1879
1673
|
),
|
|
1880
1674
|
custom_metadata
|
|
1881
|
-
}).merge(
|
|
1675
|
+
}).merge(device_capability_flags).describe(`
|
|
1882
1676
|
---
|
|
1883
1677
|
route_path: /devices
|
|
1884
1678
|
property_groups:
|
|
@@ -2012,7 +1806,7 @@ var device_provider = zod.z.object({
|
|
|
2012
1806
|
display_name: zod.z.string(),
|
|
2013
1807
|
image_url: zod.z.string(),
|
|
2014
1808
|
provider_categories: zod.z.array(zod.z.enum(PUBLIC_PROVIDER_CATEGORIES))
|
|
2015
|
-
}).extend(
|
|
1809
|
+
}).extend(device_capability_flags.shape).describe(`
|
|
2016
1810
|
---
|
|
2017
1811
|
route_path: /devices
|
|
2018
1812
|
---
|
|
@@ -2061,7 +1855,7 @@ var unmanaged_device = device.pick({
|
|
|
2061
1855
|
---
|
|
2062
1856
|
properties of the device.
|
|
2063
1857
|
`)
|
|
2064
|
-
}).merge(
|
|
1858
|
+
}).merge(device_capability_flags).describe(`
|
|
2065
1859
|
---
|
|
2066
1860
|
route_path: /devices/unmanaged
|
|
2067
1861
|
property_groups:
|
|
@@ -3993,6 +3787,12 @@ var access_grants_batch = zod.z.object({
|
|
|
3993
3787
|
devices: device.array().optional(),
|
|
3994
3788
|
acs_entrances: acs_entrance.array().optional()
|
|
3995
3789
|
});
|
|
3790
|
+
var access_methods_batch = zod.z.object({
|
|
3791
|
+
batch_type: zod.z.literal("access_methods"),
|
|
3792
|
+
spaces: space.array().optional(),
|
|
3793
|
+
devices: device.array().optional(),
|
|
3794
|
+
acs_entrances: acs_entrance.array().optional()
|
|
3795
|
+
});
|
|
3996
3796
|
var spaces_batch = zod.z.object({
|
|
3997
3797
|
batch_type: zod.z.literal("spaces"),
|
|
3998
3798
|
spaces: space.array().optional(),
|
|
@@ -4001,7 +3801,11 @@ var spaces_batch = zod.z.object({
|
|
|
4001
3801
|
}).describe("ID of the affected access system user.");
|
|
4002
3802
|
|
|
4003
3803
|
// src/lib/seam/connect/models/batches/batch.ts
|
|
4004
|
-
var batch = zod.z.union([
|
|
3804
|
+
var batch = zod.z.union([
|
|
3805
|
+
spaces_batch,
|
|
3806
|
+
access_grants_batch,
|
|
3807
|
+
access_methods_batch
|
|
3808
|
+
]).describe(`
|
|
4005
3809
|
---
|
|
4006
3810
|
route_path: /
|
|
4007
3811
|
---
|
|
@@ -30767,6 +30571,30 @@ var openapi_default = {
|
|
|
30767
30571
|
},
|
|
30768
30572
|
required: ["batch_type"],
|
|
30769
30573
|
type: "object"
|
|
30574
|
+
},
|
|
30575
|
+
{
|
|
30576
|
+
properties: {
|
|
30577
|
+
acs_entrances: {
|
|
30578
|
+
items: {
|
|
30579
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
30580
|
+
},
|
|
30581
|
+
type: "array"
|
|
30582
|
+
},
|
|
30583
|
+
batch_type: {
|
|
30584
|
+
enum: ["access_methods"],
|
|
30585
|
+
type: "string"
|
|
30586
|
+
},
|
|
30587
|
+
devices: {
|
|
30588
|
+
items: { $ref: "#/components/schemas/device" },
|
|
30589
|
+
type: "array"
|
|
30590
|
+
},
|
|
30591
|
+
spaces: {
|
|
30592
|
+
items: { $ref: "#/components/schemas/space" },
|
|
30593
|
+
type: "array"
|
|
30594
|
+
}
|
|
30595
|
+
},
|
|
30596
|
+
required: ["batch_type"],
|
|
30597
|
+
type: "object"
|
|
30770
30598
|
}
|
|
30771
30599
|
],
|
|
30772
30600
|
"x-route-path": "/"
|
|
@@ -30886,6 +30714,30 @@ var openapi_default = {
|
|
|
30886
30714
|
},
|
|
30887
30715
|
required: ["batch_type"],
|
|
30888
30716
|
type: "object"
|
|
30717
|
+
},
|
|
30718
|
+
{
|
|
30719
|
+
properties: {
|
|
30720
|
+
acs_entrances: {
|
|
30721
|
+
items: {
|
|
30722
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
30723
|
+
},
|
|
30724
|
+
type: "array"
|
|
30725
|
+
},
|
|
30726
|
+
batch_type: {
|
|
30727
|
+
enum: ["access_methods"],
|
|
30728
|
+
type: "string"
|
|
30729
|
+
},
|
|
30730
|
+
devices: {
|
|
30731
|
+
items: { $ref: "#/components/schemas/device" },
|
|
30732
|
+
type: "array"
|
|
30733
|
+
},
|
|
30734
|
+
spaces: {
|
|
30735
|
+
items: { $ref: "#/components/schemas/space" },
|
|
30736
|
+
type: "array"
|
|
30737
|
+
}
|
|
30738
|
+
},
|
|
30739
|
+
required: ["batch_type"],
|
|
30740
|
+
type: "object"
|
|
30889
30741
|
}
|
|
30890
30742
|
],
|
|
30891
30743
|
"x-route-path": "/"
|
|
@@ -31497,6 +31349,299 @@ var openapi_default = {
|
|
|
31497
31349
|
"x-title": "Get an Access Method"
|
|
31498
31350
|
}
|
|
31499
31351
|
},
|
|
31352
|
+
"/access_methods/get_related": {
|
|
31353
|
+
get: {
|
|
31354
|
+
description: "Gets all related resources for one or more Access Methods.",
|
|
31355
|
+
operationId: "accessMethodsGetRelatedGet",
|
|
31356
|
+
parameters: [
|
|
31357
|
+
{
|
|
31358
|
+
in: "query",
|
|
31359
|
+
name: "access_method_ids",
|
|
31360
|
+
required: true,
|
|
31361
|
+
schema: {
|
|
31362
|
+
description: "IDs of the access methods that you want to get along with their related resources.",
|
|
31363
|
+
items: { format: "uuid", type: "string" },
|
|
31364
|
+
type: "array"
|
|
31365
|
+
}
|
|
31366
|
+
},
|
|
31367
|
+
{
|
|
31368
|
+
in: "query",
|
|
31369
|
+
name: "include",
|
|
31370
|
+
required: false,
|
|
31371
|
+
schema: {
|
|
31372
|
+
items: {
|
|
31373
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
31374
|
+
type: "string"
|
|
31375
|
+
},
|
|
31376
|
+
type: "array"
|
|
31377
|
+
}
|
|
31378
|
+
},
|
|
31379
|
+
{
|
|
31380
|
+
in: "query",
|
|
31381
|
+
name: "exclude",
|
|
31382
|
+
required: false,
|
|
31383
|
+
schema: {
|
|
31384
|
+
items: {
|
|
31385
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
31386
|
+
type: "string"
|
|
31387
|
+
},
|
|
31388
|
+
type: "array"
|
|
31389
|
+
}
|
|
31390
|
+
}
|
|
31391
|
+
],
|
|
31392
|
+
responses: {
|
|
31393
|
+
200: {
|
|
31394
|
+
content: {
|
|
31395
|
+
"application/json": {
|
|
31396
|
+
schema: {
|
|
31397
|
+
properties: {
|
|
31398
|
+
batch: {
|
|
31399
|
+
description: "Represents a resource batch.",
|
|
31400
|
+
oneOf: [
|
|
31401
|
+
{
|
|
31402
|
+
description: "ID of the affected access system user.",
|
|
31403
|
+
properties: {
|
|
31404
|
+
acs_entrances: {
|
|
31405
|
+
items: {
|
|
31406
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
31407
|
+
},
|
|
31408
|
+
type: "array"
|
|
31409
|
+
},
|
|
31410
|
+
batch_type: { enum: ["spaces"], type: "string" },
|
|
31411
|
+
devices: {
|
|
31412
|
+
items: { $ref: "#/components/schemas/device" },
|
|
31413
|
+
type: "array"
|
|
31414
|
+
},
|
|
31415
|
+
spaces: {
|
|
31416
|
+
items: { $ref: "#/components/schemas/space" },
|
|
31417
|
+
type: "array"
|
|
31418
|
+
}
|
|
31419
|
+
},
|
|
31420
|
+
required: ["batch_type"],
|
|
31421
|
+
type: "object"
|
|
31422
|
+
},
|
|
31423
|
+
{
|
|
31424
|
+
properties: {
|
|
31425
|
+
acs_entrances: {
|
|
31426
|
+
items: {
|
|
31427
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
31428
|
+
},
|
|
31429
|
+
type: "array"
|
|
31430
|
+
},
|
|
31431
|
+
batch_type: {
|
|
31432
|
+
enum: ["access_grants"],
|
|
31433
|
+
type: "string"
|
|
31434
|
+
},
|
|
31435
|
+
devices: {
|
|
31436
|
+
items: { $ref: "#/components/schemas/device" },
|
|
31437
|
+
type: "array"
|
|
31438
|
+
},
|
|
31439
|
+
spaces: {
|
|
31440
|
+
items: { $ref: "#/components/schemas/space" },
|
|
31441
|
+
type: "array"
|
|
31442
|
+
}
|
|
31443
|
+
},
|
|
31444
|
+
required: ["batch_type"],
|
|
31445
|
+
type: "object"
|
|
31446
|
+
},
|
|
31447
|
+
{
|
|
31448
|
+
properties: {
|
|
31449
|
+
acs_entrances: {
|
|
31450
|
+
items: {
|
|
31451
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
31452
|
+
},
|
|
31453
|
+
type: "array"
|
|
31454
|
+
},
|
|
31455
|
+
batch_type: {
|
|
31456
|
+
enum: ["access_methods"],
|
|
31457
|
+
type: "string"
|
|
31458
|
+
},
|
|
31459
|
+
devices: {
|
|
31460
|
+
items: { $ref: "#/components/schemas/device" },
|
|
31461
|
+
type: "array"
|
|
31462
|
+
},
|
|
31463
|
+
spaces: {
|
|
31464
|
+
items: { $ref: "#/components/schemas/space" },
|
|
31465
|
+
type: "array"
|
|
31466
|
+
}
|
|
31467
|
+
},
|
|
31468
|
+
required: ["batch_type"],
|
|
31469
|
+
type: "object"
|
|
31470
|
+
}
|
|
31471
|
+
],
|
|
31472
|
+
"x-route-path": "/"
|
|
31473
|
+
},
|
|
31474
|
+
ok: { type: "boolean" }
|
|
31475
|
+
},
|
|
31476
|
+
required: ["batch", "ok"],
|
|
31477
|
+
type: "object"
|
|
31478
|
+
}
|
|
31479
|
+
}
|
|
31480
|
+
},
|
|
31481
|
+
description: "OK"
|
|
31482
|
+
},
|
|
31483
|
+
400: { description: "Bad Request" },
|
|
31484
|
+
401: { description: "Unauthorized" }
|
|
31485
|
+
},
|
|
31486
|
+
security: [
|
|
31487
|
+
{ pat_with_workspace: [] },
|
|
31488
|
+
{ console_session_with_workspace: [] },
|
|
31489
|
+
{ api_key: [] }
|
|
31490
|
+
],
|
|
31491
|
+
summary: "/access_methods/get_related",
|
|
31492
|
+
tags: [],
|
|
31493
|
+
"x-batch-type": "access_methods",
|
|
31494
|
+
"x-draft": "Early access.",
|
|
31495
|
+
"x-fern-sdk-group-name": ["access_methods"],
|
|
31496
|
+
"x-fern-sdk-method-name": "get_related",
|
|
31497
|
+
"x-fern-sdk-return-value": "batch",
|
|
31498
|
+
"x-response-key": "batch",
|
|
31499
|
+
"x-title": "Get related Access Method resources"
|
|
31500
|
+
},
|
|
31501
|
+
post: {
|
|
31502
|
+
description: "Gets all related resources for one or more Access Methods.",
|
|
31503
|
+
operationId: "accessMethodsGetRelatedPost",
|
|
31504
|
+
requestBody: {
|
|
31505
|
+
content: {
|
|
31506
|
+
"application/json": {
|
|
31507
|
+
schema: {
|
|
31508
|
+
properties: {
|
|
31509
|
+
access_method_ids: {
|
|
31510
|
+
description: "IDs of the access methods that you want to get along with their related resources.",
|
|
31511
|
+
items: { format: "uuid", type: "string" },
|
|
31512
|
+
type: "array"
|
|
31513
|
+
},
|
|
31514
|
+
exclude: {
|
|
31515
|
+
items: {
|
|
31516
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
31517
|
+
type: "string"
|
|
31518
|
+
},
|
|
31519
|
+
type: "array"
|
|
31520
|
+
},
|
|
31521
|
+
include: {
|
|
31522
|
+
items: {
|
|
31523
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
31524
|
+
type: "string"
|
|
31525
|
+
},
|
|
31526
|
+
type: "array"
|
|
31527
|
+
}
|
|
31528
|
+
},
|
|
31529
|
+
required: ["access_method_ids"],
|
|
31530
|
+
type: "object"
|
|
31531
|
+
}
|
|
31532
|
+
}
|
|
31533
|
+
}
|
|
31534
|
+
},
|
|
31535
|
+
responses: {
|
|
31536
|
+
200: {
|
|
31537
|
+
content: {
|
|
31538
|
+
"application/json": {
|
|
31539
|
+
schema: {
|
|
31540
|
+
properties: {
|
|
31541
|
+
batch: {
|
|
31542
|
+
description: "Represents a resource batch.",
|
|
31543
|
+
oneOf: [
|
|
31544
|
+
{
|
|
31545
|
+
description: "ID of the affected access system user.",
|
|
31546
|
+
properties: {
|
|
31547
|
+
acs_entrances: {
|
|
31548
|
+
items: {
|
|
31549
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
31550
|
+
},
|
|
31551
|
+
type: "array"
|
|
31552
|
+
},
|
|
31553
|
+
batch_type: { enum: ["spaces"], type: "string" },
|
|
31554
|
+
devices: {
|
|
31555
|
+
items: { $ref: "#/components/schemas/device" },
|
|
31556
|
+
type: "array"
|
|
31557
|
+
},
|
|
31558
|
+
spaces: {
|
|
31559
|
+
items: { $ref: "#/components/schemas/space" },
|
|
31560
|
+
type: "array"
|
|
31561
|
+
}
|
|
31562
|
+
},
|
|
31563
|
+
required: ["batch_type"],
|
|
31564
|
+
type: "object"
|
|
31565
|
+
},
|
|
31566
|
+
{
|
|
31567
|
+
properties: {
|
|
31568
|
+
acs_entrances: {
|
|
31569
|
+
items: {
|
|
31570
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
31571
|
+
},
|
|
31572
|
+
type: "array"
|
|
31573
|
+
},
|
|
31574
|
+
batch_type: {
|
|
31575
|
+
enum: ["access_grants"],
|
|
31576
|
+
type: "string"
|
|
31577
|
+
},
|
|
31578
|
+
devices: {
|
|
31579
|
+
items: { $ref: "#/components/schemas/device" },
|
|
31580
|
+
type: "array"
|
|
31581
|
+
},
|
|
31582
|
+
spaces: {
|
|
31583
|
+
items: { $ref: "#/components/schemas/space" },
|
|
31584
|
+
type: "array"
|
|
31585
|
+
}
|
|
31586
|
+
},
|
|
31587
|
+
required: ["batch_type"],
|
|
31588
|
+
type: "object"
|
|
31589
|
+
},
|
|
31590
|
+
{
|
|
31591
|
+
properties: {
|
|
31592
|
+
acs_entrances: {
|
|
31593
|
+
items: {
|
|
31594
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
31595
|
+
},
|
|
31596
|
+
type: "array"
|
|
31597
|
+
},
|
|
31598
|
+
batch_type: {
|
|
31599
|
+
enum: ["access_methods"],
|
|
31600
|
+
type: "string"
|
|
31601
|
+
},
|
|
31602
|
+
devices: {
|
|
31603
|
+
items: { $ref: "#/components/schemas/device" },
|
|
31604
|
+
type: "array"
|
|
31605
|
+
},
|
|
31606
|
+
spaces: {
|
|
31607
|
+
items: { $ref: "#/components/schemas/space" },
|
|
31608
|
+
type: "array"
|
|
31609
|
+
}
|
|
31610
|
+
},
|
|
31611
|
+
required: ["batch_type"],
|
|
31612
|
+
type: "object"
|
|
31613
|
+
}
|
|
31614
|
+
],
|
|
31615
|
+
"x-route-path": "/"
|
|
31616
|
+
},
|
|
31617
|
+
ok: { type: "boolean" }
|
|
31618
|
+
},
|
|
31619
|
+
required: ["batch", "ok"],
|
|
31620
|
+
type: "object"
|
|
31621
|
+
}
|
|
31622
|
+
}
|
|
31623
|
+
},
|
|
31624
|
+
description: "OK"
|
|
31625
|
+
},
|
|
31626
|
+
400: { description: "Bad Request" },
|
|
31627
|
+
401: { description: "Unauthorized" }
|
|
31628
|
+
},
|
|
31629
|
+
security: [
|
|
31630
|
+
{ pat_with_workspace: [] },
|
|
31631
|
+
{ console_session_with_workspace: [] },
|
|
31632
|
+
{ api_key: [] }
|
|
31633
|
+
],
|
|
31634
|
+
summary: "/access_methods/get_related",
|
|
31635
|
+
tags: [],
|
|
31636
|
+
"x-batch-type": "access_methods",
|
|
31637
|
+
"x-draft": "Early access.",
|
|
31638
|
+
"x-fern-sdk-group-name": ["access_methods"],
|
|
31639
|
+
"x-fern-sdk-method-name": "get_related",
|
|
31640
|
+
"x-fern-sdk-return-value": "batch",
|
|
31641
|
+
"x-response-key": "batch",
|
|
31642
|
+
"x-title": "Get related Access Method resources"
|
|
31643
|
+
}
|
|
31644
|
+
},
|
|
31500
31645
|
"/access_methods/list": {
|
|
31501
31646
|
get: {
|
|
31502
31647
|
description: "Lists all access methods, usually filtered by Access Grant.",
|
|
@@ -41998,7 +42143,7 @@ var openapi_default = {
|
|
|
41998
42143
|
},
|
|
41999
42144
|
"/devices/simulate/connect_to_hub": {
|
|
42000
42145
|
post: {
|
|
42001
|
-
description: "Simulates bringing the Wi
|
|
42146
|
+
description: "Simulates bringing the Wi\u2011Fi hub (bridge) back online for a device.\nOnly applicable for sandbox workspaces and currently\nimplemented for August and TTLock locks.\nThis will clear the corresponding `hub_disconnected` or\n`ttlock_lock_not_paired_to_gateway` error on the device.",
|
|
42002
42147
|
operationId: "devicesSimulateConnectToHubPost",
|
|
42003
42148
|
requestBody: {
|
|
42004
42149
|
content: {
|
|
@@ -49444,6 +49589,30 @@ var openapi_default = {
|
|
|
49444
49589
|
},
|
|
49445
49590
|
required: ["batch_type"],
|
|
49446
49591
|
type: "object"
|
|
49592
|
+
},
|
|
49593
|
+
{
|
|
49594
|
+
properties: {
|
|
49595
|
+
acs_entrances: {
|
|
49596
|
+
items: {
|
|
49597
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
49598
|
+
},
|
|
49599
|
+
type: "array"
|
|
49600
|
+
},
|
|
49601
|
+
batch_type: {
|
|
49602
|
+
enum: ["access_methods"],
|
|
49603
|
+
type: "string"
|
|
49604
|
+
},
|
|
49605
|
+
devices: {
|
|
49606
|
+
items: { $ref: "#/components/schemas/device" },
|
|
49607
|
+
type: "array"
|
|
49608
|
+
},
|
|
49609
|
+
spaces: {
|
|
49610
|
+
items: { $ref: "#/components/schemas/space" },
|
|
49611
|
+
type: "array"
|
|
49612
|
+
}
|
|
49613
|
+
},
|
|
49614
|
+
required: ["batch_type"],
|
|
49615
|
+
type: "object"
|
|
49447
49616
|
}
|
|
49448
49617
|
],
|
|
49449
49618
|
"x-route-path": "/"
|
|
@@ -49563,6 +49732,30 @@ var openapi_default = {
|
|
|
49563
49732
|
},
|
|
49564
49733
|
required: ["batch_type"],
|
|
49565
49734
|
type: "object"
|
|
49735
|
+
},
|
|
49736
|
+
{
|
|
49737
|
+
properties: {
|
|
49738
|
+
acs_entrances: {
|
|
49739
|
+
items: {
|
|
49740
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
49741
|
+
},
|
|
49742
|
+
type: "array"
|
|
49743
|
+
},
|
|
49744
|
+
batch_type: {
|
|
49745
|
+
enum: ["access_methods"],
|
|
49746
|
+
type: "string"
|
|
49747
|
+
},
|
|
49748
|
+
devices: {
|
|
49749
|
+
items: { $ref: "#/components/schemas/device" },
|
|
49750
|
+
type: "array"
|
|
49751
|
+
},
|
|
49752
|
+
spaces: {
|
|
49753
|
+
items: { $ref: "#/components/schemas/space" },
|
|
49754
|
+
type: "array"
|
|
49755
|
+
}
|
|
49756
|
+
},
|
|
49757
|
+
required: ["batch_type"],
|
|
49758
|
+
type: "object"
|
|
49566
49759
|
}
|
|
49567
49760
|
],
|
|
49568
49761
|
"x-route-path": "/"
|