@seamapi/types 1.445.0 → 1.446.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.
Files changed (30) hide show
  1. package/dist/connect.cjs +148 -103
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +230 -135
  4. package/dist/index.cjs +148 -103
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -0
  7. package/lib/seam/connect/models/access-grants/access-grant.js +16 -12
  8. package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
  9. package/lib/seam/connect/models/access-grants/access-method.js +1 -1
  10. package/lib/seam/connect/models/access-grants/requested-access-method.js +1 -1
  11. package/lib/seam/connect/models/batches/batch.d.ts +5 -0
  12. package/lib/seam/connect/models/batches/spaces.d.ts +5 -0
  13. package/lib/seam/connect/models/events/access-grants.js +6 -6
  14. package/lib/seam/connect/models/events/access-methods.js +1 -1
  15. package/lib/seam/connect/models/spaces/space.d.ts +3 -0
  16. package/lib/seam/connect/models/spaces/space.js +4 -0
  17. package/lib/seam/connect/models/spaces/space.js.map +1 -1
  18. package/lib/seam/connect/openapi.d.ts +86 -38
  19. package/lib/seam/connect/openapi.js +140 -96
  20. package/lib/seam/connect/openapi.js.map +1 -1
  21. package/lib/seam/connect/route-types.d.ts +133 -97
  22. package/package.json +1 -1
  23. package/src/lib/seam/connect/models/access-grants/access-grant.ts +16 -12
  24. package/src/lib/seam/connect/models/access-grants/access-method.ts +1 -1
  25. package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +1 -1
  26. package/src/lib/seam/connect/models/events/access-grants.ts +6 -6
  27. package/src/lib/seam/connect/models/events/access-methods.ts +1 -1
  28. package/src/lib/seam/connect/models/spaces/space.ts +4 -0
  29. package/src/lib/seam/connect/openapi.ts +147 -96
  30. package/src/lib/seam/connect/route-types.ts +144 -104
@@ -6,12 +6,16 @@ export const access_grant = z.object({
6
6
  workspace_id: z
7
7
  .string()
8
8
  .uuid()
9
- .describe('ID of the Seam workspace associated with the access grant.'),
10
- access_grant_id: z.string().uuid().describe('ID of the access grant.'),
9
+ .describe('ID of the Seam workspace associated with the Access Grant.'),
10
+ access_grant_id: z.string().uuid().describe('ID of the Access Grant.'),
11
+ access_grant_key: z
12
+ .string()
13
+ .optional()
14
+ .describe('Unique key for the access grant within the workspace.'),
11
15
  user_identity_id: z
12
16
  .string()
13
17
  .uuid()
14
- .describe('ID of user identity to which the access grant gives access.'),
18
+ .describe('ID of user identity to which the Access Grant gives access.'),
15
19
  location_ids: z.array(z.string().uuid()).describe(`
16
20
  ---
17
21
  deprecated: Use \`space_ids\`.
@@ -19,41 +23,41 @@ export const access_grant = z.object({
19
23
  `),
20
24
  space_ids: z
21
25
  .array(z.string().uuid())
22
- .describe('IDs of the spaces to which the access grant gives access.'),
26
+ .describe('IDs of the spaces to which the Access Grant gives access.'),
23
27
  requested_access_methods: z
24
28
  .array(requested_access_method)
25
- .describe('Access methods that the user requested for the access grant.'),
29
+ .describe('Access methods that the user requested for the Access Grant.'),
26
30
  access_method_ids: z
27
31
  .array(z.string().uuid())
28
- .describe('IDs of the access methods created for the access grant.'),
29
- display_name: z.string().describe('Display name of the access grant.'),
32
+ .describe('IDs of the access methods created for the Access Grant.'),
33
+ display_name: z.string().describe('Display name of the Access Grant.'),
30
34
  instant_key_url: z
31
35
  .string()
32
36
  .url()
33
37
  .optional()
34
38
  .describe(
35
- 'Instant Key URL. Only returned if the access grant has a single mobile_key access_method. ',
39
+ 'Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. ',
36
40
  ),
37
41
  created_at: z
38
42
  .string()
39
43
  .datetime()
40
- .describe('Date and time at which the access grant was created.'),
44
+ .describe('Date and time at which the Access Grant was created.'),
41
45
  starts_at: z
42
46
  .string()
43
47
  .datetime()
44
48
  .optional()
45
- .describe('Date and time at which the access grant starts.'),
49
+ .describe('Date and time at which the Access Grant starts.'),
46
50
  ends_at: z
47
51
  .string()
48
52
  .datetime()
49
53
  .optional()
50
- .describe('Date and time at which the access grant ends.'),
54
+ .describe('Date and time at which the Access Grant ends.'),
51
55
  }).describe(`
52
56
  ---
53
57
  draft: Early access.
54
58
  route_path: /access_grants
55
59
  ---
56
- Represents an access grant. Access grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an access grant for an existing user identity, or you can create a new user identity *while* creating the new access grant.
60
+ Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant.
57
61
  `)
58
62
 
59
63
  export type AccessGrant = z.infer<typeof access_grant>
@@ -41,7 +41,7 @@ export const access_method = z.object({
41
41
  draft: Early access.
42
42
  route_path: /access_methods
43
43
  ---
44
- Represents an access method for an access grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.
44
+ Represents an access method for an Access Grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.
45
45
  `)
46
46
 
47
47
  export type AccessMethod = z.infer<typeof access_method>
@@ -11,7 +11,7 @@ export const requested_access_method = z.object({
11
11
  .string()
12
12
  .datetime()
13
13
  .describe(
14
- 'Date and time at which the requested access method was added to the access grant.',
14
+ 'Date and time at which the requested access method was added to the Access Grant.',
15
15
  ),
16
16
  created_access_method_ids: z
17
17
  .array(z.string().uuid())
@@ -6,7 +6,7 @@ const access_grant_event = common_event.extend({
6
6
  access_grant_id: z
7
7
  .string()
8
8
  .uuid()
9
- .describe('ID of the affected access grant.'),
9
+ .describe('ID of the affected Access Grant.'),
10
10
  })
11
11
 
12
12
  export const access_grant_created_event = access_grant_event.extend({
@@ -15,7 +15,7 @@ export const access_grant_created_event = access_grant_event.extend({
15
15
  ---
16
16
  route_path: /access_grants
17
17
  ---
18
- An access grant was created.
18
+ An Access Grant was created.
19
19
  `)
20
20
 
21
21
  export const access_grant_deleted_event = access_grant_event.extend({
@@ -24,7 +24,7 @@ export const access_grant_deleted_event = access_grant_event.extend({
24
24
  ---
25
25
  route_path: /access_grants
26
26
  ---
27
- An access grant was deleted.
27
+ An Access Grant was deleted.
28
28
  `)
29
29
 
30
30
  export const access_grant_access_granted_to_all_doors_event =
@@ -34,7 +34,7 @@ export const access_grant_access_granted_to_all_doors_event =
34
34
  ---
35
35
  route_path: /access_grants
36
36
  ---
37
- All access requested for an access grant was successfully granted.
37
+ All access requested for an Access Grant was successfully granted.
38
38
  `)
39
39
 
40
40
  export type AccessGrantAccessGrantedToAllDoorsEvent = z.infer<
@@ -56,7 +56,7 @@ export const access_grant_access_granted_to_door_event =
56
56
  ---
57
57
  route_path: /access_grants
58
58
  ---
59
- Access requested as part of an access grant to a particular door was successfully granted.
59
+ Access requested as part of an Access Grant to a particular door was successfully granted.
60
60
  `)
61
61
 
62
62
  export type AccessGrantAccessGrantedToDoorEvent = z.infer<
@@ -72,7 +72,7 @@ export const access_grant_access_to_door_lost_event = access_grant_event.extend(
72
72
  ---
73
73
  route_path: /access_grants
74
74
  ---
75
- Access to a particular door that was requested as part of an access grant was lost.
75
+ Access to a particular door that was requested as part of an Access Grant was lost.
76
76
  `)
77
77
 
78
78
  export type AccessGrantAccessToDoorLostEvent = z.infer<
@@ -58,7 +58,7 @@ export const access_method_reissued_event = access_method_event.extend({
58
58
  ---
59
59
  route_path: /access_methods
60
60
  ---
61
- An access method was reissued due to an access grant update.
61
+ An access method was reissued due to an Access Grant update.
62
62
  `)
63
63
 
64
64
  export type AccessMethodRevokedEvent = z.infer<
@@ -8,6 +8,10 @@ export const space = z.object({
8
8
  .describe(
9
9
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space.',
10
10
  ),
11
+ space_key: z
12
+ .string()
13
+ .optional()
14
+ .describe('Unique key for the space within the workspace.'),
11
15
  name: z.string().describe('Name of the space.'),
12
16
  display_name: z.string().describe('Display name for the space.'),
13
17
  created_at: z