@seamapi/types 1.553.0 → 1.554.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.
- package/dist/connect.cjs +158 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +669 -4
- package/dist/index.cjs +158 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +208 -0
- package/lib/seam/connect/models/events/access-grants.d.ts +66 -0
- package/lib/seam/connect/models/events/access-grants.js +21 -0
- package/lib/seam/connect/models/events/access-grants.js.map +1 -1
- package/lib/seam/connect/models/events/access-methods.d.ts +65 -0
- package/lib/seam/connect/models/events/access-methods.js +12 -0
- package/lib/seam/connect/models/events/access-methods.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +65 -1
- package/lib/seam/connect/openapi.d.ts +317 -0
- package/lib/seam/connect/openapi.js +132 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +184 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/access-grants.ts +27 -0
- package/src/lib/seam/connect/models/events/access-methods.ts +15 -0
- package/src/lib/seam/connect/openapi.ts +137 -0
- package/src/lib/seam/connect/route-types.ts +198 -0
|
@@ -35662,6 +35662,38 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
35662
35662
|
workspace_id: z.ZodString;
|
|
35663
35663
|
created_at: z.ZodString;
|
|
35664
35664
|
occurred_at: z.ZodString;
|
|
35665
|
+
} & {
|
|
35666
|
+
access_grant_id: z.ZodString;
|
|
35667
|
+
} & {
|
|
35668
|
+
event_type: z.ZodLiteral<"access_grant.access_times_changed">;
|
|
35669
|
+
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
35670
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
35671
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
35672
|
+
}, "strip", z.ZodTypeAny, {
|
|
35673
|
+
workspace_id: string;
|
|
35674
|
+
created_at: string;
|
|
35675
|
+
access_grant_id: string;
|
|
35676
|
+
event_id: string;
|
|
35677
|
+
occurred_at: string;
|
|
35678
|
+
event_type: "access_grant.access_times_changed";
|
|
35679
|
+
starts_at?: string | undefined;
|
|
35680
|
+
ends_at?: string | undefined;
|
|
35681
|
+
access_grant_key?: string | undefined;
|
|
35682
|
+
}, {
|
|
35683
|
+
workspace_id: string;
|
|
35684
|
+
created_at: string;
|
|
35685
|
+
access_grant_id: string;
|
|
35686
|
+
event_id: string;
|
|
35687
|
+
occurred_at: string;
|
|
35688
|
+
event_type: "access_grant.access_times_changed";
|
|
35689
|
+
starts_at?: string | undefined;
|
|
35690
|
+
ends_at?: string | undefined;
|
|
35691
|
+
access_grant_key?: string | undefined;
|
|
35692
|
+
}>, z.ZodObject<{
|
|
35693
|
+
event_id: z.ZodString;
|
|
35694
|
+
workspace_id: z.ZodString;
|
|
35695
|
+
created_at: z.ZodString;
|
|
35696
|
+
occurred_at: z.ZodString;
|
|
35665
35697
|
} & {
|
|
35666
35698
|
access_method_id: z.ZodString;
|
|
35667
35699
|
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -35819,6 +35851,38 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
35819
35851
|
workspace_id: z.ZodString;
|
|
35820
35852
|
created_at: z.ZodString;
|
|
35821
35853
|
occurred_at: z.ZodString;
|
|
35854
|
+
} & {
|
|
35855
|
+
access_method_id: z.ZodString;
|
|
35856
|
+
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
35857
|
+
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35858
|
+
} & {
|
|
35859
|
+
event_type: z.ZodLiteral<"access_method.code_changed">;
|
|
35860
|
+
code: z.ZodString;
|
|
35861
|
+
}, "strip", z.ZodTypeAny, {
|
|
35862
|
+
code: string;
|
|
35863
|
+
workspace_id: string;
|
|
35864
|
+
created_at: string;
|
|
35865
|
+
access_method_id: string;
|
|
35866
|
+
event_id: string;
|
|
35867
|
+
occurred_at: string;
|
|
35868
|
+
event_type: "access_method.code_changed";
|
|
35869
|
+
access_grant_ids: string[];
|
|
35870
|
+
access_grant_keys?: string[] | undefined;
|
|
35871
|
+
}, {
|
|
35872
|
+
code: string;
|
|
35873
|
+
workspace_id: string;
|
|
35874
|
+
created_at: string;
|
|
35875
|
+
access_method_id: string;
|
|
35876
|
+
event_id: string;
|
|
35877
|
+
occurred_at: string;
|
|
35878
|
+
event_type: "access_method.code_changed";
|
|
35879
|
+
access_grant_ids: string[];
|
|
35880
|
+
access_grant_keys?: string[] | undefined;
|
|
35881
|
+
}>, z.ZodObject<{
|
|
35882
|
+
event_id: z.ZodString;
|
|
35883
|
+
workspace_id: z.ZodString;
|
|
35884
|
+
created_at: z.ZodString;
|
|
35885
|
+
occurred_at: z.ZodString;
|
|
35822
35886
|
} & {
|
|
35823
35887
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
35824
35888
|
acs_system_id: z.ZodString;
|
|
@@ -43738,6 +43802,16 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
43738
43802
|
event_id: string;
|
|
43739
43803
|
occurred_at: string;
|
|
43740
43804
|
event_type: "access_grant.access_to_door_lost";
|
|
43805
|
+
} | {
|
|
43806
|
+
workspace_id: string;
|
|
43807
|
+
created_at: string;
|
|
43808
|
+
access_grant_id: string;
|
|
43809
|
+
event_id: string;
|
|
43810
|
+
occurred_at: string;
|
|
43811
|
+
event_type: "access_grant.access_times_changed";
|
|
43812
|
+
starts_at?: string | undefined;
|
|
43813
|
+
ends_at?: string | undefined;
|
|
43814
|
+
access_grant_key?: string | undefined;
|
|
43741
43815
|
} | {
|
|
43742
43816
|
workspace_id: string;
|
|
43743
43817
|
created_at: string;
|
|
@@ -43787,6 +43861,16 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
43787
43861
|
code?: string | undefined;
|
|
43788
43862
|
access_grant_keys?: string[] | undefined;
|
|
43789
43863
|
is_backup_code?: boolean | undefined;
|
|
43864
|
+
} | {
|
|
43865
|
+
code: string;
|
|
43866
|
+
workspace_id: string;
|
|
43867
|
+
created_at: string;
|
|
43868
|
+
access_method_id: string;
|
|
43869
|
+
event_id: string;
|
|
43870
|
+
occurred_at: string;
|
|
43871
|
+
event_type: "access_method.code_changed";
|
|
43872
|
+
access_grant_ids: string[];
|
|
43873
|
+
access_grant_keys?: string[] | undefined;
|
|
43790
43874
|
} | {
|
|
43791
43875
|
workspace_id: string;
|
|
43792
43876
|
created_at: string;
|
|
@@ -47692,6 +47776,16 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
47692
47776
|
event_id: string;
|
|
47693
47777
|
occurred_at: string;
|
|
47694
47778
|
event_type: "access_grant.access_to_door_lost";
|
|
47779
|
+
} | {
|
|
47780
|
+
workspace_id: string;
|
|
47781
|
+
created_at: string;
|
|
47782
|
+
access_grant_id: string;
|
|
47783
|
+
event_id: string;
|
|
47784
|
+
occurred_at: string;
|
|
47785
|
+
event_type: "access_grant.access_times_changed";
|
|
47786
|
+
starts_at?: string | undefined;
|
|
47787
|
+
ends_at?: string | undefined;
|
|
47788
|
+
access_grant_key?: string | undefined;
|
|
47695
47789
|
} | {
|
|
47696
47790
|
workspace_id: string;
|
|
47697
47791
|
created_at: string;
|
|
@@ -47741,6 +47835,16 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
47741
47835
|
code?: string | undefined;
|
|
47742
47836
|
access_grant_keys?: string[] | undefined;
|
|
47743
47837
|
is_backup_code?: boolean | undefined;
|
|
47838
|
+
} | {
|
|
47839
|
+
code: string;
|
|
47840
|
+
workspace_id: string;
|
|
47841
|
+
created_at: string;
|
|
47842
|
+
access_method_id: string;
|
|
47843
|
+
event_id: string;
|
|
47844
|
+
occurred_at: string;
|
|
47845
|
+
event_type: "access_method.code_changed";
|
|
47846
|
+
access_grant_ids: string[];
|
|
47847
|
+
access_grant_keys?: string[] | undefined;
|
|
47744
47848
|
} | {
|
|
47745
47849
|
workspace_id: string;
|
|
47746
47850
|
created_at: string;
|
|
@@ -64229,6 +64333,38 @@ export declare const batch: z.ZodObject<{
|
|
|
64229
64333
|
workspace_id: z.ZodString;
|
|
64230
64334
|
created_at: z.ZodString;
|
|
64231
64335
|
occurred_at: z.ZodString;
|
|
64336
|
+
} & {
|
|
64337
|
+
access_grant_id: z.ZodString;
|
|
64338
|
+
} & {
|
|
64339
|
+
event_type: z.ZodLiteral<"access_grant.access_times_changed">;
|
|
64340
|
+
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
64341
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
64342
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
64343
|
+
}, "strip", z.ZodTypeAny, {
|
|
64344
|
+
workspace_id: string;
|
|
64345
|
+
created_at: string;
|
|
64346
|
+
access_grant_id: string;
|
|
64347
|
+
event_id: string;
|
|
64348
|
+
occurred_at: string;
|
|
64349
|
+
event_type: "access_grant.access_times_changed";
|
|
64350
|
+
starts_at?: string | undefined;
|
|
64351
|
+
ends_at?: string | undefined;
|
|
64352
|
+
access_grant_key?: string | undefined;
|
|
64353
|
+
}, {
|
|
64354
|
+
workspace_id: string;
|
|
64355
|
+
created_at: string;
|
|
64356
|
+
access_grant_id: string;
|
|
64357
|
+
event_id: string;
|
|
64358
|
+
occurred_at: string;
|
|
64359
|
+
event_type: "access_grant.access_times_changed";
|
|
64360
|
+
starts_at?: string | undefined;
|
|
64361
|
+
ends_at?: string | undefined;
|
|
64362
|
+
access_grant_key?: string | undefined;
|
|
64363
|
+
}>, z.ZodObject<{
|
|
64364
|
+
event_id: z.ZodString;
|
|
64365
|
+
workspace_id: z.ZodString;
|
|
64366
|
+
created_at: z.ZodString;
|
|
64367
|
+
occurred_at: z.ZodString;
|
|
64232
64368
|
} & {
|
|
64233
64369
|
access_method_id: z.ZodString;
|
|
64234
64370
|
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -64386,6 +64522,38 @@ export declare const batch: z.ZodObject<{
|
|
|
64386
64522
|
workspace_id: z.ZodString;
|
|
64387
64523
|
created_at: z.ZodString;
|
|
64388
64524
|
occurred_at: z.ZodString;
|
|
64525
|
+
} & {
|
|
64526
|
+
access_method_id: z.ZodString;
|
|
64527
|
+
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
64528
|
+
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
64529
|
+
} & {
|
|
64530
|
+
event_type: z.ZodLiteral<"access_method.code_changed">;
|
|
64531
|
+
code: z.ZodString;
|
|
64532
|
+
}, "strip", z.ZodTypeAny, {
|
|
64533
|
+
code: string;
|
|
64534
|
+
workspace_id: string;
|
|
64535
|
+
created_at: string;
|
|
64536
|
+
access_method_id: string;
|
|
64537
|
+
event_id: string;
|
|
64538
|
+
occurred_at: string;
|
|
64539
|
+
event_type: "access_method.code_changed";
|
|
64540
|
+
access_grant_ids: string[];
|
|
64541
|
+
access_grant_keys?: string[] | undefined;
|
|
64542
|
+
}, {
|
|
64543
|
+
code: string;
|
|
64544
|
+
workspace_id: string;
|
|
64545
|
+
created_at: string;
|
|
64546
|
+
access_method_id: string;
|
|
64547
|
+
event_id: string;
|
|
64548
|
+
occurred_at: string;
|
|
64549
|
+
event_type: "access_method.code_changed";
|
|
64550
|
+
access_grant_ids: string[];
|
|
64551
|
+
access_grant_keys?: string[] | undefined;
|
|
64552
|
+
}>, z.ZodObject<{
|
|
64553
|
+
event_id: z.ZodString;
|
|
64554
|
+
workspace_id: z.ZodString;
|
|
64555
|
+
created_at: z.ZodString;
|
|
64556
|
+
occurred_at: z.ZodString;
|
|
64389
64557
|
} & {
|
|
64390
64558
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
64391
64559
|
acs_system_id: z.ZodString;
|
|
@@ -72234,6 +72402,16 @@ export declare const batch: z.ZodObject<{
|
|
|
72234
72402
|
event_id: string;
|
|
72235
72403
|
occurred_at: string;
|
|
72236
72404
|
event_type: "access_grant.access_to_door_lost";
|
|
72405
|
+
} | {
|
|
72406
|
+
workspace_id: string;
|
|
72407
|
+
created_at: string;
|
|
72408
|
+
access_grant_id: string;
|
|
72409
|
+
event_id: string;
|
|
72410
|
+
occurred_at: string;
|
|
72411
|
+
event_type: "access_grant.access_times_changed";
|
|
72412
|
+
starts_at?: string | undefined;
|
|
72413
|
+
ends_at?: string | undefined;
|
|
72414
|
+
access_grant_key?: string | undefined;
|
|
72237
72415
|
} | {
|
|
72238
72416
|
workspace_id: string;
|
|
72239
72417
|
created_at: string;
|
|
@@ -72283,6 +72461,16 @@ export declare const batch: z.ZodObject<{
|
|
|
72283
72461
|
code?: string | undefined;
|
|
72284
72462
|
access_grant_keys?: string[] | undefined;
|
|
72285
72463
|
is_backup_code?: boolean | undefined;
|
|
72464
|
+
} | {
|
|
72465
|
+
code: string;
|
|
72466
|
+
workspace_id: string;
|
|
72467
|
+
created_at: string;
|
|
72468
|
+
access_method_id: string;
|
|
72469
|
+
event_id: string;
|
|
72470
|
+
occurred_at: string;
|
|
72471
|
+
event_type: "access_method.code_changed";
|
|
72472
|
+
access_grant_ids: string[];
|
|
72473
|
+
access_grant_keys?: string[] | undefined;
|
|
72286
72474
|
} | {
|
|
72287
72475
|
workspace_id: string;
|
|
72288
72476
|
created_at: string;
|
|
@@ -76117,6 +76305,16 @@ export declare const batch: z.ZodObject<{
|
|
|
76117
76305
|
event_id: string;
|
|
76118
76306
|
occurred_at: string;
|
|
76119
76307
|
event_type: "access_grant.access_to_door_lost";
|
|
76308
|
+
} | {
|
|
76309
|
+
workspace_id: string;
|
|
76310
|
+
created_at: string;
|
|
76311
|
+
access_grant_id: string;
|
|
76312
|
+
event_id: string;
|
|
76313
|
+
occurred_at: string;
|
|
76314
|
+
event_type: "access_grant.access_times_changed";
|
|
76315
|
+
starts_at?: string | undefined;
|
|
76316
|
+
ends_at?: string | undefined;
|
|
76317
|
+
access_grant_key?: string | undefined;
|
|
76120
76318
|
} | {
|
|
76121
76319
|
workspace_id: string;
|
|
76122
76320
|
created_at: string;
|
|
@@ -76166,6 +76364,16 @@ export declare const batch: z.ZodObject<{
|
|
|
76166
76364
|
code?: string | undefined;
|
|
76167
76365
|
access_grant_keys?: string[] | undefined;
|
|
76168
76366
|
is_backup_code?: boolean | undefined;
|
|
76367
|
+
} | {
|
|
76368
|
+
code: string;
|
|
76369
|
+
workspace_id: string;
|
|
76370
|
+
created_at: string;
|
|
76371
|
+
access_method_id: string;
|
|
76372
|
+
event_id: string;
|
|
76373
|
+
occurred_at: string;
|
|
76374
|
+
event_type: "access_method.code_changed";
|
|
76375
|
+
access_grant_ids: string[];
|
|
76376
|
+
access_grant_keys?: string[] | undefined;
|
|
76169
76377
|
} | {
|
|
76170
76378
|
workspace_id: string;
|
|
76171
76379
|
created_at: string;
|
|
@@ -128,6 +128,40 @@ export declare const access_grant_access_to_door_lost_event: z.ZodObject<{
|
|
|
128
128
|
event_type: "access_grant.access_to_door_lost";
|
|
129
129
|
}>;
|
|
130
130
|
export type AccessGrantAccessToDoorLostEvent = z.infer<typeof access_grant_access_to_door_lost_event>;
|
|
131
|
+
export declare const access_grant_access_times_changed_event: z.ZodObject<{
|
|
132
|
+
event_id: z.ZodString;
|
|
133
|
+
workspace_id: z.ZodString;
|
|
134
|
+
created_at: z.ZodString;
|
|
135
|
+
occurred_at: z.ZodString;
|
|
136
|
+
} & {
|
|
137
|
+
access_grant_id: z.ZodString;
|
|
138
|
+
} & {
|
|
139
|
+
event_type: z.ZodLiteral<"access_grant.access_times_changed">;
|
|
140
|
+
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
141
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
142
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
workspace_id: string;
|
|
145
|
+
created_at: string;
|
|
146
|
+
access_grant_id: string;
|
|
147
|
+
event_id: string;
|
|
148
|
+
occurred_at: string;
|
|
149
|
+
event_type: "access_grant.access_times_changed";
|
|
150
|
+
starts_at?: string | undefined;
|
|
151
|
+
ends_at?: string | undefined;
|
|
152
|
+
access_grant_key?: string | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
workspace_id: string;
|
|
155
|
+
created_at: string;
|
|
156
|
+
access_grant_id: string;
|
|
157
|
+
event_id: string;
|
|
158
|
+
occurred_at: string;
|
|
159
|
+
event_type: "access_grant.access_times_changed";
|
|
160
|
+
starts_at?: string | undefined;
|
|
161
|
+
ends_at?: string | undefined;
|
|
162
|
+
access_grant_key?: string | undefined;
|
|
163
|
+
}>;
|
|
164
|
+
export type AccessGrantAccessTimesChangedEvent = z.infer<typeof access_grant_access_times_changed_event>;
|
|
131
165
|
export declare const access_grant_events: readonly [z.ZodObject<{
|
|
132
166
|
event_id: z.ZodString;
|
|
133
167
|
workspace_id: z.ZodString;
|
|
@@ -249,4 +283,36 @@ export declare const access_grant_events: readonly [z.ZodObject<{
|
|
|
249
283
|
event_id: string;
|
|
250
284
|
occurred_at: string;
|
|
251
285
|
event_type: "access_grant.access_to_door_lost";
|
|
286
|
+
}>, z.ZodObject<{
|
|
287
|
+
event_id: z.ZodString;
|
|
288
|
+
workspace_id: z.ZodString;
|
|
289
|
+
created_at: z.ZodString;
|
|
290
|
+
occurred_at: z.ZodString;
|
|
291
|
+
} & {
|
|
292
|
+
access_grant_id: z.ZodString;
|
|
293
|
+
} & {
|
|
294
|
+
event_type: z.ZodLiteral<"access_grant.access_times_changed">;
|
|
295
|
+
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
296
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
297
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
workspace_id: string;
|
|
300
|
+
created_at: string;
|
|
301
|
+
access_grant_id: string;
|
|
302
|
+
event_id: string;
|
|
303
|
+
occurred_at: string;
|
|
304
|
+
event_type: "access_grant.access_times_changed";
|
|
305
|
+
starts_at?: string | undefined;
|
|
306
|
+
ends_at?: string | undefined;
|
|
307
|
+
access_grant_key?: string | undefined;
|
|
308
|
+
}, {
|
|
309
|
+
workspace_id: string;
|
|
310
|
+
created_at: string;
|
|
311
|
+
access_grant_id: string;
|
|
312
|
+
event_id: string;
|
|
313
|
+
occurred_at: string;
|
|
314
|
+
event_type: "access_grant.access_times_changed";
|
|
315
|
+
starts_at?: string | undefined;
|
|
316
|
+
ends_at?: string | undefined;
|
|
317
|
+
access_grant_key?: string | undefined;
|
|
252
318
|
}>];
|
|
@@ -52,11 +52,32 @@ export const access_grant_access_to_door_lost_event = access_grant_event.extend(
|
|
|
52
52
|
---
|
|
53
53
|
Access to a particular door that was requested as part of an Access Grant was lost.
|
|
54
54
|
`);
|
|
55
|
+
export const access_grant_access_times_changed_event = access_grant_event.extend({
|
|
56
|
+
event_type: z.literal('access_grant.access_times_changed'),
|
|
57
|
+
access_grant_key: z
|
|
58
|
+
.string()
|
|
59
|
+
.optional()
|
|
60
|
+
.describe('Key of the affected Access Grant (if present).'),
|
|
61
|
+
starts_at: z
|
|
62
|
+
.string()
|
|
63
|
+
.optional()
|
|
64
|
+
.describe('The new start time for the access grant.'),
|
|
65
|
+
ends_at: z
|
|
66
|
+
.string()
|
|
67
|
+
.optional()
|
|
68
|
+
.describe('The new end time for the access grant.'),
|
|
69
|
+
}).describe(`
|
|
70
|
+
---
|
|
71
|
+
route_path: /access_grants
|
|
72
|
+
---
|
|
73
|
+
An Access Grant's start or end time was changed.
|
|
74
|
+
`);
|
|
55
75
|
export const access_grant_events = [
|
|
56
76
|
access_grant_created_event,
|
|
57
77
|
access_grant_deleted_event,
|
|
58
78
|
access_grant_access_granted_to_all_doors_event,
|
|
59
79
|
access_grant_access_granted_to_door_event,
|
|
60
80
|
access_grant_access_to_door_lost_event,
|
|
81
|
+
access_grant_access_times_changed_event,
|
|
61
82
|
];
|
|
62
83
|
//# sourceMappingURL=access-grants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-grants.js","sourceRoot":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yC,GACpD,kBAAkB,CAAC,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC;IAC5D,eAAe;CAChB,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,sCAAsC,GAAG,kBAAkB,CAAC,MAAM,CAC7E;IACE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC;IACzD,eAAe;CAChB,CACF,CAAC,QAAQ,CAAC;;;;;GAKR,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,uCAAuC,GAClD,kBAAkB,CAAC,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,mCAAmC,CAAC;IAC1D,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,0CAA0C,CAAC;IACvD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,wCAAwC,CAAC;CACtD,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,0BAA0B;IAC1B,0BAA0B;IAC1B,8CAA8C;IAC9C,yCAAyC;IACzC,sCAAsC;IACtC,uCAAuC;CAC/B,CAAA"}
|
|
@@ -163,6 +163,39 @@ export declare const access_method_reissued_event: z.ZodObject<{
|
|
|
163
163
|
access_grant_keys?: string[] | undefined;
|
|
164
164
|
is_backup_code?: boolean | undefined;
|
|
165
165
|
}>;
|
|
166
|
+
export declare const access_method_code_changed_event: z.ZodObject<{
|
|
167
|
+
event_id: z.ZodString;
|
|
168
|
+
workspace_id: z.ZodString;
|
|
169
|
+
created_at: z.ZodString;
|
|
170
|
+
occurred_at: z.ZodString;
|
|
171
|
+
} & {
|
|
172
|
+
access_method_id: z.ZodString;
|
|
173
|
+
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
174
|
+
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
175
|
+
} & {
|
|
176
|
+
event_type: z.ZodLiteral<"access_method.code_changed">;
|
|
177
|
+
code: z.ZodString;
|
|
178
|
+
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
code: string;
|
|
180
|
+
workspace_id: string;
|
|
181
|
+
created_at: string;
|
|
182
|
+
access_method_id: string;
|
|
183
|
+
event_id: string;
|
|
184
|
+
occurred_at: string;
|
|
185
|
+
event_type: "access_method.code_changed";
|
|
186
|
+
access_grant_ids: string[];
|
|
187
|
+
access_grant_keys?: string[] | undefined;
|
|
188
|
+
}, {
|
|
189
|
+
code: string;
|
|
190
|
+
workspace_id: string;
|
|
191
|
+
created_at: string;
|
|
192
|
+
access_method_id: string;
|
|
193
|
+
event_id: string;
|
|
194
|
+
occurred_at: string;
|
|
195
|
+
event_type: "access_method.code_changed";
|
|
196
|
+
access_grant_ids: string[];
|
|
197
|
+
access_grant_keys?: string[] | undefined;
|
|
198
|
+
}>;
|
|
166
199
|
export type AccessMethodRevokedEvent = z.infer<typeof access_method_revoked_event>;
|
|
167
200
|
export declare const access_method_events: readonly [z.ZodObject<{
|
|
168
201
|
event_id: z.ZodString;
|
|
@@ -321,4 +354,36 @@ export declare const access_method_events: readonly [z.ZodObject<{
|
|
|
321
354
|
code?: string | undefined;
|
|
322
355
|
access_grant_keys?: string[] | undefined;
|
|
323
356
|
is_backup_code?: boolean | undefined;
|
|
357
|
+
}>, z.ZodObject<{
|
|
358
|
+
event_id: z.ZodString;
|
|
359
|
+
workspace_id: z.ZodString;
|
|
360
|
+
created_at: z.ZodString;
|
|
361
|
+
occurred_at: z.ZodString;
|
|
362
|
+
} & {
|
|
363
|
+
access_method_id: z.ZodString;
|
|
364
|
+
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
365
|
+
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
366
|
+
} & {
|
|
367
|
+
event_type: z.ZodLiteral<"access_method.code_changed">;
|
|
368
|
+
code: z.ZodString;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
code: string;
|
|
371
|
+
workspace_id: string;
|
|
372
|
+
created_at: string;
|
|
373
|
+
access_method_id: string;
|
|
374
|
+
event_id: string;
|
|
375
|
+
occurred_at: string;
|
|
376
|
+
event_type: "access_method.code_changed";
|
|
377
|
+
access_grant_ids: string[];
|
|
378
|
+
access_grant_keys?: string[] | undefined;
|
|
379
|
+
}, {
|
|
380
|
+
code: string;
|
|
381
|
+
workspace_id: string;
|
|
382
|
+
created_at: string;
|
|
383
|
+
access_method_id: string;
|
|
384
|
+
event_id: string;
|
|
385
|
+
occurred_at: string;
|
|
386
|
+
event_type: "access_method.code_changed";
|
|
387
|
+
access_grant_ids: string[];
|
|
388
|
+
access_grant_keys?: string[] | undefined;
|
|
324
389
|
}>];
|
|
@@ -69,11 +69,23 @@ export const access_method_reissued_event = access_method_event.extend({
|
|
|
69
69
|
---
|
|
70
70
|
An access method was reissued due to an Access Grant update.
|
|
71
71
|
`);
|
|
72
|
+
export const access_method_code_changed_event = access_method_event.extend({
|
|
73
|
+
event_type: z.literal('access_method.code_changed'),
|
|
74
|
+
code: z
|
|
75
|
+
.string()
|
|
76
|
+
.describe("The new PIN code for code access methods (only present when mode is 'code')."),
|
|
77
|
+
}).describe(`
|
|
78
|
+
---
|
|
79
|
+
route_path: /access_methods
|
|
80
|
+
---
|
|
81
|
+
An access method's PIN code was changed.
|
|
82
|
+
`);
|
|
72
83
|
export const access_method_events = [
|
|
73
84
|
access_method_issued_event,
|
|
74
85
|
access_method_revoked_event,
|
|
75
86
|
access_method_card_encoding_required_event,
|
|
76
87
|
access_method_deleted_event,
|
|
77
88
|
access_method_reissued_event,
|
|
89
|
+
access_method_code_changed_event,
|
|
78
90
|
];
|
|
79
91
|
//# sourceMappingURL=access-methods.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-methods.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,mBAAmB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,CAAC;SAChB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,mCAAmC,CAAC;IAChD,gBAAgB,EAAE,CAAC;SAChB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,iBAAiB,EAAE,CAAC;SACjB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,EAAE;SACV,QAAQ,CACP,4EAA4E,CAC7E;CACJ,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACnE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IAC7C,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF,CAClF;IACH,cAAc,EAAE,CAAC;SACd,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,4GAA4G,CAC7G;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,0CAA0C,GACrD,mBAAmB,CAAC,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sCAAsC,CAAC;CAC9D,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,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AE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF,CAClF;IACH,cAAc,EAAE,CAAC;SACd,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,4GAA4G,CAC7G;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,gCAAgC,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACzE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IACnD,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,CACP,8EAA8E,CAC/E;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,0BAA0B;IAC1B,2BAA2B;IAC3B,0CAA0C;IAC1C,2BAA2B;IAC3B,4BAA4B;IAC5B,gCAAgC;CACxB,CAAA"}
|
|
@@ -732,6 +732,38 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
732
732
|
workspace_id: z.ZodString;
|
|
733
733
|
created_at: z.ZodString;
|
|
734
734
|
occurred_at: z.ZodString;
|
|
735
|
+
} & {
|
|
736
|
+
access_grant_id: z.ZodString;
|
|
737
|
+
} & {
|
|
738
|
+
event_type: z.ZodLiteral<"access_grant.access_times_changed">;
|
|
739
|
+
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
740
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
741
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
742
|
+
}, "strip", z.ZodTypeAny, {
|
|
743
|
+
workspace_id: string;
|
|
744
|
+
created_at: string;
|
|
745
|
+
access_grant_id: string;
|
|
746
|
+
event_id: string;
|
|
747
|
+
occurred_at: string;
|
|
748
|
+
event_type: "access_grant.access_times_changed";
|
|
749
|
+
starts_at?: string | undefined;
|
|
750
|
+
ends_at?: string | undefined;
|
|
751
|
+
access_grant_key?: string | undefined;
|
|
752
|
+
}, {
|
|
753
|
+
workspace_id: string;
|
|
754
|
+
created_at: string;
|
|
755
|
+
access_grant_id: string;
|
|
756
|
+
event_id: string;
|
|
757
|
+
occurred_at: string;
|
|
758
|
+
event_type: "access_grant.access_times_changed";
|
|
759
|
+
starts_at?: string | undefined;
|
|
760
|
+
ends_at?: string | undefined;
|
|
761
|
+
access_grant_key?: string | undefined;
|
|
762
|
+
}>, z.ZodObject<{
|
|
763
|
+
event_id: z.ZodString;
|
|
764
|
+
workspace_id: z.ZodString;
|
|
765
|
+
created_at: z.ZodString;
|
|
766
|
+
occurred_at: z.ZodString;
|
|
735
767
|
} & {
|
|
736
768
|
access_method_id: z.ZodString;
|
|
737
769
|
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -889,6 +921,38 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
889
921
|
workspace_id: z.ZodString;
|
|
890
922
|
created_at: z.ZodString;
|
|
891
923
|
occurred_at: z.ZodString;
|
|
924
|
+
} & {
|
|
925
|
+
access_method_id: z.ZodString;
|
|
926
|
+
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
927
|
+
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
928
|
+
} & {
|
|
929
|
+
event_type: z.ZodLiteral<"access_method.code_changed">;
|
|
930
|
+
code: z.ZodString;
|
|
931
|
+
}, "strip", z.ZodTypeAny, {
|
|
932
|
+
code: string;
|
|
933
|
+
workspace_id: string;
|
|
934
|
+
created_at: string;
|
|
935
|
+
access_method_id: string;
|
|
936
|
+
event_id: string;
|
|
937
|
+
occurred_at: string;
|
|
938
|
+
event_type: "access_method.code_changed";
|
|
939
|
+
access_grant_ids: string[];
|
|
940
|
+
access_grant_keys?: string[] | undefined;
|
|
941
|
+
}, {
|
|
942
|
+
code: string;
|
|
943
|
+
workspace_id: string;
|
|
944
|
+
created_at: string;
|
|
945
|
+
access_method_id: string;
|
|
946
|
+
event_id: string;
|
|
947
|
+
occurred_at: string;
|
|
948
|
+
event_type: "access_method.code_changed";
|
|
949
|
+
access_grant_ids: string[];
|
|
950
|
+
access_grant_keys?: string[] | undefined;
|
|
951
|
+
}>, z.ZodObject<{
|
|
952
|
+
event_id: z.ZodString;
|
|
953
|
+
workspace_id: z.ZodString;
|
|
954
|
+
created_at: z.ZodString;
|
|
955
|
+
occurred_at: z.ZodString;
|
|
892
956
|
} & {
|
|
893
957
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
894
958
|
acs_system_id: z.ZodString;
|
|
@@ -2950,5 +3014,5 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
|
|
|
2950
3014
|
device_custom_metadata?: Record<string, string | boolean> | undefined;
|
|
2951
3015
|
}>]>;
|
|
2952
3016
|
export type SeamEvent = z.infer<typeof seam_event>;
|
|
2953
|
-
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_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_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")[]]>;
|
|
3017
|
+
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" | "access_method.code_changed" | "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" | "access_method.code_changed" | "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")[]]>;
|
|
2954
3018
|
export type SeamEventType = SeamEvent['event_type'];
|