@seamapi/types 1.739.0 → 1.741.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 (28) hide show
  1. package/dist/connect.cjs +355 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1348 -61
  4. package/dist/index.cjs +355 -4
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-access-group.d.ts +62 -0
  7. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.d.ts +53 -0
  8. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +19 -0
  9. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +62 -0
  11. package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +53 -0
  12. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +19 -0
  13. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
  14. package/lib/seam/connect/models/batch.d.ts +296 -0
  15. package/lib/seam/connect/models/events/devices.d.ts +156 -0
  16. package/lib/seam/connect/models/events/devices.js +25 -0
  17. package/lib/seam/connect/models/events/devices.js.map +1 -1
  18. package/lib/seam/connect/models/events/seam-event.d.ts +77 -1
  19. package/lib/seam/connect/openapi.d.ts +407 -0
  20. package/lib/seam/connect/openapi.js +305 -0
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +388 -4
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +26 -0
  25. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +26 -0
  26. package/src/lib/seam/connect/models/events/devices.ts +31 -0
  27. package/src/lib/seam/connect/openapi.ts +337 -0
  28. package/src/lib/seam/connect/route-types.ts +456 -0
@@ -6062,6 +6062,25 @@ export declare const batch: z.ZodObject<{
6062
6062
  to: {
6063
6063
  acs_access_group_id: string | null;
6064
6064
  };
6065
+ }>, z.ZodObject<{
6066
+ created_at: z.ZodString;
6067
+ message: z.ZodString;
6068
+ } & {
6069
+ mutation_code: z.ZodLiteral<"deferring_group_membership_update">;
6070
+ acs_access_group_id: z.ZodString;
6071
+ variant: z.ZodEnum<["adding", "removing"]>;
6072
+ }, "strip", z.ZodTypeAny, {
6073
+ message: string;
6074
+ created_at: string;
6075
+ mutation_code: "deferring_group_membership_update";
6076
+ variant: "removing" | "adding";
6077
+ acs_access_group_id: string;
6078
+ }, {
6079
+ message: string;
6080
+ created_at: string;
6081
+ mutation_code: "deferring_group_membership_update";
6082
+ variant: "removing" | "adding";
6083
+ acs_access_group_id: string;
6065
6084
  }>]>, "many">>;
6066
6085
  last_successful_sync_at: z.ZodNullable<z.ZodString>;
6067
6086
  connected_account_id: z.ZodString;
@@ -6194,6 +6213,12 @@ export declare const batch: z.ZodObject<{
6194
6213
  to: {
6195
6214
  acs_access_group_id: string | null;
6196
6215
  };
6216
+ } | {
6217
+ message: string;
6218
+ created_at: string;
6219
+ mutation_code: "deferring_group_membership_update";
6220
+ variant: "removing" | "adding";
6221
+ acs_access_group_id: string;
6197
6222
  })[] | undefined;
6198
6223
  external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
6199
6224
  external_type_display_name?: string | undefined;
@@ -6325,6 +6350,12 @@ export declare const batch: z.ZodObject<{
6325
6350
  to: {
6326
6351
  acs_access_group_id: string | null;
6327
6352
  };
6353
+ } | {
6354
+ message: string;
6355
+ created_at: string;
6356
+ mutation_code: "deferring_group_membership_update";
6357
+ variant: "removing" | "adding";
6358
+ acs_access_group_id: string;
6328
6359
  })[] | undefined;
6329
6360
  external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
6330
6361
  external_type_display_name?: string | undefined;
@@ -6586,6 +6617,25 @@ export declare const batch: z.ZodObject<{
6586
6617
  to: {
6587
6618
  acs_entrance_id: string | null;
6588
6619
  };
6620
+ }>, z.ZodObject<{
6621
+ created_at: z.ZodString;
6622
+ message: z.ZodString;
6623
+ } & {
6624
+ mutation_code: z.ZodLiteral<"deferring_user_membership_update">;
6625
+ acs_user_id: z.ZodString;
6626
+ variant: z.ZodEnum<["adding", "removing"]>;
6627
+ }, "strip", z.ZodTypeAny, {
6628
+ message: string;
6629
+ created_at: string;
6630
+ mutation_code: "deferring_user_membership_update";
6631
+ acs_user_id: string;
6632
+ variant: "removing" | "adding";
6633
+ }, {
6634
+ message: string;
6635
+ created_at: string;
6636
+ mutation_code: "deferring_user_membership_update";
6637
+ acs_user_id: string;
6638
+ variant: "removing" | "adding";
6589
6639
  }>]>, "many">;
6590
6640
  } & {
6591
6641
  is_managed: z.ZodLiteral<true>;
@@ -6655,6 +6705,12 @@ export declare const batch: z.ZodObject<{
6655
6705
  to: {
6656
6706
  acs_entrance_id: string | null;
6657
6707
  };
6708
+ } | {
6709
+ message: string;
6710
+ created_at: string;
6711
+ mutation_code: "deferring_user_membership_update";
6712
+ acs_user_id: string;
6713
+ variant: "removing" | "adding";
6658
6714
  })[];
6659
6715
  acs_access_group_id: string;
6660
6716
  acs_system_id: string;
@@ -6732,6 +6788,12 @@ export declare const batch: z.ZodObject<{
6732
6788
  to: {
6733
6789
  acs_entrance_id: string | null;
6734
6790
  };
6791
+ } | {
6792
+ message: string;
6793
+ created_at: string;
6794
+ mutation_code: "deferring_user_membership_update";
6795
+ acs_user_id: string;
6796
+ variant: "removing" | "adding";
6735
6797
  })[];
6736
6798
  acs_access_group_id: string;
6737
6799
  acs_system_id: string;
@@ -11672,6 +11734,25 @@ export declare const batch: z.ZodObject<{
11672
11734
  to: {
11673
11735
  acs_access_group_id: string | null;
11674
11736
  };
11737
+ }>, z.ZodObject<{
11738
+ created_at: z.ZodString;
11739
+ message: z.ZodString;
11740
+ } & {
11741
+ mutation_code: z.ZodLiteral<"deferring_group_membership_update">;
11742
+ acs_access_group_id: z.ZodString;
11743
+ variant: z.ZodEnum<["adding", "removing"]>;
11744
+ }, "strip", z.ZodTypeAny, {
11745
+ message: string;
11746
+ created_at: string;
11747
+ mutation_code: "deferring_group_membership_update";
11748
+ variant: "removing" | "adding";
11749
+ acs_access_group_id: string;
11750
+ }, {
11751
+ message: string;
11752
+ created_at: string;
11753
+ mutation_code: "deferring_group_membership_update";
11754
+ variant: "removing" | "adding";
11755
+ acs_access_group_id: string;
11675
11756
  }>]>, "many">>;
11676
11757
  last_successful_sync_at: z.ZodNullable<z.ZodString>;
11677
11758
  connected_account_id: z.ZodString;
@@ -11804,6 +11885,12 @@ export declare const batch: z.ZodObject<{
11804
11885
  to: {
11805
11886
  acs_access_group_id: string | null;
11806
11887
  };
11888
+ } | {
11889
+ message: string;
11890
+ created_at: string;
11891
+ mutation_code: "deferring_group_membership_update";
11892
+ variant: "removing" | "adding";
11893
+ acs_access_group_id: string;
11807
11894
  })[] | undefined;
11808
11895
  external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
11809
11896
  external_type_display_name?: string | undefined;
@@ -11935,6 +12022,12 @@ export declare const batch: z.ZodObject<{
11935
12022
  to: {
11936
12023
  acs_access_group_id: string | null;
11937
12024
  };
12025
+ } | {
12026
+ message: string;
12027
+ created_at: string;
12028
+ mutation_code: "deferring_group_membership_update";
12029
+ variant: "removing" | "adding";
12030
+ acs_access_group_id: string;
11938
12031
  })[] | undefined;
11939
12032
  external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
11940
12033
  external_type_display_name?: string | undefined;
@@ -12196,6 +12289,25 @@ export declare const batch: z.ZodObject<{
12196
12289
  to: {
12197
12290
  acs_entrance_id: string | null;
12198
12291
  };
12292
+ }>, z.ZodObject<{
12293
+ created_at: z.ZodString;
12294
+ message: z.ZodString;
12295
+ } & {
12296
+ mutation_code: z.ZodLiteral<"deferring_user_membership_update">;
12297
+ acs_user_id: z.ZodString;
12298
+ variant: z.ZodEnum<["adding", "removing"]>;
12299
+ }, "strip", z.ZodTypeAny, {
12300
+ message: string;
12301
+ created_at: string;
12302
+ mutation_code: "deferring_user_membership_update";
12303
+ acs_user_id: string;
12304
+ variant: "removing" | "adding";
12305
+ }, {
12306
+ message: string;
12307
+ created_at: string;
12308
+ mutation_code: "deferring_user_membership_update";
12309
+ acs_user_id: string;
12310
+ variant: "removing" | "adding";
12199
12311
  }>]>, "many">;
12200
12312
  } & {
12201
12313
  is_managed: z.ZodLiteral<false>;
@@ -12265,6 +12377,12 @@ export declare const batch: z.ZodObject<{
12265
12377
  to: {
12266
12378
  acs_entrance_id: string | null;
12267
12379
  };
12380
+ } | {
12381
+ message: string;
12382
+ created_at: string;
12383
+ mutation_code: "deferring_user_membership_update";
12384
+ acs_user_id: string;
12385
+ variant: "removing" | "adding";
12268
12386
  })[];
12269
12387
  acs_access_group_id: string;
12270
12388
  acs_system_id: string;
@@ -12342,6 +12460,12 @@ export declare const batch: z.ZodObject<{
12342
12460
  to: {
12343
12461
  acs_entrance_id: string | null;
12344
12462
  };
12463
+ } | {
12464
+ message: string;
12465
+ created_at: string;
12466
+ mutation_code: "deferring_user_membership_update";
12467
+ acs_user_id: string;
12468
+ variant: "removing" | "adding";
12345
12469
  })[];
12346
12470
  acs_access_group_id: string;
12347
12471
  acs_system_id: string;
@@ -21462,6 +21586,82 @@ export declare const batch: z.ZodObject<{
21462
21586
  workspace_id: z.ZodString;
21463
21587
  created_at: z.ZodString;
21464
21588
  occurred_at: z.ZodString;
21589
+ } & {
21590
+ device_id: z.ZodString;
21591
+ connected_account_id: z.ZodString;
21592
+ customer_key: z.ZodOptional<z.ZodString>;
21593
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
21594
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
21595
+ } & {
21596
+ event_type: z.ZodLiteral<"camera.activated">;
21597
+ activation_reason: z.ZodEnum<["motion_detected"]>;
21598
+ motion_sub_type: z.ZodOptional<z.ZodEnum<["human", "vehicle", "package", "other"]>>;
21599
+ }, "strip", z.ZodTypeAny, {
21600
+ device_id: string;
21601
+ workspace_id: string;
21602
+ created_at: string;
21603
+ connected_account_id: string;
21604
+ event_id: string;
21605
+ occurred_at: string;
21606
+ event_type: "camera.activated";
21607
+ activation_reason: "motion_detected";
21608
+ customer_key?: string | undefined;
21609
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
21610
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
21611
+ motion_sub_type?: "human" | "vehicle" | "package" | "other" | undefined;
21612
+ }, {
21613
+ device_id: string;
21614
+ workspace_id: string;
21615
+ created_at: string;
21616
+ connected_account_id: string;
21617
+ event_id: string;
21618
+ occurred_at: string;
21619
+ event_type: "camera.activated";
21620
+ activation_reason: "motion_detected";
21621
+ customer_key?: string | undefined;
21622
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
21623
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
21624
+ motion_sub_type?: "human" | "vehicle" | "package" | "other" | undefined;
21625
+ }>, z.ZodObject<{
21626
+ event_id: z.ZodString;
21627
+ workspace_id: z.ZodString;
21628
+ created_at: z.ZodString;
21629
+ occurred_at: z.ZodString;
21630
+ } & {
21631
+ device_id: z.ZodString;
21632
+ connected_account_id: z.ZodString;
21633
+ customer_key: z.ZodOptional<z.ZodString>;
21634
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
21635
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
21636
+ } & {
21637
+ event_type: z.ZodLiteral<"device.doorbell_rang">;
21638
+ }, "strip", z.ZodTypeAny, {
21639
+ device_id: string;
21640
+ workspace_id: string;
21641
+ created_at: string;
21642
+ connected_account_id: string;
21643
+ event_id: string;
21644
+ occurred_at: string;
21645
+ event_type: "device.doorbell_rang";
21646
+ customer_key?: string | undefined;
21647
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
21648
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
21649
+ }, {
21650
+ device_id: string;
21651
+ workspace_id: string;
21652
+ created_at: string;
21653
+ connected_account_id: string;
21654
+ event_id: string;
21655
+ occurred_at: string;
21656
+ event_type: "device.doorbell_rang";
21657
+ customer_key?: string | undefined;
21658
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
21659
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
21660
+ }>, z.ZodObject<{
21661
+ event_id: z.ZodString;
21662
+ workspace_id: z.ZodString;
21663
+ created_at: z.ZodString;
21664
+ occurred_at: z.ZodString;
21465
21665
  } & {
21466
21666
  enrollment_automation_id: z.ZodString;
21467
21667
  } & {
@@ -25931,6 +26131,12 @@ export declare const batch: z.ZodObject<{
25931
26131
  to: {
25932
26132
  acs_access_group_id: string | null;
25933
26133
  };
26134
+ } | {
26135
+ message: string;
26136
+ created_at: string;
26137
+ mutation_code: "deferring_group_membership_update";
26138
+ variant: "removing" | "adding";
26139
+ acs_access_group_id: string;
25934
26140
  })[] | undefined;
25935
26141
  external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
25936
26142
  external_type_display_name?: string | undefined;
@@ -26017,6 +26223,12 @@ export declare const batch: z.ZodObject<{
26017
26223
  to: {
26018
26224
  acs_entrance_id: string | null;
26019
26225
  };
26226
+ } | {
26227
+ message: string;
26228
+ created_at: string;
26229
+ mutation_code: "deferring_user_membership_update";
26230
+ acs_user_id: string;
26231
+ variant: "removing" | "adding";
26020
26232
  })[];
26021
26233
  acs_access_group_id: string;
26022
26234
  acs_system_id: string;
@@ -27044,6 +27256,12 @@ export declare const batch: z.ZodObject<{
27044
27256
  to: {
27045
27257
  acs_access_group_id: string | null;
27046
27258
  };
27259
+ } | {
27260
+ message: string;
27261
+ created_at: string;
27262
+ mutation_code: "deferring_group_membership_update";
27263
+ variant: "removing" | "adding";
27264
+ acs_access_group_id: string;
27047
27265
  })[] | undefined;
27048
27266
  external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
27049
27267
  external_type_display_name?: string | undefined;
@@ -27130,6 +27348,12 @@ export declare const batch: z.ZodObject<{
27130
27348
  to: {
27131
27349
  acs_entrance_id: string | null;
27132
27350
  };
27351
+ } | {
27352
+ message: string;
27353
+ created_at: string;
27354
+ mutation_code: "deferring_user_membership_update";
27355
+ acs_user_id: string;
27356
+ variant: "removing" | "adding";
27133
27357
  })[];
27134
27358
  acs_access_group_id: string;
27135
27359
  acs_system_id: string;
@@ -28874,6 +29098,30 @@ export declare const batch: z.ZodObject<{
28874
29098
  customer_key?: string | undefined;
28875
29099
  device_custom_metadata?: Record<string, string | boolean> | undefined;
28876
29100
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
29101
+ } | {
29102
+ device_id: string;
29103
+ workspace_id: string;
29104
+ created_at: string;
29105
+ connected_account_id: string;
29106
+ event_id: string;
29107
+ occurred_at: string;
29108
+ event_type: "camera.activated";
29109
+ activation_reason: "motion_detected";
29110
+ customer_key?: string | undefined;
29111
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
29112
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
29113
+ motion_sub_type?: "human" | "vehicle" | "package" | "other" | undefined;
29114
+ } | {
29115
+ device_id: string;
29116
+ workspace_id: string;
29117
+ created_at: string;
29118
+ connected_account_id: string;
29119
+ event_id: string;
29120
+ occurred_at: string;
29121
+ event_type: "device.doorbell_rang";
29122
+ customer_key?: string | undefined;
29123
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
29124
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
28877
29125
  } | {
28878
29126
  workspace_id: string;
28879
29127
  created_at: string;
@@ -30668,6 +30916,12 @@ export declare const batch: z.ZodObject<{
30668
30916
  to: {
30669
30917
  acs_access_group_id: string | null;
30670
30918
  };
30919
+ } | {
30920
+ message: string;
30921
+ created_at: string;
30922
+ mutation_code: "deferring_group_membership_update";
30923
+ variant: "removing" | "adding";
30924
+ acs_access_group_id: string;
30671
30925
  })[] | undefined;
30672
30926
  external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
30673
30927
  external_type_display_name?: string | undefined;
@@ -30754,6 +31008,12 @@ export declare const batch: z.ZodObject<{
30754
31008
  to: {
30755
31009
  acs_entrance_id: string | null;
30756
31010
  };
31011
+ } | {
31012
+ message: string;
31013
+ created_at: string;
31014
+ mutation_code: "deferring_user_membership_update";
31015
+ acs_user_id: string;
31016
+ variant: "removing" | "adding";
30757
31017
  })[];
30758
31018
  acs_access_group_id: string;
30759
31019
  acs_system_id: string;
@@ -31781,6 +32041,12 @@ export declare const batch: z.ZodObject<{
31781
32041
  to: {
31782
32042
  acs_access_group_id: string | null;
31783
32043
  };
32044
+ } | {
32045
+ message: string;
32046
+ created_at: string;
32047
+ mutation_code: "deferring_group_membership_update";
32048
+ variant: "removing" | "adding";
32049
+ acs_access_group_id: string;
31784
32050
  })[] | undefined;
31785
32051
  external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | "dormakaba_community_user" | "salto_space_user" | undefined;
31786
32052
  external_type_display_name?: string | undefined;
@@ -31867,6 +32133,12 @@ export declare const batch: z.ZodObject<{
31867
32133
  to: {
31868
32134
  acs_entrance_id: string | null;
31869
32135
  };
32136
+ } | {
32137
+ message: string;
32138
+ created_at: string;
32139
+ mutation_code: "deferring_user_membership_update";
32140
+ acs_user_id: string;
32141
+ variant: "removing" | "adding";
31870
32142
  })[];
31871
32143
  acs_access_group_id: string;
31872
32144
  acs_system_id: string;
@@ -33611,6 +33883,30 @@ export declare const batch: z.ZodObject<{
33611
33883
  customer_key?: string | undefined;
33612
33884
  device_custom_metadata?: Record<string, string | boolean> | undefined;
33613
33885
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
33886
+ } | {
33887
+ device_id: string;
33888
+ workspace_id: string;
33889
+ created_at: string;
33890
+ connected_account_id: string;
33891
+ event_id: string;
33892
+ occurred_at: string;
33893
+ event_type: "camera.activated";
33894
+ activation_reason: "motion_detected";
33895
+ customer_key?: string | undefined;
33896
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
33897
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
33898
+ motion_sub_type?: "human" | "vehicle" | "package" | "other" | undefined;
33899
+ } | {
33900
+ device_id: string;
33901
+ workspace_id: string;
33902
+ created_at: string;
33903
+ connected_account_id: string;
33904
+ event_id: string;
33905
+ occurred_at: string;
33906
+ event_type: "device.doorbell_rang";
33907
+ customer_key?: string | undefined;
33908
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
33909
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
33614
33910
  } | {
33615
33911
  workspace_id: string;
33616
33912
  created_at: string;
@@ -1868,6 +1868,86 @@ export declare const device_name_changed_event: z.ZodObject<{
1868
1868
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1869
1869
  }>;
1870
1870
  export type DeviceNameChangedEvent = z.infer<typeof device_name_changed_event>;
1871
+ export declare const camera_activated_event: z.ZodObject<{
1872
+ event_id: z.ZodString;
1873
+ workspace_id: z.ZodString;
1874
+ created_at: z.ZodString;
1875
+ occurred_at: z.ZodString;
1876
+ } & {
1877
+ device_id: z.ZodString;
1878
+ connected_account_id: z.ZodString;
1879
+ customer_key: z.ZodOptional<z.ZodString>;
1880
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
1881
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
1882
+ } & {
1883
+ event_type: z.ZodLiteral<"camera.activated">;
1884
+ activation_reason: z.ZodEnum<["motion_detected"]>;
1885
+ motion_sub_type: z.ZodOptional<z.ZodEnum<["human", "vehicle", "package", "other"]>>;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ device_id: string;
1888
+ workspace_id: string;
1889
+ created_at: string;
1890
+ connected_account_id: string;
1891
+ event_id: string;
1892
+ occurred_at: string;
1893
+ event_type: "camera.activated";
1894
+ activation_reason: "motion_detected";
1895
+ customer_key?: string | undefined;
1896
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
1897
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1898
+ motion_sub_type?: "human" | "vehicle" | "package" | "other" | undefined;
1899
+ }, {
1900
+ device_id: string;
1901
+ workspace_id: string;
1902
+ created_at: string;
1903
+ connected_account_id: string;
1904
+ event_id: string;
1905
+ occurred_at: string;
1906
+ event_type: "camera.activated";
1907
+ activation_reason: "motion_detected";
1908
+ customer_key?: string | undefined;
1909
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
1910
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1911
+ motion_sub_type?: "human" | "vehicle" | "package" | "other" | undefined;
1912
+ }>;
1913
+ export type CameraActivatedEvent = z.infer<typeof camera_activated_event>;
1914
+ export declare const device_doorbell_rang_event: z.ZodObject<{
1915
+ event_id: z.ZodString;
1916
+ workspace_id: z.ZodString;
1917
+ created_at: z.ZodString;
1918
+ occurred_at: z.ZodString;
1919
+ } & {
1920
+ device_id: z.ZodString;
1921
+ connected_account_id: z.ZodString;
1922
+ customer_key: z.ZodOptional<z.ZodString>;
1923
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
1924
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
1925
+ } & {
1926
+ event_type: z.ZodLiteral<"device.doorbell_rang">;
1927
+ }, "strip", z.ZodTypeAny, {
1928
+ device_id: string;
1929
+ workspace_id: string;
1930
+ created_at: string;
1931
+ connected_account_id: string;
1932
+ event_id: string;
1933
+ occurred_at: string;
1934
+ event_type: "device.doorbell_rang";
1935
+ customer_key?: string | undefined;
1936
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
1937
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1938
+ }, {
1939
+ device_id: string;
1940
+ workspace_id: string;
1941
+ created_at: string;
1942
+ connected_account_id: string;
1943
+ event_id: string;
1944
+ occurred_at: string;
1945
+ event_type: "device.doorbell_rang";
1946
+ customer_key?: string | undefined;
1947
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
1948
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
1949
+ }>;
1950
+ export type DeviceDoorbellRangEvent = z.infer<typeof device_doorbell_rang_event>;
1871
1951
  export declare const device_events: readonly [z.ZodObject<{
1872
1952
  event_id: z.ZodString;
1873
1953
  workspace_id: z.ZodString;
@@ -3668,4 +3748,80 @@ export declare const device_events: readonly [z.ZodObject<{
3668
3748
  customer_key?: string | undefined;
3669
3749
  device_custom_metadata?: Record<string, string | boolean> | undefined;
3670
3750
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
3751
+ }>, z.ZodObject<{
3752
+ event_id: z.ZodString;
3753
+ workspace_id: z.ZodString;
3754
+ created_at: z.ZodString;
3755
+ occurred_at: z.ZodString;
3756
+ } & {
3757
+ device_id: z.ZodString;
3758
+ connected_account_id: z.ZodString;
3759
+ customer_key: z.ZodOptional<z.ZodString>;
3760
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
3761
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
3762
+ } & {
3763
+ event_type: z.ZodLiteral<"camera.activated">;
3764
+ activation_reason: z.ZodEnum<["motion_detected"]>;
3765
+ motion_sub_type: z.ZodOptional<z.ZodEnum<["human", "vehicle", "package", "other"]>>;
3766
+ }, "strip", z.ZodTypeAny, {
3767
+ device_id: string;
3768
+ workspace_id: string;
3769
+ created_at: string;
3770
+ connected_account_id: string;
3771
+ event_id: string;
3772
+ occurred_at: string;
3773
+ event_type: "camera.activated";
3774
+ activation_reason: "motion_detected";
3775
+ customer_key?: string | undefined;
3776
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
3777
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
3778
+ motion_sub_type?: "human" | "vehicle" | "package" | "other" | undefined;
3779
+ }, {
3780
+ device_id: string;
3781
+ workspace_id: string;
3782
+ created_at: string;
3783
+ connected_account_id: string;
3784
+ event_id: string;
3785
+ occurred_at: string;
3786
+ event_type: "camera.activated";
3787
+ activation_reason: "motion_detected";
3788
+ customer_key?: string | undefined;
3789
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
3790
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
3791
+ motion_sub_type?: "human" | "vehicle" | "package" | "other" | undefined;
3792
+ }>, z.ZodObject<{
3793
+ event_id: z.ZodString;
3794
+ workspace_id: z.ZodString;
3795
+ created_at: z.ZodString;
3796
+ occurred_at: z.ZodString;
3797
+ } & {
3798
+ device_id: z.ZodString;
3799
+ connected_account_id: z.ZodString;
3800
+ customer_key: z.ZodOptional<z.ZodString>;
3801
+ device_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
3802
+ connected_account_custom_metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>>;
3803
+ } & {
3804
+ event_type: z.ZodLiteral<"device.doorbell_rang">;
3805
+ }, "strip", z.ZodTypeAny, {
3806
+ device_id: string;
3807
+ workspace_id: string;
3808
+ created_at: string;
3809
+ connected_account_id: string;
3810
+ event_id: string;
3811
+ occurred_at: string;
3812
+ event_type: "device.doorbell_rang";
3813
+ customer_key?: string | undefined;
3814
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
3815
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
3816
+ }, {
3817
+ device_id: string;
3818
+ workspace_id: string;
3819
+ created_at: string;
3820
+ connected_account_id: string;
3821
+ event_id: string;
3822
+ occurred_at: string;
3823
+ event_type: "device.doorbell_rang";
3824
+ customer_key?: string | undefined;
3825
+ device_custom_metadata?: Record<string, string | boolean> | undefined;
3826
+ connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
3671
3827
  }>];
@@ -501,6 +501,29 @@ export const device_name_changed_event = device_event.extend({
501
501
  ---
502
502
  The name of a [device](https://docs.seam.co/latest/core-concepts/devices) was changed.
503
503
  `);
504
+ export const camera_activated_event = device_event.extend({
505
+ event_type: z.literal('camera.activated'),
506
+ activation_reason: z
507
+ .enum(['motion_detected'])
508
+ .describe('The reason the camera was activated.'),
509
+ motion_sub_type: z
510
+ .enum(['human', 'vehicle', 'package', 'other'])
511
+ .optional()
512
+ .describe('Sub-type of motion detected, if available.'),
513
+ }).describe(`
514
+ ---
515
+ route_path: /devices
516
+ ---
517
+ A [camera](https://docs.seam.co/latest/core-concepts/devices) was activated, for example, by motion detection.
518
+ `);
519
+ export const device_doorbell_rang_event = device_event.extend({
520
+ event_type: z.literal('device.doorbell_rang'),
521
+ }).describe(`
522
+ ---
523
+ route_path: /devices
524
+ ---
525
+ A doorbell button was pressed on a [device](https://docs.seam.co/latest/core-concepts/devices).
526
+ `);
504
527
  export const device_events = [
505
528
  device_connected_event,
506
529
  device_added_event,
@@ -535,5 +558,7 @@ export const device_events = [
535
558
  temperature_reached_set_point_event,
536
559
  temperature_changed_event,
537
560
  device_name_changed_event,
561
+ camera_activated_event,
562
+ device_doorbell_rang_event,
538
563
  ];
539
564
  //# sourceMappingURL=devices.js.map