@seamapi/types 1.184.0 → 1.186.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.
@@ -3094,6 +3094,8 @@ export interface Routes {
3094
3094
  message: string;
3095
3095
  }>;
3096
3096
  is_multi_phone_sync_credential?: boolean | undefined;
3097
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3098
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3097
3099
  visionline_metadata?: {
3098
3100
  card_function_type: 'guest' | 'staff';
3099
3101
  joiner_acs_credential_ids?: string[] | undefined;
@@ -3157,6 +3159,8 @@ export interface Routes {
3157
3159
  message: string;
3158
3160
  }>;
3159
3161
  is_multi_phone_sync_credential?: boolean | undefined;
3162
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3163
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3160
3164
  visionline_metadata?: {
3161
3165
  card_function_type: 'guest' | 'staff';
3162
3166
  joiner_acs_credential_ids?: string[] | undefined;
@@ -3211,6 +3215,8 @@ export interface Routes {
3211
3215
  message: string;
3212
3216
  }>;
3213
3217
  is_multi_phone_sync_credential?: boolean | undefined;
3218
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3219
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3214
3220
  visionline_metadata?: {
3215
3221
  card_function_type: 'guest' | 'staff';
3216
3222
  joiner_acs_credential_ids?: string[] | undefined;
@@ -3263,6 +3269,8 @@ export interface Routes {
3263
3269
  message: string;
3264
3270
  }>;
3265
3271
  is_multi_phone_sync_credential?: boolean | undefined;
3272
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3273
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3266
3274
  visionline_metadata?: {
3267
3275
  card_function_type: 'guest' | 'staff';
3268
3276
  joiner_acs_credential_ids?: string[] | undefined;
@@ -3343,6 +3351,8 @@ export interface Routes {
3343
3351
  message: string;
3344
3352
  }>;
3345
3353
  is_multi_phone_sync_credential?: boolean | undefined;
3354
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3355
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3346
3356
  visionline_metadata?: {
3347
3357
  card_function_type: 'guest' | 'staff';
3348
3358
  joiner_acs_credential_ids?: string[] | undefined;
@@ -3388,6 +3398,8 @@ export interface Routes {
3388
3398
  message: string;
3389
3399
  }>;
3390
3400
  is_multi_phone_sync_credential?: boolean | undefined;
3401
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3402
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3391
3403
  visionline_metadata?: {
3392
3404
  card_function_type: 'guest' | 'staff';
3393
3405
  joiner_acs_credential_ids?: string[] | undefined;
@@ -3517,6 +3529,8 @@ export interface Routes {
3517
3529
  message: string;
3518
3530
  }>;
3519
3531
  is_multi_phone_sync_credential?: boolean | undefined;
3532
+ is_latest_desired_state_synced_with_provider?: boolean | undefined;
3533
+ latest_desired_state_synced_with_provider_at?: string | undefined;
3520
3534
  visionline_metadata?: {
3521
3535
  card_function_type: 'guest' | 'staff';
3522
3536
  joiner_acs_credential_ids?: string[] | undefined;
@@ -3559,13 +3573,15 @@ export interface Routes {
3559
3573
  image_url: string;
3560
3574
  image_alt_text: string;
3561
3575
  errors: Array<{
3562
- error_code: string;
3576
+ created_at: string;
3563
3577
  message: string;
3564
- }>;
3565
- warnings: Array<{
3566
- warning_code: string;
3578
+ error_code: 'seam_bridge_disconnected';
3579
+ } | {
3580
+ created_at: string;
3567
3581
  message: string;
3582
+ error_code: 'visionline_instance_unreachable';
3568
3583
  }>;
3584
+ warnings: Array<{}>;
3569
3585
  can_automate_enrollment?: boolean | undefined;
3570
3586
  can_create_acs_access_groups?: boolean | undefined;
3571
3587
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
@@ -3606,13 +3622,15 @@ export interface Routes {
3606
3622
  image_url: string;
3607
3623
  image_alt_text: string;
3608
3624
  errors: Array<{
3609
- error_code: string;
3625
+ created_at: string;
3610
3626
  message: string;
3611
- }>;
3612
- warnings: Array<{
3613
- warning_code: string;
3627
+ error_code: 'seam_bridge_disconnected';
3628
+ } | {
3629
+ created_at: string;
3614
3630
  message: string;
3631
+ error_code: 'visionline_instance_unreachable';
3615
3632
  }>;
3633
+ warnings: Array<{}>;
3616
3634
  can_automate_enrollment?: boolean | undefined;
3617
3635
  can_create_acs_access_groups?: boolean | undefined;
3618
3636
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
@@ -3653,13 +3671,15 @@ export interface Routes {
3653
3671
  image_url: string;
3654
3672
  image_alt_text: string;
3655
3673
  errors: Array<{
3656
- error_code: string;
3674
+ created_at: string;
3657
3675
  message: string;
3658
- }>;
3659
- warnings: Array<{
3660
- warning_code: string;
3676
+ error_code: 'seam_bridge_disconnected';
3677
+ } | {
3678
+ created_at: string;
3661
3679
  message: string;
3680
+ error_code: 'visionline_instance_unreachable';
3662
3681
  }>;
3682
+ warnings: Array<{}>;
3663
3683
  can_automate_enrollment?: boolean | undefined;
3664
3684
  can_create_acs_access_groups?: boolean | undefined;
3665
3685
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
@@ -17875,13 +17895,15 @@ export interface Routes {
17875
17895
  image_url: string;
17876
17896
  image_alt_text: string;
17877
17897
  errors: Array<{
17878
- error_code: string;
17898
+ created_at: string;
17879
17899
  message: string;
17880
- }>;
17881
- warnings: Array<{
17882
- warning_code: string;
17900
+ error_code: 'seam_bridge_disconnected';
17901
+ } | {
17902
+ created_at: string;
17883
17903
  message: string;
17904
+ error_code: 'visionline_instance_unreachable';
17884
17905
  }>;
17906
+ warnings: Array<{}>;
17885
17907
  can_automate_enrollment?: boolean | undefined;
17886
17908
  can_create_acs_access_groups?: boolean | undefined;
17887
17909
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.184.0",
3
+ "version": "1.186.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -57,6 +57,11 @@ export const acs_credential = z.object({
57
57
  }),
58
58
  ),
59
59
  is_multi_phone_sync_credential: z.boolean().optional(),
60
+ is_latest_desired_state_synced_with_provider: z.boolean().optional(),
61
+ latest_desired_state_synced_with_provider_at: z
62
+ .string()
63
+ .datetime()
64
+ .optional(),
60
65
  visionline_metadata: acs_credential_visionline_metadata.optional(),
61
66
  })
62
67
 
@@ -25,6 +25,38 @@ export const acs_system_external_type = z
25
25
 
26
26
  export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>
27
27
 
28
+ const common_acs_system_error = z.object({
29
+ created_at: z.string().datetime(),
30
+ message: z.string(),
31
+ })
32
+
33
+ const seam_bridge_disconnected = common_acs_system_error.extend({
34
+ error_code: z.literal('seam_bridge_disconnected'),
35
+ })
36
+ const visionline_instance_unreachable = common_acs_system_error.extend({
37
+ error_code: z.literal('visionline_instance_unreachable'),
38
+ })
39
+
40
+ const acs_system_error = z.union([
41
+ seam_bridge_disconnected,
42
+ visionline_instance_unreachable,
43
+ ])
44
+
45
+ const acs_system_error_map = z.object({
46
+ seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
47
+ visionline_instance_unreachable: visionline_instance_unreachable
48
+ .optional()
49
+ .nullable(),
50
+ })
51
+
52
+ export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>
53
+
54
+ const acs_system_warning = z.object({})
55
+
56
+ const acs_system_warning_map = z.object({})
57
+
58
+ export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
59
+
28
60
  export const acs_system = z
29
61
  .object({
30
62
  acs_system_id: z.string().uuid(),
@@ -46,18 +78,8 @@ export const acs_system = z
46
78
  connected_account_ids: z.array(z.string()),
47
79
  image_url: z.string(),
48
80
  image_alt_text: z.string(),
49
- errors: z.array(
50
- z.object({
51
- error_code: z.string(),
52
- message: z.string(),
53
- }),
54
- ),
55
- warnings: z.array(
56
- z.object({
57
- warning_code: z.string(),
58
- message: z.string(),
59
- }),
60
- ),
81
+ errors: z.array(acs_system_error),
82
+ warnings: z.array(acs_system_warning),
61
83
  })
62
84
  .merge(acs_system_capability_flags)
63
85
 
@@ -221,7 +221,12 @@ export default {
221
221
  type: 'string',
222
222
  },
223
223
  external_type_display_name: { type: 'string' },
224
+ is_latest_desired_state_synced_with_provider: { type: 'boolean' },
224
225
  is_multi_phone_sync_credential: { type: 'boolean' },
226
+ latest_desired_state_synced_with_provider_at: {
227
+ format: 'date-time',
228
+ type: 'string',
229
+ },
225
230
  parent_acs_credential_id: { format: 'uuid', type: 'string' },
226
231
  starts_at: { type: 'string' },
227
232
  visionline_metadata: {
@@ -400,12 +405,32 @@ export default {
400
405
  created_at: { format: 'date-time', type: 'string' },
401
406
  errors: {
402
407
  items: {
403
- properties: {
404
- error_code: { type: 'string' },
405
- message: { type: 'string' },
406
- },
407
- required: ['error_code', 'message'],
408
- type: 'object',
408
+ oneOf: [
409
+ {
410
+ properties: {
411
+ created_at: { format: 'date-time', type: 'string' },
412
+ error_code: {
413
+ enum: ['seam_bridge_disconnected'],
414
+ type: 'string',
415
+ },
416
+ message: { type: 'string' },
417
+ },
418
+ required: ['created_at', 'message', 'error_code'],
419
+ type: 'object',
420
+ },
421
+ {
422
+ properties: {
423
+ created_at: { format: 'date-time', type: 'string' },
424
+ error_code: {
425
+ enum: ['visionline_instance_unreachable'],
426
+ type: 'string',
427
+ },
428
+ message: { type: 'string' },
429
+ },
430
+ required: ['created_at', 'message', 'error_code'],
431
+ type: 'object',
432
+ },
433
+ ],
409
434
  },
410
435
  type: 'array',
411
436
  },
@@ -447,14 +472,7 @@ export default {
447
472
  type: 'string',
448
473
  },
449
474
  warnings: {
450
- items: {
451
- properties: {
452
- message: { type: 'string' },
453
- warning_code: { type: 'string' },
454
- },
455
- required: ['warning_code', 'message'],
456
- type: 'object',
457
- },
475
+ items: { properties: {}, type: 'object' },
458
476
  type: 'array',
459
477
  },
460
478
  workspace_id: { format: 'uuid', type: 'string' },
@@ -3307,6 +3307,8 @@ export interface Routes {
3307
3307
  message: string
3308
3308
  }>
3309
3309
  is_multi_phone_sync_credential?: boolean | undefined
3310
+ is_latest_desired_state_synced_with_provider?: boolean | undefined
3311
+ latest_desired_state_synced_with_provider_at?: string | undefined
3310
3312
  visionline_metadata?:
3311
3313
  | {
3312
3314
  card_function_type: 'guest' | 'staff'
@@ -3383,6 +3385,8 @@ export interface Routes {
3383
3385
  message: string
3384
3386
  }>
3385
3387
  is_multi_phone_sync_credential?: boolean | undefined
3388
+ is_latest_desired_state_synced_with_provider?: boolean | undefined
3389
+ latest_desired_state_synced_with_provider_at?: string | undefined
3386
3390
  visionline_metadata?:
3387
3391
  | {
3388
3392
  card_function_type: 'guest' | 'staff'
@@ -3446,6 +3450,8 @@ export interface Routes {
3446
3450
  message: string
3447
3451
  }>
3448
3452
  is_multi_phone_sync_credential?: boolean | undefined
3453
+ is_latest_desired_state_synced_with_provider?: boolean | undefined
3454
+ latest_desired_state_synced_with_provider_at?: string | undefined
3449
3455
  visionline_metadata?:
3450
3456
  | {
3451
3457
  card_function_type: 'guest' | 'staff'
@@ -3512,6 +3518,8 @@ export interface Routes {
3512
3518
  message: string
3513
3519
  }>
3514
3520
  is_multi_phone_sync_credential?: boolean | undefined
3521
+ is_latest_desired_state_synced_with_provider?: boolean | undefined
3522
+ latest_desired_state_synced_with_provider_at?: string | undefined
3515
3523
  visionline_metadata?:
3516
3524
  | {
3517
3525
  card_function_type: 'guest' | 'staff'
@@ -3608,6 +3616,8 @@ export interface Routes {
3608
3616
  message: string
3609
3617
  }>
3610
3618
  is_multi_phone_sync_credential?: boolean | undefined
3619
+ is_latest_desired_state_synced_with_provider?: boolean | undefined
3620
+ latest_desired_state_synced_with_provider_at?: string | undefined
3611
3621
  visionline_metadata?:
3612
3622
  | {
3613
3623
  card_function_type: 'guest' | 'staff'
@@ -3662,6 +3672,8 @@ export interface Routes {
3662
3672
  message: string
3663
3673
  }>
3664
3674
  is_multi_phone_sync_credential?: boolean | undefined
3675
+ is_latest_desired_state_synced_with_provider?: boolean | undefined
3676
+ latest_desired_state_synced_with_provider_at?: string | undefined
3665
3677
  visionline_metadata?:
3666
3678
  | {
3667
3679
  card_function_type: 'guest' | 'staff'
@@ -3814,6 +3826,8 @@ export interface Routes {
3814
3826
  message: string
3815
3827
  }>
3816
3828
  is_multi_phone_sync_credential?: boolean | undefined
3829
+ is_latest_desired_state_synced_with_provider?: boolean | undefined
3830
+ latest_desired_state_synced_with_provider_at?: string | undefined
3817
3831
  visionline_metadata?:
3818
3832
  | {
3819
3833
  card_function_type: 'guest' | 'staff'
@@ -3879,14 +3893,19 @@ export interface Routes {
3879
3893
  connected_account_ids: string[]
3880
3894
  image_url: string
3881
3895
  image_alt_text: string
3882
- errors: Array<{
3883
- error_code: string
3884
- message: string
3885
- }>
3886
- warnings: Array<{
3887
- warning_code: string
3888
- message: string
3889
- }>
3896
+ errors: Array<
3897
+ | {
3898
+ created_at: string
3899
+ message: string
3900
+ error_code: 'seam_bridge_disconnected'
3901
+ }
3902
+ | {
3903
+ created_at: string
3904
+ message: string
3905
+ error_code: 'visionline_instance_unreachable'
3906
+ }
3907
+ >
3908
+ warnings: Array<{}>
3890
3909
  can_automate_enrollment?: boolean | undefined
3891
3910
  can_create_acs_access_groups?: boolean | undefined
3892
3911
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined
@@ -3948,14 +3967,19 @@ export interface Routes {
3948
3967
  connected_account_ids: string[]
3949
3968
  image_url: string
3950
3969
  image_alt_text: string
3951
- errors: Array<{
3952
- error_code: string
3953
- message: string
3954
- }>
3955
- warnings: Array<{
3956
- warning_code: string
3957
- message: string
3958
- }>
3970
+ errors: Array<
3971
+ | {
3972
+ created_at: string
3973
+ message: string
3974
+ error_code: 'seam_bridge_disconnected'
3975
+ }
3976
+ | {
3977
+ created_at: string
3978
+ message: string
3979
+ error_code: 'visionline_instance_unreachable'
3980
+ }
3981
+ >
3982
+ warnings: Array<{}>
3959
3983
  can_automate_enrollment?: boolean | undefined
3960
3984
  can_create_acs_access_groups?: boolean | undefined
3961
3985
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined
@@ -4017,14 +4041,19 @@ export interface Routes {
4017
4041
  connected_account_ids: string[]
4018
4042
  image_url: string
4019
4043
  image_alt_text: string
4020
- errors: Array<{
4021
- error_code: string
4022
- message: string
4023
- }>
4024
- warnings: Array<{
4025
- warning_code: string
4026
- message: string
4027
- }>
4044
+ errors: Array<
4045
+ | {
4046
+ created_at: string
4047
+ message: string
4048
+ error_code: 'seam_bridge_disconnected'
4049
+ }
4050
+ | {
4051
+ created_at: string
4052
+ message: string
4053
+ error_code: 'visionline_instance_unreachable'
4054
+ }
4055
+ >
4056
+ warnings: Array<{}>
4028
4057
  can_automate_enrollment?: boolean | undefined
4029
4058
  can_create_acs_access_groups?: boolean | undefined
4030
4059
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined
@@ -21912,14 +21941,19 @@ export interface Routes {
21912
21941
  connected_account_ids: string[]
21913
21942
  image_url: string
21914
21943
  image_alt_text: string
21915
- errors: Array<{
21916
- error_code: string
21917
- message: string
21918
- }>
21919
- warnings: Array<{
21920
- warning_code: string
21921
- message: string
21922
- }>
21944
+ errors: Array<
21945
+ | {
21946
+ created_at: string
21947
+ message: string
21948
+ error_code: 'seam_bridge_disconnected'
21949
+ }
21950
+ | {
21951
+ created_at: string
21952
+ message: string
21953
+ error_code: 'visionline_instance_unreachable'
21954
+ }
21955
+ >
21956
+ warnings: Array<{}>
21923
21957
  can_automate_enrollment?: boolean | undefined
21924
21958
  can_create_acs_access_groups?: boolean | undefined
21925
21959
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined