@seamapi/types 1.750.0 → 1.752.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 +126 -53
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2351 -962
- package/dist/index.cjs +126 -53
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +42 -42
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.d.ts +37 -37
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +9 -9
- package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +6 -0
- package/lib/seam/connect/models/acs/acs-entrance.js +4 -0
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +63 -58
- package/lib/seam/connect/models/phones/phone-session.d.ts +16 -0
- package/lib/seam/connect/openapi.d.ts +84 -0
- package/lib/seam/connect/openapi.js +112 -42
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1606 -309
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +14 -14
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +122 -48
- package/src/lib/seam/connect/route-types.ts +1754 -254
package/dist/connect.cjs
CHANGED
|
@@ -2916,6 +2916,13 @@ var updating_entrance_membership = common_pending_mutation3.extend({
|
|
|
2916
2916
|
}).describe(
|
|
2917
2917
|
"Seam is in the process of pushing an entrance membership update to the integrated access system."
|
|
2918
2918
|
);
|
|
2919
|
+
var deferring_deletion = common_pending_mutation3.extend({
|
|
2920
|
+
mutation_code: zod.z.literal("deferring_deletion").describe(
|
|
2921
|
+
"Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires."
|
|
2922
|
+
)
|
|
2923
|
+
}).describe(
|
|
2924
|
+
"This access group is scheduled for automatic deletion when its access window expires."
|
|
2925
|
+
);
|
|
2919
2926
|
var deferring_user_membership_update = common_pending_mutation3.extend({
|
|
2920
2927
|
mutation_code: zod.z.literal("deferring_user_membership_update").describe(
|
|
2921
2928
|
"Mutation code to indicate that a scheduled user membership change is pending for this access group."
|
|
@@ -2927,35 +2934,28 @@ var deferring_user_membership_update = common_pending_mutation3.extend({
|
|
|
2927
2934
|
}).describe(
|
|
2928
2935
|
"A scheduled user membership change is pending for this access group."
|
|
2929
2936
|
);
|
|
2930
|
-
var deferring_deletion = common_pending_mutation3.extend({
|
|
2931
|
-
mutation_code: zod.z.literal("deferring_deletion").describe(
|
|
2932
|
-
"Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes."
|
|
2933
|
-
)
|
|
2934
|
-
}).describe(
|
|
2935
|
-
"This access group is scheduled for automatic deletion when its access window expires."
|
|
2936
|
-
);
|
|
2937
2937
|
var acs_access_group_pending_mutations = zod.z.discriminatedUnion(
|
|
2938
2938
|
"mutation_code",
|
|
2939
2939
|
[
|
|
2940
2940
|
creating,
|
|
2941
2941
|
deleting,
|
|
2942
|
+
deferring_deletion,
|
|
2942
2943
|
updating_group_information,
|
|
2943
2944
|
updating_access_schedule,
|
|
2944
2945
|
updating_user_membership,
|
|
2945
2946
|
updating_entrance_membership,
|
|
2946
|
-
deferring_user_membership_update
|
|
2947
|
-
deferring_deletion
|
|
2947
|
+
deferring_user_membership_update
|
|
2948
2948
|
]
|
|
2949
2949
|
);
|
|
2950
2950
|
zod.z.object({
|
|
2951
2951
|
creating: creating.optional().nullable(),
|
|
2952
2952
|
deleting: deleting.optional().nullable(),
|
|
2953
|
+
deferring_deletion: deferring_deletion.optional().nullable(),
|
|
2953
2954
|
updating_name: updating_group_information.optional().nullable(),
|
|
2954
2955
|
updating_access_schedule: updating_access_schedule.optional().nullable(),
|
|
2955
2956
|
updating_user_membership: zod.z.record(zod.z.string().uuid(), updating_user_membership).optional().nullable(),
|
|
2956
2957
|
updating_entrance_membership: zod.z.record(zod.z.string().uuid(), updating_entrance_membership).optional().nullable(),
|
|
2957
|
-
deferring_user_membership_update: zod.z.record(zod.z.string().uuid(), deferring_user_membership_update).optional().nullable()
|
|
2958
|
-
deferring_deletion: deferring_deletion.optional().nullable()
|
|
2958
|
+
deferring_user_membership_update: zod.z.record(zod.z.string().uuid(), deferring_user_membership_update).optional().nullable()
|
|
2959
2959
|
});
|
|
2960
2960
|
|
|
2961
2961
|
// src/lib/seam/connect/models/acs/acs-access-group.ts
|
|
@@ -3469,6 +3469,9 @@ var acs_entrance_capability_flags = zod.z.object({
|
|
|
3469
3469
|
),
|
|
3470
3470
|
can_belong_to_reservation: zod.z.boolean().optional().describe(
|
|
3471
3471
|
"Indicates whether the ACS entrance can belong to a reservation via an access_grant.reservation_key."
|
|
3472
|
+
),
|
|
3473
|
+
can_unlock_with_cloud_key: zod.z.boolean().optional().describe(
|
|
3474
|
+
"Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential."
|
|
3472
3475
|
)
|
|
3473
3476
|
});
|
|
3474
3477
|
var acs_entrance = zod.z.object({
|
|
@@ -9051,6 +9054,27 @@ var openapi_default = {
|
|
|
9051
9054
|
required: ["created_at", "message", "mutation_code"],
|
|
9052
9055
|
type: "object"
|
|
9053
9056
|
},
|
|
9057
|
+
{
|
|
9058
|
+
description: "This access group is scheduled for automatic deletion when its access window expires.",
|
|
9059
|
+
properties: {
|
|
9060
|
+
created_at: {
|
|
9061
|
+
description: "Date and time at which the mutation was created.",
|
|
9062
|
+
format: "date-time",
|
|
9063
|
+
type: "string"
|
|
9064
|
+
},
|
|
9065
|
+
message: {
|
|
9066
|
+
description: "Detailed description of the mutation.",
|
|
9067
|
+
type: "string"
|
|
9068
|
+
},
|
|
9069
|
+
mutation_code: {
|
|
9070
|
+
description: "Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.",
|
|
9071
|
+
enum: ["deferring_deletion"],
|
|
9072
|
+
type: "string"
|
|
9073
|
+
}
|
|
9074
|
+
},
|
|
9075
|
+
required: ["created_at", "message", "mutation_code"],
|
|
9076
|
+
type: "object"
|
|
9077
|
+
},
|
|
9054
9078
|
{
|
|
9055
9079
|
description: "Seam is in the process of pushing an access group information update to the integrated access system.",
|
|
9056
9080
|
properties: {
|
|
@@ -9307,27 +9331,6 @@ var openapi_default = {
|
|
|
9307
9331
|
"variant"
|
|
9308
9332
|
],
|
|
9309
9333
|
type: "object"
|
|
9310
|
-
},
|
|
9311
|
-
{
|
|
9312
|
-
description: "This access group is scheduled for automatic deletion when its access window expires.",
|
|
9313
|
-
properties: {
|
|
9314
|
-
created_at: {
|
|
9315
|
-
description: "Date and time at which the mutation was created.",
|
|
9316
|
-
format: "date-time",
|
|
9317
|
-
type: "string"
|
|
9318
|
-
},
|
|
9319
|
-
message: {
|
|
9320
|
-
description: "Detailed description of the mutation.",
|
|
9321
|
-
type: "string"
|
|
9322
|
-
},
|
|
9323
|
-
mutation_code: {
|
|
9324
|
-
description: "Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.",
|
|
9325
|
-
enum: ["deferring_deletion"],
|
|
9326
|
-
type: "string"
|
|
9327
|
-
}
|
|
9328
|
-
},
|
|
9329
|
-
required: ["created_at", "message", "mutation_code"],
|
|
9330
|
-
type: "object"
|
|
9331
9334
|
}
|
|
9332
9335
|
]
|
|
9333
9336
|
},
|
|
@@ -9960,6 +9963,10 @@ var openapi_default = {
|
|
|
9960
9963
|
description: "Indicates whether the ACS entrance can be unlocked with card credentials.",
|
|
9961
9964
|
type: "boolean"
|
|
9962
9965
|
},
|
|
9966
|
+
can_unlock_with_cloud_key: {
|
|
9967
|
+
description: "Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.",
|
|
9968
|
+
type: "boolean"
|
|
9969
|
+
},
|
|
9963
9970
|
can_unlock_with_code: {
|
|
9964
9971
|
description: "Indicates whether the ACS entrance can be unlocked with pin codes.",
|
|
9965
9972
|
type: "boolean"
|
|
@@ -28240,6 +28247,10 @@ var openapi_default = {
|
|
|
28240
28247
|
description: "Indicates whether the ACS entrance can be unlocked with card credentials.",
|
|
28241
28248
|
type: "boolean"
|
|
28242
28249
|
},
|
|
28250
|
+
can_unlock_with_cloud_key: {
|
|
28251
|
+
description: "Indicates whether the ACS entrance can be remotely unlocked using a cloud_key credential.",
|
|
28252
|
+
type: "boolean"
|
|
28253
|
+
},
|
|
28243
28254
|
can_unlock_with_code: {
|
|
28244
28255
|
description: "Indicates whether the ACS entrance can be unlocked with pin codes.",
|
|
28245
28256
|
type: "boolean"
|
|
@@ -30978,6 +30989,27 @@ var openapi_default = {
|
|
|
30978
30989
|
required: ["created_at", "message", "mutation_code"],
|
|
30979
30990
|
type: "object"
|
|
30980
30991
|
},
|
|
30992
|
+
{
|
|
30993
|
+
description: "This access group is scheduled for automatic deletion when its access window expires.",
|
|
30994
|
+
properties: {
|
|
30995
|
+
created_at: {
|
|
30996
|
+
description: "Date and time at which the mutation was created.",
|
|
30997
|
+
format: "date-time",
|
|
30998
|
+
type: "string"
|
|
30999
|
+
},
|
|
31000
|
+
message: {
|
|
31001
|
+
description: "Detailed description of the mutation.",
|
|
31002
|
+
type: "string"
|
|
31003
|
+
},
|
|
31004
|
+
mutation_code: {
|
|
31005
|
+
description: "Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires.",
|
|
31006
|
+
enum: ["deferring_deletion"],
|
|
31007
|
+
type: "string"
|
|
31008
|
+
}
|
|
31009
|
+
},
|
|
31010
|
+
required: ["created_at", "message", "mutation_code"],
|
|
31011
|
+
type: "object"
|
|
31012
|
+
},
|
|
30981
31013
|
{
|
|
30982
31014
|
description: "Seam is in the process of pushing an access group information update to the integrated access system.",
|
|
30983
31015
|
properties: {
|
|
@@ -31234,27 +31266,6 @@ var openapi_default = {
|
|
|
31234
31266
|
"variant"
|
|
31235
31267
|
],
|
|
31236
31268
|
type: "object"
|
|
31237
|
-
},
|
|
31238
|
-
{
|
|
31239
|
-
description: "This access group is scheduled for automatic deletion when its access window expires.",
|
|
31240
|
-
properties: {
|
|
31241
|
-
created_at: {
|
|
31242
|
-
description: "Date and time at which the mutation was created.",
|
|
31243
|
-
format: "date-time",
|
|
31244
|
-
type: "string"
|
|
31245
|
-
},
|
|
31246
|
-
message: {
|
|
31247
|
-
description: "Detailed description of the mutation.",
|
|
31248
|
-
type: "string"
|
|
31249
|
-
},
|
|
31250
|
-
mutation_code: {
|
|
31251
|
-
description: "Mutation code to indicate that this access group is scheduled for deletion when its ends_at time passes.",
|
|
31252
|
-
enum: ["deferring_deletion"],
|
|
31253
|
-
type: "string"
|
|
31254
|
-
}
|
|
31255
|
-
},
|
|
31256
|
-
required: ["created_at", "message", "mutation_code"],
|
|
31257
|
-
type: "object"
|
|
31258
31269
|
}
|
|
31259
31270
|
]
|
|
31260
31271
|
},
|
|
@@ -46553,6 +46564,68 @@ var openapi_default = {
|
|
|
46553
46564
|
"x-title": "List Credentials with Access to an Entrance"
|
|
46554
46565
|
}
|
|
46555
46566
|
},
|
|
46567
|
+
"/acs/entrances/unlock": {
|
|
46568
|
+
post: {
|
|
46569
|
+
description: "Remotely unlocks a specified [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) using a cloud_key credential. Returns an action attempt that tracks the progress of the unlock operation.",
|
|
46570
|
+
operationId: "acsEntrancesUnlockPost",
|
|
46571
|
+
requestBody: {
|
|
46572
|
+
content: {
|
|
46573
|
+
"application/json": {
|
|
46574
|
+
schema: {
|
|
46575
|
+
properties: {
|
|
46576
|
+
acs_credential_id: {
|
|
46577
|
+
description: "ID of the cloud_key credential to use for the unlock operation.",
|
|
46578
|
+
format: "uuid",
|
|
46579
|
+
type: "string"
|
|
46580
|
+
},
|
|
46581
|
+
acs_entrance_id: {
|
|
46582
|
+
description: "ID of the entrance to unlock.",
|
|
46583
|
+
format: "uuid",
|
|
46584
|
+
type: "string"
|
|
46585
|
+
}
|
|
46586
|
+
},
|
|
46587
|
+
required: ["acs_entrance_id", "acs_credential_id"],
|
|
46588
|
+
type: "object"
|
|
46589
|
+
}
|
|
46590
|
+
}
|
|
46591
|
+
}
|
|
46592
|
+
},
|
|
46593
|
+
responses: {
|
|
46594
|
+
200: {
|
|
46595
|
+
content: {
|
|
46596
|
+
"application/json": {
|
|
46597
|
+
schema: {
|
|
46598
|
+
properties: {
|
|
46599
|
+
action_attempt: {
|
|
46600
|
+
$ref: "#/components/schemas/action_attempt"
|
|
46601
|
+
},
|
|
46602
|
+
ok: { type: "boolean" }
|
|
46603
|
+
},
|
|
46604
|
+
required: ["action_attempt", "ok"],
|
|
46605
|
+
type: "object"
|
|
46606
|
+
}
|
|
46607
|
+
}
|
|
46608
|
+
},
|
|
46609
|
+
description: "OK"
|
|
46610
|
+
},
|
|
46611
|
+
400: { description: "Bad Request" },
|
|
46612
|
+
401: { description: "Unauthorized" }
|
|
46613
|
+
},
|
|
46614
|
+
security: [
|
|
46615
|
+
{ pat_with_workspace: [] },
|
|
46616
|
+
{ console_session_with_workspace: [] },
|
|
46617
|
+
{ api_key: [] }
|
|
46618
|
+
],
|
|
46619
|
+
summary: "/acs/entrances/unlock",
|
|
46620
|
+
tags: ["/acs"],
|
|
46621
|
+
"x-action-attempt-type": "UNLOCK_DOOR",
|
|
46622
|
+
"x-fern-sdk-group-name": ["acs", "entrances"],
|
|
46623
|
+
"x-fern-sdk-method-name": "unlock",
|
|
46624
|
+
"x-fern-sdk-return-value": "action_attempt",
|
|
46625
|
+
"x-response-key": "action_attempt",
|
|
46626
|
+
"x-title": "Unlock an Entrance"
|
|
46627
|
+
}
|
|
46628
|
+
},
|
|
46556
46629
|
"/acs/systems/get": {
|
|
46557
46630
|
get: {
|
|
46558
46631
|
description: "Returns a specified [access system](https://docs.seam.co/latest/capability-guides/access-systems).",
|