@seamapi/types 1.1057.0 → 1.1059.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1057.0",
3
+ "version": "1.1059.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -61,12 +61,34 @@ const delay_in_issuing_warning = common_access_method_warning
61
61
  'Indicates that Seam has not yet issued this [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant), even though its access grant is about to begin, so access may not be ready when the recipient arrives. Seam is still attempting to issue it, and this warning clears automatically once issuance succeeds.',
62
62
  )
63
63
 
64
+ const user_identity_missing_email_address_warning = common_access_method_warning
65
+ .extend({
66
+ warning_code: z
67
+ .literal('user_identity_missing_email_address')
68
+ .describe(warning_code_description),
69
+ })
70
+ .describe(
71
+ "Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.",
72
+ )
73
+
74
+ const user_identity_missing_phone_number_warning = common_access_method_warning
75
+ .extend({
76
+ warning_code: z
77
+ .literal('user_identity_missing_phone_number')
78
+ .describe(warning_code_description),
79
+ })
80
+ .describe(
81
+ "Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant.",
82
+ )
83
+
64
84
  const access_method_warning = z
65
85
  .discriminatedUnion('warning_code', [
66
86
  being_deleted,
67
87
  updating_access_times_warning,
68
88
  pulled_backup_access_code_warning,
69
89
  delay_in_issuing_warning,
90
+ user_identity_missing_email_address_warning,
91
+ user_identity_missing_phone_number_warning,
70
92
  ])
71
93
  .describe(
72
94
  'Warning associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).',
@@ -79,6 +101,11 @@ const _access_method_warning_map = z.object({
79
101
  .optional()
80
102
  .nullable(),
81
103
  delay_in_issuing: delay_in_issuing_warning.optional().nullable(),
104
+ user_identity_missing_email_address:
105
+ user_identity_missing_email_address_warning.optional().nullable(),
106
+ user_identity_missing_phone_number: user_identity_missing_phone_number_warning
107
+ .optional()
108
+ .nullable(),
82
109
  })
83
110
 
84
111
  export type AccessMethodWarningMap = z.infer<typeof _access_method_warning_map>
@@ -81,9 +81,17 @@ const device_event_issue_properties = {
81
81
  }
82
82
 
83
83
  export const lock_method = z
84
- .enum(['keycode', 'manual', 'automatic', 'unknown', 'remote', 'card'])
84
+ .enum([
85
+ 'keycode',
86
+ 'manual',
87
+ 'automatic',
88
+ 'unknown',
89
+ 'remote',
90
+ 'card',
91
+ 'mobile_key',
92
+ ])
85
93
  .describe(
86
- 'Method by which the affected lock device was locked or unlocked. `keycode`: locked or unlocked using an access code (see `access_code_id`). `manual`: a direct physical action, such as turning a thumbturn or pressing a button. `remote`: a remote action initiated via an app, Bluetooth, or the Seam API (see `action_attempt_id` for Seam-initiated actions; see `is_via_bluetooth` or `is_via_nfc` for the specific transport). `automatic`: triggered automatically without user interaction, for example by an auto-relock timer. `card`: a physical credential (RFID card or NFC wallet pass) was presented at the reader. `unknown`: the method could not be determined from the provider event.',
94
+ "Method by which the affected lock device was locked or unlocked. `keycode`: locked or unlocked using an access code (see `access_code_id`). `manual`: a direct physical action, such as turning a thumbturn or pressing a button. `remote`: a remote action initiated via an app, Bluetooth, or the Seam API (see `action_attempt_id` for Seam-initiated actions; see `is_via_bluetooth` or `is_via_nfc` for the specific transport). `automatic`: triggered automatically without user interaction, for example by an auto-relock timer. `card`: a physical credential (RFID card or NFC wallet pass) was presented at the reader. `mobile_key`: a phone-based mobile credential in the provider's app was presented at the lock (see `is_via_bluetooth` or `is_via_nfc` for the transport). `unknown`: the method could not be determined from the provider event.",
87
95
  )
88
96
  export type LockMethod = z.infer<typeof lock_method>
89
97
 
@@ -2846,6 +2846,56 @@ const openapi: OpenAPISpec = {
2846
2846
  required: ['created_at', 'message', 'warning_code'],
2847
2847
  type: 'object',
2848
2848
  },
2849
+ {
2850
+ description:
2851
+ "Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.",
2852
+ properties: {
2853
+ created_at: {
2854
+ description:
2855
+ 'Date and time at which Seam created the warning.',
2856
+ format: 'date-time',
2857
+ type: 'string',
2858
+ },
2859
+ message: {
2860
+ description:
2861
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
2862
+ type: 'string',
2863
+ },
2864
+ warning_code: {
2865
+ description:
2866
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2867
+ enum: ['user_identity_missing_email_address'],
2868
+ type: 'string',
2869
+ },
2870
+ },
2871
+ required: ['created_at', 'message', 'warning_code'],
2872
+ type: 'object',
2873
+ },
2874
+ {
2875
+ description:
2876
+ "Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant.",
2877
+ properties: {
2878
+ created_at: {
2879
+ description:
2880
+ 'Date and time at which Seam created the warning.',
2881
+ format: 'date-time',
2882
+ type: 'string',
2883
+ },
2884
+ message: {
2885
+ description:
2886
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
2887
+ type: 'string',
2888
+ },
2889
+ warning_code: {
2890
+ description:
2891
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2892
+ enum: ['user_identity_missing_phone_number'],
2893
+ type: 'string',
2894
+ },
2895
+ },
2896
+ required: ['created_at', 'message', 'warning_code'],
2897
+ type: 'object',
2898
+ },
2849
2899
  ],
2850
2900
  },
2851
2901
  type: 'array',
@@ -10241,6 +10291,56 @@ const openapi: OpenAPISpec = {
10241
10291
  required: ['created_at', 'message', 'warning_code'],
10242
10292
  type: 'object',
10243
10293
  },
10294
+ {
10295
+ description:
10296
+ "Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.",
10297
+ properties: {
10298
+ created_at: {
10299
+ description:
10300
+ 'Date and time at which Seam created the warning.',
10301
+ format: 'date-time',
10302
+ type: 'string',
10303
+ },
10304
+ message: {
10305
+ description:
10306
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
10307
+ type: 'string',
10308
+ },
10309
+ warning_code: {
10310
+ description:
10311
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
10312
+ enum: ['user_identity_missing_email_address'],
10313
+ type: 'string',
10314
+ },
10315
+ },
10316
+ required: ['created_at', 'message', 'warning_code'],
10317
+ type: 'object',
10318
+ },
10319
+ {
10320
+ description:
10321
+ "Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant.",
10322
+ properties: {
10323
+ created_at: {
10324
+ description:
10325
+ 'Date and time at which Seam created the warning.',
10326
+ format: 'date-time',
10327
+ type: 'string',
10328
+ },
10329
+ message: {
10330
+ description:
10331
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
10332
+ type: 'string',
10333
+ },
10334
+ warning_code: {
10335
+ description:
10336
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
10337
+ enum: ['user_identity_missing_phone_number'],
10338
+ type: 'string',
10339
+ },
10340
+ },
10341
+ required: ['created_at', 'message', 'warning_code'],
10342
+ type: 'object',
10343
+ },
10244
10344
  ],
10245
10345
  },
10246
10346
  type: 'array',
@@ -27728,6 +27828,7 @@ const openapi: OpenAPISpec = {
27728
27828
  'unknown',
27729
27829
  'remote',
27730
27830
  'card',
27831
+ 'mobile_key',
27731
27832
  ],
27732
27833
  type: 'string',
27733
27834
  },
@@ -27877,6 +27978,7 @@ const openapi: OpenAPISpec = {
27877
27978
  'unknown',
27878
27979
  'remote',
27879
27980
  'card',
27981
+ 'mobile_key',
27880
27982
  ],
27881
27983
  type: 'string',
27882
27984
  },
@@ -33937,6 +34039,56 @@ const openapi: OpenAPISpec = {
33937
34039
  required: ['created_at', 'message', 'warning_code'],
33938
34040
  type: 'object',
33939
34041
  },
34042
+ {
34043
+ description:
34044
+ "Indicates that the access system delivers this mobile key through an app invitation sent to the recipient's email address, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no email address, so the mobile key cannot be delivered. Set an email address on the user identity when you create the access grant.",
34045
+ properties: {
34046
+ created_at: {
34047
+ description:
34048
+ 'Date and time at which Seam created the warning.',
34049
+ format: 'date-time',
34050
+ type: 'string',
34051
+ },
34052
+ message: {
34053
+ description:
34054
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
34055
+ type: 'string',
34056
+ },
34057
+ warning_code: {
34058
+ description:
34059
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
34060
+ enum: ['user_identity_missing_email_address'],
34061
+ type: 'string',
34062
+ },
34063
+ },
34064
+ required: ['created_at', 'message', 'warning_code'],
34065
+ type: 'object',
34066
+ },
34067
+ {
34068
+ description:
34069
+ "Indicates that the access system delivers this mobile key to the recipient's phone number, but the [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities) for this [access grant](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant) has no phone number, so the mobile key cannot be delivered. Set a phone number on the user identity when you create the access grant.",
34070
+ properties: {
34071
+ created_at: {
34072
+ description:
34073
+ 'Date and time at which Seam created the warning.',
34074
+ format: 'date-time',
34075
+ type: 'string',
34076
+ },
34077
+ message: {
34078
+ description:
34079
+ 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
34080
+ type: 'string',
34081
+ },
34082
+ warning_code: {
34083
+ description:
34084
+ 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
34085
+ enum: ['user_identity_missing_phone_number'],
34086
+ type: 'string',
34087
+ },
34088
+ },
34089
+ required: ['created_at', 'message', 'warning_code'],
34090
+ type: 'object',
34091
+ },
33940
34092
  ],
33941
34093
  },
33942
34094
  type: 'array',