@seamapi/types 1.287.1 → 1.287.3
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 +66 -39
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +85 -92
- package/lib/seam/connect/models/acs/acs-access-group.js +5 -7
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.js +2 -4
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.js +4 -2
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.js +8 -4
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.d.ts +5 -5
- package/lib/seam/connect/models/devices/device-metadata.js +1 -1
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +7 -7
- package/lib/seam/connect/models/devices/phone.d.ts +5 -5
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -5
- package/lib/seam/connect/models/schedule.js +8 -2
- package/lib/seam/connect/models/schedule.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +8 -1
- package/lib/seam/connect/openapi.js +44 -22
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +65 -79
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +5 -7
- package/src/lib/seam/connect/models/acs/acs-credential.ts +2 -4
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +29 -25
- package/src/lib/seam/connect/models/acs/acs-user.ts +14 -6
- package/src/lib/seam/connect/models/devices/device-metadata.ts +1 -1
- package/src/lib/seam/connect/models/schedule.ts +12 -2
- package/src/lib/seam/connect/openapi.ts +51 -22
- package/src/lib/seam/connect/route-types.ts +65 -79
package/dist/connect.cjs
CHANGED
|
@@ -674,7 +674,7 @@ var device_metadata = zod.z.object({
|
|
|
674
674
|
_member_group_id: zod.z.string().optional()
|
|
675
675
|
}),
|
|
676
676
|
assa_abloy_vostio_metadata: zod.z.object({
|
|
677
|
-
|
|
677
|
+
encoder_name: zod.z.string()
|
|
678
678
|
})
|
|
679
679
|
}).partial();
|
|
680
680
|
var LOCK_DEVICE_TYPE = {
|
|
@@ -1132,12 +1132,12 @@ var common_acs_access_group = zod.z.object({
|
|
|
1132
1132
|
name: zod.z.string().describe("Name of the access group."),
|
|
1133
1133
|
access_group_type: acs_access_group_external_type.describe(`
|
|
1134
1134
|
---
|
|
1135
|
-
deprecated:
|
|
1135
|
+
deprecated: Use \`external_type\`.
|
|
1136
1136
|
---
|
|
1137
1137
|
`),
|
|
1138
1138
|
access_group_type_display_name: zod.z.string().describe(`
|
|
1139
1139
|
---
|
|
1140
|
-
deprecated:
|
|
1140
|
+
deprecated: Use \`external_type_display_name\`.
|
|
1141
1141
|
---
|
|
1142
1142
|
`),
|
|
1143
1143
|
display_name: zod.z.string(),
|
|
@@ -1151,11 +1151,8 @@ var common_acs_access_group = zod.z.object({
|
|
|
1151
1151
|
});
|
|
1152
1152
|
var acs_access_group = common_acs_access_group.extend({
|
|
1153
1153
|
is_managed: zod.z.literal(true)
|
|
1154
|
-
}).describe(`
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
The \`acs_access_group\` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
|
|
1158
|
-
`);
|
|
1154
|
+
}).describe(`Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.
|
|
1155
|
+
The \`acs_access_group\` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).`);
|
|
1159
1156
|
var unmanaged_acs_access_group = common_acs_access_group.extend({
|
|
1160
1157
|
is_managed: zod.z.literal(false)
|
|
1161
1158
|
});
|
|
@@ -1291,10 +1288,8 @@ var unmanaged_acs_credential = common_acs_credential.merge(
|
|
|
1291
1288
|
function getAcsCredentialDescription(is_managed = true) {
|
|
1292
1289
|
const resource_name = is_managed ? "acs_credential" : "unmanaged_acs_credential";
|
|
1293
1290
|
const management_clause = is_managed ? "" : ", which is not managed by Seam,";
|
|
1294
|
-
return `
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
The \`${resource_name}\` object${management_clause} represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.`.trim();
|
|
1291
|
+
return `Means by which a user gains access at an entrance.
|
|
1292
|
+
The \`${resource_name}\` object${management_clause} represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.`.trim();
|
|
1298
1293
|
}
|
|
1299
1294
|
var acs_credential_on_encoder = zod.z.object({
|
|
1300
1295
|
created_at: zod.z.string().datetime().nullable().describe("Date and time the credential was created."),
|
|
@@ -1334,7 +1329,9 @@ var acs_entrance = zod.z.object({
|
|
|
1334
1329
|
salto_ks_metadata: acs_entrance_salto_ks_metadata.optional(),
|
|
1335
1330
|
dormakaba_community_metadata: acs_entrance_dormakaba_community_metadata.optional(),
|
|
1336
1331
|
assa_abloy_vostio_metadata: acs_entrance_assa_abloy_vostio_metadata.optional()
|
|
1337
|
-
})
|
|
1332
|
+
}).describe(
|
|
1333
|
+
"Represents an [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
|
|
1334
|
+
);
|
|
1338
1335
|
var acs_system_capability_flags = zod.z.object({
|
|
1339
1336
|
can_automate_enrollment: zod.z.boolean().optional().describe(
|
|
1340
1337
|
"Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`."
|
|
@@ -1489,8 +1486,12 @@ var phone_number = zod.z.coerce.string().trim().refine(
|
|
|
1489
1486
|
}
|
|
1490
1487
|
);
|
|
1491
1488
|
var start_end_schedule = zod.z.object({
|
|
1492
|
-
starts_at: zod.z.string().datetime()
|
|
1493
|
-
|
|
1489
|
+
starts_at: zod.z.string().datetime().describe(
|
|
1490
|
+
"Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."
|
|
1491
|
+
),
|
|
1492
|
+
ends_at: zod.z.string().datetime().describe(
|
|
1493
|
+
"Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."
|
|
1494
|
+
)
|
|
1494
1495
|
});
|
|
1495
1496
|
var schedule = start_end_schedule;
|
|
1496
1497
|
|
|
@@ -1626,12 +1627,16 @@ var common_acs_user = zod.z.object({
|
|
|
1626
1627
|
var acs_user = common_acs_user.merge(
|
|
1627
1628
|
zod.z.object({
|
|
1628
1629
|
is_managed: zod.z.literal(true)
|
|
1629
|
-
})
|
|
1630
|
+
}).describe(
|
|
1631
|
+
"Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
|
|
1632
|
+
)
|
|
1630
1633
|
);
|
|
1631
1634
|
var unmanaged_acs_user = common_acs_user.merge(
|
|
1632
1635
|
zod.z.object({
|
|
1633
1636
|
is_managed: zod.z.literal(false)
|
|
1634
|
-
})
|
|
1637
|
+
}).describe(
|
|
1638
|
+
"Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
|
|
1639
|
+
)
|
|
1635
1640
|
);
|
|
1636
1641
|
var common_action_attempt = zod.z.object({
|
|
1637
1642
|
action_attempt_id: zod.z.string().uuid().describe(`
|
|
@@ -2890,7 +2895,7 @@ var openapi_default = {
|
|
|
2890
2895
|
type: "object"
|
|
2891
2896
|
},
|
|
2892
2897
|
acs_access_group: {
|
|
2893
|
-
description: "
|
|
2898
|
+
description: "Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.\nThe `acs_access_group` object represents an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).",
|
|
2894
2899
|
properties: {
|
|
2895
2900
|
access_group_type: {
|
|
2896
2901
|
deprecated: true,
|
|
@@ -2901,12 +2906,12 @@ var openapi_default = {
|
|
|
2901
2906
|
"brivo_group"
|
|
2902
2907
|
],
|
|
2903
2908
|
type: "string",
|
|
2904
|
-
"x-deprecated": "
|
|
2909
|
+
"x-deprecated": "Use `external_type`."
|
|
2905
2910
|
},
|
|
2906
2911
|
access_group_type_display_name: {
|
|
2907
2912
|
deprecated: true,
|
|
2908
2913
|
type: "string",
|
|
2909
|
-
"x-deprecated": "
|
|
2914
|
+
"x-deprecated": "Use `external_type_display_name`."
|
|
2910
2915
|
},
|
|
2911
2916
|
acs_access_group_id: {
|
|
2912
2917
|
description: "ID of the access group.",
|
|
@@ -2962,7 +2967,7 @@ var openapi_default = {
|
|
|
2962
2967
|
type: "object"
|
|
2963
2968
|
},
|
|
2964
2969
|
acs_credential: {
|
|
2965
|
-
description: "Means by which a user gains access at an entrance.\
|
|
2970
|
+
description: "Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
2966
2971
|
properties: {
|
|
2967
2972
|
access_method: {
|
|
2968
2973
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -3152,6 +3157,7 @@ var openapi_default = {
|
|
|
3152
3157
|
type: "object"
|
|
3153
3158
|
},
|
|
3154
3159
|
acs_entrance: {
|
|
3160
|
+
description: "Represents an [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).",
|
|
3155
3161
|
properties: {
|
|
3156
3162
|
acs_entrance_id: {
|
|
3157
3163
|
description: "ID of the entrance.",
|
|
@@ -3563,8 +3569,16 @@ var openapi_default = {
|
|
|
3563
3569
|
access_schedule: {
|
|
3564
3570
|
description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|
|
3565
3571
|
properties: {
|
|
3566
|
-
ends_at: {
|
|
3567
|
-
|
|
3572
|
+
ends_at: {
|
|
3573
|
+
description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
3574
|
+
format: "date-time",
|
|
3575
|
+
type: "string"
|
|
3576
|
+
},
|
|
3577
|
+
starts_at: {
|
|
3578
|
+
description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
3579
|
+
format: "date-time",
|
|
3580
|
+
type: "string"
|
|
3581
|
+
}
|
|
3568
3582
|
},
|
|
3569
3583
|
required: ["starts_at", "ends_at"],
|
|
3570
3584
|
type: "object"
|
|
@@ -4089,7 +4103,7 @@ var openapi_default = {
|
|
|
4089
4103
|
nullable: true,
|
|
4090
4104
|
oneOf: [
|
|
4091
4105
|
{
|
|
4092
|
-
description: "Means by which a user gains access at an entrance.\
|
|
4106
|
+
description: "Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
4093
4107
|
properties: {
|
|
4094
4108
|
access_method: {
|
|
4095
4109
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -4248,7 +4262,7 @@ var openapi_default = {
|
|
|
4248
4262
|
type: "object"
|
|
4249
4263
|
},
|
|
4250
4264
|
{
|
|
4251
|
-
description: "Means by which a user gains access at an entrance.\
|
|
4265
|
+
description: "Means by which a user gains access at an entrance.\nThe `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
4252
4266
|
properties: {
|
|
4253
4267
|
access_method: {
|
|
4254
4268
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -4529,10 +4543,10 @@ var openapi_default = {
|
|
|
4529
4543
|
action_type: { enum: ["ENCODE_CREDENTIAL"], type: "string" },
|
|
4530
4544
|
error: { nullable: true },
|
|
4531
4545
|
result: {
|
|
4532
|
-
description: "Means by which a user gains access at an entrance.\
|
|
4546
|
+
description: "Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
4533
4547
|
oneOf: [
|
|
4534
4548
|
{
|
|
4535
|
-
description: "Means by which a user gains access at an entrance.\
|
|
4549
|
+
description: "Means by which a user gains access at an entrance.\nThe `acs_credential` object represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
4536
4550
|
properties: {
|
|
4537
4551
|
access_method: {
|
|
4538
4552
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -4691,7 +4705,7 @@ var openapi_default = {
|
|
|
4691
4705
|
type: "object"
|
|
4692
4706
|
},
|
|
4693
4707
|
{
|
|
4694
|
-
description: "Means by which a user gains access at an entrance.\
|
|
4708
|
+
description: "Means by which a user gains access at an entrance.\nThe `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
4695
4709
|
properties: {
|
|
4696
4710
|
access_method: {
|
|
4697
4711
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -6526,8 +6540,8 @@ var openapi_default = {
|
|
|
6526
6540
|
type: "object"
|
|
6527
6541
|
},
|
|
6528
6542
|
assa_abloy_vostio_metadata: {
|
|
6529
|
-
properties: {
|
|
6530
|
-
required: ["
|
|
6543
|
+
properties: { encoder_name: { type: "string" } },
|
|
6544
|
+
required: ["encoder_name"],
|
|
6531
6545
|
type: "object"
|
|
6532
6546
|
},
|
|
6533
6547
|
august_metadata: {
|
|
@@ -9988,12 +10002,12 @@ var openapi_default = {
|
|
|
9988
10002
|
"brivo_group"
|
|
9989
10003
|
],
|
|
9990
10004
|
type: "string",
|
|
9991
|
-
"x-deprecated": "
|
|
10005
|
+
"x-deprecated": "Use `external_type`."
|
|
9992
10006
|
},
|
|
9993
10007
|
access_group_type_display_name: {
|
|
9994
10008
|
deprecated: true,
|
|
9995
10009
|
type: "string",
|
|
9996
|
-
"x-deprecated": "
|
|
10010
|
+
"x-deprecated": "Use `external_type_display_name`."
|
|
9997
10011
|
},
|
|
9998
10012
|
acs_access_group_id: {
|
|
9999
10013
|
description: "ID of the access group.",
|
|
@@ -10120,12 +10134,12 @@ var openapi_default = {
|
|
|
10120
10134
|
"brivo_group"
|
|
10121
10135
|
],
|
|
10122
10136
|
type: "string",
|
|
10123
|
-
"x-deprecated": "
|
|
10137
|
+
"x-deprecated": "Use `external_type`."
|
|
10124
10138
|
},
|
|
10125
10139
|
access_group_type_display_name: {
|
|
10126
10140
|
deprecated: true,
|
|
10127
10141
|
type: "string",
|
|
10128
|
-
"x-deprecated": "
|
|
10142
|
+
"x-deprecated": "Use `external_type_display_name`."
|
|
10129
10143
|
},
|
|
10130
10144
|
acs_access_group_id: {
|
|
10131
10145
|
description: "ID of the access group.",
|
|
@@ -11003,7 +11017,7 @@ var openapi_default = {
|
|
|
11003
11017
|
schema: {
|
|
11004
11018
|
properties: {
|
|
11005
11019
|
acs_credential: {
|
|
11006
|
-
description: "Means by which a user gains access at an entrance.\
|
|
11020
|
+
description: "Means by which a user gains access at an entrance.\nThe `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
11007
11021
|
properties: {
|
|
11008
11022
|
access_method: {
|
|
11009
11023
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -11259,7 +11273,7 @@ var openapi_default = {
|
|
|
11259
11273
|
properties: {
|
|
11260
11274
|
acs_credentials: {
|
|
11261
11275
|
items: {
|
|
11262
|
-
description: "Means by which a user gains access at an entrance.\
|
|
11276
|
+
description: "Means by which a user gains access at an entrance.\nThe `unmanaged_acs_credential` object, which is not managed by Seam, represents a credential that provides an ACS user access within an access control system. For each acs_credential object, you define the access method. You can also specify additional properties, such as a code.",
|
|
11263
11277
|
properties: {
|
|
11264
11278
|
access_method: {
|
|
11265
11279
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -12771,8 +12785,16 @@ var openapi_default = {
|
|
|
12771
12785
|
access_schedule: {
|
|
12772
12786
|
description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|
|
12773
12787
|
properties: {
|
|
12774
|
-
ends_at: {
|
|
12775
|
-
|
|
12788
|
+
ends_at: {
|
|
12789
|
+
description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
12790
|
+
format: "date-time",
|
|
12791
|
+
type: "string"
|
|
12792
|
+
},
|
|
12793
|
+
starts_at: {
|
|
12794
|
+
description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
12795
|
+
format: "date-time",
|
|
12796
|
+
type: "string"
|
|
12797
|
+
}
|
|
12776
12798
|
},
|
|
12777
12799
|
required: ["starts_at", "ends_at"],
|
|
12778
12800
|
type: "object"
|
|
@@ -13121,8 +13143,13 @@ var openapi_default = {
|
|
|
13121
13143
|
access_schedule: {
|
|
13122
13144
|
description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|
|
13123
13145
|
properties: {
|
|
13124
|
-
ends_at: {
|
|
13146
|
+
ends_at: {
|
|
13147
|
+
description: "Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
13148
|
+
format: "date-time",
|
|
13149
|
+
type: "string"
|
|
13150
|
+
},
|
|
13125
13151
|
starts_at: {
|
|
13152
|
+
description: "Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
13126
13153
|
format: "date-time",
|
|
13127
13154
|
type: "string"
|
|
13128
13155
|
}
|