@seamapi/types 1.413.0 → 1.414.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.
@@ -14732,6 +14732,10 @@ export interface Routes {
14732
14732
  location_id?: (string | null) | undefined;
14733
14733
  /** ID of the space for which you want to list entrances. */
14734
14734
  space_id?: string | undefined;
14735
+ /** ID of the access grant for which you want to retrieve all entrances. */
14736
+ access_grant_id?: string | undefined;
14737
+ /** ID of the access method for which you want to retrieve all entrances. */
14738
+ access_method_id?: string | undefined;
14735
14739
  };
14736
14740
  formData: {};
14737
14741
  jsonResponse: {
@@ -41876,8 +41880,6 @@ export interface Routes {
41876
41880
  is_being_activated: boolean;
41877
41881
  };
41878
41882
  acs_credentials: Array<{
41879
- /** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
41880
- acs_credential_id: string;
41881
41883
  /** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
41882
41884
  acs_user_id?: string | undefined;
41883
41885
  acs_credential_pool_id?: string | undefined;
@@ -41987,6 +41989,7 @@ export interface Routes {
41987
41989
  endpoint_id?: string | undefined;
41988
41990
  } | undefined;
41989
41991
  is_managed: true;
41992
+ acs_credential_id?: string | undefined;
41990
41993
  acs_entrances: Array<{
41991
41994
  /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
41992
41995
  acs_system_id: string;
@@ -57174,6 +57177,22 @@ export interface Routes {
57174
57177
  created_at: string;
57175
57178
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
57176
57179
  workspace_id: string;
57180
+ /** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
57181
+ errors: Array<{
57182
+ /** Date and time at which Seam created the error. */
57183
+ created_at: string;
57184
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
57185
+ message: string;
57186
+ }>;
57187
+ /** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
57188
+ warnings: Array<{
57189
+ /** Date and time at which Seam created the warning. */
57190
+ created_at: string;
57191
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
57192
+ message: string;
57193
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
57194
+ warning_code: 'being_deleted';
57195
+ }>;
57177
57196
  };
57178
57197
  };
57179
57198
  };
@@ -57335,6 +57354,22 @@ export interface Routes {
57335
57354
  created_at: string;
57336
57355
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
57337
57356
  workspace_id: string;
57357
+ /** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
57358
+ errors: Array<{
57359
+ /** Date and time at which Seam created the error. */
57360
+ created_at: string;
57361
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
57362
+ message: string;
57363
+ }>;
57364
+ /** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
57365
+ warnings: Array<{
57366
+ /** Date and time at which Seam created the warning. */
57367
+ created_at: string;
57368
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
57369
+ message: string;
57370
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
57371
+ warning_code: 'being_deleted';
57372
+ }>;
57338
57373
  };
57339
57374
  };
57340
57375
  };
@@ -57378,6 +57413,22 @@ export interface Routes {
57378
57413
  created_at: string;
57379
57414
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
57380
57415
  workspace_id: string;
57416
+ /** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
57417
+ errors: Array<{
57418
+ /** Date and time at which Seam created the error. */
57419
+ created_at: string;
57420
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
57421
+ message: string;
57422
+ }>;
57423
+ /** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
57424
+ warnings: Array<{
57425
+ /** Date and time at which Seam created the warning. */
57426
+ created_at: string;
57427
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
57428
+ message: string;
57429
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
57430
+ warning_code: 'being_deleted';
57431
+ }>;
57381
57432
  }>;
57382
57433
  };
57383
57434
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.413.0",
3
+ "version": "1.414.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -7,7 +7,11 @@ import { phone_registration } from './phone-registration.js'
7
7
  const phone_provider_session = z.object({
8
8
  phone_registration,
9
9
  acs_credentials: acs_credential
10
+ .omit({
11
+ acs_credential_id: true,
12
+ })
10
13
  .extend({
14
+ acs_credential_id: z.string().optional(),
11
15
  acs_entrances: acs_entrance.array(),
12
16
  })
13
17
  .array(),
@@ -2,6 +2,56 @@ import { z } from 'zod'
2
2
 
3
3
  import { phone_number } from '../phone-number.js'
4
4
 
5
+ const common_user_identity_error = z.object({
6
+ created_at: z
7
+ .string()
8
+ .datetime()
9
+ .describe('Date and time at which Seam created the error.'),
10
+ message: z
11
+ .string()
12
+ .describe(
13
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
14
+ ),
15
+ })
16
+
17
+ const common_user_identity_warning = z.object({
18
+ created_at: z
19
+ .string()
20
+ .datetime()
21
+ .describe('Date and time at which Seam created the warning.'),
22
+ message: z
23
+ .string()
24
+ .describe(
25
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
26
+ ),
27
+ })
28
+
29
+ const user_identity_being_deleted = common_user_identity_warning
30
+ .extend({
31
+ warning_code: z
32
+ .literal('being_deleted')
33
+ .describe(
34
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
35
+ ),
36
+ })
37
+ .describe('Indicates that the user identity is currently being deleted.')
38
+
39
+ export const user_identity_error_map = z.object({})
40
+
41
+ export type UserIdentityErrorMap = z.infer<typeof user_identity_error_map>
42
+
43
+ const user_identity_warnings = z
44
+ .discriminatedUnion('warning_code', [user_identity_being_deleted])
45
+ .describe('Warnings associated with the user identity.')
46
+
47
+ export const user_identity_warning_map = z.object({
48
+ user_identity_being_deleted: user_identity_being_deleted
49
+ .optional()
50
+ .nullable(),
51
+ })
52
+
53
+ export type UserIdentityWarningMap = z.infer<typeof user_identity_warning_map>
54
+
5
55
  export const user_identity = z.object({
6
56
  user_identity_id: z.string().uuid().describe('ID of the user identity.'),
7
57
  user_identity_key: z
@@ -31,6 +81,16 @@ export const user_identity = z.object({
31
81
  .describe(
32
82
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity.',
33
83
  ),
84
+ errors: z
85
+ .array(common_user_identity_error)
86
+ .describe(
87
+ 'Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
88
+ ),
89
+ warnings: z
90
+ .array(user_identity_warnings)
91
+ .describe(
92
+ 'Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
93
+ ),
34
94
  }).describe(`
35
95
  ---
36
96
  route_path: /user_identities
@@ -16434,12 +16434,7 @@ export default {
16434
16434
  enum: ['code', 'card', 'mobile_key'],
16435
16435
  type: 'string',
16436
16436
  },
16437
- acs_credential_id: {
16438
- description:
16439
- 'ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).',
16440
- format: 'uuid',
16441
- type: 'string',
16442
- },
16437
+ acs_credential_id: { type: 'string' },
16443
16438
  acs_credential_pool_id: {
16444
16439
  format: 'uuid',
16445
16440
  type: 'string',
@@ -16988,7 +16983,6 @@ export default {
16988
16983
  },
16989
16984
  },
16990
16985
  required: [
16991
- 'acs_credential_id',
16992
16986
  'acs_system_id',
16993
16987
  'display_name',
16994
16988
  'access_method',
@@ -20821,6 +20815,27 @@ export default {
20821
20815
  nullable: true,
20822
20816
  type: 'string',
20823
20817
  },
20818
+ errors: {
20819
+ description:
20820
+ 'Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
20821
+ items: {
20822
+ properties: {
20823
+ created_at: {
20824
+ description: 'Date and time at which Seam created the error.',
20825
+ format: 'date-time',
20826
+ type: 'string',
20827
+ },
20828
+ message: {
20829
+ description:
20830
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
20831
+ type: 'string',
20832
+ },
20833
+ },
20834
+ required: ['created_at', 'message'],
20835
+ type: 'object',
20836
+ },
20837
+ type: 'array',
20838
+ },
20824
20839
  full_name: { minLength: 1, nullable: true, type: 'string' },
20825
20840
  phone_number: {
20826
20841
  description:
@@ -20839,6 +20854,42 @@ export default {
20839
20854
  nullable: true,
20840
20855
  type: 'string',
20841
20856
  },
20857
+ warnings: {
20858
+ description:
20859
+ 'Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.',
20860
+ items: {
20861
+ description: 'Warnings associated with the user identity.',
20862
+ discriminator: { propertyName: 'warning_code' },
20863
+ oneOf: [
20864
+ {
20865
+ description:
20866
+ 'Indicates that the user identity is currently being deleted.',
20867
+ properties: {
20868
+ created_at: {
20869
+ description:
20870
+ 'Date and time at which Seam created the warning.',
20871
+ format: 'date-time',
20872
+ type: 'string',
20873
+ },
20874
+ message: {
20875
+ description:
20876
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
20877
+ type: 'string',
20878
+ },
20879
+ warning_code: {
20880
+ description:
20881
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
20882
+ enum: ['being_deleted'],
20883
+ type: 'string',
20884
+ },
20885
+ },
20886
+ required: ['created_at', 'message', 'warning_code'],
20887
+ type: 'object',
20888
+ },
20889
+ ],
20890
+ },
20891
+ type: 'array',
20892
+ },
20842
20893
  workspace_id: {
20843
20894
  description:
20844
20895
  'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity.',
@@ -20855,6 +20906,8 @@ export default {
20855
20906
  'full_name',
20856
20907
  'created_at',
20857
20908
  'workspace_id',
20909
+ 'errors',
20910
+ 'warnings',
20858
20911
  ],
20859
20912
  type: 'object',
20860
20913
  'x-route-path': '/user_identities',
@@ -26156,6 +26209,18 @@ export default {
26156
26209
  'application/json': {
26157
26210
  schema: {
26158
26211
  properties: {
26212
+ access_grant_id: {
26213
+ description:
26214
+ 'ID of the access grant for which you want to retrieve all entrances.',
26215
+ format: 'uuid',
26216
+ type: 'string',
26217
+ },
26218
+ access_method_id: {
26219
+ description:
26220
+ 'ID of the access method for which you want to retrieve all entrances.',
26221
+ format: 'uuid',
26222
+ type: 'string',
26223
+ },
26159
26224
  acs_credential_id: {
26160
26225
  description:
26161
26226
  'ID of the credential for which you want to retrieve all entrances.',
@@ -39879,7 +39944,7 @@ export default {
39879
39944
  '/user_identities/delete': {
39880
39945
  post: {
39881
39946
  description:
39882
- 'Deletes a specified [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). To delete a user identity, you must first delete any [credentials](https://docs.seam.co/latest/api/access-control-systems/credentials) and [enrollment automations](https://docs.seam.co/latest/api/user_identities/enrollment_automations/delete) associated with the user identity. You must also deactivate any associated phones.',
39947
+ 'Deletes a specified [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). This deletes the user identity and all associated resources, including any [credentials](https://docs.seam.co/latest/api/access-control-systems/credentials), [acs users](https://docs.seam.co/latest/api/access-control-systems/users) and [client sessions](https://docs.seam.co/latest/api/client_sessions).',
39883
39948
  operationId: 'userIdentitiesDeletePost',
39884
39949
  requestBody: {
39885
39950
  content: {
@@ -16969,6 +16969,10 @@ export interface Routes {
16969
16969
  location_id?: (string | null) | undefined
16970
16970
  /** ID of the space for which you want to list entrances. */
16971
16971
  space_id?: string | undefined
16972
+ /** ID of the access grant for which you want to retrieve all entrances. */
16973
+ access_grant_id?: string | undefined
16974
+ /** ID of the access method for which you want to retrieve all entrances. */
16975
+ access_method_id?: string | undefined
16972
16976
  }
16973
16977
  formData: {}
16974
16978
  jsonResponse: {
@@ -49326,8 +49330,6 @@ export interface Routes {
49326
49330
  is_being_activated: boolean
49327
49331
  }
49328
49332
  acs_credentials: Array<{
49329
- /** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
49330
- acs_credential_id: string
49331
49333
  /** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
49332
49334
  acs_user_id?: string | undefined
49333
49335
  acs_credential_pool_id?: string | undefined
@@ -49463,6 +49465,7 @@ export interface Routes {
49463
49465
  }
49464
49466
  | undefined
49465
49467
  is_managed: true
49468
+ acs_credential_id?: string | undefined
49466
49469
  acs_entrances: Array<{
49467
49470
  /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
49468
49471
  acs_system_id: string
@@ -67191,6 +67194,22 @@ export interface Routes {
67191
67194
  created_at: string
67192
67195
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
67193
67196
  workspace_id: string
67197
+ /** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
67198
+ errors: Array<{
67199
+ /** Date and time at which Seam created the error. */
67200
+ created_at: string
67201
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
67202
+ message: string
67203
+ }>
67204
+ /** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
67205
+ warnings: Array<{
67206
+ /** Date and time at which Seam created the warning. */
67207
+ created_at: string
67208
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
67209
+ message: string
67210
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
67211
+ warning_code: 'being_deleted'
67212
+ }>
67194
67213
  }
67195
67214
  }
67196
67215
  }
@@ -67354,6 +67373,22 @@ export interface Routes {
67354
67373
  created_at: string
67355
67374
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
67356
67375
  workspace_id: string
67376
+ /** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
67377
+ errors: Array<{
67378
+ /** Date and time at which Seam created the error. */
67379
+ created_at: string
67380
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
67381
+ message: string
67382
+ }>
67383
+ /** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
67384
+ warnings: Array<{
67385
+ /** Date and time at which Seam created the warning. */
67386
+ created_at: string
67387
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
67388
+ message: string
67389
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
67390
+ warning_code: 'being_deleted'
67391
+ }>
67357
67392
  }
67358
67393
  }
67359
67394
  }
@@ -67397,6 +67432,22 @@ export interface Routes {
67397
67432
  created_at: string
67398
67433
  /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity. */
67399
67434
  workspace_id: string
67435
+ /** Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
67436
+ errors: Array<{
67437
+ /** Date and time at which Seam created the error. */
67438
+ created_at: string
67439
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
67440
+ message: string
67441
+ }>
67442
+ /** Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it. */
67443
+ warnings: Array<{
67444
+ /** Date and time at which Seam created the warning. */
67445
+ created_at: string
67446
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
67447
+ message: string
67448
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
67449
+ warning_code: 'being_deleted'
67450
+ }>
67400
67451
  }>
67401
67452
  }
67402
67453
  }