@seamapi/types 1.561.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.
Files changed (26) hide show
  1. package/dist/connect.cjs +159 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +478 -4
  4. package/dist/index.cjs +159 -4
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +71 -0
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js +11 -0
  8. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  9. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +26 -0
  10. package/lib/seam/connect/models/batch.d.ts +315 -0
  11. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +58 -0
  12. package/lib/seam/connect/models/connected-accounts/connected-account.js +11 -0
  13. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  14. package/lib/seam/connect/models/events/connected-accounts.d.ts +54 -0
  15. package/lib/seam/connect/models/events/connected-accounts.js +9 -0
  16. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  17. package/lib/seam/connect/models/events/seam-event.d.ts +27 -1
  18. package/lib/seam/connect/openapi.js +132 -0
  19. package/lib/seam/connect/openapi.js.map +1 -1
  20. package/lib/seam/connect/route-types.d.ts +236 -4
  21. package/package.json +1 -1
  22. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +14 -0
  23. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +14 -0
  24. package/src/lib/seam/connect/models/events/connected-accounts.ts +15 -0
  25. package/src/lib/seam/connect/openapi.ts +150 -0
  26. package/src/lib/seam/connect/route-types.ts +269 -0
@@ -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;
@@ -38118,6 +38223,22 @@ export declare const workspaces_batch: z.ZodObject<{
38118
38223
  error_code: "dormakaba_oracode_no_valid_user_level";
38119
38224
  is_access_code_error: true;
38120
38225
  created_at?: string | undefined;
38226
+ }>, z.ZodObject<{
38227
+ message: z.ZodString;
38228
+ is_access_code_error: z.ZodLiteral<true>;
38229
+ created_at: z.ZodOptional<z.ZodString>;
38230
+ } & {
38231
+ error_code: z.ZodLiteral<"kwikset_insufficient_permissions">;
38232
+ }, "strip", z.ZodTypeAny, {
38233
+ message: string;
38234
+ error_code: "kwikset_insufficient_permissions";
38235
+ is_access_code_error: true;
38236
+ created_at?: string | undefined;
38237
+ }, {
38238
+ message: string;
38239
+ error_code: "kwikset_insufficient_permissions";
38240
+ is_access_code_error: true;
38241
+ created_at?: string | undefined;
38121
38242
  }>, ...(z.ZodObject<{
38122
38243
  created_at: z.ZodString;
38123
38244
  message: z.ZodString;
@@ -38787,6 +38908,11 @@ export declare const workspaces_batch: z.ZodObject<{
38787
38908
  error_code: "kwikset_unable_to_confirm_deletion";
38788
38909
  is_access_code_error: true;
38789
38910
  created_at?: string | undefined;
38911
+ } | {
38912
+ message: string;
38913
+ error_code: "kwikset_insufficient_permissions";
38914
+ is_access_code_error: true;
38915
+ created_at?: string | undefined;
38790
38916
  } | {
38791
38917
  message: string;
38792
38918
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -39081,6 +39207,11 @@ export declare const workspaces_batch: z.ZodObject<{
39081
39207
  error_code: "kwikset_unable_to_confirm_deletion";
39082
39208
  is_access_code_error: true;
39083
39209
  created_at?: string | undefined;
39210
+ } | {
39211
+ message: string;
39212
+ error_code: "kwikset_insufficient_permissions";
39213
+ is_access_code_error: true;
39214
+ created_at?: string | undefined;
39084
39215
  } | {
39085
39216
  message: string;
39086
39217
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -39619,6 +39750,22 @@ export declare const workspaces_batch: z.ZodObject<{
39619
39750
  error_code: "dormakaba_oracode_no_valid_user_level";
39620
39751
  is_access_code_error: true;
39621
39752
  created_at?: string | undefined;
39753
+ }>, z.ZodObject<{
39754
+ message: z.ZodString;
39755
+ is_access_code_error: z.ZodLiteral<true>;
39756
+ created_at: z.ZodOptional<z.ZodString>;
39757
+ } & {
39758
+ error_code: z.ZodLiteral<"kwikset_insufficient_permissions">;
39759
+ }, "strip", z.ZodTypeAny, {
39760
+ message: string;
39761
+ error_code: "kwikset_insufficient_permissions";
39762
+ is_access_code_error: true;
39763
+ created_at?: string | undefined;
39764
+ }, {
39765
+ message: string;
39766
+ error_code: "kwikset_insufficient_permissions";
39767
+ is_access_code_error: true;
39768
+ created_at?: string | undefined;
39622
39769
  }>, ...(z.ZodObject<{
39623
39770
  created_at: z.ZodString;
39624
39771
  message: z.ZodString;
@@ -40282,6 +40429,11 @@ export declare const workspaces_batch: z.ZodObject<{
40282
40429
  error_code: "kwikset_unable_to_confirm_deletion";
40283
40430
  is_access_code_error: true;
40284
40431
  created_at?: string | undefined;
40432
+ } | {
40433
+ message: string;
40434
+ error_code: "kwikset_insufficient_permissions";
40435
+ is_access_code_error: true;
40436
+ created_at?: string | undefined;
40285
40437
  } | {
40286
40438
  message: string;
40287
40439
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -40567,6 +40719,11 @@ export declare const workspaces_batch: z.ZodObject<{
40567
40719
  error_code: "kwikset_unable_to_confirm_deletion";
40568
40720
  is_access_code_error: true;
40569
40721
  created_at?: string | undefined;
40722
+ } | {
40723
+ message: string;
40724
+ error_code: "kwikset_insufficient_permissions";
40725
+ is_access_code_error: true;
40726
+ created_at?: string | undefined;
40570
40727
  } | {
40571
40728
  message: string;
40572
40729
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -41619,6 +41776,10 @@ export declare const workspaces_batch: z.ZodObject<{
41619
41776
  }[];
41620
41777
  };
41621
41778
  warning_code: "salto_ks_subscription_limit_almost_reached";
41779
+ } | {
41780
+ message: string;
41781
+ created_at: string;
41782
+ warning_code: "account_reauthorization_requested";
41622
41783
  })[];
41623
41784
  custom_metadata: Record<string, string | boolean>;
41624
41785
  automatically_manage_new_devices: boolean;
@@ -43749,6 +43910,14 @@ export declare const workspaces_batch: z.ZodObject<{
43749
43910
  occurred_at: string;
43750
43911
  event_type: "connected_account.completed_first_sync_after_reconnection";
43751
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;
43752
43921
  } | {
43753
43922
  device_id: string;
43754
43923
  workspace_id: string;
@@ -44323,6 +44492,11 @@ export declare const workspaces_batch: z.ZodObject<{
44323
44492
  error_code: "kwikset_unable_to_confirm_deletion";
44324
44493
  is_access_code_error: true;
44325
44494
  created_at?: string | undefined;
44495
+ } | {
44496
+ message: string;
44497
+ error_code: "kwikset_insufficient_permissions";
44498
+ is_access_code_error: true;
44499
+ created_at?: string | undefined;
44326
44500
  } | {
44327
44501
  message: string;
44328
44502
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -44618,6 +44792,11 @@ export declare const workspaces_batch: z.ZodObject<{
44618
44792
  error_code: "kwikset_unable_to_confirm_deletion";
44619
44793
  is_access_code_error: true;
44620
44794
  created_at?: string | undefined;
44795
+ } | {
44796
+ message: string;
44797
+ error_code: "kwikset_insufficient_permissions";
44798
+ is_access_code_error: true;
44799
+ created_at?: string | undefined;
44621
44800
  } | {
44622
44801
  message: string;
44623
44802
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -45565,6 +45744,10 @@ export declare const workspaces_batch: z.ZodObject<{
45565
45744
  }[];
45566
45745
  };
45567
45746
  warning_code: "salto_ks_subscription_limit_almost_reached";
45747
+ } | {
45748
+ message: string;
45749
+ created_at: string;
45750
+ warning_code: "account_reauthorization_requested";
45568
45751
  })[];
45569
45752
  custom_metadata: Record<string, string | boolean>;
45570
45753
  automatically_manage_new_devices: boolean;
@@ -47695,6 +47878,14 @@ export declare const workspaces_batch: z.ZodObject<{
47695
47878
  occurred_at: string;
47696
47879
  event_type: "connected_account.completed_first_sync_after_reconnection";
47697
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;
47698
47889
  } | {
47699
47890
  device_id: string;
47700
47891
  workspace_id: string;
@@ -48269,6 +48460,11 @@ export declare const workspaces_batch: z.ZodObject<{
48269
48460
  error_code: "kwikset_unable_to_confirm_deletion";
48270
48461
  is_access_code_error: true;
48271
48462
  created_at?: string | undefined;
48463
+ } | {
48464
+ message: string;
48465
+ error_code: "kwikset_insufficient_permissions";
48466
+ is_access_code_error: true;
48467
+ created_at?: string | undefined;
48272
48468
  } | {
48273
48469
  message: string;
48274
48470
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -48564,6 +48760,11 @@ export declare const workspaces_batch: z.ZodObject<{
48564
48760
  error_code: "kwikset_unable_to_confirm_deletion";
48565
48761
  is_access_code_error: true;
48566
48762
  created_at?: string | undefined;
48763
+ } | {
48764
+ message: string;
48765
+ error_code: "kwikset_insufficient_permissions";
48766
+ is_access_code_error: true;
48767
+ created_at?: string | undefined;
48567
48768
  } | {
48568
48769
  message: string;
48569
48770
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -64728,6 +64929,32 @@ export declare const batch: z.ZodObject<{
64728
64929
  occurred_at: string;
64729
64930
  event_type: "connected_account.completed_first_sync_after_reconnection";
64730
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;
64731
64958
  }>, ...(z.ZodObject<{
64732
64959
  event_id: z.ZodString;
64733
64960
  workspace_id: z.ZodString;
@@ -66630,6 +66857,22 @@ export declare const batch: z.ZodObject<{
66630
66857
  error_code: "dormakaba_oracode_no_valid_user_level";
66631
66858
  is_access_code_error: true;
66632
66859
  created_at?: string | undefined;
66860
+ }>, z.ZodObject<{
66861
+ message: z.ZodString;
66862
+ is_access_code_error: z.ZodLiteral<true>;
66863
+ created_at: z.ZodOptional<z.ZodString>;
66864
+ } & {
66865
+ error_code: z.ZodLiteral<"kwikset_insufficient_permissions">;
66866
+ }, "strip", z.ZodTypeAny, {
66867
+ message: string;
66868
+ error_code: "kwikset_insufficient_permissions";
66869
+ is_access_code_error: true;
66870
+ created_at?: string | undefined;
66871
+ }, {
66872
+ message: string;
66873
+ error_code: "kwikset_insufficient_permissions";
66874
+ is_access_code_error: true;
66875
+ created_at?: string | undefined;
66633
66876
  }>, ...(z.ZodObject<{
66634
66877
  created_at: z.ZodString;
66635
66878
  message: z.ZodString;
@@ -67299,6 +67542,11 @@ export declare const batch: z.ZodObject<{
67299
67542
  error_code: "kwikset_unable_to_confirm_deletion";
67300
67543
  is_access_code_error: true;
67301
67544
  created_at?: string | undefined;
67545
+ } | {
67546
+ message: string;
67547
+ error_code: "kwikset_insufficient_permissions";
67548
+ is_access_code_error: true;
67549
+ created_at?: string | undefined;
67302
67550
  } | {
67303
67551
  message: string;
67304
67552
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -67593,6 +67841,11 @@ export declare const batch: z.ZodObject<{
67593
67841
  error_code: "kwikset_unable_to_confirm_deletion";
67594
67842
  is_access_code_error: true;
67595
67843
  created_at?: string | undefined;
67844
+ } | {
67845
+ message: string;
67846
+ error_code: "kwikset_insufficient_permissions";
67847
+ is_access_code_error: true;
67848
+ created_at?: string | undefined;
67596
67849
  } | {
67597
67850
  message: string;
67598
67851
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -68131,6 +68384,22 @@ export declare const batch: z.ZodObject<{
68131
68384
  error_code: "dormakaba_oracode_no_valid_user_level";
68132
68385
  is_access_code_error: true;
68133
68386
  created_at?: string | undefined;
68387
+ }>, z.ZodObject<{
68388
+ message: z.ZodString;
68389
+ is_access_code_error: z.ZodLiteral<true>;
68390
+ created_at: z.ZodOptional<z.ZodString>;
68391
+ } & {
68392
+ error_code: z.ZodLiteral<"kwikset_insufficient_permissions">;
68393
+ }, "strip", z.ZodTypeAny, {
68394
+ message: string;
68395
+ error_code: "kwikset_insufficient_permissions";
68396
+ is_access_code_error: true;
68397
+ created_at?: string | undefined;
68398
+ }, {
68399
+ message: string;
68400
+ error_code: "kwikset_insufficient_permissions";
68401
+ is_access_code_error: true;
68402
+ created_at?: string | undefined;
68134
68403
  }>, ...(z.ZodObject<{
68135
68404
  created_at: z.ZodString;
68136
68405
  message: z.ZodString;
@@ -68794,6 +69063,11 @@ export declare const batch: z.ZodObject<{
68794
69063
  error_code: "kwikset_unable_to_confirm_deletion";
68795
69064
  is_access_code_error: true;
68796
69065
  created_at?: string | undefined;
69066
+ } | {
69067
+ message: string;
69068
+ error_code: "kwikset_insufficient_permissions";
69069
+ is_access_code_error: true;
69070
+ created_at?: string | undefined;
68797
69071
  } | {
68798
69072
  message: string;
68799
69073
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -69079,6 +69353,11 @@ export declare const batch: z.ZodObject<{
69079
69353
  error_code: "kwikset_unable_to_confirm_deletion";
69080
69354
  is_access_code_error: true;
69081
69355
  created_at?: string | undefined;
69356
+ } | {
69357
+ message: string;
69358
+ error_code: "kwikset_insufficient_permissions";
69359
+ is_access_code_error: true;
69360
+ created_at?: string | undefined;
69082
69361
  } | {
69083
69362
  message: string;
69084
69363
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -72196,6 +72475,14 @@ export declare const batch: z.ZodObject<{
72196
72475
  occurred_at: string;
72197
72476
  event_type: "connected_account.completed_first_sync_after_reconnection";
72198
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;
72199
72486
  } | {
72200
72487
  device_id: string;
72201
72488
  workspace_id: string;
@@ -72770,6 +73057,11 @@ export declare const batch: z.ZodObject<{
72770
73057
  error_code: "kwikset_unable_to_confirm_deletion";
72771
73058
  is_access_code_error: true;
72772
73059
  created_at?: string | undefined;
73060
+ } | {
73061
+ message: string;
73062
+ error_code: "kwikset_insufficient_permissions";
73063
+ is_access_code_error: true;
73064
+ created_at?: string | undefined;
72773
73065
  } | {
72774
73066
  message: string;
72775
73067
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -73065,6 +73357,11 @@ export declare const batch: z.ZodObject<{
73065
73357
  error_code: "kwikset_unable_to_confirm_deletion";
73066
73358
  is_access_code_error: true;
73067
73359
  created_at?: string | undefined;
73360
+ } | {
73361
+ message: string;
73362
+ error_code: "kwikset_insufficient_permissions";
73363
+ is_access_code_error: true;
73364
+ created_at?: string | undefined;
73068
73365
  } | {
73069
73366
  message: string;
73070
73367
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -76077,6 +76374,14 @@ export declare const batch: z.ZodObject<{
76077
76374
  occurred_at: string;
76078
76375
  event_type: "connected_account.completed_first_sync_after_reconnection";
76079
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;
76080
76385
  } | {
76081
76386
  device_id: string;
76082
76387
  workspace_id: string;
@@ -76651,6 +76956,11 @@ export declare const batch: z.ZodObject<{
76651
76956
  error_code: "kwikset_unable_to_confirm_deletion";
76652
76957
  is_access_code_error: true;
76653
76958
  created_at?: string | undefined;
76959
+ } | {
76960
+ message: string;
76961
+ error_code: "kwikset_insufficient_permissions";
76962
+ is_access_code_error: true;
76963
+ created_at?: string | undefined;
76654
76964
  } | {
76655
76965
  message: string;
76656
76966
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -76946,6 +77256,11 @@ export declare const batch: z.ZodObject<{
76946
77256
  error_code: "kwikset_unable_to_confirm_deletion";
76947
77257
  is_access_code_error: true;
76948
77258
  created_at?: string | undefined;
77259
+ } | {
77260
+ message: string;
77261
+ error_code: "kwikset_insufficient_permissions";
77262
+ is_access_code_error: true;
77263
+ created_at?: string | undefined;
76949
77264
  } | {
76950
77265
  message: string;
76951
77266
  error_code: "igloohome_offline_access_code_no_variance_available";
@@ -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;