@seamapi/types 1.611.0 → 1.613.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 +123 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +546 -0
- package/dist/index.cjs +123 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +71 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +11 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +26 -0
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +52 -0
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +45 -0
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +15 -0
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +288 -0
- package/lib/seam/connect/openapi.d.ts +66 -0
- package/lib/seam/connect/openapi.js +106 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +216 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +12 -0
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +20 -0
- package/src/lib/seam/connect/openapi.ts +122 -0
- package/src/lib/seam/connect/route-types.ts +240 -0
package/dist/index.cjs
CHANGED
|
@@ -2037,6 +2037,9 @@ var wyze_potential_duplicate_code = common_access_code_error.extend({
|
|
|
2037
2037
|
var dormakaba_oracode_no_valid_user_level = common_access_code_error.extend({
|
|
2038
2038
|
error_code: zod.z.literal("dormakaba_oracode_no_valid_user_level").describe(error_code_description3)
|
|
2039
2039
|
}).describe("No valid user level for Oracode.");
|
|
2040
|
+
var keynest_unsupported_third_party_locker = common_access_code_error.extend({
|
|
2041
|
+
error_code: zod.z.literal("keynest_unsupported_third_party_locker").describe(error_code_description3)
|
|
2042
|
+
}).describe("KeyNest locker is not supported.");
|
|
2040
2043
|
var access_code_error = zod.z.discriminatedUnion("error_code", [
|
|
2041
2044
|
smartthings_failed_to_set_access_code_error,
|
|
2042
2045
|
smartthings_failed_to_set_after_multiple_retries,
|
|
@@ -2062,7 +2065,8 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
|
|
|
2062
2065
|
wyze_duplicate_code_name,
|
|
2063
2066
|
wyze_potential_duplicate_code,
|
|
2064
2067
|
dormakaba_oracode_no_valid_user_level,
|
|
2065
|
-
kwikset_insufficient_permissions
|
|
2068
|
+
kwikset_insufficient_permissions,
|
|
2069
|
+
keynest_unsupported_third_party_locker
|
|
2066
2070
|
]).describe(
|
|
2067
2071
|
"Errors associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes)."
|
|
2068
2072
|
);
|
|
@@ -2091,7 +2095,8 @@ zod.z.object({
|
|
|
2091
2095
|
hubitat_no_free_positions_available: hubitat_no_free_positions_available.optional().nullable(),
|
|
2092
2096
|
wyze_duplicate_code_name: wyze_duplicate_code_name.optional().nullable(),
|
|
2093
2097
|
wyze_potential_duplicate_code: wyze_potential_duplicate_code.optional().nullable(),
|
|
2094
|
-
dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level.optional().nullable()
|
|
2098
|
+
dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level.optional().nullable(),
|
|
2099
|
+
keynest_unsupported_third_party_locker: keynest_unsupported_third_party_locker.optional().nullable()
|
|
2095
2100
|
});
|
|
2096
2101
|
var common_access_code_warning = zod.z.object({
|
|
2097
2102
|
message: zod.z.string().describe(
|
|
@@ -3250,6 +3255,14 @@ var deleting = common_pending_mutation.extend({
|
|
|
3250
3255
|
}).describe(
|
|
3251
3256
|
"Seam is in the process of pushing a user deletion to the integrated access system."
|
|
3252
3257
|
);
|
|
3258
|
+
var deferring_creation = common_pending_mutation.extend({
|
|
3259
|
+
mutation_code: zod.z.literal("deferring_creation").describe(
|
|
3260
|
+
"Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time."
|
|
3261
|
+
),
|
|
3262
|
+
scheduled_at: zod.z.string().datetime().optional().nullable().describe("Optional: When the user creation is scheduled to occur.")
|
|
3263
|
+
}).describe(
|
|
3264
|
+
"User exists in Seam but has not been pushed to the provider yet. Will be created when a credential is issued."
|
|
3265
|
+
);
|
|
3253
3266
|
var acs_user_info = zod.z.object({
|
|
3254
3267
|
email_address: zod.z.string().email().nullable().describe("Email address of the access system user."),
|
|
3255
3268
|
full_name: zod.z.string().nullable().describe("Full name of the access system user."),
|
|
@@ -3302,6 +3315,7 @@ var acs_user_pending_mutations = zod.z.discriminatedUnion(
|
|
|
3302
3315
|
[
|
|
3303
3316
|
creating,
|
|
3304
3317
|
deleting,
|
|
3318
|
+
deferring_creation,
|
|
3305
3319
|
updating_user_information_mutation,
|
|
3306
3320
|
updating_access_schedule_mutation,
|
|
3307
3321
|
updating_suspension_state_mutation,
|
|
@@ -3311,6 +3325,7 @@ var acs_user_pending_mutations = zod.z.discriminatedUnion(
|
|
|
3311
3325
|
zod.z.object({
|
|
3312
3326
|
creating: creating.optional().nullable(),
|
|
3313
3327
|
deleting: deleting.optional().nullable(),
|
|
3328
|
+
deferring_creation: deferring_creation.optional().nullable(),
|
|
3314
3329
|
updating_access_schedule: updating_access_schedule_mutation.optional().nullable(),
|
|
3315
3330
|
updating_group_membership: zod.z.map(zod.z.string().uuid(), updating_group_membership_mutation).optional().nullable(),
|
|
3316
3331
|
updating_suspension_state: updating_suspension_state_mutation.optional().nullable(),
|
|
@@ -6502,6 +6517,32 @@ var openapi_default = {
|
|
|
6502
6517
|
required: ["message", "is_access_code_error", "error_code"],
|
|
6503
6518
|
type: "object"
|
|
6504
6519
|
},
|
|
6520
|
+
{
|
|
6521
|
+
description: "KeyNest locker is not supported.",
|
|
6522
|
+
properties: {
|
|
6523
|
+
created_at: {
|
|
6524
|
+
description: "Date and time at which Seam created the error.",
|
|
6525
|
+
format: "date-time",
|
|
6526
|
+
type: "string"
|
|
6527
|
+
},
|
|
6528
|
+
error_code: {
|
|
6529
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
6530
|
+
enum: ["keynest_unsupported_third_party_locker"],
|
|
6531
|
+
type: "string"
|
|
6532
|
+
},
|
|
6533
|
+
is_access_code_error: {
|
|
6534
|
+
description: "Indicates that this is an access code error.",
|
|
6535
|
+
enum: [true],
|
|
6536
|
+
type: "boolean"
|
|
6537
|
+
},
|
|
6538
|
+
message: {
|
|
6539
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
6540
|
+
type: "string"
|
|
6541
|
+
}
|
|
6542
|
+
},
|
|
6543
|
+
required: ["message", "is_access_code_error", "error_code"],
|
|
6544
|
+
type: "object"
|
|
6545
|
+
},
|
|
6505
6546
|
{
|
|
6506
6547
|
description: "Indicates that the account is disconnected.",
|
|
6507
6548
|
properties: {
|
|
@@ -9155,6 +9196,33 @@ var openapi_default = {
|
|
|
9155
9196
|
required: ["created_at", "message", "mutation_code"],
|
|
9156
9197
|
type: "object"
|
|
9157
9198
|
},
|
|
9199
|
+
{
|
|
9200
|
+
description: "User exists in Seam but has not been pushed to the provider yet. Will be created when a credential is issued.",
|
|
9201
|
+
properties: {
|
|
9202
|
+
created_at: {
|
|
9203
|
+
description: "Date and time at which the mutation was created.",
|
|
9204
|
+
format: "date-time",
|
|
9205
|
+
type: "string"
|
|
9206
|
+
},
|
|
9207
|
+
message: {
|
|
9208
|
+
description: "Detailed description of the mutation.",
|
|
9209
|
+
type: "string"
|
|
9210
|
+
},
|
|
9211
|
+
mutation_code: {
|
|
9212
|
+
description: "Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time.",
|
|
9213
|
+
enum: ["deferring_creation"],
|
|
9214
|
+
type: "string"
|
|
9215
|
+
},
|
|
9216
|
+
scheduled_at: {
|
|
9217
|
+
description: "Optional: When the user creation is scheduled to occur.",
|
|
9218
|
+
format: "date-time",
|
|
9219
|
+
nullable: true,
|
|
9220
|
+
type: "string"
|
|
9221
|
+
}
|
|
9222
|
+
},
|
|
9223
|
+
required: ["created_at", "message", "mutation_code"],
|
|
9224
|
+
type: "object"
|
|
9225
|
+
},
|
|
9158
9226
|
{
|
|
9159
9227
|
properties: {
|
|
9160
9228
|
created_at: {
|
|
@@ -25449,6 +25517,32 @@ var openapi_default = {
|
|
|
25449
25517
|
required: ["message", "is_access_code_error", "error_code"],
|
|
25450
25518
|
type: "object"
|
|
25451
25519
|
},
|
|
25520
|
+
{
|
|
25521
|
+
description: "KeyNest locker is not supported.",
|
|
25522
|
+
properties: {
|
|
25523
|
+
created_at: {
|
|
25524
|
+
description: "Date and time at which Seam created the error.",
|
|
25525
|
+
format: "date-time",
|
|
25526
|
+
type: "string"
|
|
25527
|
+
},
|
|
25528
|
+
error_code: {
|
|
25529
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
25530
|
+
enum: ["keynest_unsupported_third_party_locker"],
|
|
25531
|
+
type: "string"
|
|
25532
|
+
},
|
|
25533
|
+
is_access_code_error: {
|
|
25534
|
+
description: "Indicates that this is an access code error.",
|
|
25535
|
+
enum: [true],
|
|
25536
|
+
type: "boolean"
|
|
25537
|
+
},
|
|
25538
|
+
message: {
|
|
25539
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
25540
|
+
type: "string"
|
|
25541
|
+
}
|
|
25542
|
+
},
|
|
25543
|
+
required: ["message", "is_access_code_error", "error_code"],
|
|
25544
|
+
type: "object"
|
|
25545
|
+
},
|
|
25452
25546
|
{
|
|
25453
25547
|
description: "Indicates that the account is disconnected.",
|
|
25454
25548
|
properties: {
|
|
@@ -27002,6 +27096,33 @@ var openapi_default = {
|
|
|
27002
27096
|
required: ["created_at", "message", "mutation_code"],
|
|
27003
27097
|
type: "object"
|
|
27004
27098
|
},
|
|
27099
|
+
{
|
|
27100
|
+
description: "User exists in Seam but has not been pushed to the provider yet. Will be created when a credential is issued.",
|
|
27101
|
+
properties: {
|
|
27102
|
+
created_at: {
|
|
27103
|
+
description: "Date and time at which the mutation was created.",
|
|
27104
|
+
format: "date-time",
|
|
27105
|
+
type: "string"
|
|
27106
|
+
},
|
|
27107
|
+
message: {
|
|
27108
|
+
description: "Detailed description of the mutation.",
|
|
27109
|
+
type: "string"
|
|
27110
|
+
},
|
|
27111
|
+
mutation_code: {
|
|
27112
|
+
description: "Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time.",
|
|
27113
|
+
enum: ["deferring_creation"],
|
|
27114
|
+
type: "string"
|
|
27115
|
+
},
|
|
27116
|
+
scheduled_at: {
|
|
27117
|
+
description: "Optional: When the user creation is scheduled to occur.",
|
|
27118
|
+
format: "date-time",
|
|
27119
|
+
nullable: true,
|
|
27120
|
+
type: "string"
|
|
27121
|
+
}
|
|
27122
|
+
},
|
|
27123
|
+
required: ["created_at", "message", "mutation_code"],
|
|
27124
|
+
type: "object"
|
|
27125
|
+
},
|
|
27005
27126
|
{
|
|
27006
27127
|
properties: {
|
|
27007
27128
|
created_at: {
|