@seamapi/types 1.562.0 → 1.563.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.
@@ -4677,6 +4677,19 @@ export declare const spaces_batch: z.ZodObject<{
4677
4677
  }[];
4678
4678
  };
4679
4679
  warning_code: "salto_ks_subscription_limit_almost_reached";
4680
+ }>, z.ZodObject<{
4681
+ created_at: z.ZodString;
4682
+ message: z.ZodString;
4683
+ } & {
4684
+ warning_code: z.ZodLiteral<"account_reauthorization_requested">;
4685
+ }, "strip", z.ZodTypeAny, {
4686
+ message: string;
4687
+ created_at: string;
4688
+ warning_code: "account_reauthorization_requested";
4689
+ }, {
4690
+ message: string;
4691
+ created_at: string;
4692
+ warning_code: "account_reauthorization_requested";
4680
4693
  }>]>, "many">;
4681
4694
  custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
4682
4695
  automatically_manage_new_devices: z.ZodBoolean;
@@ -4732,6 +4745,10 @@ export declare const spaces_batch: z.ZodObject<{
4732
4745
  }[];
4733
4746
  };
4734
4747
  warning_code: "salto_ks_subscription_limit_almost_reached";
4748
+ } | {
4749
+ message: string;
4750
+ created_at: string;
4751
+ warning_code: "account_reauthorization_requested";
4735
4752
  })[];
4736
4753
  custom_metadata: Record<string, string | boolean>;
4737
4754
  automatically_manage_new_devices: boolean;
@@ -4796,6 +4813,10 @@ export declare const spaces_batch: z.ZodObject<{
4796
4813
  }[];
4797
4814
  };
4798
4815
  warning_code: "salto_ks_subscription_limit_almost_reached";
4816
+ } | {
4817
+ message: string;
4818
+ created_at: string;
4819
+ warning_code: "account_reauthorization_requested";
4799
4820
  })[];
4800
4821
  custom_metadata: Record<string, string | boolean>;
4801
4822
  automatically_manage_new_devices: boolean;
@@ -5886,6 +5907,10 @@ export declare const spaces_batch: z.ZodObject<{
5886
5907
  }[];
5887
5908
  };
5888
5909
  warning_code: "salto_ks_subscription_limit_almost_reached";
5910
+ } | {
5911
+ message: string;
5912
+ created_at: string;
5913
+ warning_code: "account_reauthorization_requested";
5889
5914
  })[];
5890
5915
  custom_metadata: Record<string, string | boolean>;
5891
5916
  automatically_manage_new_devices: boolean;
@@ -6749,6 +6774,10 @@ export declare const spaces_batch: z.ZodObject<{
6749
6774
  }[];
6750
6775
  };
6751
6776
  warning_code: "salto_ks_subscription_limit_almost_reached";
6777
+ } | {
6778
+ message: string;
6779
+ created_at: string;
6780
+ warning_code: "account_reauthorization_requested";
6752
6781
  })[];
6753
6782
  custom_metadata: Record<string, string | boolean>;
6754
6783
  automatically_manage_new_devices: boolean;
@@ -11619,6 +11648,19 @@ export declare const access_grants_batch: z.ZodObject<{
11619
11648
  }[];
11620
11649
  };
11621
11650
  warning_code: "salto_ks_subscription_limit_almost_reached";
11651
+ }>, z.ZodObject<{
11652
+ created_at: z.ZodString;
11653
+ message: z.ZodString;
11654
+ } & {
11655
+ warning_code: z.ZodLiteral<"account_reauthorization_requested">;
11656
+ }, "strip", z.ZodTypeAny, {
11657
+ message: string;
11658
+ created_at: string;
11659
+ warning_code: "account_reauthorization_requested";
11660
+ }, {
11661
+ message: string;
11662
+ created_at: string;
11663
+ warning_code: "account_reauthorization_requested";
11622
11664
  }>]>, "many">;
11623
11665
  custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
11624
11666
  automatically_manage_new_devices: z.ZodBoolean;
@@ -11674,6 +11716,10 @@ export declare const access_grants_batch: z.ZodObject<{
11674
11716
  }[];
11675
11717
  };
11676
11718
  warning_code: "salto_ks_subscription_limit_almost_reached";
11719
+ } | {
11720
+ message: string;
11721
+ created_at: string;
11722
+ warning_code: "account_reauthorization_requested";
11677
11723
  })[];
11678
11724
  custom_metadata: Record<string, string | boolean>;
11679
11725
  automatically_manage_new_devices: boolean;
@@ -11738,6 +11784,10 @@ export declare const access_grants_batch: z.ZodObject<{
11738
11784
  }[];
11739
11785
  };
11740
11786
  warning_code: "salto_ks_subscription_limit_almost_reached";
11787
+ } | {
11788
+ message: string;
11789
+ created_at: string;
11790
+ warning_code: "account_reauthorization_requested";
11741
11791
  })[];
11742
11792
  custom_metadata: Record<string, string | boolean>;
11743
11793
  automatically_manage_new_devices: boolean;
@@ -12893,6 +12943,10 @@ export declare const access_grants_batch: z.ZodObject<{
12893
12943
  }[];
12894
12944
  };
12895
12945
  warning_code: "salto_ks_subscription_limit_almost_reached";
12946
+ } | {
12947
+ message: string;
12948
+ created_at: string;
12949
+ warning_code: "account_reauthorization_requested";
12896
12950
  })[];
12897
12951
  custom_metadata: Record<string, string | boolean>;
12898
12952
  automatically_manage_new_devices: boolean;
@@ -13802,6 +13856,10 @@ export declare const access_grants_batch: z.ZodObject<{
13802
13856
  }[];
13803
13857
  };
13804
13858
  warning_code: "salto_ks_subscription_limit_almost_reached";
13859
+ } | {
13860
+ message: string;
13861
+ created_at: string;
13862
+ warning_code: "account_reauthorization_requested";
13805
13863
  })[];
13806
13864
  custom_metadata: Record<string, string | boolean>;
13807
13865
  automatically_manage_new_devices: boolean;
@@ -34304,6 +34362,19 @@ export declare const workspaces_batch: z.ZodObject<{
34304
34362
  }[];
34305
34363
  };
34306
34364
  warning_code: "salto_ks_subscription_limit_almost_reached";
34365
+ }>, z.ZodObject<{
34366
+ created_at: z.ZodString;
34367
+ message: z.ZodString;
34368
+ } & {
34369
+ warning_code: z.ZodLiteral<"account_reauthorization_requested">;
34370
+ }, "strip", z.ZodTypeAny, {
34371
+ message: string;
34372
+ created_at: string;
34373
+ warning_code: "account_reauthorization_requested";
34374
+ }, {
34375
+ message: string;
34376
+ created_at: string;
34377
+ warning_code: "account_reauthorization_requested";
34307
34378
  }>]>, "many">;
34308
34379
  custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
34309
34380
  automatically_manage_new_devices: z.ZodBoolean;
@@ -34359,6 +34430,10 @@ export declare const workspaces_batch: z.ZodObject<{
34359
34430
  }[];
34360
34431
  };
34361
34432
  warning_code: "salto_ks_subscription_limit_almost_reached";
34433
+ } | {
34434
+ message: string;
34435
+ created_at: string;
34436
+ warning_code: "account_reauthorization_requested";
34362
34437
  })[];
34363
34438
  custom_metadata: Record<string, string | boolean>;
34364
34439
  automatically_manage_new_devices: boolean;
@@ -34423,6 +34498,10 @@ export declare const workspaces_batch: z.ZodObject<{
34423
34498
  }[];
34424
34499
  };
34425
34500
  warning_code: "salto_ks_subscription_limit_almost_reached";
34501
+ } | {
34502
+ message: string;
34503
+ created_at: string;
34504
+ warning_code: "account_reauthorization_requested";
34426
34505
  })[];
34427
34506
  custom_metadata: Record<string, string | boolean>;
34428
34507
  automatically_manage_new_devices: boolean;
@@ -36216,6 +36295,32 @@ export declare const workspaces_batch: z.ZodObject<{
36216
36295
  occurred_at: string;
36217
36296
  event_type: "connected_account.completed_first_sync_after_reconnection";
36218
36297
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
36298
+ }>, z.ZodObject<{
36299
+ event_id: z.ZodString;
36300
+ workspace_id: z.ZodString;
36301
+ created_at: z.ZodString;
36302
+ occurred_at: z.ZodString;
36303
+ } & {
36304
+ connected_account_id: z.ZodString;
36305
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
36306
+ } & {
36307
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
36308
+ }, "strip", z.ZodTypeAny, {
36309
+ workspace_id: string;
36310
+ created_at: string;
36311
+ connected_account_id: string;
36312
+ event_id: string;
36313
+ occurred_at: string;
36314
+ event_type: "connected_account.reauthorization_requested";
36315
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
36316
+ }, {
36317
+ workspace_id: string;
36318
+ created_at: string;
36319
+ connected_account_id: string;
36320
+ event_id: string;
36321
+ occurred_at: string;
36322
+ event_type: "connected_account.reauthorization_requested";
36323
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
36219
36324
  }>, ...(z.ZodObject<{
36220
36325
  event_id: z.ZodString;
36221
36326
  workspace_id: z.ZodString;
@@ -41671,6 +41776,10 @@ export declare const workspaces_batch: z.ZodObject<{
41671
41776
  }[];
41672
41777
  };
41673
41778
  warning_code: "salto_ks_subscription_limit_almost_reached";
41779
+ } | {
41780
+ message: string;
41781
+ created_at: string;
41782
+ warning_code: "account_reauthorization_requested";
41674
41783
  })[];
41675
41784
  custom_metadata: Record<string, string | boolean>;
41676
41785
  automatically_manage_new_devices: boolean;
@@ -43801,6 +43910,14 @@ export declare const workspaces_batch: z.ZodObject<{
43801
43910
  occurred_at: string;
43802
43911
  event_type: "connected_account.completed_first_sync_after_reconnection";
43803
43912
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
43913
+ } | {
43914
+ workspace_id: string;
43915
+ created_at: string;
43916
+ connected_account_id: string;
43917
+ event_id: string;
43918
+ occurred_at: string;
43919
+ event_type: "connected_account.reauthorization_requested";
43920
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
43804
43921
  } | {
43805
43922
  device_id: string;
43806
43923
  workspace_id: string;
@@ -45627,6 +45744,10 @@ export declare const workspaces_batch: z.ZodObject<{
45627
45744
  }[];
45628
45745
  };
45629
45746
  warning_code: "salto_ks_subscription_limit_almost_reached";
45747
+ } | {
45748
+ message: string;
45749
+ created_at: string;
45750
+ warning_code: "account_reauthorization_requested";
45630
45751
  })[];
45631
45752
  custom_metadata: Record<string, string | boolean>;
45632
45753
  automatically_manage_new_devices: boolean;
@@ -47757,6 +47878,14 @@ export declare const workspaces_batch: z.ZodObject<{
47757
47878
  occurred_at: string;
47758
47879
  event_type: "connected_account.completed_first_sync_after_reconnection";
47759
47880
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
47881
+ } | {
47882
+ workspace_id: string;
47883
+ created_at: string;
47884
+ connected_account_id: string;
47885
+ event_id: string;
47886
+ occurred_at: string;
47887
+ event_type: "connected_account.reauthorization_requested";
47888
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
47760
47889
  } | {
47761
47890
  device_id: string;
47762
47891
  workspace_id: string;
@@ -64800,6 +64929,32 @@ export declare const batch: z.ZodObject<{
64800
64929
  occurred_at: string;
64801
64930
  event_type: "connected_account.completed_first_sync_after_reconnection";
64802
64931
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
64932
+ }>, z.ZodObject<{
64933
+ event_id: z.ZodString;
64934
+ workspace_id: z.ZodString;
64935
+ created_at: z.ZodString;
64936
+ occurred_at: z.ZodString;
64937
+ } & {
64938
+ connected_account_id: z.ZodString;
64939
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
64940
+ } & {
64941
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
64942
+ }, "strip", z.ZodTypeAny, {
64943
+ workspace_id: string;
64944
+ created_at: string;
64945
+ connected_account_id: string;
64946
+ event_id: string;
64947
+ occurred_at: string;
64948
+ event_type: "connected_account.reauthorization_requested";
64949
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
64950
+ }, {
64951
+ workspace_id: string;
64952
+ created_at: string;
64953
+ connected_account_id: string;
64954
+ event_id: string;
64955
+ occurred_at: string;
64956
+ event_type: "connected_account.reauthorization_requested";
64957
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
64803
64958
  }>, ...(z.ZodObject<{
64804
64959
  event_id: z.ZodString;
64805
64960
  workspace_id: z.ZodString;
@@ -72320,6 +72475,14 @@ export declare const batch: z.ZodObject<{
72320
72475
  occurred_at: string;
72321
72476
  event_type: "connected_account.completed_first_sync_after_reconnection";
72322
72477
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
72478
+ } | {
72479
+ workspace_id: string;
72480
+ created_at: string;
72481
+ connected_account_id: string;
72482
+ event_id: string;
72483
+ occurred_at: string;
72484
+ event_type: "connected_account.reauthorization_requested";
72485
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
72323
72486
  } | {
72324
72487
  device_id: string;
72325
72488
  workspace_id: string;
@@ -76211,6 +76374,14 @@ export declare const batch: z.ZodObject<{
76211
76374
  occurred_at: string;
76212
76375
  event_type: "connected_account.completed_first_sync_after_reconnection";
76213
76376
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
76377
+ } | {
76378
+ workspace_id: string;
76379
+ created_at: string;
76380
+ connected_account_id: string;
76381
+ event_id: string;
76382
+ occurred_at: string;
76383
+ event_type: "connected_account.reauthorization_requested";
76384
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
76214
76385
  } | {
76215
76386
  device_id: string;
76216
76387
  workspace_id: string;
@@ -487,6 +487,19 @@ declare const connected_account_warning: z.ZodDiscriminatedUnion<"warning_code",
487
487
  }[];
488
488
  };
489
489
  warning_code: "salto_ks_subscription_limit_almost_reached";
490
+ }>, z.ZodObject<{
491
+ created_at: z.ZodString;
492
+ message: z.ZodString;
493
+ } & {
494
+ warning_code: z.ZodLiteral<"account_reauthorization_requested">;
495
+ }, "strip", z.ZodTypeAny, {
496
+ message: string;
497
+ created_at: string;
498
+ warning_code: "account_reauthorization_requested";
499
+ }, {
500
+ message: string;
501
+ created_at: string;
502
+ warning_code: "account_reauthorization_requested";
490
503
  }>]>;
491
504
  declare const _connected_account_warning_map: z.ZodObject<{
492
505
  scheduled_maintenance_window: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -579,6 +592,20 @@ declare const _connected_account_warning_map: z.ZodObject<{
579
592
  };
580
593
  warning_code: "salto_ks_subscription_limit_almost_reached";
581
594
  }>>>;
595
+ account_reauthorization_requested: z.ZodOptional<z.ZodNullable<z.ZodObject<{
596
+ created_at: z.ZodString;
597
+ message: z.ZodString;
598
+ } & {
599
+ warning_code: z.ZodLiteral<"account_reauthorization_requested">;
600
+ }, "strip", z.ZodTypeAny, {
601
+ message: string;
602
+ created_at: string;
603
+ warning_code: "account_reauthorization_requested";
604
+ }, {
605
+ message: string;
606
+ created_at: string;
607
+ warning_code: "account_reauthorization_requested";
608
+ }>>>;
582
609
  }, "strip", z.ZodTypeAny, {
583
610
  scheduled_maintenance_window?: {
584
611
  message: string;
@@ -603,6 +630,11 @@ declare const _connected_account_warning_map: z.ZodObject<{
603
630
  };
604
631
  warning_code: "salto_ks_subscription_limit_almost_reached";
605
632
  } | null | undefined;
633
+ account_reauthorization_requested?: {
634
+ message: string;
635
+ created_at: string;
636
+ warning_code: "account_reauthorization_requested";
637
+ } | null | undefined;
606
638
  }, {
607
639
  scheduled_maintenance_window?: {
608
640
  message: string;
@@ -627,6 +659,11 @@ declare const _connected_account_warning_map: z.ZodObject<{
627
659
  };
628
660
  warning_code: "salto_ks_subscription_limit_almost_reached";
629
661
  } | null | undefined;
662
+ account_reauthorization_requested?: {
663
+ message: string;
664
+ created_at: string;
665
+ warning_code: "account_reauthorization_requested";
666
+ } | null | undefined;
630
667
  }>;
631
668
  export type ConnectedAccountWarningMap = z.infer<typeof _connected_account_warning_map>;
632
669
  export declare const connected_account: z.ZodObject<{
@@ -846,6 +883,19 @@ export declare const connected_account: z.ZodObject<{
846
883
  }[];
847
884
  };
848
885
  warning_code: "salto_ks_subscription_limit_almost_reached";
886
+ }>, z.ZodObject<{
887
+ created_at: z.ZodString;
888
+ message: z.ZodString;
889
+ } & {
890
+ warning_code: z.ZodLiteral<"account_reauthorization_requested">;
891
+ }, "strip", z.ZodTypeAny, {
892
+ message: string;
893
+ created_at: string;
894
+ warning_code: "account_reauthorization_requested";
895
+ }, {
896
+ message: string;
897
+ created_at: string;
898
+ warning_code: "account_reauthorization_requested";
849
899
  }>]>, "many">;
850
900
  custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
851
901
  automatically_manage_new_devices: z.ZodBoolean;
@@ -901,6 +951,10 @@ export declare const connected_account: z.ZodObject<{
901
951
  }[];
902
952
  };
903
953
  warning_code: "salto_ks_subscription_limit_almost_reached";
954
+ } | {
955
+ message: string;
956
+ created_at: string;
957
+ warning_code: "account_reauthorization_requested";
904
958
  })[];
905
959
  custom_metadata: Record<string, string | boolean>;
906
960
  automatically_manage_new_devices: boolean;
@@ -965,6 +1019,10 @@ export declare const connected_account: z.ZodObject<{
965
1019
  }[];
966
1020
  };
967
1021
  warning_code: "salto_ks_subscription_limit_almost_reached";
1022
+ } | {
1023
+ message: string;
1024
+ created_at: string;
1025
+ warning_code: "account_reauthorization_requested";
968
1026
  })[];
969
1027
  custom_metadata: Record<string, string | boolean>;
970
1028
  automatically_manage_new_devices: boolean;
@@ -135,11 +135,19 @@ const salto_ks_subscription_limit_almost_reached = common_connected_account_warn
135
135
  .describe('Salto KS metadata associated with the connected account that has a warning.'),
136
136
  })
137
137
  .describe('Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.');
138
+ const account_reauthorization_requested = common_connected_account_warning
139
+ .extend({
140
+ warning_code: z
141
+ .literal('account_reauthorization_requested')
142
+ .describe(warning_code_description),
143
+ })
144
+ .describe('Indicates that the Connected Account requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.');
138
145
  const connected_account_warning = z
139
146
  .discriminatedUnion('warning_code', [
140
147
  scheduled_maintenance_window,
141
148
  unknown_issue_with_connected_account,
142
149
  salto_ks_subscription_limit_almost_reached,
150
+ account_reauthorization_requested,
143
151
  ])
144
152
  .describe('Warning associated with the connected account.');
145
153
  const _connected_account_warning_map = z.object({
@@ -150,6 +158,9 @@ const _connected_account_warning_map = z.object({
150
158
  .nullable()
151
159
  .optional(),
152
160
  salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional(),
161
+ account_reauthorization_requested: account_reauthorization_requested
162
+ .nullable()
163
+ .optional(),
153
164
  });
154
165
  export const connected_account = z.object({
155
166
  connected_account_id: z
@@ -1 +1 @@
1
- {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[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aACT,QAAQ,EAAE;aACV,QAAQ,CACP,2FAA2F,CAC5F;KACJ,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC1E,yBAAyB,EAAE,CAAC;SACzB,MAAM,EAAE;SACR,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,uBAAuB,CAAC;SAC9B,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,yBAAyB,CAAC;SAChC,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,eAAe;IACf,gCAAgC,EAAE,CAAC;SAChC,OAAO,EAAE;SACT,QAAQ,CACP,4QAA4Q,CAC7Q;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0EAA0E,CAC3E;IACH,qBAAqB,EAAE,CAAC;SACrB,KAAK,CAAC,mBAAmB,CAAC;SAC1B,QAAQ,CACP,gFAAgF,CACjF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
1
+ {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAA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Q,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;IACrE,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC1E,yBAAyB,EAAE,CAAC;SACzB,MAAM,EAAE;SACR,QAAQ,CAAC,8CAA8C,CAAC;IAC3D,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,uBAAuB,CAAC;SAC9B,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,yBAAyB,CAAC;SAChC,QAAQ,CAAC,iDAAiD,CAAC;IAC9D,eAAe;IACf,gCAAgC,EAAE,CAAC;SAChC,OAAO,EAAE;SACT,QAAQ,CACP,4QAA4Q,CAC7Q;IACH,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0EAA0E,CAC3E;IACH,qBAAqB,EAAE,CAAC;SACrB,KAAK,CAAC,mBAAmB,CAAC;SAC1B,QAAQ,CACP,gFAAgF,CACjF;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
@@ -209,6 +209,34 @@ export declare const connected_account_completed_first_sync_after_reconnection_e
209
209
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
210
210
  }>;
211
211
  export type ConnectedAccountCompletedFirstSyncAfterReconnectionEvent = z.infer<typeof connected_account_completed_first_sync_after_reconnection_event>;
212
+ export declare const connected_account_reauthorization_requested_event: z.ZodObject<{
213
+ event_id: z.ZodString;
214
+ workspace_id: z.ZodString;
215
+ created_at: z.ZodString;
216
+ occurred_at: z.ZodString;
217
+ } & {
218
+ connected_account_id: z.ZodString;
219
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
220
+ } & {
221
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
222
+ }, "strip", z.ZodTypeAny, {
223
+ workspace_id: string;
224
+ created_at: string;
225
+ connected_account_id: string;
226
+ event_id: string;
227
+ occurred_at: string;
228
+ event_type: "connected_account.reauthorization_requested";
229
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
230
+ }, {
231
+ workspace_id: string;
232
+ created_at: string;
233
+ connected_account_id: string;
234
+ event_id: string;
235
+ occurred_at: string;
236
+ event_type: "connected_account.reauthorization_requested";
237
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
238
+ }>;
239
+ export type ConnectedAccountReauthorizationRequestedEvent = z.infer<typeof connected_account_reauthorization_requested_event>;
212
240
  export declare const connected_account_events: readonly [z.ZodObject<{
213
241
  event_id: z.ZodString;
214
242
  workspace_id: z.ZodString;
@@ -403,4 +431,30 @@ export declare const connected_account_events: readonly [z.ZodObject<{
403
431
  occurred_at: string;
404
432
  event_type: "connected_account.completed_first_sync_after_reconnection";
405
433
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
434
+ }>, z.ZodObject<{
435
+ event_id: z.ZodString;
436
+ workspace_id: z.ZodString;
437
+ created_at: z.ZodString;
438
+ occurred_at: z.ZodString;
439
+ } & {
440
+ connected_account_id: z.ZodString;
441
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
442
+ } & {
443
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
444
+ }, "strip", z.ZodTypeAny, {
445
+ workspace_id: string;
446
+ created_at: string;
447
+ connected_account_id: string;
448
+ event_id: string;
449
+ occurred_at: string;
450
+ event_type: "connected_account.reauthorization_requested";
451
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
452
+ }, {
453
+ workspace_id: string;
454
+ created_at: string;
455
+ connected_account_id: string;
456
+ event_id: string;
457
+ occurred_at: string;
458
+ event_type: "connected_account.reauthorization_requested";
459
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
406
460
  }>];
@@ -79,6 +79,14 @@ export const connected_account_completed_first_sync_after_reconnection_event = c
79
79
  ---
80
80
  A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) completed the first sync after reconnection with Seam, and the corresponding devices or systems are now available.
81
81
  `);
82
+ export const connected_account_reauthorization_requested_event = connected_account_event.extend({
83
+ event_type: z.literal('connected_account.reauthorization_requested'),
84
+ }).describe(`
85
+ ---
86
+ route_path: /connected_accounts
87
+ ---
88
+ A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) requires reauthorization using a new Connect Webview. The account is still connected, but cannot access new features. Delaying reauthorization too long will eventually cause the Connected Account to become disconnected.
89
+ `);
82
90
  export const connected_account_events = [
83
91
  connected_account_connected_event,
84
92
  connected_account_created_event,
@@ -87,5 +95,6 @@ export const connected_account_events = [
87
95
  connected_account_completed_first_sync_event,
88
96
  connected_account_deleted_event,
89
97
  connected_account_completed_first_sync_after_reconnection_event,
98
+ connected_account_reauthorization_requested_event,
90
99
  ];
91
100
  //# sourceMappingURL=connected-accounts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,uGAAuG,CACxG;IACH,iCAAiC,EAAE,eAAe;SAC/C,QAAQ,EAAE;SACV,QAAQ,CACP,0FAA0F,CAC3F;CACJ,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,IAAI,EAAE;KACN,QAAQ,CACP,oHAAoH,CACrH,CAAA;AAEH,MA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C,CAAA;AAMF,MAAM,CAAC,MAAM,+DAA+D,GAC1E,uBAAuB,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,CAAC,CAAC,OAAO,CACnB,2DAA2D,CAC5D;CACF,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iCAAiC;IACjC,+BAA+B;IAC/B,wCAAwC;IACxC,oCAAoC;IACpC,4CAA4C;IAC5C,+BAA+B;IAC/B,+DAA+D;CACvD,CAAA"}
1
+ {"version":3,"file":"connected-accounts.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/connected-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,uBAAuB,GAAG,YAAY,CAAC,MAAM,CAAC;IAClD,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,uGAAuG,CACxG;IACH,iCAAiC,EAAE,eAAe;SAC/C,QAAQ,EAAE;SACV,QAAQ,CACP,0FAA0F,CAC3F;CACJ,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,IAAI,EAAE;KACN,QAAQ,CACP,oHAAoH,CACrH,CAAA;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,uBAAuB,CAAC,MAAM,CAC7E;IACE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IACpD,kBAAkB,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IACjD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,kEAAkE,CACnE;CACJ,CACF,CAAC,QAAQ,CAAC;;;;;CAK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CAAC,6CAA6C,CAAC;CACrE,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iCAAiC;IACjC,+BAA+B;IAC/B,wCAAwC;IACxC,oCAAoC;IACpC,4CAA4C;IAC5C,+BAA+B;IAC/B,+DAA+D;IAC/D,iDAAiD;CACzC,CAAA"}
@@ -1540,6 +1540,32 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
1540
1540
  occurred_at: string;
1541
1541
  event_type: "connected_account.completed_first_sync_after_reconnection";
1542
1542
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1543
+ }>, z.ZodObject<{
1544
+ event_id: z.ZodString;
1545
+ workspace_id: z.ZodString;
1546
+ created_at: z.ZodString;
1547
+ occurred_at: z.ZodString;
1548
+ } & {
1549
+ connected_account_id: z.ZodString;
1550
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
1551
+ } & {
1552
+ event_type: z.ZodLiteral<"connected_account.reauthorization_requested">;
1553
+ }, "strip", z.ZodTypeAny, {
1554
+ workspace_id: string;
1555
+ created_at: string;
1556
+ connected_account_id: string;
1557
+ event_id: string;
1558
+ occurred_at: string;
1559
+ event_type: "connected_account.reauthorization_requested";
1560
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1561
+ }, {
1562
+ workspace_id: string;
1563
+ created_at: string;
1564
+ connected_account_id: string;
1565
+ event_id: string;
1566
+ occurred_at: string;
1567
+ event_type: "connected_account.reauthorization_requested";
1568
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1543
1569
  }>, ...(z.ZodObject<{
1544
1570
  event_id: z.ZodString;
1545
1571
  workspace_id: z.ZodString;
@@ -2981,5 +3007,5 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
2981
3007
  device_custom_metadata?: Record<string, string | boolean> | undefined;
2982
3008
  }>]>;
2983
3009
  export type SeamEvent = z.infer<typeof seam_event>;
2984
- export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated", ...("access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated")[]]>;
3010
+ export declare const seam_event_type: z.ZodEnum<["access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated", ...("access_code.created" | "access_code.changed" | "access_code.scheduled_on_device" | "access_code.set_on_device" | "access_code.removed_from_device" | "access_code.delay_in_setting_on_device" | "access_code.failed_to_set_on_device" | "access_code.deleted" | "access_code.delay_in_removing_from_device" | "access_code.failed_to_remove_from_device" | "access_code.modified_external_to_seam" | "access_code.deleted_external_to_seam" | "access_code.backup_access_code_pulled" | "access_code.unmanaged.converted_to_managed" | "access_code.unmanaged.failed_to_convert_to_managed" | "access_code.unmanaged.created" | "access_code.unmanaged.removed" | "access_grant.created" | "access_grant.deleted" | "access_grant.access_granted_to_all_doors" | "access_grant.access_granted_to_door" | "access_grant.access_to_door_lost" | "access_grant.access_times_changed" | "access_method.issued" | "access_method.card_encoding_required" | "access_method.revoked" | "access_method.deleted" | "access_method.reissued" | "acs_access_group.deleted" | "acs_credential.deleted" | "acs_credential.issued" | "acs_credential.reissued" | "acs_credential.invalidated" | "acs_encoder.added" | "acs_encoder.removed" | "acs_entrance.added" | "acs_entrance.removed" | "acs_system.connected" | "acs_system.disconnected" | "acs_system.added" | "acs_user.deleted" | "acs_user.created" | "action_attempt.lock_door.succeeded" | "action_attempt.lock_door.failed" | "action_attempt.unlock_door.succeeded" | "action_attempt.unlock_door.failed" | "client_session.deleted" | "connect_webview.login_succeeded" | "connect_webview.login_failed" | "connected_account.connected" | "connected_account.created" | "connected_account.successful_login" | "connected_account.disconnected" | "connected_account.completed_first_sync" | "connected_account.deleted" | "connected_account.completed_first_sync_after_reconnection" | "connected_account.reauthorization_requested" | "device.connected" | "device.added" | "device.converted_to_unmanaged" | "device.unmanaged.converted_to_managed" | "device.unmanaged.connected" | "device.disconnected" | "device.unmanaged.disconnected" | "device.tampered" | "device.low_battery" | "device.battery_status_changed" | "device.removed" | "device.deleted" | "device.third_party_integration_detected" | "device.third_party_integration_no_longer_detected" | "device.salto.privacy_mode_activated" | "device.salto.privacy_mode_deactivated" | "device.connection_became_flaky" | "device.connection_stabilized" | "device.error.subscription_required" | "device.error.subscription_required.resolved" | "device.accessory_keypad_connected" | "device.accessory_keypad_disconnected" | "noise_sensor.noise_threshold_triggered" | "lock.locked" | "lock.unlocked" | "lock.access_denied" | "thermostat.climate_preset_activated" | "thermostat.manually_adjusted" | "thermostat.temperature_threshold_exceeded" | "thermostat.temperature_threshold_no_longer_exceeded" | "thermostat.temperature_reached_set_point" | "thermostat.temperature_changed" | "device.name_changed" | "enrollment_automation.deleted" | "phone.deactivated")[]]>;
2985
3011
  export type SeamEventType = SeamEvent['event_type'];