@seamapi/types 1.287.0 → 1.287.2
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 +63 -54
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +58 -99
- 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/schedule.js +8 -2
- package/lib/seam/connect/models/schedule.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +7 -30
- package/lib/seam/connect/openapi.js +42 -38
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +51 -69
- 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/schedule.ts +12 -2
- package/src/lib/seam/connect/openapi.ts +49 -38
- package/src/lib/seam/connect/route-types.ts +51 -69
package/dist/connect.cjs
CHANGED
|
@@ -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`.",
|
|
@@ -9474,18 +9488,9 @@ var openapi_default = {
|
|
|
9474
9488
|
"application/json": {
|
|
9475
9489
|
schema: {
|
|
9476
9490
|
properties: {
|
|
9477
|
-
allow_external_modification: { type: "boolean" },
|
|
9478
|
-
code: {
|
|
9479
|
-
maxLength: 9,
|
|
9480
|
-
minLength: 4,
|
|
9481
|
-
pattern: "^\\d+$",
|
|
9482
|
-
type: "string"
|
|
9483
|
-
},
|
|
9484
9491
|
common_code_key: { type: "string" },
|
|
9485
9492
|
ends_at: { type: "string" },
|
|
9486
|
-
is_external_modification_allowed: { type: "boolean" },
|
|
9487
9493
|
name: { type: "string" },
|
|
9488
|
-
prefer_native_scheduling: { type: "boolean" },
|
|
9489
9494
|
starts_at: { type: "string" }
|
|
9490
9495
|
},
|
|
9491
9496
|
required: ["common_code_key"],
|
|
@@ -9527,18 +9532,9 @@ var openapi_default = {
|
|
|
9527
9532
|
"application/json": {
|
|
9528
9533
|
schema: {
|
|
9529
9534
|
properties: {
|
|
9530
|
-
allow_external_modification: { type: "boolean" },
|
|
9531
|
-
code: {
|
|
9532
|
-
maxLength: 9,
|
|
9533
|
-
minLength: 4,
|
|
9534
|
-
pattern: "^\\d+$",
|
|
9535
|
-
type: "string"
|
|
9536
|
-
},
|
|
9537
9535
|
common_code_key: { type: "string" },
|
|
9538
9536
|
ends_at: { type: "string" },
|
|
9539
|
-
is_external_modification_allowed: { type: "boolean" },
|
|
9540
9537
|
name: { type: "string" },
|
|
9541
|
-
prefer_native_scheduling: { type: "boolean" },
|
|
9542
9538
|
starts_at: { type: "string" }
|
|
9543
9539
|
},
|
|
9544
9540
|
required: ["common_code_key"],
|
|
@@ -10006,12 +10002,12 @@ var openapi_default = {
|
|
|
10006
10002
|
"brivo_group"
|
|
10007
10003
|
],
|
|
10008
10004
|
type: "string",
|
|
10009
|
-
"x-deprecated": "
|
|
10005
|
+
"x-deprecated": "Use `external_type`."
|
|
10010
10006
|
},
|
|
10011
10007
|
access_group_type_display_name: {
|
|
10012
10008
|
deprecated: true,
|
|
10013
10009
|
type: "string",
|
|
10014
|
-
"x-deprecated": "
|
|
10010
|
+
"x-deprecated": "Use `external_type_display_name`."
|
|
10015
10011
|
},
|
|
10016
10012
|
acs_access_group_id: {
|
|
10017
10013
|
description: "ID of the access group.",
|
|
@@ -10138,12 +10134,12 @@ var openapi_default = {
|
|
|
10138
10134
|
"brivo_group"
|
|
10139
10135
|
],
|
|
10140
10136
|
type: "string",
|
|
10141
|
-
"x-deprecated": "
|
|
10137
|
+
"x-deprecated": "Use `external_type`."
|
|
10142
10138
|
},
|
|
10143
10139
|
access_group_type_display_name: {
|
|
10144
10140
|
deprecated: true,
|
|
10145
10141
|
type: "string",
|
|
10146
|
-
"x-deprecated": "
|
|
10142
|
+
"x-deprecated": "Use `external_type_display_name`."
|
|
10147
10143
|
},
|
|
10148
10144
|
acs_access_group_id: {
|
|
10149
10145
|
description: "ID of the access group.",
|
|
@@ -11021,7 +11017,7 @@ var openapi_default = {
|
|
|
11021
11017
|
schema: {
|
|
11022
11018
|
properties: {
|
|
11023
11019
|
acs_credential: {
|
|
11024
|
-
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.",
|
|
11025
11021
|
properties: {
|
|
11026
11022
|
access_method: {
|
|
11027
11023
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -11277,7 +11273,7 @@ var openapi_default = {
|
|
|
11277
11273
|
properties: {
|
|
11278
11274
|
acs_credentials: {
|
|
11279
11275
|
items: {
|
|
11280
|
-
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.",
|
|
11281
11277
|
properties: {
|
|
11282
11278
|
access_method: {
|
|
11283
11279
|
description: "Access method for the credential. Supported values: `code`, `card`, `mobile_key`.",
|
|
@@ -12789,8 +12785,16 @@ var openapi_default = {
|
|
|
12789
12785
|
access_schedule: {
|
|
12790
12786
|
description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|
|
12791
12787
|
properties: {
|
|
12792
|
-
ends_at: {
|
|
12793
|
-
|
|
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
|
+
}
|
|
12794
12798
|
},
|
|
12795
12799
|
required: ["starts_at", "ends_at"],
|
|
12796
12800
|
type: "object"
|
|
@@ -13139,8 +13143,13 @@ var openapi_default = {
|
|
|
13139
13143
|
access_schedule: {
|
|
13140
13144
|
description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|
|
13141
13145
|
properties: {
|
|
13142
|
-
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
|
+
},
|
|
13143
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.",
|
|
13144
13153
|
format: "date-time",
|
|
13145
13154
|
type: "string"
|
|
13146
13155
|
}
|