@seamapi/types 1.920.0 → 1.922.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 +68 -34
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2 -2
- package/dist/index.cjs +68 -34
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.js +6 -1
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-client-session.js +14 -8
- package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.js +7 -4
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.js +18 -4
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +6 -1
- package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +17 -8
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +22 -21
- package/src/lib/seam/connect/openapi.ts +23 -4
- package/src/lib/seam/connect/route-types.ts +4 -2
package/dist/connect.d.cts
CHANGED
|
@@ -29521,7 +29521,7 @@ type Routes = {
|
|
|
29521
29521
|
/** Indicates whether the [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code. */
|
|
29522
29522
|
is_one_time_use?: boolean | undefined;
|
|
29523
29523
|
/** Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`. */
|
|
29524
|
-
max_time_rounding?: '1hour' | '1day' | '1h' | '1d';
|
|
29524
|
+
max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined;
|
|
29525
29525
|
};
|
|
29526
29526
|
commonParams: {};
|
|
29527
29527
|
formData: {};
|
|
@@ -39326,7 +39326,7 @@ type Routes = {
|
|
|
39326
39326
|
/** Indicates whether the [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code. */
|
|
39327
39327
|
is_one_time_use?: boolean | undefined;
|
|
39328
39328
|
/** Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`. */
|
|
39329
|
-
max_time_rounding?: ('1hour' | '1day' | '1h' | '1d') | undefined;
|
|
39329
|
+
max_time_rounding?: (('1hour' | '1day' | '1h' | '1d') | undefined) | undefined;
|
|
39330
39330
|
/** ID of the access code that you want to update. */
|
|
39331
39331
|
access_code_id: string;
|
|
39332
39332
|
/** ID of the device containing the access code that you want to update. */
|
package/dist/index.cjs
CHANGED
|
@@ -2937,7 +2937,12 @@ var cannot_create_requested_access_methods_error = common_access_grant_error.ext
|
|
|
2937
2937
|
missing_device_ids: zod.z.array(zod.z.string().uuid()).optional().describe(
|
|
2938
2938
|
"IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure."
|
|
2939
2939
|
)
|
|
2940
|
-
})
|
|
2940
|
+
}).describe(`
|
|
2941
|
+
---
|
|
2942
|
+
resource_type: access_grant
|
|
2943
|
+
---
|
|
2944
|
+
Indicates that Seam could not create one or more of the requested access methods for the access grant.
|
|
2945
|
+
`);
|
|
2941
2946
|
var common_access_grant_warning = zod.z.object({
|
|
2942
2947
|
created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
|
|
2943
2948
|
message: zod.z.string().describe(
|
|
@@ -7092,9 +7097,12 @@ var user_identity_issue_with_acs_user = common_user_identity_error.extend({
|
|
|
7092
7097
|
acs_system_id: zod.z.string().uuid().describe(
|
|
7093
7098
|
"ID of the access system that the user identity is associated with."
|
|
7094
7099
|
)
|
|
7095
|
-
}).describe(
|
|
7096
|
-
|
|
7097
|
-
|
|
7100
|
+
}).describe(`
|
|
7101
|
+
---
|
|
7102
|
+
resource_type: user_identity
|
|
7103
|
+
---
|
|
7104
|
+
Indicates that there is an issue with an access system user associated with this user identity.
|
|
7105
|
+
`);
|
|
7098
7106
|
zod.z.object({
|
|
7099
7107
|
issue_with_acs_user: zod.z.record(zod.z.string().uuid(), user_identity_issue_with_acs_user).optional().nullable().describe(
|
|
7100
7108
|
"Map of access system user IDs to issues with the access system user. The key is the access system user ID, and the value is the issue with the access system user."
|
|
@@ -7252,21 +7260,33 @@ var common_bridge_client_session_error = zod.z.object({
|
|
|
7252
7260
|
created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error.")
|
|
7253
7261
|
});
|
|
7254
7262
|
var error_code_description9 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
|
|
7255
|
-
var bridge_lan_unreachable = common_bridge_client_session_error.extend(
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7263
|
+
var bridge_lan_unreachable = common_bridge_client_session_error.extend(
|
|
7264
|
+
{
|
|
7265
|
+
error_code: zod.z.literal("bridge_lan_unreachable").describe(error_code_description9),
|
|
7266
|
+
is_tailscale_proxy_reachable: zod.z.boolean().nullable().describe("Indicates whether Seam can reach the Tailscale proxy."),
|
|
7267
|
+
is_tailscale_proxy_socks_server_healthy: zod.z.boolean().nullable().describe(
|
|
7268
|
+
"Indicates whether the Tailscale proxy's SOCKS server is healthy."
|
|
7269
|
+
),
|
|
7270
|
+
can_tailscale_proxy_reach_tailscale_network: zod.z.boolean().nullable().describe(
|
|
7271
|
+
"Indicates whether the Tailscale proxy can reach the Tailscale network."
|
|
7272
|
+
),
|
|
7273
|
+
can_tailscale_proxy_reach_bridge: zod.z.boolean().nullable().describe("Indicates whether the Tailscale proxy can reach Seam Bridge."),
|
|
7274
|
+
is_bridge_socks_server_healthy: zod.z.boolean().nullable().describe("Indicates whether Seam Bridge's SOCKS server is healthy.")
|
|
7275
|
+
}
|
|
7276
|
+
).describe(`
|
|
7277
|
+
---
|
|
7278
|
+
resource_type: bridge_client_session
|
|
7279
|
+
---
|
|
7280
|
+
Indicates that Seam cannot reach Seam Bridge's LAN.
|
|
7281
|
+
`);
|
|
7267
7282
|
var no_communication_from_bridge = common_bridge_client_session_error.extend({
|
|
7268
7283
|
error_code: zod.z.literal("no_communication_from_bridge").describe(error_code_description9)
|
|
7269
|
-
}).describe(
|
|
7284
|
+
}).describe(`
|
|
7285
|
+
---
|
|
7286
|
+
resource_type: bridge_client_session
|
|
7287
|
+
---
|
|
7288
|
+
Indicates that Seam Bridge has stopped communicating with Seam.
|
|
7289
|
+
`);
|
|
7270
7290
|
var bridge_client_session_error = zod.z.discriminatedUnion("error_code", [
|
|
7271
7291
|
bridge_lan_unreachable,
|
|
7272
7292
|
no_communication_from_bridge
|
|
@@ -9137,6 +9157,7 @@ var openapi = {
|
|
|
9137
9157
|
discriminator: { propertyName: "error_code" },
|
|
9138
9158
|
oneOf: [
|
|
9139
9159
|
{
|
|
9160
|
+
description: "Indicates that Seam could not create one or more of the requested access methods for the access grant.",
|
|
9140
9161
|
properties: {
|
|
9141
9162
|
created_at: {
|
|
9142
9163
|
description: "Date and time at which Seam created the error.",
|
|
@@ -9159,7 +9180,8 @@ var openapi = {
|
|
|
9159
9180
|
}
|
|
9160
9181
|
},
|
|
9161
9182
|
required: ["created_at", "message", "error_code"],
|
|
9162
|
-
type: "object"
|
|
9183
|
+
type: "object",
|
|
9184
|
+
"x-resource-type": "access_grant"
|
|
9163
9185
|
}
|
|
9164
9186
|
]
|
|
9165
9187
|
},
|
|
@@ -17839,7 +17861,8 @@ var openapi = {
|
|
|
17839
17861
|
"can_tailscale_proxy_reach_bridge",
|
|
17840
17862
|
"is_bridge_socks_server_healthy"
|
|
17841
17863
|
],
|
|
17842
|
-
type: "object"
|
|
17864
|
+
type: "object",
|
|
17865
|
+
"x-resource-type": "bridge_client_session"
|
|
17843
17866
|
},
|
|
17844
17867
|
{
|
|
17845
17868
|
description: "Indicates that Seam Bridge has stopped communicating with Seam.",
|
|
@@ -17860,7 +17883,8 @@ var openapi = {
|
|
|
17860
17883
|
}
|
|
17861
17884
|
},
|
|
17862
17885
|
required: ["message", "created_at", "error_code"],
|
|
17863
|
-
type: "object"
|
|
17886
|
+
type: "object",
|
|
17887
|
+
"x-resource-type": "bridge_client_session"
|
|
17864
17888
|
}
|
|
17865
17889
|
]
|
|
17866
17890
|
},
|
|
@@ -32833,7 +32857,8 @@ var openapi = {
|
|
|
32833
32857
|
"acs_user_id",
|
|
32834
32858
|
"acs_system_id"
|
|
32835
32859
|
],
|
|
32836
|
-
type: "object"
|
|
32860
|
+
type: "object",
|
|
32861
|
+
"x-resource-type": "user_identity"
|
|
32837
32862
|
}
|
|
32838
32863
|
]
|
|
32839
32864
|
},
|
|
@@ -37898,7 +37923,8 @@ var openapi = {
|
|
|
37898
37923
|
"acs_user_id",
|
|
37899
37924
|
"acs_system_id"
|
|
37900
37925
|
],
|
|
37901
|
-
type: "object"
|
|
37926
|
+
type: "object",
|
|
37927
|
+
"x-resource-type": "user_identity"
|
|
37902
37928
|
}
|
|
37903
37929
|
]
|
|
37904
37930
|
},
|
|
@@ -38221,7 +38247,6 @@ var openapi = {
|
|
|
38221
38247
|
type: "boolean"
|
|
38222
38248
|
},
|
|
38223
38249
|
max_time_rounding: {
|
|
38224
|
-
default: "1hour",
|
|
38225
38250
|
description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
|
|
38226
38251
|
enum: ["1hour", "1day", "1h", "1d"],
|
|
38227
38252
|
type: "string"
|
|
@@ -40503,7 +40528,6 @@ var openapi = {
|
|
|
40503
40528
|
type: "boolean"
|
|
40504
40529
|
},
|
|
40505
40530
|
max_time_rounding: {
|
|
40506
|
-
default: "1hour",
|
|
40507
40531
|
description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
|
|
40508
40532
|
enum: ["1hour", "1day", "1h", "1d"],
|
|
40509
40533
|
type: "string"
|
|
@@ -40641,7 +40665,6 @@ var openapi = {
|
|
|
40641
40665
|
type: "boolean"
|
|
40642
40666
|
},
|
|
40643
40667
|
max_time_rounding: {
|
|
40644
|
-
default: "1hour",
|
|
40645
40668
|
description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
|
|
40646
40669
|
enum: ["1hour", "1day", "1h", "1d"],
|
|
40647
40670
|
type: "string"
|
|
@@ -40779,7 +40802,6 @@ var openapi = {
|
|
|
40779
40802
|
type: "boolean"
|
|
40780
40803
|
},
|
|
40781
40804
|
max_time_rounding: {
|
|
40782
|
-
default: "1hour",
|
|
40783
40805
|
description: "Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`.",
|
|
40784
40806
|
enum: ["1hour", "1day", "1h", "1d"],
|
|
40785
40807
|
type: "string"
|
|
@@ -42105,6 +42127,7 @@ var openapi = {
|
|
|
42105
42127
|
discriminator: { propertyName: "error_code" },
|
|
42106
42128
|
oneOf: [
|
|
42107
42129
|
{
|
|
42130
|
+
description: "Indicates that Seam could not create one or more of the requested access methods for the access grant.",
|
|
42108
42131
|
properties: {
|
|
42109
42132
|
created_at: {
|
|
42110
42133
|
description: "Date and time at which Seam created the error.",
|
|
@@ -42133,7 +42156,8 @@ var openapi = {
|
|
|
42133
42156
|
"message",
|
|
42134
42157
|
"error_code"
|
|
42135
42158
|
],
|
|
42136
|
-
type: "object"
|
|
42159
|
+
type: "object",
|
|
42160
|
+
"x-resource-type": "access_grant"
|
|
42137
42161
|
}
|
|
42138
42162
|
]
|
|
42139
42163
|
},
|
|
@@ -42732,6 +42756,7 @@ var openapi = {
|
|
|
42732
42756
|
discriminator: { propertyName: "error_code" },
|
|
42733
42757
|
oneOf: [
|
|
42734
42758
|
{
|
|
42759
|
+
description: "Indicates that Seam could not create one or more of the requested access methods for the access grant.",
|
|
42735
42760
|
properties: {
|
|
42736
42761
|
created_at: {
|
|
42737
42762
|
description: "Date and time at which Seam created the error.",
|
|
@@ -42760,7 +42785,8 @@ var openapi = {
|
|
|
42760
42785
|
"message",
|
|
42761
42786
|
"error_code"
|
|
42762
42787
|
],
|
|
42763
|
-
type: "object"
|
|
42788
|
+
type: "object",
|
|
42789
|
+
"x-resource-type": "access_grant"
|
|
42764
42790
|
}
|
|
42765
42791
|
]
|
|
42766
42792
|
},
|
|
@@ -43401,6 +43427,7 @@ var openapi = {
|
|
|
43401
43427
|
discriminator: { propertyName: "error_code" },
|
|
43402
43428
|
oneOf: [
|
|
43403
43429
|
{
|
|
43430
|
+
description: "Indicates that Seam could not create one or more of the requested access methods for the access grant.",
|
|
43404
43431
|
properties: {
|
|
43405
43432
|
created_at: {
|
|
43406
43433
|
description: "Date and time at which Seam created the error.",
|
|
@@ -43429,7 +43456,8 @@ var openapi = {
|
|
|
43429
43456
|
"message",
|
|
43430
43457
|
"error_code"
|
|
43431
43458
|
],
|
|
43432
|
-
type: "object"
|
|
43459
|
+
type: "object",
|
|
43460
|
+
"x-resource-type": "access_grant"
|
|
43433
43461
|
}
|
|
43434
43462
|
]
|
|
43435
43463
|
},
|
|
@@ -44058,6 +44086,7 @@ var openapi = {
|
|
|
44058
44086
|
discriminator: { propertyName: "error_code" },
|
|
44059
44087
|
oneOf: [
|
|
44060
44088
|
{
|
|
44089
|
+
description: "Indicates that Seam could not create one or more of the requested access methods for the access grant.",
|
|
44061
44090
|
properties: {
|
|
44062
44091
|
created_at: {
|
|
44063
44092
|
description: "Date and time at which Seam created the error.",
|
|
@@ -44086,7 +44115,8 @@ var openapi = {
|
|
|
44086
44115
|
"message",
|
|
44087
44116
|
"error_code"
|
|
44088
44117
|
],
|
|
44089
|
-
type: "object"
|
|
44118
|
+
type: "object",
|
|
44119
|
+
"x-resource-type": "access_grant"
|
|
44090
44120
|
}
|
|
44091
44121
|
]
|
|
44092
44122
|
},
|
|
@@ -86565,7 +86595,8 @@ var openapi = {
|
|
|
86565
86595
|
"acs_user_id",
|
|
86566
86596
|
"acs_system_id"
|
|
86567
86597
|
],
|
|
86568
|
-
type: "object"
|
|
86598
|
+
type: "object",
|
|
86599
|
+
"x-resource-type": "user_identity"
|
|
86569
86600
|
}
|
|
86570
86601
|
]
|
|
86571
86602
|
},
|
|
@@ -86787,7 +86818,8 @@ var openapi = {
|
|
|
86787
86818
|
"acs_user_id",
|
|
86788
86819
|
"acs_system_id"
|
|
86789
86820
|
],
|
|
86790
|
-
type: "object"
|
|
86821
|
+
type: "object",
|
|
86822
|
+
"x-resource-type": "user_identity"
|
|
86791
86823
|
}
|
|
86792
86824
|
]
|
|
86793
86825
|
},
|
|
@@ -87035,7 +87067,8 @@ var openapi = {
|
|
|
87035
87067
|
"acs_user_id",
|
|
87036
87068
|
"acs_system_id"
|
|
87037
87069
|
],
|
|
87038
|
-
type: "object"
|
|
87070
|
+
type: "object",
|
|
87071
|
+
"x-resource-type": "user_identity"
|
|
87039
87072
|
}
|
|
87040
87073
|
]
|
|
87041
87074
|
},
|
|
@@ -87277,7 +87310,8 @@ var openapi = {
|
|
|
87277
87310
|
"acs_user_id",
|
|
87278
87311
|
"acs_system_id"
|
|
87279
87312
|
],
|
|
87280
|
-
type: "object"
|
|
87313
|
+
type: "object",
|
|
87314
|
+
"x-resource-type": "user_identity"
|
|
87281
87315
|
}
|
|
87282
87316
|
]
|
|
87283
87317
|
},
|