@seamapi/types 1.553.0 → 1.555.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 +281 -19
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +928 -4
- package/dist/index.cjs +281 -19
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +54 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +24 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +54 -0
- package/lib/seam/connect/models/access-grants/access-method.js +24 -0
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential.d.ts +10 -10
- package/lib/seam/connect/models/batch.d.ts +344 -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 +379 -0
- package/lib/seam/connect/openapi.js +196 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +265 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +40 -0
- package/src/lib/seam/connect/models/access-grants/access-method.ts +40 -0
- 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 +213 -0
- package/src/lib/seam/connect/route-types.ts +279 -0
|
@@ -34819,11 +34819,30 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34819
34819
|
client_session_token: z.ZodOptional<z.ZodString>;
|
|
34820
34820
|
is_encoding_required: z.ZodOptional<z.ZodBoolean>;
|
|
34821
34821
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34822
|
+
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
34823
|
+
created_at: z.ZodString;
|
|
34824
|
+
message: z.ZodString;
|
|
34825
|
+
} & {
|
|
34826
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
34827
|
+
}, "strip", z.ZodTypeAny, {
|
|
34828
|
+
message: string;
|
|
34829
|
+
created_at: string;
|
|
34830
|
+
warning_code: "being_deleted";
|
|
34831
|
+
}, {
|
|
34832
|
+
message: string;
|
|
34833
|
+
created_at: string;
|
|
34834
|
+
warning_code: "being_deleted";
|
|
34835
|
+
}>]>, "many">;
|
|
34822
34836
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
34823
34837
|
}, "strip", z.ZodTypeAny, {
|
|
34824
34838
|
display_name: string;
|
|
34825
34839
|
workspace_id: string;
|
|
34826
34840
|
created_at: string;
|
|
34841
|
+
warnings: {
|
|
34842
|
+
message: string;
|
|
34843
|
+
created_at: string;
|
|
34844
|
+
warning_code: "being_deleted";
|
|
34845
|
+
}[];
|
|
34827
34846
|
mode: "code" | "card" | "mobile_key";
|
|
34828
34847
|
access_method_id: string;
|
|
34829
34848
|
issued_at: string | null;
|
|
@@ -34837,6 +34856,11 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34837
34856
|
display_name: string;
|
|
34838
34857
|
workspace_id: string;
|
|
34839
34858
|
created_at: string;
|
|
34859
|
+
warnings: {
|
|
34860
|
+
message: string;
|
|
34861
|
+
created_at: string;
|
|
34862
|
+
warning_code: "being_deleted";
|
|
34863
|
+
}[];
|
|
34840
34864
|
mode: "code" | "card" | "mobile_key";
|
|
34841
34865
|
access_method_id: string;
|
|
34842
34866
|
issued_at: string | null;
|
|
@@ -34881,6 +34905,20 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34881
34905
|
created_at: z.ZodString;
|
|
34882
34906
|
starts_at: z.ZodString;
|
|
34883
34907
|
ends_at: z.ZodNullable<z.ZodString>;
|
|
34908
|
+
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
34909
|
+
created_at: z.ZodString;
|
|
34910
|
+
message: z.ZodString;
|
|
34911
|
+
} & {
|
|
34912
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
34913
|
+
}, "strip", z.ZodTypeAny, {
|
|
34914
|
+
message: string;
|
|
34915
|
+
created_at: string;
|
|
34916
|
+
warning_code: "being_deleted";
|
|
34917
|
+
}, {
|
|
34918
|
+
message: string;
|
|
34919
|
+
created_at: string;
|
|
34920
|
+
warning_code: "being_deleted";
|
|
34921
|
+
}>]>, "many">;
|
|
34884
34922
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
34885
34923
|
}, "strip", z.ZodTypeAny, {
|
|
34886
34924
|
name: string | null;
|
|
@@ -34889,6 +34927,11 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34889
34927
|
created_at: string;
|
|
34890
34928
|
starts_at: string;
|
|
34891
34929
|
ends_at: string | null;
|
|
34930
|
+
warnings: {
|
|
34931
|
+
message: string;
|
|
34932
|
+
created_at: string;
|
|
34933
|
+
warning_code: "being_deleted";
|
|
34934
|
+
}[];
|
|
34892
34935
|
access_grant_id: string;
|
|
34893
34936
|
user_identity_id: string;
|
|
34894
34937
|
location_ids: string[];
|
|
@@ -34912,6 +34955,11 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34912
34955
|
created_at: string;
|
|
34913
34956
|
starts_at: string;
|
|
34914
34957
|
ends_at: string | null;
|
|
34958
|
+
warnings: {
|
|
34959
|
+
message: string;
|
|
34960
|
+
created_at: string;
|
|
34961
|
+
warning_code: "being_deleted";
|
|
34962
|
+
}[];
|
|
34915
34963
|
access_grant_id: string;
|
|
34916
34964
|
user_identity_id: string;
|
|
34917
34965
|
location_ids: string[];
|
|
@@ -35662,6 +35710,38 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
35662
35710
|
workspace_id: z.ZodString;
|
|
35663
35711
|
created_at: z.ZodString;
|
|
35664
35712
|
occurred_at: z.ZodString;
|
|
35713
|
+
} & {
|
|
35714
|
+
access_grant_id: z.ZodString;
|
|
35715
|
+
} & {
|
|
35716
|
+
event_type: z.ZodLiteral<"access_grant.access_times_changed">;
|
|
35717
|
+
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
35718
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
35719
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
35720
|
+
}, "strip", z.ZodTypeAny, {
|
|
35721
|
+
workspace_id: string;
|
|
35722
|
+
created_at: string;
|
|
35723
|
+
access_grant_id: string;
|
|
35724
|
+
event_id: string;
|
|
35725
|
+
occurred_at: string;
|
|
35726
|
+
event_type: "access_grant.access_times_changed";
|
|
35727
|
+
starts_at?: string | undefined;
|
|
35728
|
+
ends_at?: string | undefined;
|
|
35729
|
+
access_grant_key?: string | undefined;
|
|
35730
|
+
}, {
|
|
35731
|
+
workspace_id: string;
|
|
35732
|
+
created_at: string;
|
|
35733
|
+
access_grant_id: string;
|
|
35734
|
+
event_id: string;
|
|
35735
|
+
occurred_at: string;
|
|
35736
|
+
event_type: "access_grant.access_times_changed";
|
|
35737
|
+
starts_at?: string | undefined;
|
|
35738
|
+
ends_at?: string | undefined;
|
|
35739
|
+
access_grant_key?: string | undefined;
|
|
35740
|
+
}>, z.ZodObject<{
|
|
35741
|
+
event_id: z.ZodString;
|
|
35742
|
+
workspace_id: z.ZodString;
|
|
35743
|
+
created_at: z.ZodString;
|
|
35744
|
+
occurred_at: z.ZodString;
|
|
35665
35745
|
} & {
|
|
35666
35746
|
access_method_id: z.ZodString;
|
|
35667
35747
|
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -35819,6 +35899,38 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
35819
35899
|
workspace_id: z.ZodString;
|
|
35820
35900
|
created_at: z.ZodString;
|
|
35821
35901
|
occurred_at: z.ZodString;
|
|
35902
|
+
} & {
|
|
35903
|
+
access_method_id: z.ZodString;
|
|
35904
|
+
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
35905
|
+
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35906
|
+
} & {
|
|
35907
|
+
event_type: z.ZodLiteral<"access_method.code_changed">;
|
|
35908
|
+
code: z.ZodString;
|
|
35909
|
+
}, "strip", z.ZodTypeAny, {
|
|
35910
|
+
code: string;
|
|
35911
|
+
workspace_id: string;
|
|
35912
|
+
created_at: string;
|
|
35913
|
+
access_method_id: string;
|
|
35914
|
+
event_id: string;
|
|
35915
|
+
occurred_at: string;
|
|
35916
|
+
event_type: "access_method.code_changed";
|
|
35917
|
+
access_grant_ids: string[];
|
|
35918
|
+
access_grant_keys?: string[] | undefined;
|
|
35919
|
+
}, {
|
|
35920
|
+
code: string;
|
|
35921
|
+
workspace_id: string;
|
|
35922
|
+
created_at: string;
|
|
35923
|
+
access_method_id: string;
|
|
35924
|
+
event_id: string;
|
|
35925
|
+
occurred_at: string;
|
|
35926
|
+
event_type: "access_method.code_changed";
|
|
35927
|
+
access_grant_ids: string[];
|
|
35928
|
+
access_grant_keys?: string[] | undefined;
|
|
35929
|
+
}>, z.ZodObject<{
|
|
35930
|
+
event_id: z.ZodString;
|
|
35931
|
+
workspace_id: z.ZodString;
|
|
35932
|
+
created_at: z.ZodString;
|
|
35933
|
+
occurred_at: z.ZodString;
|
|
35822
35934
|
} & {
|
|
35823
35935
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
35824
35936
|
acs_system_id: z.ZodString;
|
|
@@ -42004,6 +42116,11 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
42004
42116
|
created_at: string;
|
|
42005
42117
|
starts_at: string;
|
|
42006
42118
|
ends_at: string | null;
|
|
42119
|
+
warnings: {
|
|
42120
|
+
message: string;
|
|
42121
|
+
created_at: string;
|
|
42122
|
+
warning_code: "being_deleted";
|
|
42123
|
+
}[];
|
|
42007
42124
|
access_grant_id: string;
|
|
42008
42125
|
user_identity_id: string;
|
|
42009
42126
|
location_ids: string[];
|
|
@@ -42071,6 +42188,11 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
42071
42188
|
display_name: string;
|
|
42072
42189
|
workspace_id: string;
|
|
42073
42190
|
created_at: string;
|
|
42191
|
+
warnings: {
|
|
42192
|
+
message: string;
|
|
42193
|
+
created_at: string;
|
|
42194
|
+
warning_code: "being_deleted";
|
|
42195
|
+
}[];
|
|
42074
42196
|
mode: "code" | "card" | "mobile_key";
|
|
42075
42197
|
access_method_id: string;
|
|
42076
42198
|
issued_at: string | null;
|
|
@@ -43738,6 +43860,16 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
43738
43860
|
event_id: string;
|
|
43739
43861
|
occurred_at: string;
|
|
43740
43862
|
event_type: "access_grant.access_to_door_lost";
|
|
43863
|
+
} | {
|
|
43864
|
+
workspace_id: string;
|
|
43865
|
+
created_at: string;
|
|
43866
|
+
access_grant_id: string;
|
|
43867
|
+
event_id: string;
|
|
43868
|
+
occurred_at: string;
|
|
43869
|
+
event_type: "access_grant.access_times_changed";
|
|
43870
|
+
starts_at?: string | undefined;
|
|
43871
|
+
ends_at?: string | undefined;
|
|
43872
|
+
access_grant_key?: string | undefined;
|
|
43741
43873
|
} | {
|
|
43742
43874
|
workspace_id: string;
|
|
43743
43875
|
created_at: string;
|
|
@@ -43787,6 +43919,16 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
43787
43919
|
code?: string | undefined;
|
|
43788
43920
|
access_grant_keys?: string[] | undefined;
|
|
43789
43921
|
is_backup_code?: boolean | undefined;
|
|
43922
|
+
} | {
|
|
43923
|
+
code: string;
|
|
43924
|
+
workspace_id: string;
|
|
43925
|
+
created_at: string;
|
|
43926
|
+
access_method_id: string;
|
|
43927
|
+
event_id: string;
|
|
43928
|
+
occurred_at: string;
|
|
43929
|
+
event_type: "access_method.code_changed";
|
|
43930
|
+
access_grant_ids: string[];
|
|
43931
|
+
access_grant_keys?: string[] | undefined;
|
|
43790
43932
|
} | {
|
|
43791
43933
|
workspace_id: string;
|
|
43792
43934
|
created_at: string;
|
|
@@ -45958,6 +46100,11 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
45958
46100
|
created_at: string;
|
|
45959
46101
|
starts_at: string;
|
|
45960
46102
|
ends_at: string | null;
|
|
46103
|
+
warnings: {
|
|
46104
|
+
message: string;
|
|
46105
|
+
created_at: string;
|
|
46106
|
+
warning_code: "being_deleted";
|
|
46107
|
+
}[];
|
|
45961
46108
|
access_grant_id: string;
|
|
45962
46109
|
user_identity_id: string;
|
|
45963
46110
|
location_ids: string[];
|
|
@@ -46025,6 +46172,11 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
46025
46172
|
display_name: string;
|
|
46026
46173
|
workspace_id: string;
|
|
46027
46174
|
created_at: string;
|
|
46175
|
+
warnings: {
|
|
46176
|
+
message: string;
|
|
46177
|
+
created_at: string;
|
|
46178
|
+
warning_code: "being_deleted";
|
|
46179
|
+
}[];
|
|
46028
46180
|
mode: "code" | "card" | "mobile_key";
|
|
46029
46181
|
access_method_id: string;
|
|
46030
46182
|
issued_at: string | null;
|
|
@@ -47692,6 +47844,16 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
47692
47844
|
event_id: string;
|
|
47693
47845
|
occurred_at: string;
|
|
47694
47846
|
event_type: "access_grant.access_to_door_lost";
|
|
47847
|
+
} | {
|
|
47848
|
+
workspace_id: string;
|
|
47849
|
+
created_at: string;
|
|
47850
|
+
access_grant_id: string;
|
|
47851
|
+
event_id: string;
|
|
47852
|
+
occurred_at: string;
|
|
47853
|
+
event_type: "access_grant.access_times_changed";
|
|
47854
|
+
starts_at?: string | undefined;
|
|
47855
|
+
ends_at?: string | undefined;
|
|
47856
|
+
access_grant_key?: string | undefined;
|
|
47695
47857
|
} | {
|
|
47696
47858
|
workspace_id: string;
|
|
47697
47859
|
created_at: string;
|
|
@@ -47741,6 +47903,16 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
47741
47903
|
code?: string | undefined;
|
|
47742
47904
|
access_grant_keys?: string[] | undefined;
|
|
47743
47905
|
is_backup_code?: boolean | undefined;
|
|
47906
|
+
} | {
|
|
47907
|
+
code: string;
|
|
47908
|
+
workspace_id: string;
|
|
47909
|
+
created_at: string;
|
|
47910
|
+
access_method_id: string;
|
|
47911
|
+
event_id: string;
|
|
47912
|
+
occurred_at: string;
|
|
47913
|
+
event_type: "access_method.code_changed";
|
|
47914
|
+
access_grant_ids: string[];
|
|
47915
|
+
access_grant_keys?: string[] | undefined;
|
|
47744
47916
|
} | {
|
|
47745
47917
|
workspace_id: string;
|
|
47746
47918
|
created_at: string;
|
|
@@ -63386,11 +63558,30 @@ export declare const batch: z.ZodObject<{
|
|
|
63386
63558
|
client_session_token: z.ZodOptional<z.ZodString>;
|
|
63387
63559
|
is_encoding_required: z.ZodOptional<z.ZodBoolean>;
|
|
63388
63560
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63561
|
+
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
63562
|
+
created_at: z.ZodString;
|
|
63563
|
+
message: z.ZodString;
|
|
63564
|
+
} & {
|
|
63565
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
63566
|
+
}, "strip", z.ZodTypeAny, {
|
|
63567
|
+
message: string;
|
|
63568
|
+
created_at: string;
|
|
63569
|
+
warning_code: "being_deleted";
|
|
63570
|
+
}, {
|
|
63571
|
+
message: string;
|
|
63572
|
+
created_at: string;
|
|
63573
|
+
warning_code: "being_deleted";
|
|
63574
|
+
}>]>, "many">;
|
|
63389
63575
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
63390
63576
|
}, "strip", z.ZodTypeAny, {
|
|
63391
63577
|
display_name: string;
|
|
63392
63578
|
workspace_id: string;
|
|
63393
63579
|
created_at: string;
|
|
63580
|
+
warnings: {
|
|
63581
|
+
message: string;
|
|
63582
|
+
created_at: string;
|
|
63583
|
+
warning_code: "being_deleted";
|
|
63584
|
+
}[];
|
|
63394
63585
|
mode: "code" | "card" | "mobile_key";
|
|
63395
63586
|
access_method_id: string;
|
|
63396
63587
|
issued_at: string | null;
|
|
@@ -63404,6 +63595,11 @@ export declare const batch: z.ZodObject<{
|
|
|
63404
63595
|
display_name: string;
|
|
63405
63596
|
workspace_id: string;
|
|
63406
63597
|
created_at: string;
|
|
63598
|
+
warnings: {
|
|
63599
|
+
message: string;
|
|
63600
|
+
created_at: string;
|
|
63601
|
+
warning_code: "being_deleted";
|
|
63602
|
+
}[];
|
|
63407
63603
|
mode: "code" | "card" | "mobile_key";
|
|
63408
63604
|
access_method_id: string;
|
|
63409
63605
|
issued_at: string | null;
|
|
@@ -63448,6 +63644,20 @@ export declare const batch: z.ZodObject<{
|
|
|
63448
63644
|
created_at: z.ZodString;
|
|
63449
63645
|
starts_at: z.ZodString;
|
|
63450
63646
|
ends_at: z.ZodNullable<z.ZodString>;
|
|
63647
|
+
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
63648
|
+
created_at: z.ZodString;
|
|
63649
|
+
message: z.ZodString;
|
|
63650
|
+
} & {
|
|
63651
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
63652
|
+
}, "strip", z.ZodTypeAny, {
|
|
63653
|
+
message: string;
|
|
63654
|
+
created_at: string;
|
|
63655
|
+
warning_code: "being_deleted";
|
|
63656
|
+
}, {
|
|
63657
|
+
message: string;
|
|
63658
|
+
created_at: string;
|
|
63659
|
+
warning_code: "being_deleted";
|
|
63660
|
+
}>]>, "many">;
|
|
63451
63661
|
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
63452
63662
|
}, "strip", z.ZodTypeAny, {
|
|
63453
63663
|
name: string | null;
|
|
@@ -63456,6 +63666,11 @@ export declare const batch: z.ZodObject<{
|
|
|
63456
63666
|
created_at: string;
|
|
63457
63667
|
starts_at: string;
|
|
63458
63668
|
ends_at: string | null;
|
|
63669
|
+
warnings: {
|
|
63670
|
+
message: string;
|
|
63671
|
+
created_at: string;
|
|
63672
|
+
warning_code: "being_deleted";
|
|
63673
|
+
}[];
|
|
63459
63674
|
access_grant_id: string;
|
|
63460
63675
|
user_identity_id: string;
|
|
63461
63676
|
location_ids: string[];
|
|
@@ -63479,6 +63694,11 @@ export declare const batch: z.ZodObject<{
|
|
|
63479
63694
|
created_at: string;
|
|
63480
63695
|
starts_at: string;
|
|
63481
63696
|
ends_at: string | null;
|
|
63697
|
+
warnings: {
|
|
63698
|
+
message: string;
|
|
63699
|
+
created_at: string;
|
|
63700
|
+
warning_code: "being_deleted";
|
|
63701
|
+
}[];
|
|
63482
63702
|
access_grant_id: string;
|
|
63483
63703
|
user_identity_id: string;
|
|
63484
63704
|
location_ids: string[];
|
|
@@ -64229,6 +64449,38 @@ export declare const batch: z.ZodObject<{
|
|
|
64229
64449
|
workspace_id: z.ZodString;
|
|
64230
64450
|
created_at: z.ZodString;
|
|
64231
64451
|
occurred_at: z.ZodString;
|
|
64452
|
+
} & {
|
|
64453
|
+
access_grant_id: z.ZodString;
|
|
64454
|
+
} & {
|
|
64455
|
+
event_type: z.ZodLiteral<"access_grant.access_times_changed">;
|
|
64456
|
+
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
64457
|
+
starts_at: z.ZodOptional<z.ZodString>;
|
|
64458
|
+
ends_at: z.ZodOptional<z.ZodString>;
|
|
64459
|
+
}, "strip", z.ZodTypeAny, {
|
|
64460
|
+
workspace_id: string;
|
|
64461
|
+
created_at: string;
|
|
64462
|
+
access_grant_id: string;
|
|
64463
|
+
event_id: string;
|
|
64464
|
+
occurred_at: string;
|
|
64465
|
+
event_type: "access_grant.access_times_changed";
|
|
64466
|
+
starts_at?: string | undefined;
|
|
64467
|
+
ends_at?: string | undefined;
|
|
64468
|
+
access_grant_key?: string | undefined;
|
|
64469
|
+
}, {
|
|
64470
|
+
workspace_id: string;
|
|
64471
|
+
created_at: string;
|
|
64472
|
+
access_grant_id: string;
|
|
64473
|
+
event_id: string;
|
|
64474
|
+
occurred_at: string;
|
|
64475
|
+
event_type: "access_grant.access_times_changed";
|
|
64476
|
+
starts_at?: string | undefined;
|
|
64477
|
+
ends_at?: string | undefined;
|
|
64478
|
+
access_grant_key?: string | undefined;
|
|
64479
|
+
}>, z.ZodObject<{
|
|
64480
|
+
event_id: z.ZodString;
|
|
64481
|
+
workspace_id: z.ZodString;
|
|
64482
|
+
created_at: z.ZodString;
|
|
64483
|
+
occurred_at: z.ZodString;
|
|
64232
64484
|
} & {
|
|
64233
64485
|
access_method_id: z.ZodString;
|
|
64234
64486
|
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
@@ -64386,6 +64638,38 @@ export declare const batch: z.ZodObject<{
|
|
|
64386
64638
|
workspace_id: z.ZodString;
|
|
64387
64639
|
created_at: z.ZodString;
|
|
64388
64640
|
occurred_at: z.ZodString;
|
|
64641
|
+
} & {
|
|
64642
|
+
access_method_id: z.ZodString;
|
|
64643
|
+
access_grant_ids: z.ZodArray<z.ZodString, "many">;
|
|
64644
|
+
access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
64645
|
+
} & {
|
|
64646
|
+
event_type: z.ZodLiteral<"access_method.code_changed">;
|
|
64647
|
+
code: z.ZodString;
|
|
64648
|
+
}, "strip", z.ZodTypeAny, {
|
|
64649
|
+
code: string;
|
|
64650
|
+
workspace_id: string;
|
|
64651
|
+
created_at: string;
|
|
64652
|
+
access_method_id: string;
|
|
64653
|
+
event_id: string;
|
|
64654
|
+
occurred_at: string;
|
|
64655
|
+
event_type: "access_method.code_changed";
|
|
64656
|
+
access_grant_ids: string[];
|
|
64657
|
+
access_grant_keys?: string[] | undefined;
|
|
64658
|
+
}, {
|
|
64659
|
+
code: string;
|
|
64660
|
+
workspace_id: string;
|
|
64661
|
+
created_at: string;
|
|
64662
|
+
access_method_id: string;
|
|
64663
|
+
event_id: string;
|
|
64664
|
+
occurred_at: string;
|
|
64665
|
+
event_type: "access_method.code_changed";
|
|
64666
|
+
access_grant_ids: string[];
|
|
64667
|
+
access_grant_keys?: string[] | undefined;
|
|
64668
|
+
}>, z.ZodObject<{
|
|
64669
|
+
event_id: z.ZodString;
|
|
64670
|
+
workspace_id: z.ZodString;
|
|
64671
|
+
created_at: z.ZodString;
|
|
64672
|
+
occurred_at: z.ZodString;
|
|
64389
64673
|
} & {
|
|
64390
64674
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
64391
64675
|
acs_system_id: z.ZodString;
|
|
@@ -70500,6 +70784,11 @@ export declare const batch: z.ZodObject<{
|
|
|
70500
70784
|
created_at: string;
|
|
70501
70785
|
starts_at: string;
|
|
70502
70786
|
ends_at: string | null;
|
|
70787
|
+
warnings: {
|
|
70788
|
+
message: string;
|
|
70789
|
+
created_at: string;
|
|
70790
|
+
warning_code: "being_deleted";
|
|
70791
|
+
}[];
|
|
70503
70792
|
access_grant_id: string;
|
|
70504
70793
|
user_identity_id: string;
|
|
70505
70794
|
location_ids: string[];
|
|
@@ -70567,6 +70856,11 @@ export declare const batch: z.ZodObject<{
|
|
|
70567
70856
|
display_name: string;
|
|
70568
70857
|
workspace_id: string;
|
|
70569
70858
|
created_at: string;
|
|
70859
|
+
warnings: {
|
|
70860
|
+
message: string;
|
|
70861
|
+
created_at: string;
|
|
70862
|
+
warning_code: "being_deleted";
|
|
70863
|
+
}[];
|
|
70570
70864
|
mode: "code" | "card" | "mobile_key";
|
|
70571
70865
|
access_method_id: string;
|
|
70572
70866
|
issued_at: string | null;
|
|
@@ -72234,6 +72528,16 @@ export declare const batch: z.ZodObject<{
|
|
|
72234
72528
|
event_id: string;
|
|
72235
72529
|
occurred_at: string;
|
|
72236
72530
|
event_type: "access_grant.access_to_door_lost";
|
|
72531
|
+
} | {
|
|
72532
|
+
workspace_id: string;
|
|
72533
|
+
created_at: string;
|
|
72534
|
+
access_grant_id: string;
|
|
72535
|
+
event_id: string;
|
|
72536
|
+
occurred_at: string;
|
|
72537
|
+
event_type: "access_grant.access_times_changed";
|
|
72538
|
+
starts_at?: string | undefined;
|
|
72539
|
+
ends_at?: string | undefined;
|
|
72540
|
+
access_grant_key?: string | undefined;
|
|
72237
72541
|
} | {
|
|
72238
72542
|
workspace_id: string;
|
|
72239
72543
|
created_at: string;
|
|
@@ -72283,6 +72587,16 @@ export declare const batch: z.ZodObject<{
|
|
|
72283
72587
|
code?: string | undefined;
|
|
72284
72588
|
access_grant_keys?: string[] | undefined;
|
|
72285
72589
|
is_backup_code?: boolean | undefined;
|
|
72590
|
+
} | {
|
|
72591
|
+
code: string;
|
|
72592
|
+
workspace_id: string;
|
|
72593
|
+
created_at: string;
|
|
72594
|
+
access_method_id: string;
|
|
72595
|
+
event_id: string;
|
|
72596
|
+
occurred_at: string;
|
|
72597
|
+
event_type: "access_method.code_changed";
|
|
72598
|
+
access_grant_ids: string[];
|
|
72599
|
+
access_grant_keys?: string[] | undefined;
|
|
72286
72600
|
} | {
|
|
72287
72601
|
workspace_id: string;
|
|
72288
72602
|
created_at: string;
|
|
@@ -74383,6 +74697,11 @@ export declare const batch: z.ZodObject<{
|
|
|
74383
74697
|
created_at: string;
|
|
74384
74698
|
starts_at: string;
|
|
74385
74699
|
ends_at: string | null;
|
|
74700
|
+
warnings: {
|
|
74701
|
+
message: string;
|
|
74702
|
+
created_at: string;
|
|
74703
|
+
warning_code: "being_deleted";
|
|
74704
|
+
}[];
|
|
74386
74705
|
access_grant_id: string;
|
|
74387
74706
|
user_identity_id: string;
|
|
74388
74707
|
location_ids: string[];
|
|
@@ -74450,6 +74769,11 @@ export declare const batch: z.ZodObject<{
|
|
|
74450
74769
|
display_name: string;
|
|
74451
74770
|
workspace_id: string;
|
|
74452
74771
|
created_at: string;
|
|
74772
|
+
warnings: {
|
|
74773
|
+
message: string;
|
|
74774
|
+
created_at: string;
|
|
74775
|
+
warning_code: "being_deleted";
|
|
74776
|
+
}[];
|
|
74453
74777
|
mode: "code" | "card" | "mobile_key";
|
|
74454
74778
|
access_method_id: string;
|
|
74455
74779
|
issued_at: string | null;
|
|
@@ -76117,6 +76441,16 @@ export declare const batch: z.ZodObject<{
|
|
|
76117
76441
|
event_id: string;
|
|
76118
76442
|
occurred_at: string;
|
|
76119
76443
|
event_type: "access_grant.access_to_door_lost";
|
|
76444
|
+
} | {
|
|
76445
|
+
workspace_id: string;
|
|
76446
|
+
created_at: string;
|
|
76447
|
+
access_grant_id: string;
|
|
76448
|
+
event_id: string;
|
|
76449
|
+
occurred_at: string;
|
|
76450
|
+
event_type: "access_grant.access_times_changed";
|
|
76451
|
+
starts_at?: string | undefined;
|
|
76452
|
+
ends_at?: string | undefined;
|
|
76453
|
+
access_grant_key?: string | undefined;
|
|
76120
76454
|
} | {
|
|
76121
76455
|
workspace_id: string;
|
|
76122
76456
|
created_at: string;
|
|
@@ -76166,6 +76500,16 @@ export declare const batch: z.ZodObject<{
|
|
|
76166
76500
|
code?: string | undefined;
|
|
76167
76501
|
access_grant_keys?: string[] | undefined;
|
|
76168
76502
|
is_backup_code?: boolean | undefined;
|
|
76503
|
+
} | {
|
|
76504
|
+
code: string;
|
|
76505
|
+
workspace_id: string;
|
|
76506
|
+
created_at: string;
|
|
76507
|
+
access_method_id: string;
|
|
76508
|
+
event_id: string;
|
|
76509
|
+
occurred_at: string;
|
|
76510
|
+
event_type: "access_method.code_changed";
|
|
76511
|
+
access_grant_ids: string[];
|
|
76512
|
+
access_grant_keys?: string[] | undefined;
|
|
76169
76513
|
} | {
|
|
76170
76514
|
workspace_id: string;
|
|
76171
76515
|
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":"","sources":["../../../../../src/lib/seam/connect/models/events/access-grants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,kBAAkB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC7C,eAAe,EAAE,CAAC;SACf,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,kCAAkC,CAAC;CAChD,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAClE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAClE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAC,QAAQ,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