Skip to content

Commit 0620327

Browse files
authored
1 parent cf46fa4 commit 0620327

7 files changed

Lines changed: 179 additions & 176 deletions

File tree

src/lib/seam/connect/models/access-grants/access-grant.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,54 +6,54 @@ export const access_grant = z.object({
66
workspace_id: z
77
.string()
88
.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.'),
1111
user_identity_id: z
1212
.string()
1313
.uuid()
14-
.describe('ID of user identity to which the access grant gives access.'),
14+
.describe('ID of user identity to which the Access Grant gives access.'),
1515
location_ids: z.array(z.string().uuid()).describe(`
1616
---
1717
deprecated: Use \`space_ids\`.
1818
---
1919
`),
2020
space_ids: z
2121
.array(z.string().uuid())
22-
.describe('IDs of the spaces to which the access grant gives access.'),
22+
.describe('IDs of the spaces to which the Access Grant gives access.'),
2323
requested_access_methods: z
2424
.array(requested_access_method)
25-
.describe('Access methods that the user requested for the access grant.'),
25+
.describe('Access methods that the user requested for the Access Grant.'),
2626
access_method_ids: z
2727
.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.'),
28+
.describe('IDs of the access methods created for the Access Grant.'),
29+
display_name: z.string().describe('Display name of the Access Grant.'),
3030
instant_key_url: z
3131
.string()
3232
.url()
3333
.optional()
3434
.describe(
35-
'Instant Key URL. Only returned if the access grant has a single mobile_key access_method. ',
35+
'Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. ',
3636
),
3737
created_at: z
3838
.string()
3939
.datetime()
40-
.describe('Date and time at which the access grant was created.'),
40+
.describe('Date and time at which the Access Grant was created.'),
4141
starts_at: z
4242
.string()
4343
.datetime()
4444
.optional()
45-
.describe('Date and time at which the access grant starts.'),
45+
.describe('Date and time at which the Access Grant starts.'),
4646
ends_at: z
4747
.string()
4848
.datetime()
4949
.optional()
50-
.describe('Date and time at which the access grant ends.'),
50+
.describe('Date and time at which the Access Grant ends.'),
5151
}).describe(`
5252
---
5353
draft: Early access.
5454
route_path: /access_grants
5555
---
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.
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.
5757
`)
5858

5959
export type AccessGrant = z.infer<typeof access_grant>

src/lib/seam/connect/models/access-grants/access-method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const access_method = z.object({
4141
draft: Early access.
4242
route_path: /access_methods
4343
---
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.
4545
`)
4646

4747
export type AccessMethod = z.infer<typeof access_method>

src/lib/seam/connect/models/access-grants/requested-access-method.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const requested_access_method = z.object({
1111
.string()
1212
.datetime()
1313
.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.',
1515
),
1616
created_access_method_ids: z
1717
.array(z.string().uuid())

src/lib/seam/connect/models/events/access-grants.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const access_grant_event = common_event.extend({
66
access_grant_id: z
77
.string()
88
.uuid()
9-
.describe('ID of the affected access grant.'),
9+
.describe('ID of the affected Access Grant.'),
1010
})
1111

1212
export const access_grant_created_event = access_grant_event.extend({
@@ -15,7 +15,7 @@ export const access_grant_created_event = access_grant_event.extend({
1515
---
1616
route_path: /access_grants
1717
---
18-
An access grant was created.
18+
An Access Grant was created.
1919
`)
2020

2121
export const access_grant_deleted_event = access_grant_event.extend({
@@ -24,7 +24,7 @@ export const access_grant_deleted_event = access_grant_event.extend({
2424
---
2525
route_path: /access_grants
2626
---
27-
An access grant was deleted.
27+
An Access Grant was deleted.
2828
`)
2929

3030
export const access_grant_access_granted_to_all_doors_event =
@@ -34,7 +34,7 @@ export const access_grant_access_granted_to_all_doors_event =
3434
---
3535
route_path: /access_grants
3636
---
37-
All access requested for an access grant was successfully granted.
37+
All access requested for an Access Grant was successfully granted.
3838
`)
3939

4040
export type AccessGrantAccessGrantedToAllDoorsEvent = z.infer<
@@ -56,7 +56,7 @@ export const access_grant_access_granted_to_door_event =
5656
---
5757
route_path: /access_grants
5858
---
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.
6060
`)
6161

6262
export type AccessGrantAccessGrantedToDoorEvent = z.infer<
@@ -72,7 +72,7 @@ export const access_grant_access_to_door_lost_event = access_grant_event.extend(
7272
---
7373
route_path: /access_grants
7474
---
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.
7676
`)
7777

7878
export type AccessGrantAccessToDoorLostEvent = z.infer<

src/lib/seam/connect/models/events/access-methods.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const access_method_reissued_event = access_method_event.extend({
5858
---
5959
route_path: /access_methods
6060
---
61-
An access method was reissued due to an access grant update.
61+
An access method was reissued due to an Access Grant update.
6262
`)
6363

6464
export type AccessMethodRevokedEvent = z.infer<

0 commit comments

Comments
 (0)