@seamapi/types 1.293.1 → 1.294.1

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.
@@ -24212,7 +24212,9 @@ export interface Routes {
24212
24212
  queryParams: {};
24213
24213
  jsonBody: {};
24214
24214
  commonParams: {
24215
+ /** ID of the desired user identity. */
24215
24216
  user_identity_id: string;
24217
+ /** ID of the desired ACS user. */
24216
24218
  acs_user_id: string;
24217
24219
  };
24218
24220
  formData: {};
@@ -24224,21 +24226,32 @@ export interface Routes {
24224
24226
  queryParams: {};
24225
24227
  jsonBody: {};
24226
24228
  commonParams: {
24229
+ /** Unique key for the user identity. */
24227
24230
  user_identity_key?: (string | null) | undefined;
24231
+ /** Unique email address for the user identity. */
24228
24232
  email_address?: (string | null) | undefined;
24233
+ /** Unique phone number for the user identity in E.164 format (for example, +15555550100). */
24229
24234
  phone_number?: (string | null) | undefined;
24235
+ /** Full name of the user associated with the user identity. */
24230
24236
  full_name?: (string | null) | undefined;
24231
24237
  };
24232
24238
  formData: {};
24233
24239
  jsonResponse: {
24240
+ /** 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. */
24234
24241
  user_identity: {
24242
+ /** ID of the user identity. */
24235
24243
  user_identity_id: string;
24244
+ /** Unique key for the user identity. */
24236
24245
  user_identity_key: string | null;
24246
+ /** Unique email address for the user identity. */
24237
24247
  email_address: string | null;
24248
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
24238
24249
  phone_number: string | null;
24239
24250
  display_name: string;
24240
24251
  full_name: string | null;
24252
+ /** Date and time at which the user identity was created. */
24241
24253
  created_at: string;
24254
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
24242
24255
  workspace_id: string;
24243
24256
  };
24244
24257
  };
@@ -24249,6 +24262,7 @@ export interface Routes {
24249
24262
  queryParams: {};
24250
24263
  jsonBody: {};
24251
24264
  commonParams: {
24265
+ /** ID of the desired user identity. */
24252
24266
  user_identity_id: string;
24253
24267
  };
24254
24268
  formData: {};
@@ -24260,6 +24274,7 @@ export interface Routes {
24260
24274
  queryParams: {};
24261
24275
  jsonBody: {};
24262
24276
  commonParams: {
24277
+ /** ID of the desired enrollment automation. */
24263
24278
  enrollment_automation_id: string;
24264
24279
  };
24265
24280
  formData: {};
@@ -24271,16 +24286,23 @@ export interface Routes {
24271
24286
  queryParams: {};
24272
24287
  jsonBody: {};
24273
24288
  commonParams: {
24289
+ /** ID of the desired enrollment automation. */
24274
24290
  enrollment_automation_id: string;
24275
24291
  };
24276
24292
  formData: {};
24277
24293
  jsonResponse: {
24294
+ /** 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). */
24278
24295
  enrollment_automation: {
24296
+ /** ID of the enrollment automation. */
24297
+ enrollment_automation_id: string;
24298
+ /** ID of the associated [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) that serves as the credential manager. */
24279
24299
  credential_manager_acs_system_id: string;
24300
+ /** 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). */
24280
24301
  user_identity_id: string;
24302
+ /** Date and time at which the enrollment automation was created. */
24281
24303
  created_at: string;
24304
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the enrollment automation. */
24282
24305
  workspace_id: string;
24283
- enrollment_automation_id: string;
24284
24306
  };
24285
24307
  };
24286
24308
  };
@@ -24290,10 +24312,15 @@ export interface Routes {
24290
24312
  queryParams: {};
24291
24313
  jsonBody: {};
24292
24314
  commonParams: {
24315
+ /** ID of the desired user identity. */
24293
24316
  user_identity_id: string;
24317
+ /** ID of the desired ACS system that serves as the credential manager. */
24294
24318
  credential_manager_acs_system_id: string;
24319
+ /** ID of the ACS credential pool from which to obtain credentials for the user identity. */
24295
24320
  acs_credential_pool_id?: string | undefined;
24321
+ /** Indicates whether to create an associated credential manager user. If you set `create_credential_manager_user` to `true`, you cannot specify a `credential_manager_acs_user_id`. */
24296
24322
  create_credential_manager_user?: boolean | undefined;
24323
+ /** ID of the associated ACS user within the credential manager. If you specify a `credential_manager_acs_user_id`, you cannot set `create_credential_manager_user` to `true`. */
24297
24324
  credential_manager_acs_user_id?: string | undefined;
24298
24325
  };
24299
24326
  formData: {};
@@ -24314,16 +24341,22 @@ export interface Routes {
24314
24341
  queryParams: {};
24315
24342
  jsonBody: {};
24316
24343
  commonParams: {
24344
+ /** ID of the user identity for which you want to retrieve all enrollment automations. */
24317
24345
  user_identity_id: string;
24318
24346
  };
24319
24347
  formData: {};
24320
24348
  jsonResponse: {
24321
24349
  enrollment_automations: Array<{
24350
+ /** ID of the enrollment automation. */
24351
+ enrollment_automation_id: string;
24352
+ /** ID of the associated [ACS system](https://docs.seam.co/latest/capability-guides/access-systems) that serves as the credential manager. */
24322
24353
  credential_manager_acs_system_id: string;
24354
+ /** 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). */
24323
24355
  user_identity_id: string;
24356
+ /** Date and time at which the enrollment automation was created. */
24324
24357
  created_at: string;
24358
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the enrollment automation. */
24325
24359
  workspace_id: string;
24326
- enrollment_automation_id: string;
24327
24360
  }>;
24328
24361
  };
24329
24362
  };
@@ -24333,20 +24366,28 @@ export interface Routes {
24333
24366
  queryParams: {};
24334
24367
  jsonBody: {};
24335
24368
  commonParams: {
24369
+ /** ID of the desired user identity. */
24336
24370
  user_identity_id: string;
24337
24371
  } | {
24338
24372
  user_identity_key: string;
24339
24373
  };
24340
24374
  formData: {};
24341
24375
  jsonResponse: {
24376
+ /** 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. */
24342
24377
  user_identity: {
24378
+ /** ID of the user identity. */
24343
24379
  user_identity_id: string;
24380
+ /** Unique key for the user identity. */
24344
24381
  user_identity_key: string | null;
24382
+ /** Unique email address for the user identity. */
24345
24383
  email_address: string | null;
24384
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
24346
24385
  phone_number: string | null;
24347
24386
  display_name: string;
24348
24387
  full_name: string | null;
24388
+ /** Date and time at which the user identity was created. */
24349
24389
  created_at: string;
24390
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
24350
24391
  workspace_id: string;
24351
24392
  };
24352
24393
  };
@@ -24357,7 +24398,9 @@ export interface Routes {
24357
24398
  queryParams: {};
24358
24399
  jsonBody: {};
24359
24400
  commonParams: {
24401
+ /** ID of the desired user identity. */
24360
24402
  user_identity_id: string;
24403
+ /** ID of the desired managed device. */
24361
24404
  device_id: string;
24362
24405
  };
24363
24406
  formData: {};
@@ -24374,13 +24417,19 @@ export interface Routes {
24374
24417
  formData: {};
24375
24418
  jsonResponse: {
24376
24419
  user_identities: Array<{
24420
+ /** ID of the user identity. */
24377
24421
  user_identity_id: string;
24422
+ /** Unique key for the user identity. */
24378
24423
  user_identity_key: string | null;
24424
+ /** Unique email address for the user identity. */
24379
24425
  email_address: string | null;
24426
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
24380
24427
  phone_number: string | null;
24381
24428
  display_name: string;
24382
24429
  full_name: string | null;
24430
+ /** Date and time at which the user identity was created. */
24383
24431
  created_at: string;
24432
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
24384
24433
  workspace_id: string;
24385
24434
  }>;
24386
24435
  };
@@ -24391,6 +24440,7 @@ export interface Routes {
24391
24440
  queryParams: {};
24392
24441
  jsonBody: {};
24393
24442
  commonParams: {
24443
+ /** ID of the user identity for which you want to retrieve all accessible devices. */
24394
24444
  user_identity_id: string;
24395
24445
  };
24396
24446
  formData: {};
@@ -25431,6 +25481,7 @@ export interface Routes {
25431
25481
  queryParams: {};
25432
25482
  jsonBody: {};
25433
25483
  commonParams: {
25484
+ /** ID of the user identity for which you want to retrieve all access control systems. */
25434
25485
  user_identity_id: string;
25435
25486
  };
25436
25487
  formData: {};
@@ -25539,6 +25590,7 @@ export interface Routes {
25539
25590
  queryParams: {};
25540
25591
  jsonBody: {};
25541
25592
  commonParams: {
25593
+ /** ID of the user identity for which you want to retrieve all ACS users. */
25542
25594
  user_identity_id: string;
25543
25595
  };
25544
25596
  formData: {};
@@ -25641,7 +25693,9 @@ export interface Routes {
25641
25693
  queryParams: {};
25642
25694
  jsonBody: {};
25643
25695
  commonParams: {
25696
+ /** ID of the desired user identity. */
25644
25697
  user_identity_id: string;
25698
+ /** ID of the ACS user. */
25645
25699
  acs_user_id: string;
25646
25700
  };
25647
25701
  formData: {};
@@ -25653,7 +25707,9 @@ export interface Routes {
25653
25707
  queryParams: {};
25654
25708
  jsonBody: {};
25655
25709
  commonParams: {
25710
+ /** ID of the desired user identity. */
25656
25711
  user_identity_id: string;
25712
+ /** ID of the desired managed device. */
25657
25713
  device_id: string;
25658
25714
  };
25659
25715
  formData: {};
@@ -25664,9 +25720,13 @@ export interface Routes {
25664
25720
  method: 'PATCH' | 'POST';
25665
25721
  queryParams: {};
25666
25722
  jsonBody: {
25723
+ /** ID of the user identity. */
25667
25724
  user_identity_id: string;
25725
+ /** Unique key for the user identity. */
25668
25726
  user_identity_key?: (string | null) | undefined;
25727
+ /** Unique email address for the user identity. */
25669
25728
  email_address?: (string | null) | undefined;
25729
+ /** Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */
25670
25730
  phone_number?: (string | null) | undefined;
25671
25731
  full_name?: (string | null) | undefined;
25672
25732
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.293.1",
3
+ "version": "1.294.1",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -8,14 +8,39 @@ export const acs_credential_provisioning_automation = z.object({
8
8
  workspace_id: z.string().uuid(),
9
9
  })
10
10
 
11
- export const enrollment_automation = acs_credential_provisioning_automation
12
- .omit({
13
- acs_credential_provisioning_automation_id: true,
11
+ export const enrollment_automation = z
12
+ .object({
13
+ enrollment_automation_id: z
14
+ .string()
15
+ .uuid()
16
+ .describe('ID of the enrollment automation.'),
17
+ credential_manager_acs_system_id: z
18
+ .string()
19
+ .uuid()
20
+ .describe(
21
+ '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).',
19
44
  )
20
45
 
21
46
  export type EnrollmentAutomation = z.output<typeof enrollment_automation>
@@ -2,15 +2,39 @@ import { z } from 'zod'
2
2
 
3
3
  import { phone_number } from '../phone-number.js'
4
4
 
5
- export const user_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
+ export const user_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.',
38
+ )
15
39
 
16
40
  export type UserIdentity = z.output<typeof user_identity>