@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.
@@ -1065,18 +1065,480 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
1065
1065
  error: z.ZodNull;
1066
1066
  }>, {
1067
1067
  action_type: z.ZodLiteral<"ENCODE_CARD">;
1068
- result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1068
+ result: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1069
+ acs_credential_id: z.ZodString;
1070
+ acs_user_id: z.ZodOptional<z.ZodString>;
1071
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
1072
+ acs_system_id: z.ZodString;
1073
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
1074
+ display_name: z.ZodString;
1075
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1076
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1077
+ is_issued: z.ZodOptional<z.ZodBoolean>;
1078
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1079
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
1080
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>>;
1081
+ external_type_display_name: z.ZodOptional<z.ZodString>;
1082
+ created_at: z.ZodString;
1083
+ workspace_id: z.ZodString;
1084
+ starts_at: z.ZodOptional<z.ZodString>;
1085
+ ends_at: z.ZodOptional<z.ZodString>;
1086
+ errors: z.ZodArray<z.ZodObject<{
1087
+ error_code: z.ZodString;
1088
+ message: z.ZodString;
1089
+ }, "strip", z.ZodTypeAny, {
1090
+ message: string;
1091
+ error_code: string;
1092
+ }, {
1093
+ message: string;
1094
+ error_code: string;
1095
+ }>, "many">;
1096
+ warnings: z.ZodArray<z.ZodObject<{
1097
+ warning_code: z.ZodString;
1098
+ message: z.ZodString;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ message: string;
1101
+ warning_code: string;
1102
+ }, {
1103
+ message: string;
1104
+ warning_code: string;
1105
+ }>, "many">;
1106
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
1107
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
1108
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
1109
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
1110
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
1111
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1112
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1113
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1114
+ is_valid: z.ZodOptional<z.ZodBoolean>;
1115
+ auto_join: z.ZodOptional<z.ZodBoolean>;
1116
+ card_id: z.ZodOptional<z.ZodString>;
1117
+ credential_id: z.ZodOptional<z.ZodString>;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ card_function_type: "guest" | "staff";
1120
+ joiner_acs_credential_ids?: string[] | undefined;
1121
+ guest_acs_entrance_ids?: string[] | undefined;
1122
+ common_acs_entrance_ids?: string[] | undefined;
1123
+ is_valid?: boolean | undefined;
1124
+ auto_join?: boolean | undefined;
1125
+ card_id?: string | undefined;
1126
+ credential_id?: string | undefined;
1127
+ }, {
1128
+ card_function_type: "guest" | "staff";
1129
+ joiner_acs_credential_ids?: string[] | undefined;
1130
+ guest_acs_entrance_ids?: string[] | undefined;
1131
+ common_acs_entrance_ids?: string[] | undefined;
1132
+ is_valid?: boolean | undefined;
1133
+ auto_join?: boolean | undefined;
1134
+ card_id?: string | undefined;
1135
+ credential_id?: string | undefined;
1136
+ }>>;
1137
+ }, {
1138
+ is_managed: z.ZodLiteral<true>;
1139
+ }>, "strip", z.ZodTypeAny, {
1140
+ created_at: string;
1141
+ errors: {
1142
+ message: string;
1143
+ error_code: string;
1144
+ }[];
1145
+ warnings: {
1146
+ message: string;
1147
+ warning_code: string;
1148
+ }[];
1149
+ display_name: string;
1150
+ workspace_id: string;
1151
+ is_managed: true;
1152
+ acs_system_id: string;
1153
+ acs_credential_id: string;
1154
+ access_method: "code" | "card" | "mobile_key";
1155
+ code?: string | null | undefined;
1156
+ starts_at?: string | undefined;
1157
+ ends_at?: string | undefined;
1158
+ visionline_metadata?: {
1159
+ card_function_type: "guest" | "staff";
1160
+ joiner_acs_credential_ids?: string[] | undefined;
1161
+ guest_acs_entrance_ids?: string[] | undefined;
1162
+ common_acs_entrance_ids?: string[] | undefined;
1163
+ is_valid?: boolean | undefined;
1164
+ auto_join?: boolean | undefined;
1165
+ card_id?: string | undefined;
1166
+ credential_id?: string | undefined;
1167
+ } | undefined;
1168
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1169
+ external_type_display_name?: string | undefined;
1170
+ acs_user_id?: string | undefined;
1171
+ acs_credential_pool_id?: string | undefined;
1172
+ parent_acs_credential_id?: string | undefined;
1173
+ card_number?: string | null | undefined;
1174
+ is_issued?: boolean | undefined;
1175
+ issued_at?: string | null | undefined;
1176
+ is_multi_phone_sync_credential?: boolean | undefined;
1177
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1178
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1179
+ }, {
1180
+ created_at: string;
1181
+ errors: {
1182
+ message: string;
1183
+ error_code: string;
1184
+ }[];
1185
+ warnings: {
1186
+ message: string;
1187
+ warning_code: string;
1188
+ }[];
1189
+ display_name: string;
1190
+ workspace_id: string;
1191
+ is_managed: true;
1192
+ acs_system_id: string;
1193
+ acs_credential_id: string;
1194
+ access_method: "code" | "card" | "mobile_key";
1195
+ code?: string | null | undefined;
1196
+ starts_at?: string | undefined;
1197
+ ends_at?: string | undefined;
1198
+ visionline_metadata?: {
1199
+ card_function_type: "guest" | "staff";
1200
+ joiner_acs_credential_ids?: string[] | undefined;
1201
+ guest_acs_entrance_ids?: string[] | undefined;
1202
+ common_acs_entrance_ids?: string[] | undefined;
1203
+ is_valid?: boolean | undefined;
1204
+ auto_join?: boolean | undefined;
1205
+ card_id?: string | undefined;
1206
+ credential_id?: string | undefined;
1207
+ } | undefined;
1208
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1209
+ external_type_display_name?: string | undefined;
1210
+ acs_user_id?: string | undefined;
1211
+ acs_credential_pool_id?: string | undefined;
1212
+ parent_acs_credential_id?: string | undefined;
1213
+ card_number?: string | null | undefined;
1214
+ is_issued?: boolean | undefined;
1215
+ issued_at?: string | null | undefined;
1216
+ is_multi_phone_sync_credential?: boolean | undefined;
1217
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1218
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1219
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1220
+ acs_credential_id: z.ZodString;
1221
+ acs_user_id: z.ZodOptional<z.ZodString>;
1222
+ acs_credential_pool_id: z.ZodOptional<z.ZodString>;
1223
+ acs_system_id: z.ZodString;
1224
+ parent_acs_credential_id: z.ZodOptional<z.ZodString>;
1225
+ display_name: z.ZodString;
1226
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1227
+ card_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1228
+ is_issued: z.ZodOptional<z.ZodBoolean>;
1229
+ issued_at: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1230
+ access_method: z.ZodEnum<["code", "card", "mobile_key"]>;
1231
+ external_type: z.ZodOptional<z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>>;
1232
+ external_type_display_name: z.ZodOptional<z.ZodString>;
1233
+ created_at: z.ZodString;
1234
+ workspace_id: z.ZodString;
1235
+ starts_at: z.ZodOptional<z.ZodString>;
1236
+ ends_at: z.ZodOptional<z.ZodString>;
1237
+ errors: z.ZodArray<z.ZodObject<{
1238
+ error_code: z.ZodString;
1239
+ message: z.ZodString;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ message: string;
1242
+ error_code: string;
1243
+ }, {
1244
+ message: string;
1245
+ error_code: string;
1246
+ }>, "many">;
1247
+ warnings: z.ZodArray<z.ZodObject<{
1248
+ warning_code: z.ZodString;
1249
+ message: z.ZodString;
1250
+ }, "strip", z.ZodTypeAny, {
1251
+ message: string;
1252
+ warning_code: string;
1253
+ }, {
1254
+ message: string;
1255
+ warning_code: string;
1256
+ }>, "many">;
1257
+ is_multi_phone_sync_credential: z.ZodOptional<z.ZodBoolean>;
1258
+ is_latest_desired_state_synced_with_provider: z.ZodOptional<z.ZodBoolean>;
1259
+ latest_desired_state_synced_with_provider_at: z.ZodOptional<z.ZodString>;
1260
+ visionline_metadata: z.ZodOptional<z.ZodObject<{
1261
+ card_function_type: z.ZodEnum<["guest", "staff"]>;
1262
+ joiner_acs_credential_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1263
+ guest_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1264
+ common_acs_entrance_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1265
+ is_valid: z.ZodOptional<z.ZodBoolean>;
1266
+ auto_join: z.ZodOptional<z.ZodBoolean>;
1267
+ card_id: z.ZodOptional<z.ZodString>;
1268
+ credential_id: z.ZodOptional<z.ZodString>;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ card_function_type: "guest" | "staff";
1271
+ joiner_acs_credential_ids?: string[] | undefined;
1272
+ guest_acs_entrance_ids?: string[] | undefined;
1273
+ common_acs_entrance_ids?: string[] | undefined;
1274
+ is_valid?: boolean | undefined;
1275
+ auto_join?: boolean | undefined;
1276
+ card_id?: string | undefined;
1277
+ credential_id?: string | undefined;
1278
+ }, {
1279
+ card_function_type: "guest" | "staff";
1280
+ joiner_acs_credential_ids?: string[] | undefined;
1281
+ guest_acs_entrance_ids?: string[] | undefined;
1282
+ common_acs_entrance_ids?: string[] | undefined;
1283
+ is_valid?: boolean | undefined;
1284
+ auto_join?: boolean | undefined;
1285
+ card_id?: string | undefined;
1286
+ credential_id?: string | undefined;
1287
+ }>>;
1288
+ }, {
1289
+ is_managed: z.ZodLiteral<false>;
1290
+ }>, "strip", z.ZodTypeAny, {
1291
+ created_at: string;
1292
+ errors: {
1293
+ message: string;
1294
+ error_code: string;
1295
+ }[];
1296
+ warnings: {
1297
+ message: string;
1298
+ warning_code: string;
1299
+ }[];
1300
+ display_name: string;
1301
+ workspace_id: string;
1302
+ is_managed: false;
1303
+ acs_system_id: string;
1304
+ acs_credential_id: string;
1305
+ access_method: "code" | "card" | "mobile_key";
1306
+ code?: string | null | undefined;
1307
+ starts_at?: string | undefined;
1308
+ ends_at?: string | undefined;
1309
+ visionline_metadata?: {
1310
+ card_function_type: "guest" | "staff";
1311
+ joiner_acs_credential_ids?: string[] | undefined;
1312
+ guest_acs_entrance_ids?: string[] | undefined;
1313
+ common_acs_entrance_ids?: string[] | undefined;
1314
+ is_valid?: boolean | undefined;
1315
+ auto_join?: boolean | undefined;
1316
+ card_id?: string | undefined;
1317
+ credential_id?: string | undefined;
1318
+ } | undefined;
1319
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1320
+ external_type_display_name?: string | undefined;
1321
+ acs_user_id?: string | undefined;
1322
+ acs_credential_pool_id?: string | undefined;
1323
+ parent_acs_credential_id?: string | undefined;
1324
+ card_number?: string | null | undefined;
1325
+ is_issued?: boolean | undefined;
1326
+ issued_at?: string | null | undefined;
1327
+ is_multi_phone_sync_credential?: boolean | undefined;
1328
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1329
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1330
+ }, {
1331
+ created_at: string;
1332
+ errors: {
1333
+ message: string;
1334
+ error_code: string;
1335
+ }[];
1336
+ warnings: {
1337
+ message: string;
1338
+ warning_code: string;
1339
+ }[];
1340
+ display_name: string;
1341
+ workspace_id: string;
1342
+ is_managed: false;
1343
+ acs_system_id: string;
1344
+ acs_credential_id: string;
1345
+ access_method: "code" | "card" | "mobile_key";
1346
+ code?: string | null | undefined;
1347
+ starts_at?: string | undefined;
1348
+ ends_at?: string | undefined;
1349
+ visionline_metadata?: {
1350
+ card_function_type: "guest" | "staff";
1351
+ joiner_acs_credential_ids?: string[] | undefined;
1352
+ guest_acs_entrance_ids?: string[] | undefined;
1353
+ common_acs_entrance_ids?: string[] | undefined;
1354
+ is_valid?: boolean | undefined;
1355
+ auto_join?: boolean | undefined;
1356
+ card_id?: string | undefined;
1357
+ credential_id?: string | undefined;
1358
+ } | undefined;
1359
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1360
+ external_type_display_name?: string | undefined;
1361
+ acs_user_id?: string | undefined;
1362
+ acs_credential_pool_id?: string | undefined;
1363
+ parent_acs_credential_id?: string | undefined;
1364
+ card_number?: string | null | undefined;
1365
+ is_issued?: boolean | undefined;
1366
+ issued_at?: string | null | undefined;
1367
+ is_multi_phone_sync_credential?: boolean | undefined;
1368
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1369
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1370
+ }>]>;
1069
1371
  }>, "strip", z.ZodTypeAny, {
1070
1372
  error: null;
1071
1373
  status: "success";
1072
1374
  action_attempt_id: string;
1073
- result: {};
1375
+ result: {
1376
+ created_at: string;
1377
+ errors: {
1378
+ message: string;
1379
+ error_code: string;
1380
+ }[];
1381
+ warnings: {
1382
+ message: string;
1383
+ warning_code: string;
1384
+ }[];
1385
+ display_name: string;
1386
+ workspace_id: string;
1387
+ is_managed: true;
1388
+ acs_system_id: string;
1389
+ acs_credential_id: string;
1390
+ access_method: "code" | "card" | "mobile_key";
1391
+ code?: string | null | undefined;
1392
+ starts_at?: string | undefined;
1393
+ ends_at?: string | undefined;
1394
+ visionline_metadata?: {
1395
+ card_function_type: "guest" | "staff";
1396
+ joiner_acs_credential_ids?: string[] | undefined;
1397
+ guest_acs_entrance_ids?: string[] | undefined;
1398
+ common_acs_entrance_ids?: string[] | undefined;
1399
+ is_valid?: boolean | undefined;
1400
+ auto_join?: boolean | undefined;
1401
+ card_id?: string | undefined;
1402
+ credential_id?: string | undefined;
1403
+ } | undefined;
1404
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1405
+ external_type_display_name?: string | undefined;
1406
+ acs_user_id?: string | undefined;
1407
+ acs_credential_pool_id?: string | undefined;
1408
+ parent_acs_credential_id?: string | undefined;
1409
+ card_number?: string | null | undefined;
1410
+ is_issued?: boolean | undefined;
1411
+ issued_at?: string | null | undefined;
1412
+ is_multi_phone_sync_credential?: boolean | undefined;
1413
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1414
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1415
+ } | {
1416
+ created_at: string;
1417
+ errors: {
1418
+ message: string;
1419
+ error_code: string;
1420
+ }[];
1421
+ warnings: {
1422
+ message: string;
1423
+ warning_code: string;
1424
+ }[];
1425
+ display_name: string;
1426
+ workspace_id: string;
1427
+ is_managed: false;
1428
+ acs_system_id: string;
1429
+ acs_credential_id: string;
1430
+ access_method: "code" | "card" | "mobile_key";
1431
+ code?: string | null | undefined;
1432
+ starts_at?: string | undefined;
1433
+ ends_at?: string | undefined;
1434
+ visionline_metadata?: {
1435
+ card_function_type: "guest" | "staff";
1436
+ joiner_acs_credential_ids?: string[] | undefined;
1437
+ guest_acs_entrance_ids?: string[] | undefined;
1438
+ common_acs_entrance_ids?: string[] | undefined;
1439
+ is_valid?: boolean | undefined;
1440
+ auto_join?: boolean | undefined;
1441
+ card_id?: string | undefined;
1442
+ credential_id?: string | undefined;
1443
+ } | undefined;
1444
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1445
+ external_type_display_name?: string | undefined;
1446
+ acs_user_id?: string | undefined;
1447
+ acs_credential_pool_id?: string | undefined;
1448
+ parent_acs_credential_id?: string | undefined;
1449
+ card_number?: string | null | undefined;
1450
+ is_issued?: boolean | undefined;
1451
+ issued_at?: string | null | undefined;
1452
+ is_multi_phone_sync_credential?: boolean | undefined;
1453
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1454
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1455
+ };
1074
1456
  action_type: "ENCODE_CARD";
1075
1457
  }, {
1076
1458
  error: null;
1077
1459
  status: "success";
1078
1460
  action_attempt_id: string;
1079
- result: {};
1461
+ result: {
1462
+ created_at: string;
1463
+ errors: {
1464
+ message: string;
1465
+ error_code: string;
1466
+ }[];
1467
+ warnings: {
1468
+ message: string;
1469
+ warning_code: string;
1470
+ }[];
1471
+ display_name: string;
1472
+ workspace_id: string;
1473
+ is_managed: true;
1474
+ acs_system_id: string;
1475
+ acs_credential_id: string;
1476
+ access_method: "code" | "card" | "mobile_key";
1477
+ code?: string | null | undefined;
1478
+ starts_at?: string | undefined;
1479
+ ends_at?: string | undefined;
1480
+ visionline_metadata?: {
1481
+ card_function_type: "guest" | "staff";
1482
+ joiner_acs_credential_ids?: string[] | undefined;
1483
+ guest_acs_entrance_ids?: string[] | undefined;
1484
+ common_acs_entrance_ids?: string[] | undefined;
1485
+ is_valid?: boolean | undefined;
1486
+ auto_join?: boolean | undefined;
1487
+ card_id?: string | undefined;
1488
+ credential_id?: string | undefined;
1489
+ } | undefined;
1490
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1491
+ external_type_display_name?: string | undefined;
1492
+ acs_user_id?: string | undefined;
1493
+ acs_credential_pool_id?: string | undefined;
1494
+ parent_acs_credential_id?: string | undefined;
1495
+ card_number?: string | null | undefined;
1496
+ is_issued?: boolean | undefined;
1497
+ issued_at?: string | null | undefined;
1498
+ is_multi_phone_sync_credential?: boolean | undefined;
1499
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1500
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1501
+ } | {
1502
+ created_at: string;
1503
+ errors: {
1504
+ message: string;
1505
+ error_code: string;
1506
+ }[];
1507
+ warnings: {
1508
+ message: string;
1509
+ warning_code: string;
1510
+ }[];
1511
+ display_name: string;
1512
+ workspace_id: string;
1513
+ is_managed: false;
1514
+ acs_system_id: string;
1515
+ acs_credential_id: string;
1516
+ access_method: "code" | "card" | "mobile_key";
1517
+ code?: string | null | undefined;
1518
+ starts_at?: string | undefined;
1519
+ ends_at?: string | undefined;
1520
+ visionline_metadata?: {
1521
+ card_function_type: "guest" | "staff";
1522
+ joiner_acs_credential_ids?: string[] | undefined;
1523
+ guest_acs_entrance_ids?: string[] | undefined;
1524
+ common_acs_entrance_ids?: string[] | undefined;
1525
+ is_valid?: boolean | undefined;
1526
+ auto_join?: boolean | undefined;
1527
+ card_id?: string | undefined;
1528
+ credential_id?: string | undefined;
1529
+ } | undefined;
1530
+ external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | undefined;
1531
+ external_type_display_name?: string | undefined;
1532
+ acs_user_id?: string | undefined;
1533
+ acs_credential_pool_id?: string | undefined;
1534
+ parent_acs_credential_id?: string | undefined;
1535
+ card_number?: string | null | undefined;
1536
+ is_issued?: boolean | undefined;
1537
+ issued_at?: string | null | undefined;
1538
+ is_multi_phone_sync_credential?: boolean | undefined;
1539
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
1540
+ latest_desired_state_synced_with_provider_at?: string | undefined;
1541
+ };
1080
1542
  action_type: "ENCODE_CARD";
1081
1543
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
1082
1544
  action_attempt_id: z.ZodString;