@seamapi/types 1.452.0 → 1.454.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 +383 -36
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +12434 -2507
- package/dist/index.cjs +383 -36
- 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 +432 -42
- package/lib/seam/connect/openapi.js +373 -32
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +6237 -2379
- 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 +381 -32
- package/src/lib/seam/connect/route-types.ts +7667 -2674
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
|
---
|
|
@@ -29479,6 +29485,27 @@ var openapi_default = {
|
|
|
29479
29485
|
description: "Your user ID for the user by which to filter unmanaged access codes.",
|
|
29480
29486
|
type: "string"
|
|
29481
29487
|
}
|
|
29488
|
+
},
|
|
29489
|
+
{
|
|
29490
|
+
in: "query",
|
|
29491
|
+
name: "limit",
|
|
29492
|
+
required: false,
|
|
29493
|
+
schema: {
|
|
29494
|
+
default: 3e5,
|
|
29495
|
+
description: "Numerical limit on the number of unmanaged access codes to return.",
|
|
29496
|
+
format: "float",
|
|
29497
|
+
type: "number"
|
|
29498
|
+
}
|
|
29499
|
+
},
|
|
29500
|
+
{
|
|
29501
|
+
in: "query",
|
|
29502
|
+
name: "page_cursor",
|
|
29503
|
+
required: false,
|
|
29504
|
+
schema: {
|
|
29505
|
+
description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
29506
|
+
nullable: true,
|
|
29507
|
+
type: "string"
|
|
29508
|
+
}
|
|
29482
29509
|
}
|
|
29483
29510
|
],
|
|
29484
29511
|
responses: {
|
|
@@ -29493,9 +29520,10 @@ var openapi_default = {
|
|
|
29493
29520
|
},
|
|
29494
29521
|
type: "array"
|
|
29495
29522
|
},
|
|
29496
|
-
ok: { type: "boolean" }
|
|
29523
|
+
ok: { type: "boolean" },
|
|
29524
|
+
pagination: { $ref: "#/components/schemas/pagination" }
|
|
29497
29525
|
},
|
|
29498
|
-
required: ["access_codes", "ok"],
|
|
29526
|
+
required: ["access_codes", "pagination", "ok"],
|
|
29499
29527
|
type: "object"
|
|
29500
29528
|
}
|
|
29501
29529
|
}
|
|
@@ -29532,6 +29560,17 @@ var openapi_default = {
|
|
|
29532
29560
|
format: "uuid",
|
|
29533
29561
|
type: "string"
|
|
29534
29562
|
},
|
|
29563
|
+
limit: {
|
|
29564
|
+
default: 3e5,
|
|
29565
|
+
description: "Numerical limit on the number of unmanaged access codes to return.",
|
|
29566
|
+
format: "float",
|
|
29567
|
+
type: "number"
|
|
29568
|
+
},
|
|
29569
|
+
page_cursor: {
|
|
29570
|
+
description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
|
|
29571
|
+
nullable: true,
|
|
29572
|
+
type: "string"
|
|
29573
|
+
},
|
|
29535
29574
|
user_identifier_key: {
|
|
29536
29575
|
description: "Your user ID for the user by which to filter unmanaged access codes.",
|
|
29537
29576
|
type: "string"
|
|
@@ -29555,9 +29594,10 @@ var openapi_default = {
|
|
|
29555
29594
|
},
|
|
29556
29595
|
type: "array"
|
|
29557
29596
|
},
|
|
29558
|
-
ok: { type: "boolean" }
|
|
29597
|
+
ok: { type: "boolean" },
|
|
29598
|
+
pagination: { $ref: "#/components/schemas/pagination" }
|
|
29559
29599
|
},
|
|
29560
|
-
required: ["access_codes", "ok"],
|
|
29600
|
+
required: ["access_codes", "pagination", "ok"],
|
|
29561
29601
|
type: "object"
|
|
29562
29602
|
}
|
|
29563
29603
|
}
|
|
@@ -30626,6 +30666,251 @@ var openapi_default = {
|
|
|
30626
30666
|
"x-title": "Get an Access Grant"
|
|
30627
30667
|
}
|
|
30628
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
|
+
},
|
|
30629
30914
|
"/access_grants/list": {
|
|
30630
30915
|
get: {
|
|
30631
30916
|
description: "Gets an Access Grant.",
|
|
@@ -49106,23 +49391,54 @@ var openapi_default = {
|
|
|
49106
49391
|
properties: {
|
|
49107
49392
|
batch: {
|
|
49108
49393
|
description: "Represents a resource batch.",
|
|
49109
|
-
|
|
49110
|
-
|
|
49111
|
-
|
|
49112
|
-
|
|
49113
|
-
|
|
49114
|
-
|
|
49115
|
-
|
|
49116
|
-
|
|
49117
|
-
|
|
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"
|
|
49118
49416
|
},
|
|
49119
|
-
|
|
49120
|
-
|
|
49121
|
-
|
|
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"
|
|
49122
49440
|
}
|
|
49123
|
-
|
|
49124
|
-
required: ["batch_type"],
|
|
49125
|
-
type: "object",
|
|
49441
|
+
],
|
|
49126
49442
|
"x-route-path": "/"
|
|
49127
49443
|
},
|
|
49128
49444
|
ok: { type: "boolean" }
|
|
@@ -49194,23 +49510,54 @@ var openapi_default = {
|
|
|
49194
49510
|
properties: {
|
|
49195
49511
|
batch: {
|
|
49196
49512
|
description: "Represents a resource batch.",
|
|
49197
|
-
|
|
49198
|
-
|
|
49199
|
-
|
|
49200
|
-
|
|
49201
|
-
|
|
49202
|
-
|
|
49203
|
-
|
|
49204
|
-
|
|
49205
|
-
|
|
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"
|
|
49206
49535
|
},
|
|
49207
|
-
|
|
49208
|
-
|
|
49209
|
-
|
|
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"
|
|
49210
49559
|
}
|
|
49211
|
-
|
|
49212
|
-
required: ["batch_type"],
|
|
49213
|
-
type: "object",
|
|
49560
|
+
],
|
|
49214
49561
|
"x-route-path": "/"
|
|
49215
49562
|
},
|
|
49216
49563
|
ok: { type: "boolean" }
|