@seamapi/types 1.412.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.
package/dist/connect.cjs CHANGED
@@ -3893,7 +3893,8 @@ var client_session = zod.z.object({
3893
3893
  customer_id: zod.z.string().uuid().optional(),
3894
3894
  connected_account_ids: zod.z.array(zod.z.string().uuid()),
3895
3895
  connect_webview_ids: zod.z.array(zod.z.string().uuid()),
3896
- user_identity_ids: zod.z.array(zod.z.string().uuid())
3896
+ user_identity_ids: zod.z.array(zod.z.string().uuid()).describe("deprecated: Use `user_identity_id`."),
3897
+ user_identity_id: zod.z.string().uuid().optional()
3897
3898
  }).describe(`
3898
3899
  ---
3899
3900
  route_path: /client_sessions
@@ -5108,6 +5109,28 @@ var magic_link = zod.z.object({
5108
5109
  route_path: /unstable_partner/building_blocks
5109
5110
  ---
5110
5111
  `);
5112
+ var common_user_identity_error = zod.z.object({
5113
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
5114
+ message: zod.z.string().describe(
5115
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
5116
+ )
5117
+ });
5118
+ var common_user_identity_warning = zod.z.object({
5119
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
5120
+ message: zod.z.string().describe(
5121
+ "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
5122
+ )
5123
+ });
5124
+ var user_identity_being_deleted = common_user_identity_warning.extend({
5125
+ warning_code: zod.z.literal("being_deleted").describe(
5126
+ "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue."
5127
+ )
5128
+ }).describe("Indicates that the user identity is currently being deleted.");
5129
+ zod.z.object({});
5130
+ var user_identity_warnings = zod.z.discriminatedUnion("warning_code", [user_identity_being_deleted]).describe("Warnings associated with the user identity.");
5131
+ zod.z.object({
5132
+ user_identity_being_deleted: user_identity_being_deleted.optional().nullable()
5133
+ });
5111
5134
  var user_identity = zod.z.object({
5112
5135
  user_identity_id: zod.z.string().uuid().describe("ID of the user identity."),
5113
5136
  user_identity_key: zod.z.string().min(1).nullable().describe("Unique key for the user identity."),
@@ -5120,6 +5143,12 @@ var user_identity = zod.z.object({
5120
5143
  created_at: zod.z.string().datetime().describe("Date and time at which the user identity was created."),
5121
5144
  workspace_id: zod.z.string().uuid().describe(
5122
5145
  "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity."
5146
+ ),
5147
+ errors: zod.z.array(common_user_identity_error).describe(
5148
+ '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.'
5149
+ ),
5150
+ warnings: zod.z.array(user_identity_warnings).describe(
5151
+ '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.'
5123
5152
  )
5124
5153
  }).describe(`
5125
5154
  ---
@@ -11772,7 +11801,9 @@ var openapi_default = {
11772
11801
  expires_at: { format: "date-time", type: "string" },
11773
11802
  token: { type: "string" },
11774
11803
  user_identifier_key: { nullable: true, type: "string" },
11804
+ user_identity_id: { format: "uuid", type: "string" },
11775
11805
  user_identity_ids: {
11806
+ description: "deprecated: Use `user_identity_id`.",
11776
11807
  items: { format: "uuid", type: "string" },
11777
11808
  type: "array"
11778
11809
  },
@@ -20189,11 +20220,7 @@ var openapi_default = {
20189
20220
  enum: ["code", "card", "mobile_key"],
20190
20221
  type: "string"
20191
20222
  },
20192
- acs_credential_id: {
20193
- description: "ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials).",
20194
- format: "uuid",
20195
- type: "string"
20196
- },
20223
+ acs_credential_id: { type: "string" },
20197
20224
  acs_credential_pool_id: {
20198
20225
  format: "uuid",
20199
20226
  type: "string"
@@ -20681,7 +20708,6 @@ var openapi_default = {
20681
20708
  }
20682
20709
  },
20683
20710
  required: [
20684
- "acs_credential_id",
20685
20711
  "acs_system_id",
20686
20712
  "display_name",
20687
20713
  "access_method",
@@ -24114,6 +24140,25 @@ var openapi_default = {
24114
24140
  nullable: true,
24115
24141
  type: "string"
24116
24142
  },
24143
+ errors: {
24144
+ description: '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.',
24145
+ items: {
24146
+ properties: {
24147
+ created_at: {
24148
+ description: "Date and time at which Seam created the error.",
24149
+ format: "date-time",
24150
+ type: "string"
24151
+ },
24152
+ message: {
24153
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
24154
+ type: "string"
24155
+ }
24156
+ },
24157
+ required: ["created_at", "message"],
24158
+ type: "object"
24159
+ },
24160
+ type: "array"
24161
+ },
24117
24162
  full_name: { minLength: 1, nullable: true, type: "string" },
24118
24163
  phone_number: {
24119
24164
  description: "Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).",
@@ -24131,6 +24176,37 @@ var openapi_default = {
24131
24176
  nullable: true,
24132
24177
  type: "string"
24133
24178
  },
24179
+ warnings: {
24180
+ description: '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.',
24181
+ items: {
24182
+ description: "Warnings associated with the user identity.",
24183
+ discriminator: { propertyName: "warning_code" },
24184
+ oneOf: [
24185
+ {
24186
+ description: "Indicates that the user identity is currently being deleted.",
24187
+ properties: {
24188
+ created_at: {
24189
+ description: "Date and time at which Seam created the warning.",
24190
+ format: "date-time",
24191
+ type: "string"
24192
+ },
24193
+ message: {
24194
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
24195
+ type: "string"
24196
+ },
24197
+ warning_code: {
24198
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
24199
+ enum: ["being_deleted"],
24200
+ type: "string"
24201
+ }
24202
+ },
24203
+ required: ["created_at", "message", "warning_code"],
24204
+ type: "object"
24205
+ }
24206
+ ]
24207
+ },
24208
+ type: "array"
24209
+ },
24134
24210
  workspace_id: {
24135
24211
  description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity.",
24136
24212
  format: "uuid",
@@ -24145,7 +24221,9 @@ var openapi_default = {
24145
24221
  "display_name",
24146
24222
  "full_name",
24147
24223
  "created_at",
24148
- "workspace_id"
24224
+ "workspace_id",
24225
+ "errors",
24226
+ "warnings"
24149
24227
  ],
24150
24228
  type: "object",
24151
24229
  "x-route-path": "/user_identities"
@@ -29132,6 +29210,16 @@ var openapi_default = {
29132
29210
  "application/json": {
29133
29211
  schema: {
29134
29212
  properties: {
29213
+ access_grant_id: {
29214
+ description: "ID of the access grant for which you want to retrieve all entrances.",
29215
+ format: "uuid",
29216
+ type: "string"
29217
+ },
29218
+ access_method_id: {
29219
+ description: "ID of the access method for which you want to retrieve all entrances.",
29220
+ format: "uuid",
29221
+ type: "string"
29222
+ },
29135
29223
  acs_credential_id: {
29136
29224
  description: "ID of the credential for which you want to retrieve all entrances.",
29137
29225
  format: "uuid",
@@ -30752,10 +30840,18 @@ var openapi_default = {
30752
30840
  minLength: 1,
30753
30841
  type: "string"
30754
30842
  },
30843
+ user_identity_id: {
30844
+ description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.",
30845
+ type: "string"
30846
+ },
30755
30847
  user_identity_ids: {
30756
- description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.",
30848
+ deprecated: true,
30849
+ description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
30757
30850
  items: { type: "string" },
30758
- type: "array"
30851
+ maxItems: 1,
30852
+ minItems: 1,
30853
+ type: "array",
30854
+ "x-deprecated": "Use `user_identity_id`."
30759
30855
  }
30760
30856
  },
30761
30857
  type: "object"
@@ -30828,10 +30924,18 @@ var openapi_default = {
30828
30924
  minLength: 1,
30829
30925
  type: "string"
30830
30926
  },
30927
+ user_identity_id: {
30928
+ description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.",
30929
+ type: "string"
30930
+ },
30831
30931
  user_identity_ids: {
30832
- description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) for which you want to create a client session.",
30932
+ deprecated: true,
30933
+ description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
30833
30934
  items: { type: "string" },
30834
- type: "array"
30935
+ maxItems: 1,
30936
+ minItems: 1,
30937
+ type: "array",
30938
+ "x-deprecated": "Use `user_identity_id`."
30835
30939
  }
30836
30940
  },
30837
30941
  type: "object"
@@ -31011,10 +31115,18 @@ var openapi_default = {
31011
31115
  minLength: 1,
31012
31116
  type: "string"
31013
31117
  },
31118
+ user_identity_id: {
31119
+ description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session (or that are already associated with the existing client session).",
31120
+ type: "string"
31121
+ },
31014
31122
  user_identity_ids: {
31015
- description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session (or that are already associated with the existing client session).",
31123
+ deprecated: true,
31124
+ description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
31016
31125
  items: { type: "string" },
31017
- type: "array"
31126
+ maxItems: 1,
31127
+ minItems: 1,
31128
+ type: "array",
31129
+ "x-deprecated": "Use `user_identity_id`."
31018
31130
  }
31019
31131
  },
31020
31132
  type: "object"
@@ -31085,10 +31197,18 @@ var openapi_default = {
31085
31197
  description: "Your user ID for the user that you want to associate with the client session.",
31086
31198
  type: "string"
31087
31199
  },
31200
+ user_identity_id: {
31201
+ description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
31202
+ type: "string"
31203
+ },
31088
31204
  user_identity_ids: {
31205
+ deprecated: true,
31089
31206
  description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
31090
31207
  items: { type: "string" },
31091
- type: "array"
31208
+ maxItems: 1,
31209
+ minItems: 1,
31210
+ type: "array",
31211
+ "x-deprecated": "Use `user_identity_id`."
31092
31212
  }
31093
31213
  },
31094
31214
  type: "object"
@@ -31154,10 +31274,18 @@ var openapi_default = {
31154
31274
  description: "Your user ID for the user that you want to associate with the client session.",
31155
31275
  type: "string"
31156
31276
  },
31277
+ user_identity_id: {
31278
+ description: "ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
31279
+ type: "string"
31280
+ },
31157
31281
  user_identity_ids: {
31282
+ deprecated: true,
31158
31283
  description: "IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) that you want to associate with the client session.",
31159
31284
  items: { type: "string" },
31160
- type: "array"
31285
+ maxItems: 1,
31286
+ minItems: 1,
31287
+ type: "array",
31288
+ "x-deprecated": "Use `user_identity_id`."
31161
31289
  }
31162
31290
  },
31163
31291
  type: "object"
@@ -42096,7 +42224,7 @@ var openapi_default = {
42096
42224
  },
42097
42225
  "/user_identities/delete": {
42098
42226
  post: {
42099
- description: "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.",
42227
+ description: "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).",
42100
42228
  operationId: "userIdentitiesDeletePost",
42101
42229
  requestBody: {
42102
42230
  content: {