@seamapi/types 1.270.0 → 1.271.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.
package/dist/connect.cjs CHANGED
@@ -1714,7 +1714,7 @@ var error3 = zod.z.object({
1714
1714
  // TODO This should be typed properly with the possible errors
1715
1715
  message: zod.z.string()
1716
1716
  });
1717
- var result3 = zod.z.object({});
1717
+ var result3 = acs_credential.or(unmanaged_acs_credential);
1718
1718
  var encode_card_action_attempt = zod.z.discriminatedUnion("status", [
1719
1719
  common_pending_action_attempt.extend({
1720
1720
  action_type: action_type2
@@ -4117,7 +4117,234 @@ var openapi_default = {
4117
4117
  },
4118
4118
  action_type: { enum: ["ENCODE_CARD"], type: "string" },
4119
4119
  error: { nullable: true },
4120
- result: { properties: {}, type: "object" },
4120
+ result: {
4121
+ oneOf: [
4122
+ {
4123
+ properties: {
4124
+ access_method: {
4125
+ enum: ["code", "card", "mobile_key"],
4126
+ type: "string"
4127
+ },
4128
+ acs_credential_id: { format: "uuid", type: "string" },
4129
+ acs_credential_pool_id: {
4130
+ format: "uuid",
4131
+ type: "string"
4132
+ },
4133
+ acs_system_id: { format: "uuid", type: "string" },
4134
+ acs_user_id: { format: "uuid", type: "string" },
4135
+ card_number: { nullable: true, type: "string" },
4136
+ code: { nullable: true, type: "string" },
4137
+ created_at: { format: "date-time", type: "string" },
4138
+ display_name: { minLength: 1, type: "string" },
4139
+ ends_at: { type: "string" },
4140
+ errors: {
4141
+ items: {
4142
+ properties: {
4143
+ error_code: { type: "string" },
4144
+ message: { type: "string" }
4145
+ },
4146
+ required: ["error_code", "message"],
4147
+ type: "object"
4148
+ },
4149
+ type: "array"
4150
+ },
4151
+ external_type: {
4152
+ enum: [
4153
+ "pti_card",
4154
+ "brivo_credential",
4155
+ "hid_credential",
4156
+ "visionline_card",
4157
+ "salto_ks_credential"
4158
+ ],
4159
+ type: "string"
4160
+ },
4161
+ external_type_display_name: { type: "string" },
4162
+ is_issued: { type: "boolean" },
4163
+ is_latest_desired_state_synced_with_provider: {
4164
+ type: "boolean"
4165
+ },
4166
+ is_managed: { enum: [true], type: "boolean" },
4167
+ is_multi_phone_sync_credential: { type: "boolean" },
4168
+ issued_at: {
4169
+ format: "date-time",
4170
+ nullable: true,
4171
+ type: "string"
4172
+ },
4173
+ latest_desired_state_synced_with_provider_at: {
4174
+ format: "date-time",
4175
+ type: "string"
4176
+ },
4177
+ parent_acs_credential_id: {
4178
+ format: "uuid",
4179
+ type: "string"
4180
+ },
4181
+ starts_at: { type: "string" },
4182
+ visionline_metadata: {
4183
+ properties: {
4184
+ auto_join: { type: "boolean" },
4185
+ card_function_type: {
4186
+ enum: ["guest", "staff"],
4187
+ type: "string"
4188
+ },
4189
+ card_id: { type: "string" },
4190
+ common_acs_entrance_ids: {
4191
+ items: { format: "uuid", type: "string" },
4192
+ type: "array"
4193
+ },
4194
+ credential_id: { type: "string" },
4195
+ guest_acs_entrance_ids: {
4196
+ items: { format: "uuid", type: "string" },
4197
+ type: "array"
4198
+ },
4199
+ is_valid: { type: "boolean" },
4200
+ joiner_acs_credential_ids: {
4201
+ items: { format: "uuid", type: "string" },
4202
+ type: "array"
4203
+ }
4204
+ },
4205
+ required: ["card_function_type"],
4206
+ type: "object"
4207
+ },
4208
+ warnings: {
4209
+ items: {
4210
+ properties: {
4211
+ message: { type: "string" },
4212
+ warning_code: { type: "string" }
4213
+ },
4214
+ required: ["warning_code", "message"],
4215
+ type: "object"
4216
+ },
4217
+ type: "array"
4218
+ },
4219
+ workspace_id: { format: "uuid", type: "string" }
4220
+ },
4221
+ required: [
4222
+ "acs_credential_id",
4223
+ "acs_system_id",
4224
+ "display_name",
4225
+ "access_method",
4226
+ "created_at",
4227
+ "workspace_id",
4228
+ "errors",
4229
+ "warnings",
4230
+ "is_managed"
4231
+ ],
4232
+ type: "object"
4233
+ },
4234
+ {
4235
+ properties: {
4236
+ access_method: {
4237
+ enum: ["code", "card", "mobile_key"],
4238
+ type: "string"
4239
+ },
4240
+ acs_credential_id: { format: "uuid", type: "string" },
4241
+ acs_credential_pool_id: {
4242
+ format: "uuid",
4243
+ type: "string"
4244
+ },
4245
+ acs_system_id: { format: "uuid", type: "string" },
4246
+ acs_user_id: { format: "uuid", type: "string" },
4247
+ card_number: { nullable: true, type: "string" },
4248
+ code: { nullable: true, type: "string" },
4249
+ created_at: { format: "date-time", type: "string" },
4250
+ display_name: { minLength: 1, type: "string" },
4251
+ ends_at: { type: "string" },
4252
+ errors: {
4253
+ items: {
4254
+ properties: {
4255
+ error_code: { type: "string" },
4256
+ message: { type: "string" }
4257
+ },
4258
+ required: ["error_code", "message"],
4259
+ type: "object"
4260
+ },
4261
+ type: "array"
4262
+ },
4263
+ external_type: {
4264
+ enum: [
4265
+ "pti_card",
4266
+ "brivo_credential",
4267
+ "hid_credential",
4268
+ "visionline_card",
4269
+ "salto_ks_credential"
4270
+ ],
4271
+ type: "string"
4272
+ },
4273
+ external_type_display_name: { type: "string" },
4274
+ is_issued: { type: "boolean" },
4275
+ is_latest_desired_state_synced_with_provider: {
4276
+ type: "boolean"
4277
+ },
4278
+ is_managed: { enum: [false], type: "boolean" },
4279
+ is_multi_phone_sync_credential: { type: "boolean" },
4280
+ issued_at: {
4281
+ format: "date-time",
4282
+ nullable: true,
4283
+ type: "string"
4284
+ },
4285
+ latest_desired_state_synced_with_provider_at: {
4286
+ format: "date-time",
4287
+ type: "string"
4288
+ },
4289
+ parent_acs_credential_id: {
4290
+ format: "uuid",
4291
+ type: "string"
4292
+ },
4293
+ starts_at: { type: "string" },
4294
+ visionline_metadata: {
4295
+ properties: {
4296
+ auto_join: { type: "boolean" },
4297
+ card_function_type: {
4298
+ enum: ["guest", "staff"],
4299
+ type: "string"
4300
+ },
4301
+ card_id: { type: "string" },
4302
+ common_acs_entrance_ids: {
4303
+ items: { format: "uuid", type: "string" },
4304
+ type: "array"
4305
+ },
4306
+ credential_id: { type: "string" },
4307
+ guest_acs_entrance_ids: {
4308
+ items: { format: "uuid", type: "string" },
4309
+ type: "array"
4310
+ },
4311
+ is_valid: { type: "boolean" },
4312
+ joiner_acs_credential_ids: {
4313
+ items: { format: "uuid", type: "string" },
4314
+ type: "array"
4315
+ }
4316
+ },
4317
+ required: ["card_function_type"],
4318
+ type: "object"
4319
+ },
4320
+ warnings: {
4321
+ items: {
4322
+ properties: {
4323
+ message: { type: "string" },
4324
+ warning_code: { type: "string" }
4325
+ },
4326
+ required: ["warning_code", "message"],
4327
+ type: "object"
4328
+ },
4329
+ type: "array"
4330
+ },
4331
+ workspace_id: { format: "uuid", type: "string" }
4332
+ },
4333
+ required: [
4334
+ "acs_credential_id",
4335
+ "acs_system_id",
4336
+ "display_name",
4337
+ "access_method",
4338
+ "created_at",
4339
+ "workspace_id",
4340
+ "errors",
4341
+ "warnings",
4342
+ "is_managed"
4343
+ ],
4344
+ type: "object"
4345
+ }
4346
+ ]
4347
+ },
4121
4348
  status: { enum: ["success"], type: "string" }
4122
4349
  },
4123
4350
  required: [
@@ -10380,23 +10607,12 @@ var openapi_default = {
10380
10607
  content: {
10381
10608
  "application/json": {
10382
10609
  schema: {
10383
- oneOf: [
10384
- {
10385
- properties: {
10386
- acs_system_id: { format: "uuid", type: "string" },
10387
- device_name: { type: "string" }
10388
- },
10389
- required: ["acs_system_id", "device_name"],
10390
- type: "object"
10391
- },
10392
- {
10393
- properties: {
10394
- device_id: { format: "uuid", type: "string" }
10395
- },
10396
- required: ["device_id"],
10397
- type: "object"
10398
- }
10399
- ]
10610
+ properties: {
10611
+ acs_credential_id: { format: "uuid", type: "string" },
10612
+ device_id: { format: "uuid", type: "string" }
10613
+ },
10614
+ required: ["device_id", "acs_credential_id"],
10615
+ type: "object"
10400
10616
  }
10401
10617
  }
10402
10618
  }
@@ -10529,24 +10745,12 @@ var openapi_default = {
10529
10745
  content: {
10530
10746
  "application/json": {
10531
10747
  schema: {
10532
- oneOf: [
10533
- {
10534
- properties: {
10535
- acs_system_id: { format: "uuid", type: "string" },
10536
- device_name: { type: "string" }
10537
- },
10538
- required: ["acs_system_id", "device_name"],
10539
- type: "object"
10540
- },
10541
- {
10542
- properties: {
10543
- acs_system_id: { format: "uuid", type: "string" },
10544
- device_id: { format: "uuid", type: "string" }
10545
- },
10546
- required: ["acs_system_id", "device_id"],
10547
- type: "object"
10548
- }
10549
- ]
10748
+ properties: {
10749
+ acs_system_id: { format: "uuid", type: "string" },
10750
+ device_id: { format: "uuid", type: "string" }
10751
+ },
10752
+ required: ["acs_system_id", "device_id"],
10753
+ type: "object"
10550
10754
  }
10551
10755
  }
10552
10756
  }