@seamapi/types 1.406.9 → 1.408.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 +2314 -468
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3939 -1272
- 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/models/access-grants/access-grant.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +7 -2
- package/lib/seam/connect/models/access-grants/access-grant.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/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/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 +15 -0
- package/lib/seam/connect/models/spaces/space.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +5941 -3781
- package/lib/seam/connect/openapi.js +7334 -5497
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +499 -15
- package/package.json +2 -2
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +7 -2
- package/src/lib/seam/connect/models/events/access-methods.ts +10 -0
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/spaces/index.ts +1 -0
- package/src/lib/seam/connect/models/spaces/space.ts +19 -0
- package/src/lib/seam/connect/openapi.ts +7987 -6075
- package/src/lib/seam/connect/route-types.ts +506 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.408.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zod": "^3.24.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@seamapi/blueprint": "^0.
|
|
95
|
+
"@seamapi/blueprint": "^0.44.0",
|
|
96
96
|
"@types/node": "^20.8.10",
|
|
97
97
|
"concurrently": "^8.2.0",
|
|
98
98
|
"del-cli": "^5.0.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.'),
|
|
@@ -43,6 +43,15 @@ export const access_method_revoked_event = access_method_event.extend({
|
|
|
43
43
|
An access method was revoked.
|
|
44
44
|
`)
|
|
45
45
|
|
|
46
|
+
export const access_method_deleted_event = access_method_event.extend({
|
|
47
|
+
event_type: z.literal('access_method.deleted'),
|
|
48
|
+
}).describe(`
|
|
49
|
+
---
|
|
50
|
+
route_path: /unstable_access_methods
|
|
51
|
+
---
|
|
52
|
+
An access method was deleted.
|
|
53
|
+
`)
|
|
54
|
+
|
|
46
55
|
export type AccessMethodRevokedEvent = z.infer<
|
|
47
56
|
typeof access_method_revoked_event
|
|
48
57
|
>
|
|
@@ -51,4 +60,5 @@ export const access_method_events = [
|
|
|
51
60
|
access_method_issued_event,
|
|
52
61
|
access_method_revoked_event,
|
|
53
62
|
access_method_card_encoding_required_event,
|
|
63
|
+
access_method_deleted_event,
|
|
54
64
|
] as const
|
|
@@ -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,19 @@
|
|
|
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
|
+
})
|
|
18
|
+
|
|
19
|
+
export type Space = z.infer<typeof space>
|