@seamapi/types 1.236.0 → 1.238.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 +173 -42
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +223 -56
- package/lib/seam/connect/models/acs/acs-user.d.ts +178 -14
- package/lib/seam/connect/models/acs/acs-user.js +19 -4
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +1 -0
- package/lib/seam/connect/models/devices/device-provider.js +1 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +55 -42
- package/lib/seam/connect/openapi.js +153 -32
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +65 -2
- package/package.json +2 -2
- package/src/lib/seam/connect/models/acs/acs-user.ts +21 -5
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +153 -32
- package/src/lib/seam/connect/route-types.ts +128 -35
package/dist/connect.cjs
CHANGED
|
@@ -850,7 +850,8 @@ var DEVICE_PROVIDERS = {
|
|
|
850
850
|
SEAM_BRIDGE: "seam_bridge",
|
|
851
851
|
TEDEE: "tedee",
|
|
852
852
|
HONEYWELL_RESIDEO: "honeywell_resideo",
|
|
853
|
-
LATCH: "latch"
|
|
853
|
+
LATCH: "latch",
|
|
854
|
+
AKILES: "akiles"
|
|
854
855
|
};
|
|
855
856
|
var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
|
|
856
857
|
var PROVIDER_CATEGORY_MAP = {
|
|
@@ -1301,14 +1302,22 @@ var common_acs_users_warning = zod.z.object({
|
|
|
1301
1302
|
var acs_users_being_deleted = common_acs_users_warning.extend({
|
|
1302
1303
|
warning_code: zod.z.literal("being_deleted")
|
|
1303
1304
|
});
|
|
1305
|
+
var acs_users_salto_ks_user_not_subscribed = common_acs_users_warning.extend({
|
|
1306
|
+
warning_code: zod.z.literal("salto_ks_user_not_subscribed")
|
|
1307
|
+
});
|
|
1308
|
+
var acs_users_salto_site_user_suspended = common_acs_users_warning.extend({
|
|
1309
|
+
warning_code: zod.z.literal("salto_site_user_suspended")
|
|
1310
|
+
});
|
|
1304
1311
|
zod.z.object({
|
|
1305
|
-
being_deleted: acs_users_being_deleted.optional().nullable()
|
|
1312
|
+
being_deleted: acs_users_being_deleted.optional().nullable(),
|
|
1313
|
+
salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable(),
|
|
1314
|
+
salto_site_user_suspended: acs_users_salto_site_user_suspended.optional().nullable()
|
|
1306
1315
|
});
|
|
1307
|
-
var acs_users_warning = (
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
);
|
|
1316
|
+
var acs_users_warning = zod.z.union([
|
|
1317
|
+
acs_users_being_deleted,
|
|
1318
|
+
acs_users_salto_ks_user_not_subscribed,
|
|
1319
|
+
acs_users_salto_site_user_suspended
|
|
1320
|
+
]);
|
|
1312
1321
|
var user_fields = zod.z.object({
|
|
1313
1322
|
full_name: zod.z.string().optional(),
|
|
1314
1323
|
email: zod.z.string().email().optional().describe(`
|
|
@@ -1336,7 +1345,8 @@ var common_acs_user = zod.z.object({
|
|
|
1336
1345
|
user_identity_phone_number: zod.z.string().nullable().optional(),
|
|
1337
1346
|
latest_desired_state_synced_with_provider_at: zod.z.string().datetime().optional(),
|
|
1338
1347
|
is_latest_desired_state_synced_with_provider: zod.z.boolean().optional(),
|
|
1339
|
-
warnings: zod.z.array(acs_users_warning)
|
|
1348
|
+
warnings: zod.z.array(acs_users_warning),
|
|
1349
|
+
errors: zod.z.any()
|
|
1340
1350
|
}).merge(user_fields);
|
|
1341
1351
|
var acs_user = common_acs_user.merge(
|
|
1342
1352
|
zod.z.object({
|
|
@@ -2893,6 +2903,7 @@ var openapi_default = {
|
|
|
2893
2903
|
"x-deprecated": "use email_address."
|
|
2894
2904
|
},
|
|
2895
2905
|
email_address: { format: "email", type: "string" },
|
|
2906
|
+
errors: {},
|
|
2896
2907
|
external_type: {
|
|
2897
2908
|
enum: [
|
|
2898
2909
|
"pti_user",
|
|
@@ -2920,13 +2931,41 @@ var openapi_default = {
|
|
|
2920
2931
|
user_identity_phone_number: { nullable: true, type: "string" },
|
|
2921
2932
|
warnings: {
|
|
2922
2933
|
items: {
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2934
|
+
oneOf: [
|
|
2935
|
+
{
|
|
2936
|
+
properties: {
|
|
2937
|
+
created_at: { format: "date-time", type: "string" },
|
|
2938
|
+
message: { type: "string" },
|
|
2939
|
+
warning_code: { enum: ["being_deleted"], type: "string" }
|
|
2940
|
+
},
|
|
2941
|
+
required: ["created_at", "message", "warning_code"],
|
|
2942
|
+
type: "object"
|
|
2943
|
+
},
|
|
2944
|
+
{
|
|
2945
|
+
properties: {
|
|
2946
|
+
created_at: { format: "date-time", type: "string" },
|
|
2947
|
+
message: { type: "string" },
|
|
2948
|
+
warning_code: {
|
|
2949
|
+
enum: ["salto_ks_user_not_subscribed"],
|
|
2950
|
+
type: "string"
|
|
2951
|
+
}
|
|
2952
|
+
},
|
|
2953
|
+
required: ["created_at", "message", "warning_code"],
|
|
2954
|
+
type: "object"
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
properties: {
|
|
2958
|
+
created_at: { format: "date-time", type: "string" },
|
|
2959
|
+
message: { type: "string" },
|
|
2960
|
+
warning_code: {
|
|
2961
|
+
enum: ["salto_site_user_suspended"],
|
|
2962
|
+
type: "string"
|
|
2963
|
+
}
|
|
2964
|
+
},
|
|
2965
|
+
required: ["created_at", "message", "warning_code"],
|
|
2966
|
+
type: "object"
|
|
2967
|
+
}
|
|
2968
|
+
]
|
|
2930
2969
|
},
|
|
2931
2970
|
type: "array"
|
|
2932
2971
|
},
|
|
@@ -5375,7 +5414,8 @@ var openapi_default = {
|
|
|
5375
5414
|
"seam_bridge",
|
|
5376
5415
|
"tedee",
|
|
5377
5416
|
"honeywell_resideo",
|
|
5378
|
-
"latch"
|
|
5417
|
+
"latch",
|
|
5418
|
+
"akiles"
|
|
5379
5419
|
],
|
|
5380
5420
|
type: "string"
|
|
5381
5421
|
},
|
|
@@ -9760,6 +9800,7 @@ var openapi_default = {
|
|
|
9760
9800
|
"x-deprecated": "use email_address."
|
|
9761
9801
|
},
|
|
9762
9802
|
email_address: { format: "email", type: "string" },
|
|
9803
|
+
errors: { $ref: "#/components/schemas/access_code" },
|
|
9763
9804
|
external_type: {
|
|
9764
9805
|
enum: [
|
|
9765
9806
|
"pti_user",
|
|
@@ -9798,19 +9839,65 @@ var openapi_default = {
|
|
|
9798
9839
|
},
|
|
9799
9840
|
warnings: {
|
|
9800
9841
|
items: {
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9842
|
+
oneOf: [
|
|
9843
|
+
{
|
|
9844
|
+
properties: {
|
|
9845
|
+
created_at: {
|
|
9846
|
+
format: "date-time",
|
|
9847
|
+
type: "string"
|
|
9848
|
+
},
|
|
9849
|
+
message: { type: "string" },
|
|
9850
|
+
warning_code: {
|
|
9851
|
+
enum: ["being_deleted"],
|
|
9852
|
+
type: "string"
|
|
9853
|
+
}
|
|
9854
|
+
},
|
|
9855
|
+
required: [
|
|
9856
|
+
"created_at",
|
|
9857
|
+
"message",
|
|
9858
|
+
"warning_code"
|
|
9859
|
+
],
|
|
9860
|
+
type: "object"
|
|
9805
9861
|
},
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9862
|
+
{
|
|
9863
|
+
properties: {
|
|
9864
|
+
created_at: {
|
|
9865
|
+
format: "date-time",
|
|
9866
|
+
type: "string"
|
|
9867
|
+
},
|
|
9868
|
+
message: { type: "string" },
|
|
9869
|
+
warning_code: {
|
|
9870
|
+
enum: ["salto_ks_user_not_subscribed"],
|
|
9871
|
+
type: "string"
|
|
9872
|
+
}
|
|
9873
|
+
},
|
|
9874
|
+
required: [
|
|
9875
|
+
"created_at",
|
|
9876
|
+
"message",
|
|
9877
|
+
"warning_code"
|
|
9878
|
+
],
|
|
9879
|
+
type: "object"
|
|
9880
|
+
},
|
|
9881
|
+
{
|
|
9882
|
+
properties: {
|
|
9883
|
+
created_at: {
|
|
9884
|
+
format: "date-time",
|
|
9885
|
+
type: "string"
|
|
9886
|
+
},
|
|
9887
|
+
message: { type: "string" },
|
|
9888
|
+
warning_code: {
|
|
9889
|
+
enum: ["salto_site_user_suspended"],
|
|
9890
|
+
type: "string"
|
|
9891
|
+
}
|
|
9892
|
+
},
|
|
9893
|
+
required: [
|
|
9894
|
+
"created_at",
|
|
9895
|
+
"message",
|
|
9896
|
+
"warning_code"
|
|
9897
|
+
],
|
|
9898
|
+
type: "object"
|
|
9810
9899
|
}
|
|
9811
|
-
|
|
9812
|
-
required: ["created_at", "message", "warning_code"],
|
|
9813
|
-
type: "object"
|
|
9900
|
+
]
|
|
9814
9901
|
},
|
|
9815
9902
|
type: "array"
|
|
9816
9903
|
},
|
|
@@ -9902,6 +9989,7 @@ var openapi_default = {
|
|
|
9902
9989
|
"x-deprecated": "use email_address."
|
|
9903
9990
|
},
|
|
9904
9991
|
email_address: { format: "email", type: "string" },
|
|
9992
|
+
errors: { $ref: "#/components/schemas/access_code" },
|
|
9905
9993
|
external_type: {
|
|
9906
9994
|
enum: [
|
|
9907
9995
|
"pti_user",
|
|
@@ -9940,23 +10028,65 @@ var openapi_default = {
|
|
|
9940
10028
|
},
|
|
9941
10029
|
warnings: {
|
|
9942
10030
|
items: {
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
10031
|
+
oneOf: [
|
|
10032
|
+
{
|
|
10033
|
+
properties: {
|
|
10034
|
+
created_at: {
|
|
10035
|
+
format: "date-time",
|
|
10036
|
+
type: "string"
|
|
10037
|
+
},
|
|
10038
|
+
message: { type: "string" },
|
|
10039
|
+
warning_code: {
|
|
10040
|
+
enum: ["being_deleted"],
|
|
10041
|
+
type: "string"
|
|
10042
|
+
}
|
|
10043
|
+
},
|
|
10044
|
+
required: [
|
|
10045
|
+
"created_at",
|
|
10046
|
+
"message",
|
|
10047
|
+
"warning_code"
|
|
10048
|
+
],
|
|
10049
|
+
type: "object"
|
|
9947
10050
|
},
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
10051
|
+
{
|
|
10052
|
+
properties: {
|
|
10053
|
+
created_at: {
|
|
10054
|
+
format: "date-time",
|
|
10055
|
+
type: "string"
|
|
10056
|
+
},
|
|
10057
|
+
message: { type: "string" },
|
|
10058
|
+
warning_code: {
|
|
10059
|
+
enum: ["salto_ks_user_not_subscribed"],
|
|
10060
|
+
type: "string"
|
|
10061
|
+
}
|
|
10062
|
+
},
|
|
10063
|
+
required: [
|
|
10064
|
+
"created_at",
|
|
10065
|
+
"message",
|
|
10066
|
+
"warning_code"
|
|
10067
|
+
],
|
|
10068
|
+
type: "object"
|
|
10069
|
+
},
|
|
10070
|
+
{
|
|
10071
|
+
properties: {
|
|
10072
|
+
created_at: {
|
|
10073
|
+
format: "date-time",
|
|
10074
|
+
type: "string"
|
|
10075
|
+
},
|
|
10076
|
+
message: { type: "string" },
|
|
10077
|
+
warning_code: {
|
|
10078
|
+
enum: ["salto_site_user_suspended"],
|
|
10079
|
+
type: "string"
|
|
10080
|
+
}
|
|
10081
|
+
},
|
|
10082
|
+
required: [
|
|
10083
|
+
"created_at",
|
|
10084
|
+
"message",
|
|
10085
|
+
"warning_code"
|
|
10086
|
+
],
|
|
10087
|
+
type: "object"
|
|
9952
10088
|
}
|
|
9953
|
-
|
|
9954
|
-
required: [
|
|
9955
|
-
"created_at",
|
|
9956
|
-
"message",
|
|
9957
|
-
"warning_code"
|
|
9958
|
-
],
|
|
9959
|
-
type: "object"
|
|
10089
|
+
]
|
|
9960
10090
|
},
|
|
9961
10091
|
type: "array"
|
|
9962
10092
|
},
|
|
@@ -10835,6 +10965,7 @@ var openapi_default = {
|
|
|
10835
10965
|
"tedee",
|
|
10836
10966
|
"honeywell_resideo",
|
|
10837
10967
|
"latch",
|
|
10968
|
+
"akiles",
|
|
10838
10969
|
"yale_access",
|
|
10839
10970
|
"hid_cm",
|
|
10840
10971
|
"google_nest"
|