@seamapi/types 1.453.0 → 1.455.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 +357 -32
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +27381 -17506
- package/dist/index.cjs +357 -32
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batches/access_grants.d.ts +5682 -0
- package/lib/seam/connect/models/batches/access_grants.js +11 -0
- package/lib/seam/connect/models/batches/access_grants.js.map +1 -0
- package/lib/seam/connect/models/batches/batch.d.ts +5682 -3
- package/lib/seam/connect/models/batches/batch.js +3 -1
- package/lib/seam/connect/models/batches/batch.js.map +1 -1
- package/lib/seam/connect/models/batches/index.d.ts +1 -0
- package/lib/seam/connect/models/batches/index.js +1 -0
- package/lib/seam/connect/models/batches/index.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +25 -25
- package/lib/seam/connect/openapi.d.ts +389 -42
- package/lib/seam/connect/openapi.js +349 -30
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +6243 -2394
- package/package.json +1 -1
- package/src/lib/seam/connect/models/batches/access_grants.ts +14 -0
- package/src/lib/seam/connect/models/batches/batch.ts +3 -2
- package/src/lib/seam/connect/models/batches/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +354 -30
- package/src/lib/seam/connect/route-types.ts +7672 -2687
package/dist/connect.cjs
CHANGED
|
@@ -3986,7 +3986,13 @@ var space = zod.z.object({
|
|
|
3986
3986
|
Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient.
|
|
3987
3987
|
`);
|
|
3988
3988
|
|
|
3989
|
-
// src/lib/seam/connect/models/batches/
|
|
3989
|
+
// src/lib/seam/connect/models/batches/access_grants.ts
|
|
3990
|
+
var access_grants_batch = zod.z.object({
|
|
3991
|
+
batch_type: zod.z.literal("access_grants"),
|
|
3992
|
+
spaces: space.array().optional(),
|
|
3993
|
+
devices: device.array().optional(),
|
|
3994
|
+
acs_entrances: acs_entrance.array().optional()
|
|
3995
|
+
});
|
|
3990
3996
|
var spaces_batch = zod.z.object({
|
|
3991
3997
|
batch_type: zod.z.literal("spaces"),
|
|
3992
3998
|
spaces: space.array().optional(),
|
|
@@ -3995,7 +4001,7 @@ var spaces_batch = zod.z.object({
|
|
|
3995
4001
|
}).describe("ID of the affected access system user.");
|
|
3996
4002
|
|
|
3997
4003
|
// src/lib/seam/connect/models/batches/batch.ts
|
|
3998
|
-
var batch = spaces_batch.describe(`
|
|
4004
|
+
var batch = zod.z.union([spaces_batch, access_grants_batch]).describe(`
|
|
3999
4005
|
---
|
|
4000
4006
|
route_path: /
|
|
4001
4007
|
---
|
|
@@ -30660,6 +30666,251 @@ var openapi_default = {
|
|
|
30660
30666
|
"x-title": "Get an Access Grant"
|
|
30661
30667
|
}
|
|
30662
30668
|
},
|
|
30669
|
+
"/access_grants/get_related": {
|
|
30670
|
+
get: {
|
|
30671
|
+
description: "Gets all related resources for one or more Access Grants.",
|
|
30672
|
+
operationId: "accessGrantsGetRelatedGet",
|
|
30673
|
+
parameters: [
|
|
30674
|
+
{
|
|
30675
|
+
in: "query",
|
|
30676
|
+
name: "access_grant_ids",
|
|
30677
|
+
required: true,
|
|
30678
|
+
schema: {
|
|
30679
|
+
description: "IDs of the access grants that you want to get along with their related resources.",
|
|
30680
|
+
items: { format: "uuid", type: "string" },
|
|
30681
|
+
type: "array"
|
|
30682
|
+
}
|
|
30683
|
+
},
|
|
30684
|
+
{
|
|
30685
|
+
in: "query",
|
|
30686
|
+
name: "include",
|
|
30687
|
+
required: false,
|
|
30688
|
+
schema: {
|
|
30689
|
+
items: {
|
|
30690
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
30691
|
+
type: "string"
|
|
30692
|
+
},
|
|
30693
|
+
type: "array"
|
|
30694
|
+
}
|
|
30695
|
+
},
|
|
30696
|
+
{
|
|
30697
|
+
in: "query",
|
|
30698
|
+
name: "exclude",
|
|
30699
|
+
required: false,
|
|
30700
|
+
schema: {
|
|
30701
|
+
items: {
|
|
30702
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
30703
|
+
type: "string"
|
|
30704
|
+
},
|
|
30705
|
+
type: "array"
|
|
30706
|
+
}
|
|
30707
|
+
}
|
|
30708
|
+
],
|
|
30709
|
+
responses: {
|
|
30710
|
+
200: {
|
|
30711
|
+
content: {
|
|
30712
|
+
"application/json": {
|
|
30713
|
+
schema: {
|
|
30714
|
+
properties: {
|
|
30715
|
+
batch: {
|
|
30716
|
+
description: "Represents a resource batch.",
|
|
30717
|
+
oneOf: [
|
|
30718
|
+
{
|
|
30719
|
+
description: "ID of the affected access system user.",
|
|
30720
|
+
properties: {
|
|
30721
|
+
acs_entrances: {
|
|
30722
|
+
items: {
|
|
30723
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
30724
|
+
},
|
|
30725
|
+
type: "array"
|
|
30726
|
+
},
|
|
30727
|
+
batch_type: { enum: ["spaces"], type: "string" },
|
|
30728
|
+
devices: {
|
|
30729
|
+
items: { $ref: "#/components/schemas/device" },
|
|
30730
|
+
type: "array"
|
|
30731
|
+
},
|
|
30732
|
+
spaces: {
|
|
30733
|
+
items: { $ref: "#/components/schemas/space" },
|
|
30734
|
+
type: "array"
|
|
30735
|
+
}
|
|
30736
|
+
},
|
|
30737
|
+
required: ["batch_type"],
|
|
30738
|
+
type: "object"
|
|
30739
|
+
},
|
|
30740
|
+
{
|
|
30741
|
+
properties: {
|
|
30742
|
+
acs_entrances: {
|
|
30743
|
+
items: {
|
|
30744
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
30745
|
+
},
|
|
30746
|
+
type: "array"
|
|
30747
|
+
},
|
|
30748
|
+
batch_type: {
|
|
30749
|
+
enum: ["access_grants"],
|
|
30750
|
+
type: "string"
|
|
30751
|
+
},
|
|
30752
|
+
devices: {
|
|
30753
|
+
items: { $ref: "#/components/schemas/device" },
|
|
30754
|
+
type: "array"
|
|
30755
|
+
},
|
|
30756
|
+
spaces: {
|
|
30757
|
+
items: { $ref: "#/components/schemas/space" },
|
|
30758
|
+
type: "array"
|
|
30759
|
+
}
|
|
30760
|
+
},
|
|
30761
|
+
required: ["batch_type"],
|
|
30762
|
+
type: "object"
|
|
30763
|
+
}
|
|
30764
|
+
],
|
|
30765
|
+
"x-route-path": "/"
|
|
30766
|
+
},
|
|
30767
|
+
ok: { type: "boolean" }
|
|
30768
|
+
},
|
|
30769
|
+
required: ["batch", "ok"],
|
|
30770
|
+
type: "object"
|
|
30771
|
+
}
|
|
30772
|
+
}
|
|
30773
|
+
},
|
|
30774
|
+
description: "OK"
|
|
30775
|
+
},
|
|
30776
|
+
400: { description: "Bad Request" },
|
|
30777
|
+
401: { description: "Unauthorized" }
|
|
30778
|
+
},
|
|
30779
|
+
security: [
|
|
30780
|
+
{ pat_with_workspace: [] },
|
|
30781
|
+
{ console_session_with_workspace: [] },
|
|
30782
|
+
{ api_key: [] }
|
|
30783
|
+
],
|
|
30784
|
+
summary: "/access_grants/get_related",
|
|
30785
|
+
tags: [],
|
|
30786
|
+
"x-batch-type": "access_grants",
|
|
30787
|
+
"x-draft": "Early access.",
|
|
30788
|
+
"x-fern-sdk-group-name": ["access_grants"],
|
|
30789
|
+
"x-fern-sdk-method-name": "get_related",
|
|
30790
|
+
"x-fern-sdk-return-value": "batch",
|
|
30791
|
+
"x-response-key": "batch",
|
|
30792
|
+
"x-title": "Get related Access Grant resources"
|
|
30793
|
+
},
|
|
30794
|
+
post: {
|
|
30795
|
+
description: "Gets all related resources for one or more Access Grants.",
|
|
30796
|
+
operationId: "accessGrantsGetRelatedPost",
|
|
30797
|
+
requestBody: {
|
|
30798
|
+
content: {
|
|
30799
|
+
"application/json": {
|
|
30800
|
+
schema: {
|
|
30801
|
+
properties: {
|
|
30802
|
+
access_grant_ids: {
|
|
30803
|
+
description: "IDs of the access grants that you want to get along with their related resources.",
|
|
30804
|
+
items: { format: "uuid", type: "string" },
|
|
30805
|
+
type: "array"
|
|
30806
|
+
},
|
|
30807
|
+
exclude: {
|
|
30808
|
+
items: {
|
|
30809
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
30810
|
+
type: "string"
|
|
30811
|
+
},
|
|
30812
|
+
type: "array"
|
|
30813
|
+
},
|
|
30814
|
+
include: {
|
|
30815
|
+
items: {
|
|
30816
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
30817
|
+
type: "string"
|
|
30818
|
+
},
|
|
30819
|
+
type: "array"
|
|
30820
|
+
}
|
|
30821
|
+
},
|
|
30822
|
+
required: ["access_grant_ids"],
|
|
30823
|
+
type: "object"
|
|
30824
|
+
}
|
|
30825
|
+
}
|
|
30826
|
+
}
|
|
30827
|
+
},
|
|
30828
|
+
responses: {
|
|
30829
|
+
200: {
|
|
30830
|
+
content: {
|
|
30831
|
+
"application/json": {
|
|
30832
|
+
schema: {
|
|
30833
|
+
properties: {
|
|
30834
|
+
batch: {
|
|
30835
|
+
description: "Represents a resource batch.",
|
|
30836
|
+
oneOf: [
|
|
30837
|
+
{
|
|
30838
|
+
description: "ID of the affected access system user.",
|
|
30839
|
+
properties: {
|
|
30840
|
+
acs_entrances: {
|
|
30841
|
+
items: {
|
|
30842
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
30843
|
+
},
|
|
30844
|
+
type: "array"
|
|
30845
|
+
},
|
|
30846
|
+
batch_type: { enum: ["spaces"], type: "string" },
|
|
30847
|
+
devices: {
|
|
30848
|
+
items: { $ref: "#/components/schemas/device" },
|
|
30849
|
+
type: "array"
|
|
30850
|
+
},
|
|
30851
|
+
spaces: {
|
|
30852
|
+
items: { $ref: "#/components/schemas/space" },
|
|
30853
|
+
type: "array"
|
|
30854
|
+
}
|
|
30855
|
+
},
|
|
30856
|
+
required: ["batch_type"],
|
|
30857
|
+
type: "object"
|
|
30858
|
+
},
|
|
30859
|
+
{
|
|
30860
|
+
properties: {
|
|
30861
|
+
acs_entrances: {
|
|
30862
|
+
items: {
|
|
30863
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
30864
|
+
},
|
|
30865
|
+
type: "array"
|
|
30866
|
+
},
|
|
30867
|
+
batch_type: {
|
|
30868
|
+
enum: ["access_grants"],
|
|
30869
|
+
type: "string"
|
|
30870
|
+
},
|
|
30871
|
+
devices: {
|
|
30872
|
+
items: { $ref: "#/components/schemas/device" },
|
|
30873
|
+
type: "array"
|
|
30874
|
+
},
|
|
30875
|
+
spaces: {
|
|
30876
|
+
items: { $ref: "#/components/schemas/space" },
|
|
30877
|
+
type: "array"
|
|
30878
|
+
}
|
|
30879
|
+
},
|
|
30880
|
+
required: ["batch_type"],
|
|
30881
|
+
type: "object"
|
|
30882
|
+
}
|
|
30883
|
+
],
|
|
30884
|
+
"x-route-path": "/"
|
|
30885
|
+
},
|
|
30886
|
+
ok: { type: "boolean" }
|
|
30887
|
+
},
|
|
30888
|
+
required: ["batch", "ok"],
|
|
30889
|
+
type: "object"
|
|
30890
|
+
}
|
|
30891
|
+
}
|
|
30892
|
+
},
|
|
30893
|
+
description: "OK"
|
|
30894
|
+
},
|
|
30895
|
+
400: { description: "Bad Request" },
|
|
30896
|
+
401: { description: "Unauthorized" }
|
|
30897
|
+
},
|
|
30898
|
+
security: [
|
|
30899
|
+
{ pat_with_workspace: [] },
|
|
30900
|
+
{ console_session_with_workspace: [] },
|
|
30901
|
+
{ api_key: [] }
|
|
30902
|
+
],
|
|
30903
|
+
summary: "/access_grants/get_related",
|
|
30904
|
+
tags: [],
|
|
30905
|
+
"x-batch-type": "access_grants",
|
|
30906
|
+
"x-draft": "Early access.",
|
|
30907
|
+
"x-fern-sdk-group-name": ["access_grants"],
|
|
30908
|
+
"x-fern-sdk-method-name": "get_related",
|
|
30909
|
+
"x-fern-sdk-return-value": "batch",
|
|
30910
|
+
"x-response-key": "batch",
|
|
30911
|
+
"x-title": "Get related Access Grant resources"
|
|
30912
|
+
}
|
|
30913
|
+
},
|
|
30663
30914
|
"/access_grants/list": {
|
|
30664
30915
|
get: {
|
|
30665
30916
|
description: "Gets an Access Grant.",
|
|
@@ -49140,23 +49391,54 @@ var openapi_default = {
|
|
|
49140
49391
|
properties: {
|
|
49141
49392
|
batch: {
|
|
49142
49393
|
description: "Represents a resource batch.",
|
|
49143
|
-
|
|
49144
|
-
|
|
49145
|
-
|
|
49146
|
-
|
|
49147
|
-
|
|
49148
|
-
|
|
49149
|
-
|
|
49150
|
-
|
|
49151
|
-
|
|
49394
|
+
oneOf: [
|
|
49395
|
+
{
|
|
49396
|
+
description: "ID of the affected access system user.",
|
|
49397
|
+
properties: {
|
|
49398
|
+
acs_entrances: {
|
|
49399
|
+
items: {
|
|
49400
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
49401
|
+
},
|
|
49402
|
+
type: "array"
|
|
49403
|
+
},
|
|
49404
|
+
batch_type: { enum: ["spaces"], type: "string" },
|
|
49405
|
+
devices: {
|
|
49406
|
+
items: { $ref: "#/components/schemas/device" },
|
|
49407
|
+
type: "array"
|
|
49408
|
+
},
|
|
49409
|
+
spaces: {
|
|
49410
|
+
items: { $ref: "#/components/schemas/space" },
|
|
49411
|
+
type: "array"
|
|
49412
|
+
}
|
|
49413
|
+
},
|
|
49414
|
+
required: ["batch_type"],
|
|
49415
|
+
type: "object"
|
|
49152
49416
|
},
|
|
49153
|
-
|
|
49154
|
-
|
|
49155
|
-
|
|
49417
|
+
{
|
|
49418
|
+
properties: {
|
|
49419
|
+
acs_entrances: {
|
|
49420
|
+
items: {
|
|
49421
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
49422
|
+
},
|
|
49423
|
+
type: "array"
|
|
49424
|
+
},
|
|
49425
|
+
batch_type: {
|
|
49426
|
+
enum: ["access_grants"],
|
|
49427
|
+
type: "string"
|
|
49428
|
+
},
|
|
49429
|
+
devices: {
|
|
49430
|
+
items: { $ref: "#/components/schemas/device" },
|
|
49431
|
+
type: "array"
|
|
49432
|
+
},
|
|
49433
|
+
spaces: {
|
|
49434
|
+
items: { $ref: "#/components/schemas/space" },
|
|
49435
|
+
type: "array"
|
|
49436
|
+
}
|
|
49437
|
+
},
|
|
49438
|
+
required: ["batch_type"],
|
|
49439
|
+
type: "object"
|
|
49156
49440
|
}
|
|
49157
|
-
|
|
49158
|
-
required: ["batch_type"],
|
|
49159
|
-
type: "object",
|
|
49441
|
+
],
|
|
49160
49442
|
"x-route-path": "/"
|
|
49161
49443
|
},
|
|
49162
49444
|
ok: { type: "boolean" }
|
|
@@ -49228,23 +49510,54 @@ var openapi_default = {
|
|
|
49228
49510
|
properties: {
|
|
49229
49511
|
batch: {
|
|
49230
49512
|
description: "Represents a resource batch.",
|
|
49231
|
-
|
|
49232
|
-
|
|
49233
|
-
|
|
49234
|
-
|
|
49235
|
-
|
|
49236
|
-
|
|
49237
|
-
|
|
49238
|
-
|
|
49239
|
-
|
|
49513
|
+
oneOf: [
|
|
49514
|
+
{
|
|
49515
|
+
description: "ID of the affected access system user.",
|
|
49516
|
+
properties: {
|
|
49517
|
+
acs_entrances: {
|
|
49518
|
+
items: {
|
|
49519
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
49520
|
+
},
|
|
49521
|
+
type: "array"
|
|
49522
|
+
},
|
|
49523
|
+
batch_type: { enum: ["spaces"], type: "string" },
|
|
49524
|
+
devices: {
|
|
49525
|
+
items: { $ref: "#/components/schemas/device" },
|
|
49526
|
+
type: "array"
|
|
49527
|
+
},
|
|
49528
|
+
spaces: {
|
|
49529
|
+
items: { $ref: "#/components/schemas/space" },
|
|
49530
|
+
type: "array"
|
|
49531
|
+
}
|
|
49532
|
+
},
|
|
49533
|
+
required: ["batch_type"],
|
|
49534
|
+
type: "object"
|
|
49240
49535
|
},
|
|
49241
|
-
|
|
49242
|
-
|
|
49243
|
-
|
|
49536
|
+
{
|
|
49537
|
+
properties: {
|
|
49538
|
+
acs_entrances: {
|
|
49539
|
+
items: {
|
|
49540
|
+
$ref: "#/components/schemas/acs_entrance"
|
|
49541
|
+
},
|
|
49542
|
+
type: "array"
|
|
49543
|
+
},
|
|
49544
|
+
batch_type: {
|
|
49545
|
+
enum: ["access_grants"],
|
|
49546
|
+
type: "string"
|
|
49547
|
+
},
|
|
49548
|
+
devices: {
|
|
49549
|
+
items: { $ref: "#/components/schemas/device" },
|
|
49550
|
+
type: "array"
|
|
49551
|
+
},
|
|
49552
|
+
spaces: {
|
|
49553
|
+
items: { $ref: "#/components/schemas/space" },
|
|
49554
|
+
type: "array"
|
|
49555
|
+
}
|
|
49556
|
+
},
|
|
49557
|
+
required: ["batch_type"],
|
|
49558
|
+
type: "object"
|
|
49244
49559
|
}
|
|
49245
|
-
|
|
49246
|
-
required: ["batch_type"],
|
|
49247
|
-
type: "object",
|
|
49560
|
+
],
|
|
49248
49561
|
"x-route-path": "/"
|
|
49249
49562
|
},
|
|
49250
49563
|
ok: { type: "boolean" }
|
|
@@ -52107,6 +52420,18 @@ var openapi_default = {
|
|
|
52107
52420
|
},
|
|
52108
52421
|
required: ["hvac_mode_setting", "device_id"],
|
|
52109
52422
|
type: "object"
|
|
52423
|
+
},
|
|
52424
|
+
{
|
|
52425
|
+
properties: {
|
|
52426
|
+
device_id: {
|
|
52427
|
+
description: "ID of the thermostat device for which you want to set the HVAC mode.",
|
|
52428
|
+
format: "uuid",
|
|
52429
|
+
type: "string"
|
|
52430
|
+
},
|
|
52431
|
+
hvac_mode_setting: { enum: ["eco"], type: "string" }
|
|
52432
|
+
},
|
|
52433
|
+
required: ["hvac_mode_setting", "device_id"],
|
|
52434
|
+
type: "object"
|
|
52110
52435
|
}
|
|
52111
52436
|
]
|
|
52112
52437
|
}
|