@seamapi/types 1.594.0 → 1.596.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 +270 -9
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +534 -5
- package/dist/index.cjs +270 -9
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +151 -0
- package/lib/seam/connect/models/devices/device-metadata.d.ts +13 -0
- package/lib/seam/connect/models/devices/device-metadata.js +5 -0
- package/lib/seam/connect/models/devices/device-metadata.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/models/devices/device.d.ts +19 -0
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +13 -0
- package/lib/seam/connect/openapi.d.ts +341 -0
- package/lib/seam/connect/openapi.js +257 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +122 -5
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-metadata.ts +5 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +271 -0
- package/src/lib/seam/connect/route-types.ts +156 -0
package/dist/connect.cjs
CHANGED
|
@@ -1059,7 +1059,10 @@ var device_metadata = zod.z.object({
|
|
|
1059
1059
|
default_office_id: zod.z.number().describe(`Default office ID for a KeyNest device.`),
|
|
1060
1060
|
fob_id: zod.z.number().describe(`Fob ID for a KeyNest device.`),
|
|
1061
1061
|
has_photo: zod.z.boolean().describe(`Whether the KeyNest device has a photo.`)
|
|
1062
|
-
}).partial().describe(`Metadata for a KeyNest device.`)
|
|
1062
|
+
}).partial().describe(`Metadata for a KeyNest device.`),
|
|
1063
|
+
ultraloq_metadata: zod.z.object({
|
|
1064
|
+
device_id: zod.z.string().describe(`Device ID for a Ultraloq device.`)
|
|
1065
|
+
}).describe(`Metadata for a Ultraloq device.`)
|
|
1063
1066
|
}).partial().describe(`
|
|
1064
1067
|
---
|
|
1065
1068
|
property_group_key: provider_metadata
|
|
@@ -1798,7 +1801,8 @@ var DEVICE_PROVIDERS = {
|
|
|
1798
1801
|
SENSI: "sensi",
|
|
1799
1802
|
KWIKSET2: "kwikset2",
|
|
1800
1803
|
KEYNEST: "keynest",
|
|
1801
|
-
DORMAKABA_AMBIANCE: "dormakaba_ambiance"
|
|
1804
|
+
DORMAKABA_AMBIANCE: "dormakaba_ambiance",
|
|
1805
|
+
ULTRALOQ: "ultraloq"
|
|
1802
1806
|
};
|
|
1803
1807
|
var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
|
|
1804
1808
|
var PROVIDER_CATEGORY_MAP = {
|
|
@@ -15942,6 +15946,17 @@ var openapi_default = {
|
|
|
15942
15946
|
required: ["device_id", "device_name"],
|
|
15943
15947
|
type: "object"
|
|
15944
15948
|
},
|
|
15949
|
+
ultraloq_metadata: {
|
|
15950
|
+
description: "Metadata for a Ultraloq device.",
|
|
15951
|
+
properties: {
|
|
15952
|
+
device_id: {
|
|
15953
|
+
description: "Device ID for a Ultraloq device.",
|
|
15954
|
+
type: "string"
|
|
15955
|
+
}
|
|
15956
|
+
},
|
|
15957
|
+
required: ["device_id"],
|
|
15958
|
+
type: "object"
|
|
15959
|
+
},
|
|
15945
15960
|
visionline_metadata: {
|
|
15946
15961
|
description: "Metadata for an ASSA ABLOY Visionline system.",
|
|
15947
15962
|
properties: {
|
|
@@ -17387,7 +17402,8 @@ var openapi_default = {
|
|
|
17387
17402
|
"sensi",
|
|
17388
17403
|
"kwikset2",
|
|
17389
17404
|
"keynest",
|
|
17390
|
-
"dormakaba_ambiance"
|
|
17405
|
+
"dormakaba_ambiance",
|
|
17406
|
+
"ultraloq"
|
|
17391
17407
|
],
|
|
17392
17408
|
type: "string"
|
|
17393
17409
|
},
|
|
@@ -32883,6 +32899,126 @@ var openapi_default = {
|
|
|
32883
32899
|
"x-title": "List Unmanaged Access Grants"
|
|
32884
32900
|
}
|
|
32885
32901
|
},
|
|
32902
|
+
"/access_grants/unmanaged/update": {
|
|
32903
|
+
patch: {
|
|
32904
|
+
description: "Updates an unmanaged Access Grant to make it managed.\n\nThis endpoint can only be used to convert unmanaged access grants to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed access grants back to unmanaged.\n\nWhen converting an unmanaged access grant to managed, all associated access methods will also be converted to managed.",
|
|
32905
|
+
operationId: "accessGrantsUnmanagedUpdatePatch",
|
|
32906
|
+
requestBody: {
|
|
32907
|
+
content: {
|
|
32908
|
+
"application/json": {
|
|
32909
|
+
schema: {
|
|
32910
|
+
properties: {
|
|
32911
|
+
access_grant_id: {
|
|
32912
|
+
description: "ID of the unmanaged Access Grant to update.",
|
|
32913
|
+
format: "uuid",
|
|
32914
|
+
type: "string"
|
|
32915
|
+
},
|
|
32916
|
+
access_grant_key: {
|
|
32917
|
+
description: "Unique key for the access grant. If not provided, the existing key will be preserved.",
|
|
32918
|
+
type: "string"
|
|
32919
|
+
},
|
|
32920
|
+
is_managed: {
|
|
32921
|
+
description: "Must be set to true to convert the unmanaged access grant to managed.",
|
|
32922
|
+
enum: [true],
|
|
32923
|
+
type: "boolean"
|
|
32924
|
+
}
|
|
32925
|
+
},
|
|
32926
|
+
required: ["access_grant_id", "is_managed"],
|
|
32927
|
+
type: "object"
|
|
32928
|
+
}
|
|
32929
|
+
}
|
|
32930
|
+
}
|
|
32931
|
+
},
|
|
32932
|
+
responses: {
|
|
32933
|
+
200: {
|
|
32934
|
+
content: {
|
|
32935
|
+
"application/json": {
|
|
32936
|
+
schema: {
|
|
32937
|
+
properties: { ok: { type: "boolean" } },
|
|
32938
|
+
required: ["ok"],
|
|
32939
|
+
type: "object"
|
|
32940
|
+
}
|
|
32941
|
+
}
|
|
32942
|
+
},
|
|
32943
|
+
description: "OK"
|
|
32944
|
+
},
|
|
32945
|
+
400: { description: "Bad Request" },
|
|
32946
|
+
401: { description: "Unauthorized" }
|
|
32947
|
+
},
|
|
32948
|
+
security: [
|
|
32949
|
+
{ pat_with_workspace: [] },
|
|
32950
|
+
{ console_session_with_workspace: [] },
|
|
32951
|
+
{ api_key: [] },
|
|
32952
|
+
{ client_session_with_customer: [] }
|
|
32953
|
+
],
|
|
32954
|
+
summary: "/access_grants/unmanaged/update",
|
|
32955
|
+
tags: [],
|
|
32956
|
+
"x-draft": "Early access.",
|
|
32957
|
+
"x-fern-sdk-group-name": ["access_grants", "unmanaged"],
|
|
32958
|
+
"x-fern-sdk-method-name": "update",
|
|
32959
|
+
"x-response-key": null,
|
|
32960
|
+
"x-title": "Update an Unmanaged Access Grant"
|
|
32961
|
+
},
|
|
32962
|
+
post: {
|
|
32963
|
+
description: "Updates an unmanaged Access Grant to make it managed.\n\nThis endpoint can only be used to convert unmanaged access grants to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed access grants back to unmanaged.\n\nWhen converting an unmanaged access grant to managed, all associated access methods will also be converted to managed.",
|
|
32964
|
+
operationId: "accessGrantsUnmanagedUpdatePost",
|
|
32965
|
+
requestBody: {
|
|
32966
|
+
content: {
|
|
32967
|
+
"application/json": {
|
|
32968
|
+
schema: {
|
|
32969
|
+
properties: {
|
|
32970
|
+
access_grant_id: {
|
|
32971
|
+
description: "ID of the unmanaged Access Grant to update.",
|
|
32972
|
+
format: "uuid",
|
|
32973
|
+
type: "string"
|
|
32974
|
+
},
|
|
32975
|
+
access_grant_key: {
|
|
32976
|
+
description: "Unique key for the access grant. If not provided, the existing key will be preserved.",
|
|
32977
|
+
type: "string"
|
|
32978
|
+
},
|
|
32979
|
+
is_managed: {
|
|
32980
|
+
description: "Must be set to true to convert the unmanaged access grant to managed.",
|
|
32981
|
+
enum: [true],
|
|
32982
|
+
type: "boolean"
|
|
32983
|
+
}
|
|
32984
|
+
},
|
|
32985
|
+
required: ["access_grant_id", "is_managed"],
|
|
32986
|
+
type: "object"
|
|
32987
|
+
}
|
|
32988
|
+
}
|
|
32989
|
+
}
|
|
32990
|
+
},
|
|
32991
|
+
responses: {
|
|
32992
|
+
200: {
|
|
32993
|
+
content: {
|
|
32994
|
+
"application/json": {
|
|
32995
|
+
schema: {
|
|
32996
|
+
properties: { ok: { type: "boolean" } },
|
|
32997
|
+
required: ["ok"],
|
|
32998
|
+
type: "object"
|
|
32999
|
+
}
|
|
33000
|
+
}
|
|
33001
|
+
},
|
|
33002
|
+
description: "OK"
|
|
33003
|
+
},
|
|
33004
|
+
400: { description: "Bad Request" },
|
|
33005
|
+
401: { description: "Unauthorized" }
|
|
33006
|
+
},
|
|
33007
|
+
security: [
|
|
33008
|
+
{ pat_with_workspace: [] },
|
|
33009
|
+
{ console_session_with_workspace: [] },
|
|
33010
|
+
{ api_key: [] },
|
|
33011
|
+
{ client_session_with_customer: [] }
|
|
33012
|
+
],
|
|
33013
|
+
summary: "/access_grants/unmanaged/update",
|
|
33014
|
+
tags: [],
|
|
33015
|
+
"x-draft": "Early access.",
|
|
33016
|
+
"x-fern-sdk-group-name": ["access_grants", "unmanaged"],
|
|
33017
|
+
"x-fern-sdk-method-name": "update",
|
|
33018
|
+
"x-response-key": null,
|
|
33019
|
+
"x-title": "Update an Unmanaged Access Grant"
|
|
33020
|
+
}
|
|
33021
|
+
},
|
|
32886
33022
|
"/access_grants/update": {
|
|
32887
33023
|
patch: {
|
|
32888
33024
|
description: "Updates an existing Access Grant's time window.",
|
|
@@ -41562,6 +41698,7 @@ var openapi_default = {
|
|
|
41562
41698
|
"kwikset2",
|
|
41563
41699
|
"keynest",
|
|
41564
41700
|
"dormakaba_ambiance",
|
|
41701
|
+
"ultraloq",
|
|
41565
41702
|
"yale_access",
|
|
41566
41703
|
"hid_cm",
|
|
41567
41704
|
"google_nest"
|
|
@@ -44944,7 +45081,8 @@ var openapi_default = {
|
|
|
44944
45081
|
"tado",
|
|
44945
45082
|
"sensi",
|
|
44946
45083
|
"smartthings",
|
|
44947
|
-
"keynest"
|
|
45084
|
+
"keynest",
|
|
45085
|
+
"ultraloq"
|
|
44948
45086
|
],
|
|
44949
45087
|
type: "string"
|
|
44950
45088
|
}
|
|
@@ -45418,7 +45556,8 @@ var openapi_default = {
|
|
|
45418
45556
|
"tado",
|
|
45419
45557
|
"sensi",
|
|
45420
45558
|
"smartthings",
|
|
45421
|
-
"keynest"
|
|
45559
|
+
"keynest",
|
|
45560
|
+
"ultraloq"
|
|
45422
45561
|
],
|
|
45423
45562
|
type: "string"
|
|
45424
45563
|
},
|
|
@@ -46254,7 +46393,8 @@ var openapi_default = {
|
|
|
46254
46393
|
"tado",
|
|
46255
46394
|
"sensi",
|
|
46256
46395
|
"smartthings",
|
|
46257
|
-
"keynest"
|
|
46396
|
+
"keynest",
|
|
46397
|
+
"ultraloq"
|
|
46258
46398
|
],
|
|
46259
46399
|
type: "string"
|
|
46260
46400
|
}
|
|
@@ -46726,7 +46866,8 @@ var openapi_default = {
|
|
|
46726
46866
|
"tado",
|
|
46727
46867
|
"sensi",
|
|
46728
46868
|
"smartthings",
|
|
46729
|
-
"keynest"
|
|
46869
|
+
"keynest",
|
|
46870
|
+
"ultraloq"
|
|
46730
46871
|
],
|
|
46731
46872
|
type: "string"
|
|
46732
46873
|
},
|
|
@@ -48512,7 +48653,8 @@ var openapi_default = {
|
|
|
48512
48653
|
"tedee",
|
|
48513
48654
|
"akiles",
|
|
48514
48655
|
"kwikset2",
|
|
48515
|
-
"smartthings"
|
|
48656
|
+
"smartthings",
|
|
48657
|
+
"ultraloq"
|
|
48516
48658
|
],
|
|
48517
48659
|
type: "string"
|
|
48518
48660
|
}
|
|
@@ -48913,7 +49055,8 @@ var openapi_default = {
|
|
|
48913
49055
|
"tedee",
|
|
48914
49056
|
"akiles",
|
|
48915
49057
|
"kwikset2",
|
|
48916
|
-
"smartthings"
|
|
49058
|
+
"smartthings",
|
|
49059
|
+
"ultraloq"
|
|
48917
49060
|
],
|
|
48918
49061
|
type: "string"
|
|
48919
49062
|
},
|
|
@@ -62590,6 +62733,124 @@ var openapi_default = {
|
|
|
62590
62733
|
"x-title": "List Unmanaged User Identities"
|
|
62591
62734
|
}
|
|
62592
62735
|
},
|
|
62736
|
+
"/user_identities/unmanaged/update": {
|
|
62737
|
+
patch: {
|
|
62738
|
+
description: "Updates an unmanaged [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) to make it managed.\n\nThis endpoint can only be used to convert unmanaged user identities to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed user identities back to unmanaged.",
|
|
62739
|
+
operationId: "userIdentitiesUnmanagedUpdatePatch",
|
|
62740
|
+
requestBody: {
|
|
62741
|
+
content: {
|
|
62742
|
+
"application/json": {
|
|
62743
|
+
schema: {
|
|
62744
|
+
properties: {
|
|
62745
|
+
is_managed: {
|
|
62746
|
+
description: "Must be set to true to convert the unmanaged user identity to managed.",
|
|
62747
|
+
enum: [true],
|
|
62748
|
+
type: "boolean"
|
|
62749
|
+
},
|
|
62750
|
+
user_identity_id: {
|
|
62751
|
+
description: "ID of the unmanaged user identity that you want to update.",
|
|
62752
|
+
format: "uuid",
|
|
62753
|
+
type: "string"
|
|
62754
|
+
},
|
|
62755
|
+
user_identity_key: {
|
|
62756
|
+
description: "Unique key for the user identity. If not provided, the existing key will be preserved.",
|
|
62757
|
+
type: "string"
|
|
62758
|
+
}
|
|
62759
|
+
},
|
|
62760
|
+
required: ["user_identity_id", "is_managed"],
|
|
62761
|
+
type: "object"
|
|
62762
|
+
}
|
|
62763
|
+
}
|
|
62764
|
+
}
|
|
62765
|
+
},
|
|
62766
|
+
responses: {
|
|
62767
|
+
200: {
|
|
62768
|
+
content: {
|
|
62769
|
+
"application/json": {
|
|
62770
|
+
schema: {
|
|
62771
|
+
properties: { ok: { type: "boolean" } },
|
|
62772
|
+
required: ["ok"],
|
|
62773
|
+
type: "object"
|
|
62774
|
+
}
|
|
62775
|
+
}
|
|
62776
|
+
},
|
|
62777
|
+
description: "OK"
|
|
62778
|
+
},
|
|
62779
|
+
400: { description: "Bad Request" },
|
|
62780
|
+
401: { description: "Unauthorized" }
|
|
62781
|
+
},
|
|
62782
|
+
security: [
|
|
62783
|
+
{ api_key: [] },
|
|
62784
|
+
{ client_session: [] },
|
|
62785
|
+
{ pat_with_workspace: [] },
|
|
62786
|
+
{ console_session_with_workspace: [] }
|
|
62787
|
+
],
|
|
62788
|
+
summary: "/user_identities/unmanaged/update",
|
|
62789
|
+
tags: ["/user_identities"],
|
|
62790
|
+
"x-fern-sdk-group-name": ["user_identities", "unmanaged"],
|
|
62791
|
+
"x-fern-sdk-method-name": "update",
|
|
62792
|
+
"x-response-key": null,
|
|
62793
|
+
"x-title": "Update an Unmanaged User Identity"
|
|
62794
|
+
},
|
|
62795
|
+
post: {
|
|
62796
|
+
description: "Updates an unmanaged [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) to make it managed.\n\nThis endpoint can only be used to convert unmanaged user identities to managed ones by setting `is_managed` to `true`. It cannot be used to convert managed user identities back to unmanaged.",
|
|
62797
|
+
operationId: "userIdentitiesUnmanagedUpdatePost",
|
|
62798
|
+
requestBody: {
|
|
62799
|
+
content: {
|
|
62800
|
+
"application/json": {
|
|
62801
|
+
schema: {
|
|
62802
|
+
properties: {
|
|
62803
|
+
is_managed: {
|
|
62804
|
+
description: "Must be set to true to convert the unmanaged user identity to managed.",
|
|
62805
|
+
enum: [true],
|
|
62806
|
+
type: "boolean"
|
|
62807
|
+
},
|
|
62808
|
+
user_identity_id: {
|
|
62809
|
+
description: "ID of the unmanaged user identity that you want to update.",
|
|
62810
|
+
format: "uuid",
|
|
62811
|
+
type: "string"
|
|
62812
|
+
},
|
|
62813
|
+
user_identity_key: {
|
|
62814
|
+
description: "Unique key for the user identity. If not provided, the existing key will be preserved.",
|
|
62815
|
+
type: "string"
|
|
62816
|
+
}
|
|
62817
|
+
},
|
|
62818
|
+
required: ["user_identity_id", "is_managed"],
|
|
62819
|
+
type: "object"
|
|
62820
|
+
}
|
|
62821
|
+
}
|
|
62822
|
+
}
|
|
62823
|
+
},
|
|
62824
|
+
responses: {
|
|
62825
|
+
200: {
|
|
62826
|
+
content: {
|
|
62827
|
+
"application/json": {
|
|
62828
|
+
schema: {
|
|
62829
|
+
properties: { ok: { type: "boolean" } },
|
|
62830
|
+
required: ["ok"],
|
|
62831
|
+
type: "object"
|
|
62832
|
+
}
|
|
62833
|
+
}
|
|
62834
|
+
},
|
|
62835
|
+
description: "OK"
|
|
62836
|
+
},
|
|
62837
|
+
400: { description: "Bad Request" },
|
|
62838
|
+
401: { description: "Unauthorized" }
|
|
62839
|
+
},
|
|
62840
|
+
security: [
|
|
62841
|
+
{ api_key: [] },
|
|
62842
|
+
{ client_session: [] },
|
|
62843
|
+
{ pat_with_workspace: [] },
|
|
62844
|
+
{ console_session_with_workspace: [] }
|
|
62845
|
+
],
|
|
62846
|
+
summary: "/user_identities/unmanaged/update",
|
|
62847
|
+
tags: ["/user_identities"],
|
|
62848
|
+
"x-fern-sdk-group-name": ["user_identities", "unmanaged"],
|
|
62849
|
+
"x-fern-sdk-method-name": "update",
|
|
62850
|
+
"x-response-key": null,
|
|
62851
|
+
"x-title": "Update an Unmanaged User Identity"
|
|
62852
|
+
}
|
|
62853
|
+
},
|
|
62593
62854
|
"/user_identities/update": {
|
|
62594
62855
|
patch: {
|
|
62595
62856
|
description: "Updates a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).",
|