@seamapi/types 1.473.0 → 1.474.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/dist/connect.cjs CHANGED
@@ -2265,6 +2265,29 @@ var unmanaged_access_code = access_code.pick({
2265
2265
 
2266
2266
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks)
2267
2267
  `);
2268
+ var access_method = zod.z.object({
2269
+ workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the access method."),
2270
+ access_method_id: zod.z.string().uuid().describe("ID of the access method."),
2271
+ display_name: zod.z.string().describe("Display name of the access method."),
2272
+ mode: zod.z.enum(["code", "card", "mobile_key"]).describe(
2273
+ "Access method mode. Supported values: `code`, `card`, `mobile_key`."
2274
+ ),
2275
+ created_at: zod.z.string().datetime().describe("Date and time at which the access method was created."),
2276
+ issued_at: zod.z.string().datetime().nullable().describe("Date and time at which the access method was issued."),
2277
+ is_issued: zod.z.boolean().describe("Indicates whether the access method has been issued."),
2278
+ instant_key_url: zod.z.string().url().optional().describe("URL of the Instant Key for mobile key access methods."),
2279
+ client_session_token: zod.z.string().optional().describe("Token of the client session associated with the access method."),
2280
+ is_encoding_required: zod.z.boolean().optional().describe(
2281
+ "Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method."
2282
+ ),
2283
+ code: zod.z.string().optional().describe("The actual PIN code for code access methods.")
2284
+ }).describe(`
2285
+ ---
2286
+ draft: Early access.
2287
+ route_path: /access_methods
2288
+ ---
2289
+ Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.
2290
+ `);
2268
2291
  var acs_access_group_external_type = zod.z.enum([
2269
2292
  "pti_unit",
2270
2293
  "pti_access_level",
@@ -4134,7 +4157,8 @@ zod.z.object({
4134
4157
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4135
4158
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4136
4159
  unmanaged_devices: unmanaged_device.array().optional(),
4137
- connect_webviews: connect_webview.array().optional()
4160
+ connect_webviews: connect_webview.array().optional(),
4161
+ access_methods: access_method.array().optional()
4138
4162
  }).describe("A batch of workspace resources.");
4139
4163
  var batch = zod.z.object({
4140
4164
  batch_type: zod.z.enum([
@@ -4157,7 +4181,8 @@ var batch = zod.z.object({
4157
4181
  unmanaged_acs_users: unmanaged_acs_user.array().optional(),
4158
4182
  unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
4159
4183
  unmanaged_devices: unmanaged_device.array().optional(),
4160
- connect_webviews: connect_webview.array().optional()
4184
+ connect_webviews: connect_webview.array().optional(),
4185
+ access_methods: access_method.array().optional()
4161
4186
  }).describe("A batch of workspace resources.");
4162
4187
  var bridge = zod.z.object({
4163
4188
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
@@ -31685,6 +31710,10 @@ var openapi_default = {
31685
31710
  batch: {
31686
31711
  description: "A batch of workspace resources.",
31687
31712
  properties: {
31713
+ access_methods: {
31714
+ items: { $ref: "#/components/schemas/access_method" },
31715
+ type: "array"
31716
+ },
31688
31717
  acs_access_groups: {
31689
31718
  items: {
31690
31719
  $ref: "#/components/schemas/acs_access_group"
@@ -31842,6 +31871,10 @@ var openapi_default = {
31842
31871
  batch: {
31843
31872
  description: "A batch of workspace resources.",
31844
31873
  properties: {
31874
+ access_methods: {
31875
+ items: { $ref: "#/components/schemas/access_method" },
31876
+ type: "array"
31877
+ },
31845
31878
  acs_access_groups: {
31846
31879
  items: {
31847
31880
  $ref: "#/components/schemas/acs_access_group"
@@ -57216,6 +57249,10 @@ var openapi_default = {
57216
57249
  batch: {
57217
57250
  description: "A batch of workspace resources.",
57218
57251
  properties: {
57252
+ access_methods: {
57253
+ items: { $ref: "#/components/schemas/access_method" },
57254
+ type: "array"
57255
+ },
57219
57256
  acs_access_groups: {
57220
57257
  items: {
57221
57258
  $ref: "#/components/schemas/acs_access_group"
@@ -57350,6 +57387,10 @@ var openapi_default = {
57350
57387
  batch: {
57351
57388
  description: "A batch of workspace resources.",
57352
57389
  properties: {
57390
+ access_methods: {
57391
+ items: { $ref: "#/components/schemas/access_method" },
57392
+ type: "array"
57393
+ },
57353
57394
  acs_access_groups: {
57354
57395
  items: {
57355
57396
  $ref: "#/components/schemas/acs_access_group"