@seamapi/types 1.411.1 → 1.413.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 +139 -11
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +336 -3
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +26 -0
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +26 -0
- package/lib/seam/connect/models/client-sessions/client-session.d.ts +3 -0
- package/lib/seam/connect/models/client-sessions/client-session.js +4 -1
- package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +87 -0
- package/lib/seam/connect/models/devices/device.js +9 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +26 -0
- package/lib/seam/connect/openapi.d.ts +45 -0
- package/lib/seam/connect/openapi.js +125 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +168 -3
- package/package.json +2 -2
- package/src/lib/seam/connect/models/client-sessions/client-session.ts +4 -1
- package/src/lib/seam/connect/models/devices/device.ts +10 -0
- package/src/lib/seam/connect/openapi.ts +138 -3
- package/src/lib/seam/connect/route-types.ts +192 -3
package/dist/connect.cjs
CHANGED
|
@@ -1451,6 +1451,9 @@ var auxiliary_heat_running = common_device_error.extend({
|
|
|
1451
1451
|
var subscription_required = common_device_error.extend({
|
|
1452
1452
|
error_code: zod.z.literal("subscription_required").describe(error_code_description2)
|
|
1453
1453
|
}).describe("Subscription required to connect.");
|
|
1454
|
+
var lockly_missing_wifi_bridge = common_device_error.extend({
|
|
1455
|
+
error_code: zod.z.literal("lockly_missing_wifi_bridge").describe(error_code_description2)
|
|
1456
|
+
}).describe("Lockly lock is not connected to a Wi-Fi bridge.");
|
|
1454
1457
|
var device_error = zod.z.discriminatedUnion("error_code", [
|
|
1455
1458
|
account_disconnected2,
|
|
1456
1459
|
salto_ks_subscription_limit_exceeded2,
|
|
@@ -1464,7 +1467,8 @@ var device_error = zod.z.discriminatedUnion("error_code", [
|
|
|
1464
1467
|
ttlock_lock_not_paired_to_gateway,
|
|
1465
1468
|
missing_device_credentials,
|
|
1466
1469
|
auxiliary_heat_running,
|
|
1467
|
-
subscription_required
|
|
1470
|
+
subscription_required,
|
|
1471
|
+
lockly_missing_wifi_bridge
|
|
1468
1472
|
]).describe("Error associated with the `device`.");
|
|
1469
1473
|
zod.z.object({
|
|
1470
1474
|
device_offline: device_offline.optional().nullable(),
|
|
@@ -1479,7 +1483,8 @@ zod.z.object({
|
|
|
1479
1483
|
ttlock_lock_not_paired_to_gateway: ttlock_lock_not_paired_to_gateway.optional().nullable(),
|
|
1480
1484
|
missing_device_credentials: missing_device_credentials.optional().nullable(),
|
|
1481
1485
|
auxiliary_heat_running: auxiliary_heat_running.optional().nullable(),
|
|
1482
|
-
subscription_required: subscription_required.optional().nullable()
|
|
1486
|
+
subscription_required: subscription_required.optional().nullable(),
|
|
1487
|
+
lockly_missing_wifi_bridge: lockly_missing_wifi_bridge.optional().nullable()
|
|
1483
1488
|
});
|
|
1484
1489
|
var warning_code_description2 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
|
|
1485
1490
|
var common_device_warning = zod.z.object({
|
|
@@ -3888,7 +3893,8 @@ var client_session = zod.z.object({
|
|
|
3888
3893
|
customer_id: zod.z.string().uuid().optional(),
|
|
3889
3894
|
connected_account_ids: zod.z.array(zod.z.string().uuid()),
|
|
3890
3895
|
connect_webview_ids: zod.z.array(zod.z.string().uuid()),
|
|
3891
|
-
user_identity_ids: zod.z.array(zod.z.string().uuid())
|
|
3896
|
+
user_identity_ids: zod.z.array(zod.z.string().uuid()).describe("deprecated: Use `user_identity_id`."),
|
|
3897
|
+
user_identity_id: zod.z.string().uuid().optional()
|
|
3892
3898
|
}).describe(`
|
|
3893
3899
|
---
|
|
3894
3900
|
route_path: /client_sessions
|
|
@@ -6134,6 +6140,26 @@ var openapi_default = {
|
|
|
6134
6140
|
],
|
|
6135
6141
|
type: "object"
|
|
6136
6142
|
},
|
|
6143
|
+
{
|
|
6144
|
+
description: "Lockly lock is not connected to a Wi-Fi bridge.",
|
|
6145
|
+
properties: {
|
|
6146
|
+
created_at: { format: "date-time", type: "string" },
|
|
6147
|
+
error_code: {
|
|
6148
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
6149
|
+
enum: ["lockly_missing_wifi_bridge"],
|
|
6150
|
+
type: "string"
|
|
6151
|
+
},
|
|
6152
|
+
is_device_error: { enum: [true], type: "boolean" },
|
|
6153
|
+
message: { type: "string" }
|
|
6154
|
+
},
|
|
6155
|
+
required: [
|
|
6156
|
+
"message",
|
|
6157
|
+
"is_device_error",
|
|
6158
|
+
"created_at",
|
|
6159
|
+
"error_code"
|
|
6160
|
+
],
|
|
6161
|
+
type: "object"
|
|
6162
|
+
},
|
|
6137
6163
|
{
|
|
6138
6164
|
description: "Credentials provided were invalid.",
|
|
6139
6165
|
properties: {
|
|
@@ -11747,7 +11773,9 @@ var openapi_default = {
|
|
|
11747
11773
|
expires_at: { format: "date-time", type: "string" },
|
|
11748
11774
|
token: { type: "string" },
|
|
11749
11775
|
user_identifier_key: { nullable: true, type: "string" },
|
|
11776
|
+
user_identity_id: { format: "uuid", type: "string" },
|
|
11750
11777
|
user_identity_ids: {
|
|
11778
|
+
description: "deprecated: Use `user_identity_id`.",
|
|
11751
11779
|
items: { format: "uuid", type: "string" },
|
|
11752
11780
|
type: "array"
|
|
11753
11781
|
},
|
|
@@ -12655,6 +12683,26 @@ var openapi_default = {
|
|
|
12655
12683
|
],
|
|
12656
12684
|
type: "object"
|
|
12657
12685
|
},
|
|
12686
|
+
{
|
|
12687
|
+
description: "Lockly lock is not connected to a Wi-Fi bridge.",
|
|
12688
|
+
properties: {
|
|
12689
|
+
created_at: { format: "date-time", type: "string" },
|
|
12690
|
+
error_code: {
|
|
12691
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
12692
|
+
enum: ["lockly_missing_wifi_bridge"],
|
|
12693
|
+
type: "string"
|
|
12694
|
+
},
|
|
12695
|
+
is_device_error: { enum: [true], type: "boolean" },
|
|
12696
|
+
message: { type: "string" }
|
|
12697
|
+
},
|
|
12698
|
+
required: [
|
|
12699
|
+
"message",
|
|
12700
|
+
"is_device_error",
|
|
12701
|
+
"created_at",
|
|
12702
|
+
"error_code"
|
|
12703
|
+
],
|
|
12704
|
+
type: "object"
|
|
12705
|
+
},
|
|
12658
12706
|
{
|
|
12659
12707
|
description: "Credentials provided were invalid.",
|
|
12660
12708
|
properties: {
|
|
@@ -21758,6 +21806,26 @@ var openapi_default = {
|
|
|
21758
21806
|
],
|
|
21759
21807
|
type: "object"
|
|
21760
21808
|
},
|
|
21809
|
+
{
|
|
21810
|
+
description: "Lockly lock is not connected to a Wi-Fi bridge.",
|
|
21811
|
+
properties: {
|
|
21812
|
+
created_at: { format: "date-time", type: "string" },
|
|
21813
|
+
error_code: {
|
|
21814
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
21815
|
+
enum: ["lockly_missing_wifi_bridge"],
|
|
21816
|
+
type: "string"
|
|
21817
|
+
},
|
|
21818
|
+
is_device_error: { enum: [true], type: "boolean" },
|
|
21819
|
+
message: { type: "string" }
|
|
21820
|
+
},
|
|
21821
|
+
required: [
|
|
21822
|
+
"message",
|
|
21823
|
+
"is_device_error",
|
|
21824
|
+
"created_at",
|
|
21825
|
+
"error_code"
|
|
21826
|
+
],
|
|
21827
|
+
type: "object"
|
|
21828
|
+
},
|
|
21761
21829
|
{
|
|
21762
21830
|
description: "Credentials provided were invalid.",
|
|
21763
21831
|
properties: {
|
|
@@ -23514,6 +23582,26 @@ var openapi_default = {
|
|
|
23514
23582
|
],
|
|
23515
23583
|
type: "object"
|
|
23516
23584
|
},
|
|
23585
|
+
{
|
|
23586
|
+
description: "Lockly lock is not connected to a Wi-Fi bridge.",
|
|
23587
|
+
properties: {
|
|
23588
|
+
created_at: { format: "date-time", type: "string" },
|
|
23589
|
+
error_code: {
|
|
23590
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
23591
|
+
enum: ["lockly_missing_wifi_bridge"],
|
|
23592
|
+
type: "string"
|
|
23593
|
+
},
|
|
23594
|
+
is_device_error: { enum: [true], type: "boolean" },
|
|
23595
|
+
message: { type: "string" }
|
|
23596
|
+
},
|
|
23597
|
+
required: [
|
|
23598
|
+
"message",
|
|
23599
|
+
"is_device_error",
|
|
23600
|
+
"created_at",
|
|
23601
|
+
"error_code"
|
|
23602
|
+
],
|
|
23603
|
+
type: "object"
|
|
23604
|
+
},
|
|
23517
23605
|
{
|
|
23518
23606
|
description: "Credentials provided were invalid.",
|
|
23519
23607
|
properties: {
|
|
@@ -30667,10 +30755,18 @@ var openapi_default = {
|
|
|
30667
30755
|
minLength: 1,
|
|
30668
30756
|
type: "string"
|
|
30669
30757
|
},
|
|
30758
|
+
user_identity_id: {
|
|
30759
|
+
description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.",
|
|
30760
|
+
type: "string"
|
|
30761
|
+
},
|
|
30670
30762
|
user_identity_ids: {
|
|
30671
|
-
|
|
30763
|
+
deprecated: true,
|
|
30764
|
+
description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
|
|
30672
30765
|
items: { type: "string" },
|
|
30673
|
-
|
|
30766
|
+
maxItems: 1,
|
|
30767
|
+
minItems: 1,
|
|
30768
|
+
type: "array",
|
|
30769
|
+
"x-deprecated": "Use `user_identity_id`."
|
|
30674
30770
|
}
|
|
30675
30771
|
},
|
|
30676
30772
|
type: "object"
|
|
@@ -30743,10 +30839,18 @@ var openapi_default = {
|
|
|
30743
30839
|
minLength: 1,
|
|
30744
30840
|
type: "string"
|
|
30745
30841
|
},
|
|
30842
|
+
user_identity_id: {
|
|
30843
|
+
description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.",
|
|
30844
|
+
type: "string"
|
|
30845
|
+
},
|
|
30746
30846
|
user_identity_ids: {
|
|
30747
|
-
|
|
30847
|
+
deprecated: true,
|
|
30848
|
+
description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
|
|
30748
30849
|
items: { type: "string" },
|
|
30749
|
-
|
|
30850
|
+
maxItems: 1,
|
|
30851
|
+
minItems: 1,
|
|
30852
|
+
type: "array",
|
|
30853
|
+
"x-deprecated": "Use `user_identity_id`."
|
|
30750
30854
|
}
|
|
30751
30855
|
},
|
|
30752
30856
|
type: "object"
|
|
@@ -30926,10 +31030,18 @@ var openapi_default = {
|
|
|
30926
31030
|
minLength: 1,
|
|
30927
31031
|
type: "string"
|
|
30928
31032
|
},
|
|
31033
|
+
user_identity_id: {
|
|
31034
|
+
description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session (or that are already associated with the existing client session).",
|
|
31035
|
+
type: "string"
|
|
31036
|
+
},
|
|
30929
31037
|
user_identity_ids: {
|
|
30930
|
-
|
|
31038
|
+
deprecated: true,
|
|
31039
|
+
description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
|
|
30931
31040
|
items: { type: "string" },
|
|
30932
|
-
|
|
31041
|
+
maxItems: 1,
|
|
31042
|
+
minItems: 1,
|
|
31043
|
+
type: "array",
|
|
31044
|
+
"x-deprecated": "Use `user_identity_id`."
|
|
30933
31045
|
}
|
|
30934
31046
|
},
|
|
30935
31047
|
type: "object"
|
|
@@ -31000,10 +31112,18 @@ var openapi_default = {
|
|
|
31000
31112
|
description: "Your user ID for the user that you want to associate with the client session.",
|
|
31001
31113
|
type: "string"
|
|
31002
31114
|
},
|
|
31115
|
+
user_identity_id: {
|
|
31116
|
+
description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
|
|
31117
|
+
type: "string"
|
|
31118
|
+
},
|
|
31003
31119
|
user_identity_ids: {
|
|
31120
|
+
deprecated: true,
|
|
31004
31121
|
description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
|
|
31005
31122
|
items: { type: "string" },
|
|
31006
|
-
|
|
31123
|
+
maxItems: 1,
|
|
31124
|
+
minItems: 1,
|
|
31125
|
+
type: "array",
|
|
31126
|
+
"x-deprecated": "Use `user_identity_id`."
|
|
31007
31127
|
}
|
|
31008
31128
|
},
|
|
31009
31129
|
type: "object"
|
|
@@ -31069,10 +31189,18 @@ var openapi_default = {
|
|
|
31069
31189
|
description: "Your user ID for the user that you want to associate with the client session.",
|
|
31070
31190
|
type: "string"
|
|
31071
31191
|
},
|
|
31192
|
+
user_identity_id: {
|
|
31193
|
+
description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
|
|
31194
|
+
type: "string"
|
|
31195
|
+
},
|
|
31072
31196
|
user_identity_ids: {
|
|
31197
|
+
deprecated: true,
|
|
31073
31198
|
description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
|
|
31074
31199
|
items: { type: "string" },
|
|
31075
|
-
|
|
31200
|
+
maxItems: 1,
|
|
31201
|
+
minItems: 1,
|
|
31202
|
+
type: "array",
|
|
31203
|
+
"x-deprecated": "Use `user_identity_id`."
|
|
31076
31204
|
}
|
|
31077
31205
|
},
|
|
31078
31206
|
type: "object"
|