@seamapi/types 1.810.0 → 1.812.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 +232 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +390 -0
- package/dist/index.cjs +232 -4
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +96 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +22 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +43 -0
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -2
- package/lib/seam/connect/models/devices/device-provider.js +2 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +195 -0
- package/lib/seam/connect/openapi.js +209 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +121 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +30 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
- package/src/lib/seam/connect/openapi.ts +239 -0
- package/src/lib/seam/connect/route-types.ts +165 -0
package/dist/index.cjs
CHANGED
|
@@ -2014,7 +2014,8 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
2014
2014
|
"keynest",
|
|
2015
2015
|
"hotek",
|
|
2016
2016
|
"ultraloq",
|
|
2017
|
-
"dormakaba_oracode"
|
|
2017
|
+
"dormakaba_oracode",
|
|
2018
|
+
"ring"
|
|
2018
2019
|
],
|
|
2019
2020
|
consumer_smartlocks: [
|
|
2020
2021
|
"akiles",
|
|
@@ -2032,7 +2033,7 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
2032
2033
|
"ultraloq",
|
|
2033
2034
|
"dormakaba_oracode"
|
|
2034
2035
|
],
|
|
2035
|
-
beta: ["korelock"
|
|
2036
|
+
beta: ["korelock"],
|
|
2036
2037
|
thermostats: ["ecobee", "nest", "sensi", "honeywell_resideo"],
|
|
2037
2038
|
noise_sensors: ["minut", "noiseaware"],
|
|
2038
2039
|
access_control_systems: [
|
|
@@ -2764,13 +2765,30 @@ var device_does_not_support_access_codes = common_access_grant_warning.extend({
|
|
|
2764
2765
|
}).describe(
|
|
2765
2766
|
"Indicates that a device in the access grant does not support access codes and was excluded from code materialization."
|
|
2766
2767
|
);
|
|
2768
|
+
var device_time_constraints_violated_reason = zod.z.enum([
|
|
2769
|
+
"duration_exceeds_max",
|
|
2770
|
+
"times_do_not_match_slots",
|
|
2771
|
+
"ongoing_not_supported"
|
|
2772
|
+
]);
|
|
2773
|
+
var device_time_constraints_violated = common_access_grant_warning.extend({
|
|
2774
|
+
warning_code: zod.z.literal("device_time_constraints_violated").describe(warning_code_description4),
|
|
2775
|
+
device_id: zod.z.string().uuid().describe(
|
|
2776
|
+
"ID of the device whose time constraints the access grant violates."
|
|
2777
|
+
),
|
|
2778
|
+
reason: device_time_constraints_violated_reason.describe(
|
|
2779
|
+
"Specific reason why the grant's times are not programmable on the device."
|
|
2780
|
+
)
|
|
2781
|
+
}).describe(
|
|
2782
|
+
"Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints."
|
|
2783
|
+
);
|
|
2767
2784
|
var access_grant_warning = zod.z.discriminatedUnion("warning_code", [
|
|
2768
2785
|
being_deleted3,
|
|
2769
2786
|
underprovisioned_access,
|
|
2770
2787
|
overprovisioned_access,
|
|
2771
2788
|
updating_access_times,
|
|
2772
2789
|
requested_code_unavailable,
|
|
2773
|
-
device_does_not_support_access_codes
|
|
2790
|
+
device_does_not_support_access_codes,
|
|
2791
|
+
device_time_constraints_violated
|
|
2774
2792
|
]).describe(
|
|
2775
2793
|
"Warning associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants)."
|
|
2776
2794
|
);
|
|
@@ -2780,7 +2798,8 @@ zod.z.object({
|
|
|
2780
2798
|
overprovisioned_access: overprovisioned_access.optional().nullable(),
|
|
2781
2799
|
updating_access_times: updating_access_times.optional().nullable(),
|
|
2782
2800
|
requested_code_unavailable_by_device: zod.z.record(zod.z.string().uuid(), requested_code_unavailable).optional().nullable(),
|
|
2783
|
-
device_does_not_support_access_codes: zod.z.record(zod.z.string().uuid(), device_does_not_support_access_codes).optional().nullable()
|
|
2801
|
+
device_does_not_support_access_codes: zod.z.record(zod.z.string().uuid(), device_does_not_support_access_codes).optional().nullable(),
|
|
2802
|
+
device_time_constraints_violated: zod.z.record(zod.z.string().uuid(), device_time_constraints_violated).optional().nullable()
|
|
2784
2803
|
});
|
|
2785
2804
|
var access_grant = zod.z.object({
|
|
2786
2805
|
workspace_id: zod.z.string().uuid().describe("ID of the Seam workspace associated with the Access Grant."),
|
|
@@ -9177,6 +9196,47 @@ var openapi_default = {
|
|
|
9177
9196
|
"device_id"
|
|
9178
9197
|
],
|
|
9179
9198
|
type: "object"
|
|
9199
|
+
},
|
|
9200
|
+
{
|
|
9201
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
9202
|
+
properties: {
|
|
9203
|
+
created_at: {
|
|
9204
|
+
description: "Date and time at which Seam created the warning.",
|
|
9205
|
+
format: "date-time",
|
|
9206
|
+
type: "string"
|
|
9207
|
+
},
|
|
9208
|
+
device_id: {
|
|
9209
|
+
description: "ID of the device whose time constraints the access grant violates.",
|
|
9210
|
+
format: "uuid",
|
|
9211
|
+
type: "string"
|
|
9212
|
+
},
|
|
9213
|
+
message: {
|
|
9214
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
9215
|
+
type: "string"
|
|
9216
|
+
},
|
|
9217
|
+
reason: {
|
|
9218
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
9219
|
+
enum: [
|
|
9220
|
+
"duration_exceeds_max",
|
|
9221
|
+
"times_do_not_match_slots",
|
|
9222
|
+
"ongoing_not_supported"
|
|
9223
|
+
],
|
|
9224
|
+
type: "string"
|
|
9225
|
+
},
|
|
9226
|
+
warning_code: {
|
|
9227
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
9228
|
+
enum: ["device_time_constraints_violated"],
|
|
9229
|
+
type: "string"
|
|
9230
|
+
}
|
|
9231
|
+
},
|
|
9232
|
+
required: [
|
|
9233
|
+
"created_at",
|
|
9234
|
+
"message",
|
|
9235
|
+
"warning_code",
|
|
9236
|
+
"device_id",
|
|
9237
|
+
"reason"
|
|
9238
|
+
],
|
|
9239
|
+
type: "object"
|
|
9180
9240
|
}
|
|
9181
9241
|
]
|
|
9182
9242
|
},
|
|
@@ -39522,6 +39582,47 @@ var openapi_default = {
|
|
|
39522
39582
|
"device_id"
|
|
39523
39583
|
],
|
|
39524
39584
|
type: "object"
|
|
39585
|
+
},
|
|
39586
|
+
{
|
|
39587
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
39588
|
+
properties: {
|
|
39589
|
+
created_at: {
|
|
39590
|
+
description: "Date and time at which Seam created the warning.",
|
|
39591
|
+
format: "date-time",
|
|
39592
|
+
type: "string"
|
|
39593
|
+
},
|
|
39594
|
+
device_id: {
|
|
39595
|
+
description: "ID of the device whose time constraints the access grant violates.",
|
|
39596
|
+
format: "uuid",
|
|
39597
|
+
type: "string"
|
|
39598
|
+
},
|
|
39599
|
+
message: {
|
|
39600
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
39601
|
+
type: "string"
|
|
39602
|
+
},
|
|
39603
|
+
reason: {
|
|
39604
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
39605
|
+
enum: [
|
|
39606
|
+
"duration_exceeds_max",
|
|
39607
|
+
"times_do_not_match_slots",
|
|
39608
|
+
"ongoing_not_supported"
|
|
39609
|
+
],
|
|
39610
|
+
type: "string"
|
|
39611
|
+
},
|
|
39612
|
+
warning_code: {
|
|
39613
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
39614
|
+
enum: ["device_time_constraints_violated"],
|
|
39615
|
+
type: "string"
|
|
39616
|
+
}
|
|
39617
|
+
},
|
|
39618
|
+
required: [
|
|
39619
|
+
"created_at",
|
|
39620
|
+
"message",
|
|
39621
|
+
"warning_code",
|
|
39622
|
+
"device_id",
|
|
39623
|
+
"reason"
|
|
39624
|
+
],
|
|
39625
|
+
type: "object"
|
|
39525
39626
|
}
|
|
39526
39627
|
]
|
|
39527
39628
|
},
|
|
@@ -40103,6 +40204,47 @@ var openapi_default = {
|
|
|
40103
40204
|
"device_id"
|
|
40104
40205
|
],
|
|
40105
40206
|
type: "object"
|
|
40207
|
+
},
|
|
40208
|
+
{
|
|
40209
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
40210
|
+
properties: {
|
|
40211
|
+
created_at: {
|
|
40212
|
+
description: "Date and time at which Seam created the warning.",
|
|
40213
|
+
format: "date-time",
|
|
40214
|
+
type: "string"
|
|
40215
|
+
},
|
|
40216
|
+
device_id: {
|
|
40217
|
+
description: "ID of the device whose time constraints the access grant violates.",
|
|
40218
|
+
format: "uuid",
|
|
40219
|
+
type: "string"
|
|
40220
|
+
},
|
|
40221
|
+
message: {
|
|
40222
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
40223
|
+
type: "string"
|
|
40224
|
+
},
|
|
40225
|
+
reason: {
|
|
40226
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
40227
|
+
enum: [
|
|
40228
|
+
"duration_exceeds_max",
|
|
40229
|
+
"times_do_not_match_slots",
|
|
40230
|
+
"ongoing_not_supported"
|
|
40231
|
+
],
|
|
40232
|
+
type: "string"
|
|
40233
|
+
},
|
|
40234
|
+
warning_code: {
|
|
40235
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
40236
|
+
enum: ["device_time_constraints_violated"],
|
|
40237
|
+
type: "string"
|
|
40238
|
+
}
|
|
40239
|
+
},
|
|
40240
|
+
required: [
|
|
40241
|
+
"created_at",
|
|
40242
|
+
"message",
|
|
40243
|
+
"warning_code",
|
|
40244
|
+
"device_id",
|
|
40245
|
+
"reason"
|
|
40246
|
+
],
|
|
40247
|
+
type: "object"
|
|
40106
40248
|
}
|
|
40107
40249
|
]
|
|
40108
40250
|
},
|
|
@@ -40726,6 +40868,49 @@ var openapi_default = {
|
|
|
40726
40868
|
"device_id"
|
|
40727
40869
|
],
|
|
40728
40870
|
type: "object"
|
|
40871
|
+
},
|
|
40872
|
+
{
|
|
40873
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
40874
|
+
properties: {
|
|
40875
|
+
created_at: {
|
|
40876
|
+
description: "Date and time at which Seam created the warning.",
|
|
40877
|
+
format: "date-time",
|
|
40878
|
+
type: "string"
|
|
40879
|
+
},
|
|
40880
|
+
device_id: {
|
|
40881
|
+
description: "ID of the device whose time constraints the access grant violates.",
|
|
40882
|
+
format: "uuid",
|
|
40883
|
+
type: "string"
|
|
40884
|
+
},
|
|
40885
|
+
message: {
|
|
40886
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
40887
|
+
type: "string"
|
|
40888
|
+
},
|
|
40889
|
+
reason: {
|
|
40890
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
40891
|
+
enum: [
|
|
40892
|
+
"duration_exceeds_max",
|
|
40893
|
+
"times_do_not_match_slots",
|
|
40894
|
+
"ongoing_not_supported"
|
|
40895
|
+
],
|
|
40896
|
+
type: "string"
|
|
40897
|
+
},
|
|
40898
|
+
warning_code: {
|
|
40899
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
40900
|
+
enum: [
|
|
40901
|
+
"device_time_constraints_violated"
|
|
40902
|
+
],
|
|
40903
|
+
type: "string"
|
|
40904
|
+
}
|
|
40905
|
+
},
|
|
40906
|
+
required: [
|
|
40907
|
+
"created_at",
|
|
40908
|
+
"message",
|
|
40909
|
+
"warning_code",
|
|
40910
|
+
"device_id",
|
|
40911
|
+
"reason"
|
|
40912
|
+
],
|
|
40913
|
+
type: "object"
|
|
40729
40914
|
}
|
|
40730
40915
|
]
|
|
40731
40916
|
},
|
|
@@ -41335,6 +41520,49 @@ var openapi_default = {
|
|
|
41335
41520
|
"device_id"
|
|
41336
41521
|
],
|
|
41337
41522
|
type: "object"
|
|
41523
|
+
},
|
|
41524
|
+
{
|
|
41525
|
+
description: "Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.",
|
|
41526
|
+
properties: {
|
|
41527
|
+
created_at: {
|
|
41528
|
+
description: "Date and time at which Seam created the warning.",
|
|
41529
|
+
format: "date-time",
|
|
41530
|
+
type: "string"
|
|
41531
|
+
},
|
|
41532
|
+
device_id: {
|
|
41533
|
+
description: "ID of the device whose time constraints the access grant violates.",
|
|
41534
|
+
format: "uuid",
|
|
41535
|
+
type: "string"
|
|
41536
|
+
},
|
|
41537
|
+
message: {
|
|
41538
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
41539
|
+
type: "string"
|
|
41540
|
+
},
|
|
41541
|
+
reason: {
|
|
41542
|
+
description: "Specific reason why the grant's times are not programmable on the device.",
|
|
41543
|
+
enum: [
|
|
41544
|
+
"duration_exceeds_max",
|
|
41545
|
+
"times_do_not_match_slots",
|
|
41546
|
+
"ongoing_not_supported"
|
|
41547
|
+
],
|
|
41548
|
+
type: "string"
|
|
41549
|
+
},
|
|
41550
|
+
warning_code: {
|
|
41551
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
41552
|
+
enum: [
|
|
41553
|
+
"device_time_constraints_violated"
|
|
41554
|
+
],
|
|
41555
|
+
type: "string"
|
|
41556
|
+
}
|
|
41557
|
+
},
|
|
41558
|
+
required: [
|
|
41559
|
+
"created_at",
|
|
41560
|
+
"message",
|
|
41561
|
+
"warning_code",
|
|
41562
|
+
"device_id",
|
|
41563
|
+
"reason"
|
|
41564
|
+
],
|
|
41565
|
+
type: "object"
|
|
41338
41566
|
}
|
|
41339
41567
|
]
|
|
41340
41568
|
},
|