@seamapi/types 1.302.2 → 1.303.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 +41 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +245 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -0
- package/lib/seam/connect/models/acs/acs-credential.js +4 -0
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-user.js +8 -8
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -0
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -0
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -0
- package/lib/seam/connect/openapi.d.ts +23 -0
- package/lib/seam/connect/openapi.js +32 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +192 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +6 -0
- package/src/lib/seam/connect/models/acs/acs-user.ts +16 -16
- package/src/lib/seam/connect/openapi.ts +42 -1
- package/src/lib/seam/connect/route-types.ts +192 -1
package/dist/connect.cjs
CHANGED
|
@@ -1289,6 +1289,9 @@ var common_acs_credential = zod.z.object({
|
|
|
1289
1289
|
parent_acs_credential_id: zod.z.string().uuid().optional().describe("ID of the parent credential."),
|
|
1290
1290
|
display_name: zod.z.string().min(1).describe("Display name that corresponds to the credential type."),
|
|
1291
1291
|
code: zod.z.string().optional().nullable().describe("Access (PIN) code for the credential."),
|
|
1292
|
+
is_one_time_use: zod.z.boolean().optional().describe(
|
|
1293
|
+
'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.'
|
|
1294
|
+
),
|
|
1292
1295
|
card_number: zod.z.string().optional().nullable(),
|
|
1293
1296
|
is_issued: zod.z.boolean().optional(),
|
|
1294
1297
|
issued_at: zod.z.string().datetime().optional().nullable(),
|
|
@@ -1724,16 +1727,16 @@ var common_acs_user = zod.z.object({
|
|
|
1724
1727
|
var acs_user = common_acs_user.merge(
|
|
1725
1728
|
zod.z.object({
|
|
1726
1729
|
is_managed: zod.z.literal(true)
|
|
1727
|
-
})
|
|
1728
|
-
|
|
1729
|
-
)
|
|
1730
|
+
})
|
|
1731
|
+
).describe(
|
|
1732
|
+
"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)."
|
|
1730
1733
|
);
|
|
1731
1734
|
var unmanaged_acs_user = common_acs_user.merge(
|
|
1732
1735
|
zod.z.object({
|
|
1733
1736
|
is_managed: zod.z.literal(false)
|
|
1734
|
-
})
|
|
1735
|
-
|
|
1736
|
-
)
|
|
1737
|
+
})
|
|
1738
|
+
).describe(
|
|
1739
|
+
"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)."
|
|
1737
1740
|
);
|
|
1738
1741
|
var common_action_attempt = zod.z.object({
|
|
1739
1742
|
action_attempt_id: zod.z.string().uuid().describe(`
|
|
@@ -3164,6 +3167,10 @@ var openapi_default = {
|
|
|
3164
3167
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
3165
3168
|
type: "boolean"
|
|
3166
3169
|
},
|
|
3170
|
+
is_one_time_use: {
|
|
3171
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
3172
|
+
type: "boolean"
|
|
3173
|
+
},
|
|
3167
3174
|
issued_at: { format: "date-time", nullable: true, type: "string" },
|
|
3168
3175
|
latest_desired_state_synced_with_provider_at: {
|
|
3169
3176
|
description: "Date and time at which the state of the credential was most recently synced from Seam to the provider.",
|
|
@@ -3796,6 +3803,7 @@ var openapi_default = {
|
|
|
3796
3803
|
type: "object"
|
|
3797
3804
|
},
|
|
3798
3805
|
acs_user: {
|
|
3806
|
+
description: "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).",
|
|
3799
3807
|
properties: {
|
|
3800
3808
|
access_schedule: {
|
|
3801
3809
|
description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|
|
@@ -4418,6 +4426,10 @@ var openapi_default = {
|
|
|
4418
4426
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
4419
4427
|
type: "boolean"
|
|
4420
4428
|
},
|
|
4429
|
+
is_one_time_use: {
|
|
4430
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
4431
|
+
type: "boolean"
|
|
4432
|
+
},
|
|
4421
4433
|
issued_at: {
|
|
4422
4434
|
format: "date-time",
|
|
4423
4435
|
nullable: true,
|
|
@@ -4676,6 +4688,10 @@ var openapi_default = {
|
|
|
4676
4688
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
4677
4689
|
type: "boolean"
|
|
4678
4690
|
},
|
|
4691
|
+
is_one_time_use: {
|
|
4692
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
4693
|
+
type: "boolean"
|
|
4694
|
+
},
|
|
4679
4695
|
issued_at: {
|
|
4680
4696
|
format: "date-time",
|
|
4681
4697
|
nullable: true,
|
|
@@ -5059,6 +5075,10 @@ var openapi_default = {
|
|
|
5059
5075
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
5060
5076
|
type: "boolean"
|
|
5061
5077
|
},
|
|
5078
|
+
is_one_time_use: {
|
|
5079
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
5080
|
+
type: "boolean"
|
|
5081
|
+
},
|
|
5062
5082
|
issued_at: {
|
|
5063
5083
|
format: "date-time",
|
|
5064
5084
|
nullable: true,
|
|
@@ -5317,6 +5337,10 @@ var openapi_default = {
|
|
|
5317
5337
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
5318
5338
|
type: "boolean"
|
|
5319
5339
|
},
|
|
5340
|
+
is_one_time_use: {
|
|
5341
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
5342
|
+
type: "boolean"
|
|
5343
|
+
},
|
|
5320
5344
|
issued_at: {
|
|
5321
5345
|
format: "date-time",
|
|
5322
5346
|
nullable: true,
|
|
@@ -11446,7 +11470,7 @@ var openapi_default = {
|
|
|
11446
11470
|
type: "string"
|
|
11447
11471
|
}
|
|
11448
11472
|
},
|
|
11449
|
-
required: ["acs_user_id"],
|
|
11473
|
+
required: ["acs_user_id", "allowed_acs_entrance_id"],
|
|
11450
11474
|
type: "object"
|
|
11451
11475
|
}
|
|
11452
11476
|
}
|
|
@@ -12003,6 +12027,10 @@ var openapi_default = {
|
|
|
12003
12027
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
12004
12028
|
type: "boolean"
|
|
12005
12029
|
},
|
|
12030
|
+
is_one_time_use: {
|
|
12031
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
12032
|
+
type: "boolean"
|
|
12033
|
+
},
|
|
12006
12034
|
issued_at: {
|
|
12007
12035
|
format: "date-time",
|
|
12008
12036
|
nullable: true,
|
|
@@ -12358,6 +12386,10 @@ var openapi_default = {
|
|
|
12358
12386
|
description: "Indicates whether the credential is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).",
|
|
12359
12387
|
type: "boolean"
|
|
12360
12388
|
},
|
|
12389
|
+
is_one_time_use: {
|
|
12390
|
+
description: 'Indicates whether the credential can only be used once. If "true," the code becomes invalid after the first use.',
|
|
12391
|
+
type: "boolean"
|
|
12392
|
+
},
|
|
12361
12393
|
issued_at: {
|
|
12362
12394
|
format: "date-time",
|
|
12363
12395
|
nullable: true,
|
|
@@ -13949,6 +13981,7 @@ var openapi_default = {
|
|
|
13949
13981
|
schema: {
|
|
13950
13982
|
properties: {
|
|
13951
13983
|
acs_user: {
|
|
13984
|
+
description: "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).",
|
|
13952
13985
|
properties: {
|
|
13953
13986
|
access_schedule: {
|
|
13954
13987
|
description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|
|
@@ -14308,6 +14341,7 @@ var openapi_default = {
|
|
|
14308
14341
|
properties: {
|
|
14309
14342
|
acs_users: {
|
|
14310
14343
|
items: {
|
|
14344
|
+
description: "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).",
|
|
14311
14345
|
properties: {
|
|
14312
14346
|
access_schedule: {
|
|
14313
14347
|
description: "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|