@seamapi/types 1.438.0 → 1.440.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/README.md +2 -1
- package/dist/connect.cjs +216 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +7321 -141
- package/dist/index.cjs +57327 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -3
- package/index.d.ts +1 -2
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/batches/batch.d.ts +5669 -0
- package/lib/seam/connect/models/batches/batch.js +8 -0
- package/lib/seam/connect/models/batches/batch.js.map +1 -0
- package/lib/seam/connect/models/batches/index.d.ts +2 -0
- package/lib/seam/connect/models/batches/index.js +3 -0
- package/lib/seam/connect/models/batches/index.js.map +1 -0
- package/lib/seam/connect/models/batches/spaces.d.ts +5669 -0
- package/lib/seam/connect/models/batches/spaces.js +13 -0
- package/lib/seam/connect/models/batches/spaces.js.map +1 -0
- package/lib/seam/connect/models/events/seam-event.js +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +223 -0
- package/lib/seam/connect/openapi.js +183 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1287 -0
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/lib/index.ts +1 -0
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/model-types.ts +1 -0
- package/src/lib/seam/connect/models/batches/batch.ts +12 -0
- package/src/lib/seam/connect/models/batches/index.ts +2 -0
- package/src/lib/seam/connect/models/batches/spaces.ts +16 -0
- package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +185 -0
- package/src/lib/seam/connect/route-types.ts +1632 -0
- package/src/lib/seam/connect/schemas.ts +1 -0
package/README.md
CHANGED
|
@@ -15,7 +15,8 @@ have a single source of truth that stays up to date with the API.
|
|
|
15
15
|
|
|
16
16
|
### Structure
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
There is dedicated entrypoint for each Seam API namespace.
|
|
19
|
+
The main entrypoint for this module is re-exports the connect namespace.
|
|
19
20
|
|
|
20
21
|
Each directory under `src/lib/seam/*` is owned by an upstream Seam repository.
|
|
21
22
|
These files should not be edited manually as they will be overridden by automation.
|
package/dist/connect.cjs
CHANGED
|
@@ -19,6 +19,7 @@ __export(schemas_exports, {
|
|
|
19
19
|
acs_system: () => acs_system,
|
|
20
20
|
acs_user: () => acs_user,
|
|
21
21
|
action_attempt: () => action_attempt,
|
|
22
|
+
batch: () => batch,
|
|
22
23
|
bridge: () => bridge,
|
|
23
24
|
bridge_client_session: () => bridge_client_session,
|
|
24
25
|
building_block_type: () => building_block_type,
|
|
@@ -3960,6 +3961,37 @@ var action_attempt = zod.z.union([
|
|
|
3960
3961
|
|
|
3961
3962
|
See also [Action Attempts](https://docs.seam.co/latest/core-concepts/action-attempts).
|
|
3962
3963
|
`);
|
|
3964
|
+
var space = zod.z.object({
|
|
3965
|
+
space_id: zod.z.string().uuid().describe("ID of the space."),
|
|
3966
|
+
workspace_id: zod.z.string().uuid().describe(
|
|
3967
|
+
"ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space."
|
|
3968
|
+
),
|
|
3969
|
+
name: zod.z.string().describe("Name of the space."),
|
|
3970
|
+
display_name: zod.z.string().describe("Display name for the space."),
|
|
3971
|
+
created_at: zod.z.string().datetime().describe("Date and time at which the space was created.")
|
|
3972
|
+
}).describe(`
|
|
3973
|
+
---
|
|
3974
|
+
draft: Early access.
|
|
3975
|
+
route_path: /spaces
|
|
3976
|
+
---
|
|
3977
|
+
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.
|
|
3978
|
+
`);
|
|
3979
|
+
|
|
3980
|
+
// src/lib/seam/connect/models/batches/spaces.ts
|
|
3981
|
+
var spaces_batch = zod.z.object({
|
|
3982
|
+
batch_type: zod.z.literal("spaces"),
|
|
3983
|
+
spaces: space.array().optional(),
|
|
3984
|
+
devices: device.array().optional(),
|
|
3985
|
+
acs_entrances: acs_entrance.array().optional()
|
|
3986
|
+
}).describe("ID of the affected access system user.");
|
|
3987
|
+
|
|
3988
|
+
// src/lib/seam/connect/models/batches/batch.ts
|
|
3989
|
+
var batch = spaces_batch.describe(`
|
|
3990
|
+
---
|
|
3991
|
+
route_path: /
|
|
3992
|
+
---
|
|
3993
|
+
Represents a resource batch.
|
|
3994
|
+
`);
|
|
3963
3995
|
var bridge = zod.z.object({
|
|
3964
3996
|
bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
|
|
3965
3997
|
workspace_id: zod.z.string().uuid().describe(
|
|
@@ -5252,7 +5284,7 @@ var seam_event = zod.z.discriminatedUnion("event_type", [
|
|
|
5252
5284
|
route_path: /events
|
|
5253
5285
|
---
|
|
5254
5286
|
Represents an event. Events let you know when something interesting happens in your workspace. For example, when a lock is unlocked, Seam creates a \`lock.unlocked\` event. When a device's battery level is low, Seam creates a \`device.battery_low\` event.
|
|
5255
|
-
|
|
5287
|
+
|
|
5256
5288
|
As with other API resources, you can retrieve an individual event or a list of events. Seam also provides a separate [webhook](https://docs.seam.co/latest/developer-tools/webhooks) system for sending the event objects directly to an endpoint on your sever. Manage webhooks through [Seam Console](https://console.seam.co). You can also use the webhooks sandbox in Seam Console to see the different payloads for each event and test them against your own endpoints.
|
|
5257
5289
|
`);
|
|
5258
5290
|
var event_types = seam_event.options.map(
|
|
@@ -48800,6 +48832,189 @@ var openapi_default = {
|
|
|
48800
48832
|
"x-title": "Get a Space"
|
|
48801
48833
|
}
|
|
48802
48834
|
},
|
|
48835
|
+
"/spaces/get_related": {
|
|
48836
|
+
get: {
|
|
48837
|
+
description: "Gets all related resources for one or more Spaces.",
|
|
48838
|
+
operationId: "spacesGetRelatedGet",
|
|
48839
|
+
parameters: [
|
|
48840
|
+
{
|
|
48841
|
+
in: "query",
|
|
48842
|
+
name: "space_ids",
|
|
48843
|
+
required: true,
|
|
48844
|
+
schema: {
|
|
48845
|
+
description: "IDs of the spaces that you want to get along with their related resources.",
|
|
48846
|
+
items: { format: "uuid", type: "string" },
|
|
48847
|
+
type: "array"
|
|
48848
|
+
}
|
|
48849
|
+
},
|
|
48850
|
+
{
|
|
48851
|
+
in: "query",
|
|
48852
|
+
name: "include",
|
|
48853
|
+
required: false,
|
|
48854
|
+
schema: {
|
|
48855
|
+
items: {
|
|
48856
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
48857
|
+
type: "string"
|
|
48858
|
+
},
|
|
48859
|
+
type: "array"
|
|
48860
|
+
}
|
|
48861
|
+
},
|
|
48862
|
+
{
|
|
48863
|
+
in: "query",
|
|
48864
|
+
name: "exclude",
|
|
48865
|
+
required: false,
|
|
48866
|
+
schema: {
|
|
48867
|
+
items: {
|
|
48868
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
48869
|
+
type: "string"
|
|
48870
|
+
},
|
|
48871
|
+
type: "array"
|
|
48872
|
+
}
|
|
48873
|
+
}
|
|
48874
|
+
],
|
|
48875
|
+
responses: {
|
|
48876
|
+
200: {
|
|
48877
|
+
content: {
|
|
48878
|
+
"application/json": {
|
|
48879
|
+
schema: {
|
|
48880
|
+
properties: {
|
|
48881
|
+
batch: {
|
|
48882
|
+
description: "Represents a resource batch.",
|
|
48883
|
+
properties: {
|
|
48884
|
+
acs_entrances: {
|
|
48885
|
+
items: { $ref: "#/components/schemas/acs_entrance" },
|
|
48886
|
+
type: "array"
|
|
48887
|
+
},
|
|
48888
|
+
batch_type: { enum: ["spaces"], type: "string" },
|
|
48889
|
+
devices: {
|
|
48890
|
+
items: { $ref: "#/components/schemas/device" },
|
|
48891
|
+
type: "array"
|
|
48892
|
+
},
|
|
48893
|
+
spaces: {
|
|
48894
|
+
items: { $ref: "#/components/schemas/space" },
|
|
48895
|
+
type: "array"
|
|
48896
|
+
}
|
|
48897
|
+
},
|
|
48898
|
+
required: ["batch_type"],
|
|
48899
|
+
type: "object",
|
|
48900
|
+
"x-route-path": "/"
|
|
48901
|
+
},
|
|
48902
|
+
ok: { type: "boolean" }
|
|
48903
|
+
},
|
|
48904
|
+
required: ["batch", "ok"],
|
|
48905
|
+
type: "object"
|
|
48906
|
+
}
|
|
48907
|
+
}
|
|
48908
|
+
},
|
|
48909
|
+
description: "OK"
|
|
48910
|
+
},
|
|
48911
|
+
400: { description: "Bad Request" },
|
|
48912
|
+
401: { description: "Unauthorized" }
|
|
48913
|
+
},
|
|
48914
|
+
security: [
|
|
48915
|
+
{ pat_with_workspace: [] },
|
|
48916
|
+
{ console_session_with_workspace: [] },
|
|
48917
|
+
{ api_key: [] }
|
|
48918
|
+
],
|
|
48919
|
+
summary: "/spaces/get_related",
|
|
48920
|
+
tags: [],
|
|
48921
|
+
"x-batch-type": "spaces",
|
|
48922
|
+
"x-draft": "Early access.",
|
|
48923
|
+
"x-fern-sdk-group-name": ["spaces"],
|
|
48924
|
+
"x-fern-sdk-method-name": "get_related",
|
|
48925
|
+
"x-fern-sdk-return-value": "batch",
|
|
48926
|
+
"x-response-key": "batch",
|
|
48927
|
+
"x-title": "Get related Space resources"
|
|
48928
|
+
},
|
|
48929
|
+
post: {
|
|
48930
|
+
description: "Gets all related resources for one or more Spaces.",
|
|
48931
|
+
operationId: "spacesGetRelatedPost",
|
|
48932
|
+
requestBody: {
|
|
48933
|
+
content: {
|
|
48934
|
+
"application/json": {
|
|
48935
|
+
schema: {
|
|
48936
|
+
properties: {
|
|
48937
|
+
exclude: {
|
|
48938
|
+
items: {
|
|
48939
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
48940
|
+
type: "string"
|
|
48941
|
+
},
|
|
48942
|
+
type: "array"
|
|
48943
|
+
},
|
|
48944
|
+
include: {
|
|
48945
|
+
items: {
|
|
48946
|
+
enum: ["spaces", "devices", "acs_entrances"],
|
|
48947
|
+
type: "string"
|
|
48948
|
+
},
|
|
48949
|
+
type: "array"
|
|
48950
|
+
},
|
|
48951
|
+
space_ids: {
|
|
48952
|
+
description: "IDs of the spaces that you want to get along with their related resources.",
|
|
48953
|
+
items: { format: "uuid", type: "string" },
|
|
48954
|
+
type: "array"
|
|
48955
|
+
}
|
|
48956
|
+
},
|
|
48957
|
+
required: ["space_ids"],
|
|
48958
|
+
type: "object"
|
|
48959
|
+
}
|
|
48960
|
+
}
|
|
48961
|
+
}
|
|
48962
|
+
},
|
|
48963
|
+
responses: {
|
|
48964
|
+
200: {
|
|
48965
|
+
content: {
|
|
48966
|
+
"application/json": {
|
|
48967
|
+
schema: {
|
|
48968
|
+
properties: {
|
|
48969
|
+
batch: {
|
|
48970
|
+
description: "Represents a resource batch.",
|
|
48971
|
+
properties: {
|
|
48972
|
+
acs_entrances: {
|
|
48973
|
+
items: { $ref: "#/components/schemas/acs_entrance" },
|
|
48974
|
+
type: "array"
|
|
48975
|
+
},
|
|
48976
|
+
batch_type: { enum: ["spaces"], type: "string" },
|
|
48977
|
+
devices: {
|
|
48978
|
+
items: { $ref: "#/components/schemas/device" },
|
|
48979
|
+
type: "array"
|
|
48980
|
+
},
|
|
48981
|
+
spaces: {
|
|
48982
|
+
items: { $ref: "#/components/schemas/space" },
|
|
48983
|
+
type: "array"
|
|
48984
|
+
}
|
|
48985
|
+
},
|
|
48986
|
+
required: ["batch_type"],
|
|
48987
|
+
type: "object",
|
|
48988
|
+
"x-route-path": "/"
|
|
48989
|
+
},
|
|
48990
|
+
ok: { type: "boolean" }
|
|
48991
|
+
},
|
|
48992
|
+
required: ["batch", "ok"],
|
|
48993
|
+
type: "object"
|
|
48994
|
+
}
|
|
48995
|
+
}
|
|
48996
|
+
},
|
|
48997
|
+
description: "OK"
|
|
48998
|
+
},
|
|
48999
|
+
400: { description: "Bad Request" },
|
|
49000
|
+
401: { description: "Unauthorized" }
|
|
49001
|
+
},
|
|
49002
|
+
security: [
|
|
49003
|
+
{ pat_with_workspace: [] },
|
|
49004
|
+
{ console_session_with_workspace: [] },
|
|
49005
|
+
{ api_key: [] }
|
|
49006
|
+
],
|
|
49007
|
+
summary: "/spaces/get_related",
|
|
49008
|
+
tags: [],
|
|
49009
|
+
"x-batch-type": "spaces",
|
|
49010
|
+
"x-draft": "Early access.",
|
|
49011
|
+
"x-fern-sdk-group-name": ["spaces"],
|
|
49012
|
+
"x-fern-sdk-method-name": "get_related",
|
|
49013
|
+
"x-fern-sdk-return-value": "batch",
|
|
49014
|
+
"x-response-key": "batch",
|
|
49015
|
+
"x-title": "Get related Space resources"
|
|
49016
|
+
}
|
|
49017
|
+
},
|
|
48803
49018
|
"/spaces/list": {
|
|
48804
49019
|
get: {
|
|
48805
49020
|
description: "Returns a list of all spaces.",
|