@seamapi/types 1.407.0 → 1.409.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 +2194 -526
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4416 -1760
- 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/access-grants/access-grant.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +9 -3
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.js +2 -1
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.js +1 -5
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +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/models/pagination.d.ts +1 -0
- package/lib/seam/connect/models/spaces/index.d.ts +1 -0
- package/lib/seam/connect/models/spaces/index.js +2 -0
- package/lib/seam/connect/models/spaces/index.js.map +1 -0
- package/lib/seam/connect/models/spaces/space.d.ts +21 -0
- package/lib/seam/connect/models/spaces/space.js +20 -0
- package/lib/seam/connect/models/spaces/space.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +5805 -3750
- package/lib/seam/connect/openapi.js +6538 -4891
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +476 -13
- 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/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/model-types.ts +6 -0
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +9 -3
- package/src/lib/seam/connect/models/access-grants/access-method.ts +2 -1
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +1 -5
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/pagination.ts +2 -0
- package/src/lib/seam/connect/models/spaces/index.ts +1 -0
- package/src/lib/seam/connect/models/spaces/space.ts +24 -0
- package/src/lib/seam/connect/openapi.ts +7562 -5851
- package/src/lib/seam/connect/route-types.ts +481 -13
- package/src/lib/seam/connect/schemas.ts +2 -0
|
@@ -14,9 +14,14 @@ export const access_grant = z.object({
|
|
|
14
14
|
.string()
|
|
15
15
|
.uuid()
|
|
16
16
|
.describe('ID of user identity to which access is being granted.'),
|
|
17
|
-
location_ids: z
|
|
17
|
+
location_ids: z.array(z.string().uuid()).describe(`
|
|
18
|
+
---
|
|
19
|
+
deprecated: Use \`space_ids\`.
|
|
20
|
+
---
|
|
21
|
+
`),
|
|
22
|
+
space_ids: z
|
|
18
23
|
.array(z.string().uuid())
|
|
19
|
-
.describe('IDs of the
|
|
24
|
+
.describe('IDs of the spaces to which access is being given.'),
|
|
20
25
|
requested_access_methods: z
|
|
21
26
|
.array(requested_access_method)
|
|
22
27
|
.describe('Access methods that the user requested for this access grant.'),
|
|
@@ -32,7 +37,8 @@ export const access_grant = z.object({
|
|
|
32
37
|
.describe('Date and time at which the access grant was created.'),
|
|
33
38
|
}).describe(`
|
|
34
39
|
---
|
|
35
|
-
|
|
40
|
+
draft: Early access.
|
|
41
|
+
route_path: /access_grants
|
|
36
42
|
---
|
|
37
43
|
`)
|
|
38
44
|
|
|
@@ -18,10 +18,6 @@ export const requested_access_method = z.object({
|
|
|
18
18
|
.describe(
|
|
19
19
|
'IDs of the access methods that were created for this requested access method.',
|
|
20
20
|
),
|
|
21
|
-
})
|
|
22
|
-
---
|
|
23
|
-
undocumented: Unreleased.
|
|
24
|
-
---
|
|
25
|
-
`)
|
|
21
|
+
})
|
|
26
22
|
|
|
27
23
|
export type RequestedAccessMethod = z.infer<typeof requested_access_method>
|
|
@@ -17,6 +17,7 @@ export * from './pagination.js'
|
|
|
17
17
|
export * from './partner/index.js'
|
|
18
18
|
export * from './phone-number.js'
|
|
19
19
|
export * from './phones/index.js'
|
|
20
|
+
export * from './spaces/index.js'
|
|
20
21
|
export * from './thermostats/index.js'
|
|
21
22
|
export * from './user-identities/index.js'
|
|
22
23
|
export * from './webhooks/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './space.js'
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const space = z.object({
|
|
4
|
+
space_id: z.string().uuid().describe('Unique identifier for the space.'),
|
|
5
|
+
workspace_id: z
|
|
6
|
+
.string()
|
|
7
|
+
.uuid()
|
|
8
|
+
.describe(
|
|
9
|
+
'Unique identifier for the Seam workspace associated with the space.',
|
|
10
|
+
),
|
|
11
|
+
name: z.string().describe('Name of the space.'),
|
|
12
|
+
display_name: z.string().describe('Display name of the space.'),
|
|
13
|
+
created_at: z
|
|
14
|
+
.string()
|
|
15
|
+
.datetime()
|
|
16
|
+
.describe('Date and time at which the space object was created.'),
|
|
17
|
+
}).describe(`
|
|
18
|
+
---
|
|
19
|
+
draft: Early access.
|
|
20
|
+
route_path: /spaces
|
|
21
|
+
---
|
|
22
|
+
`)
|
|
23
|
+
|
|
24
|
+
export type Space = z.infer<typeof space>
|