@seamapi/types 1.419.0 → 1.420.1
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 +203 -9
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +276 -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.js +3 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- 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 +186 -4
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +66 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +10 -0
- package/src/lib/seam/connect/models/devices/device.ts +3 -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 +192 -8
- package/src/lib/seam/connect/route-types.ts +68 -0
package/dist/connect.cjs
CHANGED
|
@@ -1349,6 +1349,9 @@ var missing_device_credentials = common_device_error.extend({
|
|
|
1349
1349
|
var auxiliary_heat_running = common_device_error.extend({
|
|
1350
1350
|
error_code: zod.z.literal("auxiliary_heat_running").describe(error_code_description2)
|
|
1351
1351
|
}).describe(`
|
|
1352
|
+
---
|
|
1353
|
+
variant_group_key: thermostats
|
|
1354
|
+
---
|
|
1352
1355
|
Indicates that the auxiliary heat is running.
|
|
1353
1356
|
`);
|
|
1354
1357
|
var subscription_required = common_device_error.extend({
|
|
@@ -4448,11 +4451,20 @@ var access_method_deleted_event = access_method_event.extend({
|
|
|
4448
4451
|
---
|
|
4449
4452
|
An access method was deleted.
|
|
4450
4453
|
`);
|
|
4454
|
+
var access_method_reissued_event = access_method_event.extend({
|
|
4455
|
+
event_type: zod.z.literal("access_method.reissued")
|
|
4456
|
+
}).describe(`
|
|
4457
|
+
---
|
|
4458
|
+
route_path: /access_methods
|
|
4459
|
+
---
|
|
4460
|
+
An access method was reissued due to an access grant update.
|
|
4461
|
+
`);
|
|
4451
4462
|
var access_method_events = [
|
|
4452
4463
|
access_method_issued_event,
|
|
4453
4464
|
access_method_revoked_event,
|
|
4454
4465
|
access_method_card_encoding_required_event,
|
|
4455
|
-
access_method_deleted_event
|
|
4466
|
+
access_method_deleted_event,
|
|
4467
|
+
access_method_reissued_event
|
|
4456
4468
|
];
|
|
4457
4469
|
var common_acs_event = common_event.extend({
|
|
4458
4470
|
connected_account_id: zod.z.string().uuid().optional().describe("ID of the connected account."),
|
|
@@ -6488,7 +6500,7 @@ var openapi_default = {
|
|
|
6488
6500
|
type: "object"
|
|
6489
6501
|
},
|
|
6490
6502
|
{
|
|
6491
|
-
description: "
|
|
6503
|
+
description: "Indicates that the auxiliary heat is running.",
|
|
6492
6504
|
properties: {
|
|
6493
6505
|
created_at: {
|
|
6494
6506
|
description: "Date and time at which Seam created the error.",
|
|
@@ -6516,7 +6528,8 @@ var openapi_default = {
|
|
|
6516
6528
|
"created_at",
|
|
6517
6529
|
"error_code"
|
|
6518
6530
|
],
|
|
6519
|
-
type: "object"
|
|
6531
|
+
type: "object",
|
|
6532
|
+
"x-variant-group-key": "thermostats"
|
|
6520
6533
|
},
|
|
6521
6534
|
{
|
|
6522
6535
|
description: "Indicates that a subscription is required to connect.",
|
|
@@ -7025,6 +7038,11 @@ var openapi_default = {
|
|
|
7025
7038
|
description: "Display name of the access grant.",
|
|
7026
7039
|
type: "string"
|
|
7027
7040
|
},
|
|
7041
|
+
ends_at: {
|
|
7042
|
+
description: "Date and time at which the access grant ends.",
|
|
7043
|
+
format: "date-time",
|
|
7044
|
+
type: "string"
|
|
7045
|
+
},
|
|
7028
7046
|
location_ids: {
|
|
7029
7047
|
deprecated: true,
|
|
7030
7048
|
items: { format: "uuid", type: "string" },
|
|
@@ -7070,6 +7088,11 @@ var openapi_default = {
|
|
|
7070
7088
|
items: { format: "uuid", type: "string" },
|
|
7071
7089
|
type: "array"
|
|
7072
7090
|
},
|
|
7091
|
+
starts_at: {
|
|
7092
|
+
description: "Date and time at which the access grant starts.",
|
|
7093
|
+
format: "date-time",
|
|
7094
|
+
type: "string"
|
|
7095
|
+
},
|
|
7073
7096
|
user_identity_id: {
|
|
7074
7097
|
description: "ID of user identity to which the access grant gives access.",
|
|
7075
7098
|
format: "uuid",
|
|
@@ -14104,7 +14127,7 @@ var openapi_default = {
|
|
|
14104
14127
|
type: "object"
|
|
14105
14128
|
},
|
|
14106
14129
|
{
|
|
14107
|
-
description: "
|
|
14130
|
+
description: "Indicates that the auxiliary heat is running.",
|
|
14108
14131
|
properties: {
|
|
14109
14132
|
created_at: {
|
|
14110
14133
|
description: "Date and time at which Seam created the error.",
|
|
@@ -14132,7 +14155,8 @@ var openapi_default = {
|
|
|
14132
14155
|
"created_at",
|
|
14133
14156
|
"error_code"
|
|
14134
14157
|
],
|
|
14135
|
-
type: "object"
|
|
14158
|
+
type: "object",
|
|
14159
|
+
"x-variant-group-key": "thermostats"
|
|
14136
14160
|
},
|
|
14137
14161
|
{
|
|
14138
14162
|
description: "Indicates that a subscription is required to connect.",
|
|
@@ -18224,6 +18248,47 @@ var openapi_default = {
|
|
|
18224
18248
|
type: "object",
|
|
18225
18249
|
"x-route-path": "/access_methods"
|
|
18226
18250
|
},
|
|
18251
|
+
{
|
|
18252
|
+
description: "An access method was reissued due to an access grant update.",
|
|
18253
|
+
properties: {
|
|
18254
|
+
access_method_id: {
|
|
18255
|
+
description: "ID of the affected access method.",
|
|
18256
|
+
format: "uuid",
|
|
18257
|
+
type: "string"
|
|
18258
|
+
},
|
|
18259
|
+
created_at: {
|
|
18260
|
+
description: "Date and time at which the event was created.",
|
|
18261
|
+
format: "date-time",
|
|
18262
|
+
type: "string"
|
|
18263
|
+
},
|
|
18264
|
+
event_id: {
|
|
18265
|
+
description: "ID of the event.",
|
|
18266
|
+
format: "uuid",
|
|
18267
|
+
type: "string"
|
|
18268
|
+
},
|
|
18269
|
+
event_type: { enum: ["access_method.reissued"], type: "string" },
|
|
18270
|
+
occurred_at: {
|
|
18271
|
+
description: "Date and time at which the event occurred.",
|
|
18272
|
+
format: "date-time",
|
|
18273
|
+
type: "string"
|
|
18274
|
+
},
|
|
18275
|
+
workspace_id: {
|
|
18276
|
+
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
|
|
18277
|
+
format: "uuid",
|
|
18278
|
+
type: "string"
|
|
18279
|
+
}
|
|
18280
|
+
},
|
|
18281
|
+
required: [
|
|
18282
|
+
"event_id",
|
|
18283
|
+
"workspace_id",
|
|
18284
|
+
"created_at",
|
|
18285
|
+
"occurred_at",
|
|
18286
|
+
"access_method_id",
|
|
18287
|
+
"event_type"
|
|
18288
|
+
],
|
|
18289
|
+
type: "object",
|
|
18290
|
+
"x-route-path": "/access_methods"
|
|
18291
|
+
},
|
|
18227
18292
|
{
|
|
18228
18293
|
description: "An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.",
|
|
18229
18294
|
properties: {
|
|
@@ -23899,7 +23964,7 @@ var openapi_default = {
|
|
|
23899
23964
|
type: "object"
|
|
23900
23965
|
},
|
|
23901
23966
|
{
|
|
23902
|
-
description: "
|
|
23967
|
+
description: "Indicates that the auxiliary heat is running.",
|
|
23903
23968
|
properties: {
|
|
23904
23969
|
created_at: {
|
|
23905
23970
|
description: "Date and time at which Seam created the error.",
|
|
@@ -23927,7 +23992,8 @@ var openapi_default = {
|
|
|
23927
23992
|
"created_at",
|
|
23928
23993
|
"error_code"
|
|
23929
23994
|
],
|
|
23930
|
-
type: "object"
|
|
23995
|
+
type: "object",
|
|
23996
|
+
"x-variant-group-key": "thermostats"
|
|
23931
23997
|
},
|
|
23932
23998
|
{
|
|
23933
23999
|
description: "Indicates that a subscription is required to connect.",
|
|
@@ -25932,7 +25998,7 @@ var openapi_default = {
|
|
|
25932
25998
|
type: "object"
|
|
25933
25999
|
},
|
|
25934
26000
|
{
|
|
25935
|
-
description: "
|
|
26001
|
+
description: "Indicates that the auxiliary heat is running.",
|
|
25936
26002
|
properties: {
|
|
25937
26003
|
created_at: {
|
|
25938
26004
|
description: "Date and time at which Seam created the error.",
|
|
@@ -25960,7 +26026,8 @@ var openapi_default = {
|
|
|
25960
26026
|
"created_at",
|
|
25961
26027
|
"error_code"
|
|
25962
26028
|
],
|
|
25963
|
-
type: "object"
|
|
26029
|
+
type: "object",
|
|
26030
|
+
"x-variant-group-key": "thermostats"
|
|
25964
26031
|
},
|
|
25965
26032
|
{
|
|
25966
26033
|
description: "Indicates that a subscription is required to connect.",
|
|
@@ -29122,6 +29189,131 @@ var openapi_default = {
|
|
|
29122
29189
|
"x-title": "List Access Grants"
|
|
29123
29190
|
}
|
|
29124
29191
|
},
|
|
29192
|
+
"/access_grants/update": {
|
|
29193
|
+
patch: {
|
|
29194
|
+
description: "Updates an existing access grant's time window.",
|
|
29195
|
+
operationId: "accessGrantsUpdatePatch",
|
|
29196
|
+
requestBody: {
|
|
29197
|
+
content: {
|
|
29198
|
+
"application/json": {
|
|
29199
|
+
schema: {
|
|
29200
|
+
properties: {
|
|
29201
|
+
access_grant_id: {
|
|
29202
|
+
description: "ID of the access grant to update.",
|
|
29203
|
+
format: "uuid",
|
|
29204
|
+
type: "string"
|
|
29205
|
+
},
|
|
29206
|
+
ends_at: {
|
|
29207
|
+
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`.",
|
|
29208
|
+
format: "date-time",
|
|
29209
|
+
nullable: true,
|
|
29210
|
+
type: "string"
|
|
29211
|
+
},
|
|
29212
|
+
starts_at: {
|
|
29213
|
+
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.",
|
|
29214
|
+
format: "date-time",
|
|
29215
|
+
nullable: true,
|
|
29216
|
+
type: "string"
|
|
29217
|
+
}
|
|
29218
|
+
},
|
|
29219
|
+
required: ["access_grant_id"],
|
|
29220
|
+
type: "object"
|
|
29221
|
+
}
|
|
29222
|
+
}
|
|
29223
|
+
}
|
|
29224
|
+
},
|
|
29225
|
+
responses: {
|
|
29226
|
+
200: {
|
|
29227
|
+
content: {
|
|
29228
|
+
"application/json": {
|
|
29229
|
+
schema: {
|
|
29230
|
+
properties: { ok: { type: "boolean" } },
|
|
29231
|
+
required: ["ok"],
|
|
29232
|
+
type: "object"
|
|
29233
|
+
}
|
|
29234
|
+
}
|
|
29235
|
+
},
|
|
29236
|
+
description: "OK"
|
|
29237
|
+
},
|
|
29238
|
+
400: { description: "Bad Request" },
|
|
29239
|
+
401: { description: "Unauthorized" }
|
|
29240
|
+
},
|
|
29241
|
+
security: [
|
|
29242
|
+
{ pat_with_workspace: [] },
|
|
29243
|
+
{ console_session_with_workspace: [] },
|
|
29244
|
+
{ api_key: [] },
|
|
29245
|
+
{ client_session_with_customer: [] }
|
|
29246
|
+
],
|
|
29247
|
+
summary: "/access_grants/update",
|
|
29248
|
+
tags: [],
|
|
29249
|
+
"x-draft": "Early access.",
|
|
29250
|
+
"x-fern-ignore": true,
|
|
29251
|
+
"x-response-key": null,
|
|
29252
|
+
"x-title": "Update an Access Grant"
|
|
29253
|
+
},
|
|
29254
|
+
post: {
|
|
29255
|
+
description: "Updates an existing access grant's time window.",
|
|
29256
|
+
operationId: "accessGrantsUpdatePost",
|
|
29257
|
+
requestBody: {
|
|
29258
|
+
content: {
|
|
29259
|
+
"application/json": {
|
|
29260
|
+
schema: {
|
|
29261
|
+
properties: {
|
|
29262
|
+
access_grant_id: {
|
|
29263
|
+
description: "ID of the access grant to update.",
|
|
29264
|
+
format: "uuid",
|
|
29265
|
+
type: "string"
|
|
29266
|
+
},
|
|
29267
|
+
ends_at: {
|
|
29268
|
+
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`.",
|
|
29269
|
+
format: "date-time",
|
|
29270
|
+
nullable: true,
|
|
29271
|
+
type: "string"
|
|
29272
|
+
},
|
|
29273
|
+
starts_at: {
|
|
29274
|
+
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.",
|
|
29275
|
+
format: "date-time",
|
|
29276
|
+
nullable: true,
|
|
29277
|
+
type: "string"
|
|
29278
|
+
}
|
|
29279
|
+
},
|
|
29280
|
+
required: ["access_grant_id"],
|
|
29281
|
+
type: "object"
|
|
29282
|
+
}
|
|
29283
|
+
}
|
|
29284
|
+
}
|
|
29285
|
+
},
|
|
29286
|
+
responses: {
|
|
29287
|
+
200: {
|
|
29288
|
+
content: {
|
|
29289
|
+
"application/json": {
|
|
29290
|
+
schema: {
|
|
29291
|
+
properties: { ok: { type: "boolean" } },
|
|
29292
|
+
required: ["ok"],
|
|
29293
|
+
type: "object"
|
|
29294
|
+
}
|
|
29295
|
+
}
|
|
29296
|
+
},
|
|
29297
|
+
description: "OK"
|
|
29298
|
+
},
|
|
29299
|
+
400: { description: "Bad Request" },
|
|
29300
|
+
401: { description: "Unauthorized" }
|
|
29301
|
+
},
|
|
29302
|
+
security: [
|
|
29303
|
+
{ pat_with_workspace: [] },
|
|
29304
|
+
{ console_session_with_workspace: [] },
|
|
29305
|
+
{ api_key: [] },
|
|
29306
|
+
{ client_session_with_customer: [] }
|
|
29307
|
+
],
|
|
29308
|
+
summary: "/access_grants/update",
|
|
29309
|
+
tags: [],
|
|
29310
|
+
"x-draft": "Early access.",
|
|
29311
|
+
"x-fern-sdk-group-name": ["access_grants"],
|
|
29312
|
+
"x-fern-sdk-method-name": "update",
|
|
29313
|
+
"x-response-key": null,
|
|
29314
|
+
"x-title": "Update an Access Grant"
|
|
29315
|
+
}
|
|
29316
|
+
},
|
|
29125
29317
|
"/access_methods/delete": {
|
|
29126
29318
|
post: {
|
|
29127
29319
|
description: "Delete an access method.",
|
|
@@ -36246,6 +36438,7 @@ var openapi_default = {
|
|
|
36246
36438
|
"access_method.revoked",
|
|
36247
36439
|
"access_method.card_encoding_required",
|
|
36248
36440
|
"access_method.deleted",
|
|
36441
|
+
"access_method.reissued",
|
|
36249
36442
|
"acs_system.connected",
|
|
36250
36443
|
"acs_system.added",
|
|
36251
36444
|
"acs_system.disconnected",
|
|
@@ -36342,6 +36535,7 @@ var openapi_default = {
|
|
|
36342
36535
|
"access_method.revoked",
|
|
36343
36536
|
"access_method.card_encoding_required",
|
|
36344
36537
|
"access_method.deleted",
|
|
36538
|
+
"access_method.reissued",
|
|
36345
36539
|
"acs_system.connected",
|
|
36346
36540
|
"acs_system.added",
|
|
36347
36541
|
"acs_system.disconnected",
|