You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'ID of the associated [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) that serves as the credential manager.',
22
+
),
23
+
user_identity_id: z
24
+
.string()
25
+
.uuid()
26
+
.describe(
27
+
'ID of the associated [user identity](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).',
28
+
),
29
+
created_at: z
30
+
.string()
31
+
.datetime()
32
+
.describe(
33
+
'Date and time at which the enrollment automation was created.',
34
+
),
35
+
workspace_id: z
36
+
.string()
37
+
.uuid()
38
+
.describe(
39
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the enrollment automation.',
40
+
),
14
41
})
15
-
.merge(
16
-
z.object({
17
-
enrollment_automation_id: z.string().uuid(),
18
-
}),
42
+
.describe(
43
+
'Represents an [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system) within the [Seam mobile access solution](https://docs.seam.co/latest/capability-guides/mobile-access-in-development).',
Copy file name to clipboardExpand all lines: src/lib/seam/connect/models/user-identities/user-identity.ts
+34-10Lines changed: 34 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,39 @@ import { z } from 'zod'
2
2
3
3
import{phone_number}from'../phone-number.js'
4
4
5
-
exportconstuser_identity=z.object({
6
-
user_identity_id: z.string().uuid(),
7
-
user_identity_key: z.string().min(1).nullable(),
8
-
email_address: z.string().email().nullable(),
9
-
phone_number: phone_number.nullable(),
10
-
display_name: z.string().min(1),
11
-
full_name: z.string().min(1).nullable(),
12
-
created_at: z.string().datetime(),
13
-
workspace_id: z.string().uuid(),
14
-
})
5
+
exportconstuser_identity=z
6
+
.object({
7
+
user_identity_id: z.string().uuid().describe('ID of the user identity.'),
8
+
user_identity_key: z
9
+
.string()
10
+
.min(1)
11
+
.nullable()
12
+
.describe('Unique key for the user identity.'),
13
+
email_address: z
14
+
.string()
15
+
.email()
16
+
.nullable()
17
+
.describe('Unique email address for the user identity.'),
18
+
phone_number: phone_number
19
+
.nullable()
20
+
.describe(
21
+
'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).',
22
+
),
23
+
display_name: z.string().min(1),
24
+
full_name: z.string().min(1).nullable(),
25
+
created_at: z
26
+
.string()
27
+
.datetime()
28
+
.describe('Date and time at which the user identity was created.'),
29
+
workspace_id: z
30
+
.string()
31
+
.uuid()
32
+
.describe(
33
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity.',
34
+
),
35
+
})
36
+
.describe(
37
+
'Represents a [user identity](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with an application user account.',
0 commit comments