@seamapi/types 1.418.1 → 1.420.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 +242 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +436 -2
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +6 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +10 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +58 -0
- package/lib/seam/connect/models/devices/device.js +12 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -0
- package/lib/seam/connect/models/events/access-grants.d.ts +0 -2
- package/lib/seam/connect/models/events/access-grants.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +47 -0
- package/lib/seam/connect/models/events/access-methods.js +9 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +24 -1
- package/lib/seam/connect/openapi.d.ts +181 -0
- package/lib/seam/connect/openapi.js +222 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +171 -2
- package/package.json +2 -2
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +10 -0
- package/src/lib/seam/connect/models/devices/device.ts +13 -0
- package/src/lib/seam/connect/models/events/access-grants.ts +0 -6
- package/src/lib/seam/connect/models/events/access-methods.ts +10 -0
- package/src/lib/seam/connect/openapi.ts +235 -0
- package/src/lib/seam/connect/route-types.ts +188 -0
package/dist/connect.cjs
CHANGED
|
@@ -1463,6 +1463,14 @@ var ttlock_weak_gateway_signal = common_device_warning.extend({
|
|
|
1463
1463
|
}).describe(`
|
|
1464
1464
|
Indicates that the gateway signal is weak.
|
|
1465
1465
|
`);
|
|
1466
|
+
var power_saving_mode = common_device_warning.extend({
|
|
1467
|
+
warning_code: zod.z.literal("power_saving_mode").describe(warning_code_description2)
|
|
1468
|
+
}).describe(`
|
|
1469
|
+
---
|
|
1470
|
+
variant_group_key: locks
|
|
1471
|
+
---
|
|
1472
|
+
Indicates that the device is in power saving mode and may have limited functionality.
|
|
1473
|
+
`);
|
|
1466
1474
|
var temperature_threshold_exceeded = common_device_warning.extend({
|
|
1467
1475
|
warning_code: zod.z.literal("temperature_threshold_exceeded").describe(warning_code_description2)
|
|
1468
1476
|
}).describe(`
|
|
@@ -1502,6 +1510,7 @@ var device_warning = zod.z.discriminatedUnion("warning_code", [
|
|
|
1502
1510
|
nest_thermostat_in_manual_eco_mode,
|
|
1503
1511
|
ttlock_lock_gateway_unlocking_not_enabled,
|
|
1504
1512
|
ttlock_weak_gateway_signal,
|
|
1513
|
+
power_saving_mode,
|
|
1505
1514
|
temperature_threshold_exceeded,
|
|
1506
1515
|
device_communication_degraded,
|
|
1507
1516
|
scheduled_maintenance_window2,
|
|
@@ -1525,6 +1534,7 @@ zod.z.object({
|
|
|
1525
1534
|
nest_thermostat_in_manual_eco_mode: nest_thermostat_in_manual_eco_mode.optional().nullable(),
|
|
1526
1535
|
ttlock_lock_gateway_unlocking_not_enabled: ttlock_lock_gateway_unlocking_not_enabled.optional().nullable(),
|
|
1527
1536
|
ttlock_weak_gateway_signal: ttlock_weak_gateway_signal.optional().nullable(),
|
|
1537
|
+
power_saving_mode: power_saving_mode.optional().nullable(),
|
|
1528
1538
|
temperature_threshold_exceeded: temperature_threshold_exceeded.optional().nullable(),
|
|
1529
1539
|
device_communication_degraded: device_communication_degraded.optional().nullable(),
|
|
1530
1540
|
scheduled_maintenance_window: scheduled_maintenance_window2.optional().nullable(),
|
|
@@ -4438,11 +4448,20 @@ var access_method_deleted_event = access_method_event.extend({
|
|
|
4438
4448
|
---
|
|
4439
4449
|
An access method was deleted.
|
|
4440
4450
|
`);
|
|
4451
|
+
var access_method_reissued_event = access_method_event.extend({
|
|
4452
|
+
event_type: zod.z.literal("access_method.reissued")
|
|
4453
|
+
}).describe(`
|
|
4454
|
+
---
|
|
4455
|
+
route_path: /access_methods
|
|
4456
|
+
---
|
|
4457
|
+
An access method was reissued due to an access grant update.
|
|
4458
|
+
`);
|
|
4441
4459
|
var access_method_events = [
|
|
4442
4460
|
access_method_issued_event,
|
|
4443
4461
|
access_method_revoked_event,
|
|
4444
4462
|
access_method_card_encoding_required_event,
|
|
4445
|
-
access_method_deleted_event
|
|
4463
|
+
access_method_deleted_event,
|
|
4464
|
+
access_method_reissued_event
|
|
4446
4465
|
];
|
|
4447
4466
|
var common_acs_event = common_event.extend({
|
|
4448
4467
|
connected_account_id: zod.z.string().uuid().optional().describe("ID of the connected account."),
|
|
@@ -7015,6 +7034,11 @@ var openapi_default = {
|
|
|
7015
7034
|
description: "Display name of the access grant.",
|
|
7016
7035
|
type: "string"
|
|
7017
7036
|
},
|
|
7037
|
+
ends_at: {
|
|
7038
|
+
description: "Date and time at which the access grant ends.",
|
|
7039
|
+
format: "date-time",
|
|
7040
|
+
type: "string"
|
|
7041
|
+
},
|
|
7018
7042
|
location_ids: {
|
|
7019
7043
|
deprecated: true,
|
|
7020
7044
|
items: { format: "uuid", type: "string" },
|
|
@@ -7060,6 +7084,11 @@ var openapi_default = {
|
|
|
7060
7084
|
items: { format: "uuid", type: "string" },
|
|
7061
7085
|
type: "array"
|
|
7062
7086
|
},
|
|
7087
|
+
starts_at: {
|
|
7088
|
+
description: "Date and time at which the access grant starts.",
|
|
7089
|
+
format: "date-time",
|
|
7090
|
+
type: "string"
|
|
7091
|
+
},
|
|
7063
7092
|
user_identity_id: {
|
|
7064
7093
|
description: "ID of user identity to which the access grant gives access.",
|
|
7065
7094
|
format: "uuid",
|
|
@@ -16468,6 +16497,28 @@ var openapi_default = {
|
|
|
16468
16497
|
required: ["message", "created_at", "warning_code"],
|
|
16469
16498
|
type: "object"
|
|
16470
16499
|
},
|
|
16500
|
+
{
|
|
16501
|
+
description: "Indicates that the device is in power saving mode and may have limited functionality.",
|
|
16502
|
+
properties: {
|
|
16503
|
+
created_at: {
|
|
16504
|
+
description: "Date and time at which Seam created the warning.",
|
|
16505
|
+
format: "date-time",
|
|
16506
|
+
type: "string"
|
|
16507
|
+
},
|
|
16508
|
+
message: {
|
|
16509
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
16510
|
+
type: "string"
|
|
16511
|
+
},
|
|
16512
|
+
warning_code: {
|
|
16513
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
16514
|
+
enum: ["power_saving_mode"],
|
|
16515
|
+
type: "string"
|
|
16516
|
+
}
|
|
16517
|
+
},
|
|
16518
|
+
required: ["message", "created_at", "warning_code"],
|
|
16519
|
+
type: "object",
|
|
16520
|
+
"x-variant-group-key": "locks"
|
|
16521
|
+
},
|
|
16471
16522
|
{
|
|
16472
16523
|
description: "Indicates that the temperature threshold has been exceeded.",
|
|
16473
16524
|
properties: {
|
|
@@ -18192,6 +18243,47 @@ var openapi_default = {
|
|
|
18192
18243
|
type: "object",
|
|
18193
18244
|
"x-route-path": "/access_methods"
|
|
18194
18245
|
},
|
|
18246
|
+
{
|
|
18247
|
+
description: "An access method was reissued due to an access grant update.",
|
|
18248
|
+
properties: {
|
|
18249
|
+
access_method_id: {
|
|
18250
|
+
description: "ID of the affected access method.",
|
|
18251
|
+
format: "uuid",
|
|
18252
|
+
type: "string"
|
|
18253
|
+
},
|
|
18254
|
+
created_at: {
|
|
18255
|
+
description: "Date and time at which the event was created.",
|
|
18256
|
+
format: "date-time",
|
|
18257
|
+
type: "string"
|
|
18258
|
+
},
|
|
18259
|
+
event_id: {
|
|
18260
|
+
description: "ID of the event.",
|
|
18261
|
+
format: "uuid",
|
|
18262
|
+
type: "string"
|
|
18263
|
+
},
|
|
18264
|
+
event_type: { enum: ["access_method.reissued"], type: "string" },
|
|
18265
|
+
occurred_at: {
|
|
18266
|
+
description: "Date and time at which the event occurred.",
|
|
18267
|
+
format: "date-time",
|
|
18268
|
+
type: "string"
|
|
18269
|
+
},
|
|
18270
|
+
workspace_id: {
|
|
18271
|
+
description: "ID of the workspace associated with the event.",
|
|
18272
|
+
format: "uuid",
|
|
18273
|
+
type: "string"
|
|
18274
|
+
}
|
|
18275
|
+
},
|
|
18276
|
+
required: [
|
|
18277
|
+
"event_id",
|
|
18278
|
+
"workspace_id",
|
|
18279
|
+
"created_at",
|
|
18280
|
+
"occurred_at",
|
|
18281
|
+
"access_method_id",
|
|
18282
|
+
"event_type"
|
|
18283
|
+
],
|
|
18284
|
+
type: "object",
|
|
18285
|
+
"x-route-path": "/access_methods"
|
|
18286
|
+
},
|
|
18195
18287
|
{
|
|
18196
18288
|
description: "An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.",
|
|
18197
18289
|
properties: {
|
|
@@ -26400,6 +26492,28 @@ var openapi_default = {
|
|
|
26400
26492
|
required: ["message", "created_at", "warning_code"],
|
|
26401
26493
|
type: "object"
|
|
26402
26494
|
},
|
|
26495
|
+
{
|
|
26496
|
+
description: "Indicates that the device is in power saving mode and may have limited functionality.",
|
|
26497
|
+
properties: {
|
|
26498
|
+
created_at: {
|
|
26499
|
+
description: "Date and time at which Seam created the warning.",
|
|
26500
|
+
format: "date-time",
|
|
26501
|
+
type: "string"
|
|
26502
|
+
},
|
|
26503
|
+
message: {
|
|
26504
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
26505
|
+
type: "string"
|
|
26506
|
+
},
|
|
26507
|
+
warning_code: {
|
|
26508
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
26509
|
+
enum: ["power_saving_mode"],
|
|
26510
|
+
type: "string"
|
|
26511
|
+
}
|
|
26512
|
+
},
|
|
26513
|
+
required: ["message", "created_at", "warning_code"],
|
|
26514
|
+
type: "object",
|
|
26515
|
+
"x-variant-group-key": "locks"
|
|
26516
|
+
},
|
|
26403
26517
|
{
|
|
26404
26518
|
description: "Indicates that the temperature threshold has been exceeded.",
|
|
26405
26519
|
properties: {
|
|
@@ -29068,6 +29182,131 @@ var openapi_default = {
|
|
|
29068
29182
|
"x-title": "List Access Grants"
|
|
29069
29183
|
}
|
|
29070
29184
|
},
|
|
29185
|
+
"/access_grants/update": {
|
|
29186
|
+
patch: {
|
|
29187
|
+
description: "Updates an existing access grant's time window.",
|
|
29188
|
+
operationId: "accessGrantsUpdatePatch",
|
|
29189
|
+
requestBody: {
|
|
29190
|
+
content: {
|
|
29191
|
+
"application/json": {
|
|
29192
|
+
schema: {
|
|
29193
|
+
properties: {
|
|
29194
|
+
access_grant_id: {
|
|
29195
|
+
description: "ID of the access grant to update.",
|
|
29196
|
+
format: "uuid",
|
|
29197
|
+
type: "string"
|
|
29198
|
+
},
|
|
29199
|
+
ends_at: {
|
|
29200
|
+
description: "Date and time at which the validity of the grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.",
|
|
29201
|
+
format: "date-time",
|
|
29202
|
+
nullable: true,
|
|
29203
|
+
type: "string"
|
|
29204
|
+
},
|
|
29205
|
+
starts_at: {
|
|
29206
|
+
description: "Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
29207
|
+
format: "date-time",
|
|
29208
|
+
nullable: true,
|
|
29209
|
+
type: "string"
|
|
29210
|
+
}
|
|
29211
|
+
},
|
|
29212
|
+
required: ["access_grant_id"],
|
|
29213
|
+
type: "object"
|
|
29214
|
+
}
|
|
29215
|
+
}
|
|
29216
|
+
}
|
|
29217
|
+
},
|
|
29218
|
+
responses: {
|
|
29219
|
+
200: {
|
|
29220
|
+
content: {
|
|
29221
|
+
"application/json": {
|
|
29222
|
+
schema: {
|
|
29223
|
+
properties: { ok: { type: "boolean" } },
|
|
29224
|
+
required: ["ok"],
|
|
29225
|
+
type: "object"
|
|
29226
|
+
}
|
|
29227
|
+
}
|
|
29228
|
+
},
|
|
29229
|
+
description: "OK"
|
|
29230
|
+
},
|
|
29231
|
+
400: { description: "Bad Request" },
|
|
29232
|
+
401: { description: "Unauthorized" }
|
|
29233
|
+
},
|
|
29234
|
+
security: [
|
|
29235
|
+
{ pat_with_workspace: [] },
|
|
29236
|
+
{ console_session_with_workspace: [] },
|
|
29237
|
+
{ api_key: [] },
|
|
29238
|
+
{ client_session_with_customer: [] }
|
|
29239
|
+
],
|
|
29240
|
+
summary: "/access_grants/update",
|
|
29241
|
+
tags: [],
|
|
29242
|
+
"x-draft": "Early access.",
|
|
29243
|
+
"x-fern-ignore": true,
|
|
29244
|
+
"x-response-key": null,
|
|
29245
|
+
"x-title": "Update an Access Grant"
|
|
29246
|
+
},
|
|
29247
|
+
post: {
|
|
29248
|
+
description: "Updates an existing access grant's time window.",
|
|
29249
|
+
operationId: "accessGrantsUpdatePost",
|
|
29250
|
+
requestBody: {
|
|
29251
|
+
content: {
|
|
29252
|
+
"application/json": {
|
|
29253
|
+
schema: {
|
|
29254
|
+
properties: {
|
|
29255
|
+
access_grant_id: {
|
|
29256
|
+
description: "ID of the access grant to update.",
|
|
29257
|
+
format: "uuid",
|
|
29258
|
+
type: "string"
|
|
29259
|
+
},
|
|
29260
|
+
ends_at: {
|
|
29261
|
+
description: "Date and time at which the validity of the grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.",
|
|
29262
|
+
format: "date-time",
|
|
29263
|
+
nullable: true,
|
|
29264
|
+
type: "string"
|
|
29265
|
+
},
|
|
29266
|
+
starts_at: {
|
|
29267
|
+
description: "Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.",
|
|
29268
|
+
format: "date-time",
|
|
29269
|
+
nullable: true,
|
|
29270
|
+
type: "string"
|
|
29271
|
+
}
|
|
29272
|
+
},
|
|
29273
|
+
required: ["access_grant_id"],
|
|
29274
|
+
type: "object"
|
|
29275
|
+
}
|
|
29276
|
+
}
|
|
29277
|
+
}
|
|
29278
|
+
},
|
|
29279
|
+
responses: {
|
|
29280
|
+
200: {
|
|
29281
|
+
content: {
|
|
29282
|
+
"application/json": {
|
|
29283
|
+
schema: {
|
|
29284
|
+
properties: { ok: { type: "boolean" } },
|
|
29285
|
+
required: ["ok"],
|
|
29286
|
+
type: "object"
|
|
29287
|
+
}
|
|
29288
|
+
}
|
|
29289
|
+
},
|
|
29290
|
+
description: "OK"
|
|
29291
|
+
},
|
|
29292
|
+
400: { description: "Bad Request" },
|
|
29293
|
+
401: { description: "Unauthorized" }
|
|
29294
|
+
},
|
|
29295
|
+
security: [
|
|
29296
|
+
{ pat_with_workspace: [] },
|
|
29297
|
+
{ console_session_with_workspace: [] },
|
|
29298
|
+
{ api_key: [] },
|
|
29299
|
+
{ client_session_with_customer: [] }
|
|
29300
|
+
],
|
|
29301
|
+
summary: "/access_grants/update",
|
|
29302
|
+
tags: [],
|
|
29303
|
+
"x-draft": "Early access.",
|
|
29304
|
+
"x-fern-sdk-group-name": ["access_grants"],
|
|
29305
|
+
"x-fern-sdk-method-name": "update",
|
|
29306
|
+
"x-response-key": null,
|
|
29307
|
+
"x-title": "Update an Access Grant"
|
|
29308
|
+
}
|
|
29309
|
+
},
|
|
29071
29310
|
"/access_methods/delete": {
|
|
29072
29311
|
post: {
|
|
29073
29312
|
description: "Delete an access method.",
|
|
@@ -36192,6 +36431,7 @@ var openapi_default = {
|
|
|
36192
36431
|
"access_method.revoked",
|
|
36193
36432
|
"access_method.card_encoding_required",
|
|
36194
36433
|
"access_method.deleted",
|
|
36434
|
+
"access_method.reissued",
|
|
36195
36435
|
"acs_system.connected",
|
|
36196
36436
|
"acs_system.added",
|
|
36197
36437
|
"acs_system.disconnected",
|
|
@@ -36288,6 +36528,7 @@ var openapi_default = {
|
|
|
36288
36528
|
"access_method.revoked",
|
|
36289
36529
|
"access_method.card_encoding_required",
|
|
36290
36530
|
"access_method.deleted",
|
|
36531
|
+
"access_method.reissued",
|
|
36291
36532
|
"acs_system.connected",
|
|
36292
36533
|
"acs_system.added",
|
|
36293
36534
|
"acs_system.disconnected",
|