@seamapi/types 1.892.0 → 1.894.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 +192 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +660 -2
- package/dist/index.cjs +192 -7
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +31 -0
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +31 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +162 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js +20 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +3 -2
- package/lib/seam/connect/models/devices/device-provider.js +3 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +50 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +31 -0
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +8 -8
- package/lib/seam/connect/models/user-identities/user-identity.js +1 -3
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.js +168 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +451 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +26 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +3 -0
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +1 -3
- package/src/lib/seam/connect/openapi.ts +202 -0
- package/src/lib/seam/connect/route-types.ts +494 -0
package/dist/index.cjs
CHANGED
|
@@ -636,15 +636,22 @@ var salto_ks_subscription_limit_exceeded = common_connected_account_error.extend
|
|
|
636
636
|
}).describe(
|
|
637
637
|
"Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit."
|
|
638
638
|
);
|
|
639
|
+
var dormakaba_sites_disconnected = common_connected_account_error.extend({
|
|
640
|
+
error_code: zod.z.literal("dormakaba_sites_disconnected").describe(error_code_description)
|
|
641
|
+
}).describe(
|
|
642
|
+
"Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support."
|
|
643
|
+
);
|
|
639
644
|
var connected_account_error = zod.z.discriminatedUnion("error_code", [
|
|
640
645
|
account_disconnected,
|
|
641
646
|
bridge_disconnected,
|
|
642
|
-
salto_ks_subscription_limit_exceeded
|
|
647
|
+
salto_ks_subscription_limit_exceeded,
|
|
648
|
+
dormakaba_sites_disconnected
|
|
643
649
|
]);
|
|
644
650
|
zod.z.object({
|
|
645
651
|
account_disconnected: account_disconnected.nullable().optional(),
|
|
646
652
|
bridge_disconnected: bridge_disconnected.nullable().optional(),
|
|
647
|
-
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded.nullable().optional()
|
|
653
|
+
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded.nullable().optional(),
|
|
654
|
+
dormakaba_sites_disconnected: dormakaba_sites_disconnected.nullable().optional()
|
|
648
655
|
});
|
|
649
656
|
var unknown_issue_with_connected_account = common_connected_account_warning.extend({
|
|
650
657
|
warning_code: zod.z.literal("unknown_issue_with_connected_account").describe(warning_code_description)
|
|
@@ -705,6 +712,11 @@ var setup_required = common_connected_account_warning.extend({
|
|
|
705
712
|
}).describe(
|
|
706
713
|
"Indicates that the connected account requires additional setup before it can be fully operational. Follow the instructions in the warning message to complete the setup."
|
|
707
714
|
);
|
|
715
|
+
var dormakaba_sites_unapproved = common_connected_account_warning.extend({
|
|
716
|
+
warning_code: zod.z.literal("dormakaba_sites_unapproved").describe(warning_code_description)
|
|
717
|
+
}).describe(
|
|
718
|
+
"Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account."
|
|
719
|
+
);
|
|
708
720
|
var connected_account_warning = zod.z.discriminatedUnion("warning_code", [
|
|
709
721
|
scheduled_maintenance_window,
|
|
710
722
|
unknown_issue_with_connected_account,
|
|
@@ -712,7 +724,8 @@ var connected_account_warning = zod.z.discriminatedUnion("warning_code", [
|
|
|
712
724
|
account_reauthorization_requested,
|
|
713
725
|
being_deleted,
|
|
714
726
|
provider_service_unavailable,
|
|
715
|
-
setup_required
|
|
727
|
+
setup_required,
|
|
728
|
+
dormakaba_sites_unapproved
|
|
716
729
|
]).describe("Warning associated with the connected account.");
|
|
717
730
|
zod.z.object({
|
|
718
731
|
scheduled_maintenance_window: scheduled_maintenance_window.nullable().optional(),
|
|
@@ -721,7 +734,8 @@ zod.z.object({
|
|
|
721
734
|
account_reauthorization_requested: account_reauthorization_requested.nullable().optional(),
|
|
722
735
|
being_deleted: being_deleted.nullable().optional(),
|
|
723
736
|
provider_service_unavailable: provider_service_unavailable.nullable().optional(),
|
|
724
|
-
setup_required: setup_required.nullable().optional()
|
|
737
|
+
setup_required: setup_required.nullable().optional(),
|
|
738
|
+
dormakaba_sites_unapproved: dormakaba_sites_unapproved.nullable().optional()
|
|
725
739
|
});
|
|
726
740
|
var connected_account = zod.z.object({
|
|
727
741
|
connected_account_id: zod.z.string().uuid().describe("ID of the connected account."),
|
|
@@ -2072,6 +2086,7 @@ var DEVICE_PROVIDERS = {
|
|
|
2072
2086
|
ULTRALOQ: "ultraloq",
|
|
2073
2087
|
DUSAW: "dusaw",
|
|
2074
2088
|
SIFELY: "sifely",
|
|
2089
|
+
THIRTY_THREE_LOCK: "thirty_three_lock",
|
|
2075
2090
|
RING: "ring",
|
|
2076
2091
|
ICAL: "ical",
|
|
2077
2092
|
LODGIFY: "lodgify",
|
|
@@ -2121,7 +2136,8 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
2121
2136
|
"keyincode",
|
|
2122
2137
|
"sifely",
|
|
2123
2138
|
"omnitec",
|
|
2124
|
-
"dusaw"
|
|
2139
|
+
"dusaw",
|
|
2140
|
+
"thirty_three_lock"
|
|
2125
2141
|
],
|
|
2126
2142
|
consumer_smartlocks: [
|
|
2127
2143
|
"akiles",
|
|
@@ -2141,7 +2157,8 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
2141
2157
|
"korelock",
|
|
2142
2158
|
"dusaw",
|
|
2143
2159
|
"keyincode",
|
|
2144
|
-
"sifely"
|
|
2160
|
+
"sifely",
|
|
2161
|
+
"thirty_three_lock"
|
|
2145
2162
|
],
|
|
2146
2163
|
beta: [],
|
|
2147
2164
|
thermostats: ["ecobee", "nest", "sensi", "honeywell_resideo", "first_alert"],
|
|
@@ -6965,7 +6982,7 @@ var user_identity_warnings = zod.z.discriminatedUnion("warning_code", [
|
|
|
6965
6982
|
acs_user_profile_does_not_match_user_identity
|
|
6966
6983
|
]).describe("Warnings associated with the user identity.");
|
|
6967
6984
|
zod.z.object({
|
|
6968
|
-
|
|
6985
|
+
being_deleted: user_identity_being_deleted.optional().nullable(),
|
|
6969
6986
|
acs_user_profile_does_not_match_user_identity: acs_user_profile_does_not_match_user_identity.optional().nullable()
|
|
6970
6987
|
});
|
|
6971
6988
|
var user_identity_errors = zod.z.discriminatedUnion("error_code", [user_identity_issue_with_acs_user]).describe("Errors associated with the user identity.");
|
|
@@ -8559,6 +8576,35 @@ var openapi = {
|
|
|
8559
8576
|
},
|
|
8560
8577
|
required: ["created_at", "message", "error_code"],
|
|
8561
8578
|
type: "object"
|
|
8579
|
+
},
|
|
8580
|
+
{
|
|
8581
|
+
description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
|
|
8582
|
+
properties: {
|
|
8583
|
+
created_at: {
|
|
8584
|
+
description: "Date and time at which Seam created the error.",
|
|
8585
|
+
format: "date-time",
|
|
8586
|
+
type: "string"
|
|
8587
|
+
},
|
|
8588
|
+
error_code: {
|
|
8589
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
8590
|
+
enum: ["dormakaba_sites_disconnected"],
|
|
8591
|
+
type: "string"
|
|
8592
|
+
},
|
|
8593
|
+
is_bridge_error: {
|
|
8594
|
+
description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
|
|
8595
|
+
type: "boolean"
|
|
8596
|
+
},
|
|
8597
|
+
is_connected_account_error: {
|
|
8598
|
+
description: "Indicates whether the error is related specifically to the connected account.",
|
|
8599
|
+
type: "boolean"
|
|
8600
|
+
},
|
|
8601
|
+
message: {
|
|
8602
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
8603
|
+
type: "string"
|
|
8604
|
+
}
|
|
8605
|
+
},
|
|
8606
|
+
required: ["created_at", "message", "error_code"],
|
|
8607
|
+
type: "object"
|
|
8562
8608
|
}
|
|
8563
8609
|
]
|
|
8564
8610
|
},
|
|
@@ -18560,6 +18606,35 @@ var openapi = {
|
|
|
18560
18606
|
"salto_ks_metadata"
|
|
18561
18607
|
],
|
|
18562
18608
|
type: "object"
|
|
18609
|
+
},
|
|
18610
|
+
{
|
|
18611
|
+
description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
|
|
18612
|
+
properties: {
|
|
18613
|
+
created_at: {
|
|
18614
|
+
description: "Date and time at which Seam created the error.",
|
|
18615
|
+
format: "date-time",
|
|
18616
|
+
type: "string"
|
|
18617
|
+
},
|
|
18618
|
+
error_code: {
|
|
18619
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
18620
|
+
enum: ["dormakaba_sites_disconnected"],
|
|
18621
|
+
type: "string"
|
|
18622
|
+
},
|
|
18623
|
+
is_bridge_error: {
|
|
18624
|
+
description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
|
|
18625
|
+
type: "boolean"
|
|
18626
|
+
},
|
|
18627
|
+
is_connected_account_error: {
|
|
18628
|
+
description: "Indicates whether the error is related specifically to the connected account.",
|
|
18629
|
+
type: "boolean"
|
|
18630
|
+
},
|
|
18631
|
+
message: {
|
|
18632
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
18633
|
+
type: "string"
|
|
18634
|
+
}
|
|
18635
|
+
},
|
|
18636
|
+
required: ["created_at", "message", "error_code"],
|
|
18637
|
+
type: "object"
|
|
18563
18638
|
}
|
|
18564
18639
|
]
|
|
18565
18640
|
},
|
|
@@ -18808,6 +18883,27 @@ var openapi = {
|
|
|
18808
18883
|
},
|
|
18809
18884
|
required: ["created_at", "message", "warning_code"],
|
|
18810
18885
|
type: "object"
|
|
18886
|
+
},
|
|
18887
|
+
{
|
|
18888
|
+
description: "Indicates that one or more dormakaba sites associated with the connected account are not approved. Contact support@getseam.com to finish setting up your account.",
|
|
18889
|
+
properties: {
|
|
18890
|
+
created_at: {
|
|
18891
|
+
description: "Date and time at which Seam created the warning.",
|
|
18892
|
+
format: "date-time",
|
|
18893
|
+
type: "string"
|
|
18894
|
+
},
|
|
18895
|
+
message: {
|
|
18896
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
18897
|
+
type: "string"
|
|
18898
|
+
},
|
|
18899
|
+
warning_code: {
|
|
18900
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
18901
|
+
enum: ["dormakaba_sites_unapproved"],
|
|
18902
|
+
type: "string"
|
|
18903
|
+
}
|
|
18904
|
+
},
|
|
18905
|
+
required: ["created_at", "message", "warning_code"],
|
|
18906
|
+
type: "object"
|
|
18811
18907
|
}
|
|
18812
18908
|
]
|
|
18813
18909
|
},
|
|
@@ -19601,6 +19697,35 @@ var openapi = {
|
|
|
19601
19697
|
},
|
|
19602
19698
|
required: ["created_at", "message", "error_code"],
|
|
19603
19699
|
type: "object"
|
|
19700
|
+
},
|
|
19701
|
+
{
|
|
19702
|
+
description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
|
|
19703
|
+
properties: {
|
|
19704
|
+
created_at: {
|
|
19705
|
+
description: "Date and time at which Seam created the error.",
|
|
19706
|
+
format: "date-time",
|
|
19707
|
+
type: "string"
|
|
19708
|
+
},
|
|
19709
|
+
error_code: {
|
|
19710
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
19711
|
+
enum: ["dormakaba_sites_disconnected"],
|
|
19712
|
+
type: "string"
|
|
19713
|
+
},
|
|
19714
|
+
is_bridge_error: {
|
|
19715
|
+
description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
|
|
19716
|
+
type: "boolean"
|
|
19717
|
+
},
|
|
19718
|
+
is_connected_account_error: {
|
|
19719
|
+
description: "Indicates whether the error is related specifically to the connected account.",
|
|
19720
|
+
type: "boolean"
|
|
19721
|
+
},
|
|
19722
|
+
message: {
|
|
19723
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
19724
|
+
type: "string"
|
|
19725
|
+
}
|
|
19726
|
+
},
|
|
19727
|
+
required: ["created_at", "message", "error_code"],
|
|
19728
|
+
type: "object"
|
|
19604
19729
|
}
|
|
19605
19730
|
]
|
|
19606
19731
|
},
|
|
@@ -22772,6 +22897,7 @@ var openapi = {
|
|
|
22772
22897
|
"ultraloq",
|
|
22773
22898
|
"dusaw",
|
|
22774
22899
|
"sifely",
|
|
22900
|
+
"thirty_three_lock",
|
|
22775
22901
|
"ring",
|
|
22776
22902
|
"ical",
|
|
22777
22903
|
"lodgify",
|
|
@@ -33841,6 +33967,35 @@ var openapi = {
|
|
|
33841
33967
|
},
|
|
33842
33968
|
required: ["created_at", "message", "error_code"],
|
|
33843
33969
|
type: "object"
|
|
33970
|
+
},
|
|
33971
|
+
{
|
|
33972
|
+
description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
|
|
33973
|
+
properties: {
|
|
33974
|
+
created_at: {
|
|
33975
|
+
description: "Date and time at which Seam created the error.",
|
|
33976
|
+
format: "date-time",
|
|
33977
|
+
type: "string"
|
|
33978
|
+
},
|
|
33979
|
+
error_code: {
|
|
33980
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
33981
|
+
enum: ["dormakaba_sites_disconnected"],
|
|
33982
|
+
type: "string"
|
|
33983
|
+
},
|
|
33984
|
+
is_bridge_error: {
|
|
33985
|
+
description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
|
|
33986
|
+
type: "boolean"
|
|
33987
|
+
},
|
|
33988
|
+
is_connected_account_error: {
|
|
33989
|
+
description: "Indicates whether the error is related specifically to the connected account.",
|
|
33990
|
+
type: "boolean"
|
|
33991
|
+
},
|
|
33992
|
+
message: {
|
|
33993
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
33994
|
+
type: "string"
|
|
33995
|
+
}
|
|
33996
|
+
},
|
|
33997
|
+
required: ["created_at", "message", "error_code"],
|
|
33998
|
+
type: "object"
|
|
33844
33999
|
}
|
|
33845
34000
|
]
|
|
33846
34001
|
},
|
|
@@ -36588,6 +36743,35 @@ var openapi = {
|
|
|
36588
36743
|
},
|
|
36589
36744
|
required: ["created_at", "message", "error_code"],
|
|
36590
36745
|
type: "object"
|
|
36746
|
+
},
|
|
36747
|
+
{
|
|
36748
|
+
description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
|
|
36749
|
+
properties: {
|
|
36750
|
+
created_at: {
|
|
36751
|
+
description: "Date and time at which Seam created the error.",
|
|
36752
|
+
format: "date-time",
|
|
36753
|
+
type: "string"
|
|
36754
|
+
},
|
|
36755
|
+
error_code: {
|
|
36756
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
36757
|
+
enum: ["dormakaba_sites_disconnected"],
|
|
36758
|
+
type: "string"
|
|
36759
|
+
},
|
|
36760
|
+
is_bridge_error: {
|
|
36761
|
+
description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).",
|
|
36762
|
+
type: "boolean"
|
|
36763
|
+
},
|
|
36764
|
+
is_connected_account_error: {
|
|
36765
|
+
description: "Indicates whether the error is related specifically to the connected account.",
|
|
36766
|
+
type: "boolean"
|
|
36767
|
+
},
|
|
36768
|
+
message: {
|
|
36769
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
36770
|
+
type: "string"
|
|
36771
|
+
}
|
|
36772
|
+
},
|
|
36773
|
+
required: ["created_at", "message", "error_code"],
|
|
36774
|
+
type: "object"
|
|
36591
36775
|
}
|
|
36592
36776
|
]
|
|
36593
36777
|
},
|
|
@@ -54441,6 +54625,7 @@ var openapi = {
|
|
|
54441
54625
|
"ultraloq",
|
|
54442
54626
|
"dusaw",
|
|
54443
54627
|
"sifely",
|
|
54628
|
+
"thirty_three_lock",
|
|
54444
54629
|
"ring",
|
|
54445
54630
|
"ical",
|
|
54446
54631
|
"lodgify",
|