@seamapi/types 1.477.0 → 1.478.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 +67 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +226 -0
- package/dist/index.cjs +67 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +236 -0
- package/lib/seam/connect/models/batch.js +3 -0
- package/lib/seam/connect/models/batch.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +24 -0
- package/lib/seam/connect/openapi.js +16 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +84 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/batch.ts +3 -0
- package/src/lib/seam/connect/openapi.ts +16 -0
- package/src/lib/seam/connect/route-types.ts +88 -0
package/dist/connect.cjs
CHANGED
|
@@ -2268,6 +2268,53 @@ var unmanaged_access_code = access_code.pick({
|
|
|
2268
2268
|
|
|
2269
2269
|
- [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks)
|
|
2270
2270
|
`);
|
|
2271
|
+
var requested_access_method = zod.z.object({
|
|
2272
|
+
display_name: zod.z.string().describe("Display name of the access method."),
|
|
2273
|
+
mode: zod.z.enum(["code", "card", "mobile_key"]).describe(
|
|
2274
|
+
"Access method mode. Supported values: `code`, `card`, `mobile_key`."
|
|
2275
|
+
),
|
|
2276
|
+
created_at: zod.z.string().datetime().describe(
|
|
2277
|
+
"Date and time at which the requested access method was added to the Access Grant."
|
|
2278
|
+
),
|
|
2279
|
+
created_access_method_ids: zod.z.array(zod.z.string().uuid()).describe(
|
|
2280
|
+
"IDs of the access methods created for the requested access method."
|
|
2281
|
+
)
|
|
2282
|
+
});
|
|
2283
|
+
|
|
2284
|
+
// src/lib/seam/connect/models/access-grants/access-grant.ts
|
|
2285
|
+
var access_grant = zod.z.object({
|
|
2286
|
+
workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the Access Grant."),
|
|
2287
|
+
access_grant_id: zod.z.string().uuid().describe("ID of the Access Grant."),
|
|
2288
|
+
access_grant_key: zod.z.string().optional().describe("Unique key for the access grant within the workspace."),
|
|
2289
|
+
user_identity_id: zod.z.string().uuid().describe("ID of user identity to which the Access Grant gives access."),
|
|
2290
|
+
location_ids: zod.z.array(zod.z.string().uuid()).describe(`
|
|
2291
|
+
---
|
|
2292
|
+
deprecated: Use \`space_ids\`.
|
|
2293
|
+
---
|
|
2294
|
+
`),
|
|
2295
|
+
space_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of the spaces to which the Access Grant gives access."),
|
|
2296
|
+
requested_access_methods: zod.z.array(requested_access_method).describe("Access methods that the user requested for the Access Grant."),
|
|
2297
|
+
access_method_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of the access methods created for the Access Grant."),
|
|
2298
|
+
client_session_token: zod.z.string().optional().describe(
|
|
2299
|
+
"Client Session Token. Only returned if the Access Grant has a mobile_key access method."
|
|
2300
|
+
),
|
|
2301
|
+
name: zod.z.string().nullable().describe(
|
|
2302
|
+
"Name of the Access Grant. If not provided, the display name will be computed."
|
|
2303
|
+
),
|
|
2304
|
+
display_name: zod.z.string().describe("Display name of the Access Grant."),
|
|
2305
|
+
instant_key_url: zod.z.string().url().optional().describe(
|
|
2306
|
+
"Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. "
|
|
2307
|
+
),
|
|
2308
|
+
created_at: zod.z.string().datetime().describe("Date and time at which the Access Grant was created."),
|
|
2309
|
+
starts_at: zod.z.string().datetime().describe("Date and time at which the Access Grant starts."),
|
|
2310
|
+
ends_at: zod.z.string().datetime().nullable().describe("Date and time at which the Access Grant ends.")
|
|
2311
|
+
}).describe(`
|
|
2312
|
+
---
|
|
2313
|
+
draft: Early access.
|
|
2314
|
+
route_path: /access_grants
|
|
2315
|
+
---
|
|
2316
|
+
Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant.
|
|
2317
|
+
`);
|
|
2271
2318
|
var access_method = zod.z.object({
|
|
2272
2319
|
workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the access method."),
|
|
2273
2320
|
access_method_id: zod.z.string().uuid().describe("ID of the access method."),
|
|
@@ -4161,7 +4208,8 @@ zod.z.object({
|
|
|
4161
4208
|
unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
|
|
4162
4209
|
unmanaged_devices: unmanaged_device.array().optional(),
|
|
4163
4210
|
connect_webviews: connect_webview.array().optional(),
|
|
4164
|
-
access_methods: access_method.array().optional()
|
|
4211
|
+
access_methods: access_method.array().optional(),
|
|
4212
|
+
access_grants: access_grant.array().optional()
|
|
4165
4213
|
}).describe("A batch of workspace resources.");
|
|
4166
4214
|
var batch = zod.z.object({
|
|
4167
4215
|
batch_type: zod.z.enum([
|
|
@@ -4185,7 +4233,8 @@ var batch = zod.z.object({
|
|
|
4185
4233
|
unmanaged_acs_access_groups: unmanaged_acs_access_group.array().optional(),
|
|
4186
4234
|
unmanaged_devices: unmanaged_device.array().optional(),
|
|
4187
4235
|
connect_webviews: connect_webview.array().optional(),
|
|
4188
|
-
access_methods: access_method.array().optional()
|
|
4236
|
+
access_methods: access_method.array().optional(),
|
|
4237
|
+
access_grants: access_grant.array().optional()
|
|
4189
4238
|
}).describe("A batch of workspace resources.");
|
|
4190
4239
|
var bridge = zod.z.object({
|
|
4191
4240
|
bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
|
|
@@ -31729,6 +31778,10 @@ var openapi_default = {
|
|
|
31729
31778
|
batch: {
|
|
31730
31779
|
description: "A batch of workspace resources.",
|
|
31731
31780
|
properties: {
|
|
31781
|
+
access_grants: {
|
|
31782
|
+
items: { $ref: "#/components/schemas/access_grant" },
|
|
31783
|
+
type: "array"
|
|
31784
|
+
},
|
|
31732
31785
|
access_methods: {
|
|
31733
31786
|
items: { $ref: "#/components/schemas/access_method" },
|
|
31734
31787
|
type: "array"
|
|
@@ -31890,6 +31943,10 @@ var openapi_default = {
|
|
|
31890
31943
|
batch: {
|
|
31891
31944
|
description: "A batch of workspace resources.",
|
|
31892
31945
|
properties: {
|
|
31946
|
+
access_grants: {
|
|
31947
|
+
items: { $ref: "#/components/schemas/access_grant" },
|
|
31948
|
+
type: "array"
|
|
31949
|
+
},
|
|
31893
31950
|
access_methods: {
|
|
31894
31951
|
items: { $ref: "#/components/schemas/access_method" },
|
|
31895
31952
|
type: "array"
|
|
@@ -57703,6 +57760,10 @@ var openapi_default = {
|
|
|
57703
57760
|
batch: {
|
|
57704
57761
|
description: "A batch of workspace resources.",
|
|
57705
57762
|
properties: {
|
|
57763
|
+
access_grants: {
|
|
57764
|
+
items: { $ref: "#/components/schemas/access_grant" },
|
|
57765
|
+
type: "array"
|
|
57766
|
+
},
|
|
57706
57767
|
access_methods: {
|
|
57707
57768
|
items: { $ref: "#/components/schemas/access_method" },
|
|
57708
57769
|
type: "array"
|
|
@@ -57841,6 +57902,10 @@ var openapi_default = {
|
|
|
57841
57902
|
batch: {
|
|
57842
57903
|
description: "A batch of workspace resources.",
|
|
57843
57904
|
properties: {
|
|
57905
|
+
access_grants: {
|
|
57906
|
+
items: { $ref: "#/components/schemas/access_grant" },
|
|
57907
|
+
type: "array"
|
|
57908
|
+
},
|
|
57844
57909
|
access_methods: {
|
|
57845
57910
|
items: { $ref: "#/components/schemas/access_method" },
|
|
57846
57911
|
type: "array"
|