@seamapi/types 1.377.0 → 1.379.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 +166 -28
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +356 -118
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +88 -28
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +256 -10
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +17 -3
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-client-session.d.ts +80 -80
- package/lib/seam/connect/models/bridges/bridge-client-session.js +5 -0
- package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +124 -8
- package/lib/seam/connect/openapi.js +150 -20
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +119 -57
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +18 -3
- package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +5 -0
- package/src/lib/seam/connect/openapi.ts +151 -28
- package/src/lib/seam/connect/route-types.ts +119 -57
|
@@ -8370,12 +8370,15 @@ export interface Routes {
|
|
|
8370
8370
|
/** */
|
|
8371
8371
|
pending_mutations?: Array<{
|
|
8372
8372
|
created_at: string;
|
|
8373
|
+
message: string;
|
|
8373
8374
|
mutation_code: 'creating';
|
|
8374
8375
|
} | {
|
|
8375
8376
|
created_at: string;
|
|
8377
|
+
message: string;
|
|
8376
8378
|
mutation_code: 'deleting';
|
|
8377
8379
|
} | {
|
|
8378
8380
|
created_at: string;
|
|
8381
|
+
message: string;
|
|
8379
8382
|
mutation_code: 'updating_user_information';
|
|
8380
8383
|
from: {
|
|
8381
8384
|
email_address?: (string | null) | undefined;
|
|
@@ -8389,21 +8392,19 @@ export interface Routes {
|
|
|
8389
8392
|
};
|
|
8390
8393
|
} | {
|
|
8391
8394
|
created_at: string;
|
|
8395
|
+
message: string;
|
|
8392
8396
|
mutation_code: 'updating_access_schedule';
|
|
8393
8397
|
from: {
|
|
8394
|
-
|
|
8395
|
-
starts_at: string;
|
|
8396
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
8398
|
+
starts_at: string | null;
|
|
8397
8399
|
ends_at: string | null;
|
|
8398
8400
|
};
|
|
8399
8401
|
to: {
|
|
8400
|
-
|
|
8401
|
-
starts_at: string;
|
|
8402
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
8402
|
+
starts_at: string | null;
|
|
8403
8403
|
ends_at: string | null;
|
|
8404
8404
|
};
|
|
8405
8405
|
} | {
|
|
8406
8406
|
created_at: string;
|
|
8407
|
+
message: string;
|
|
8407
8408
|
mutation_code: 'updating_suspension_state';
|
|
8408
8409
|
from: {
|
|
8409
8410
|
is_suspended: boolean;
|
|
@@ -8413,6 +8414,7 @@ export interface Routes {
|
|
|
8413
8414
|
};
|
|
8414
8415
|
} | {
|
|
8415
8416
|
created_at: string;
|
|
8417
|
+
message: string;
|
|
8416
8418
|
mutation_code: 'updating_group_membership';
|
|
8417
8419
|
from: {
|
|
8418
8420
|
acs_access_group_id: string | null;
|
|
@@ -10880,6 +10882,54 @@ export interface Routes {
|
|
|
10880
10882
|
};
|
|
10881
10883
|
};
|
|
10882
10884
|
};
|
|
10885
|
+
'/acs/encoders/get': {
|
|
10886
|
+
route: '/acs/encoders/get';
|
|
10887
|
+
method: 'GET' | 'POST';
|
|
10888
|
+
queryParams: {};
|
|
10889
|
+
jsonBody: {};
|
|
10890
|
+
commonParams: {
|
|
10891
|
+
/** ID of the desired encoder. */
|
|
10892
|
+
acs_encoder_id: string;
|
|
10893
|
+
};
|
|
10894
|
+
formData: {};
|
|
10895
|
+
jsonResponse: {
|
|
10896
|
+
/** Represents a hardware device that encodes [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) data onto physical cards within an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).
|
|
10897
|
+
|
|
10898
|
+
Some access control systems require credentials to be encoded onto plastic key cards using a card encoder. This process involves the following two key steps:
|
|
10899
|
+
|
|
10900
|
+
1. Credential creation
|
|
10901
|
+
Configure the access parameters for the credential.
|
|
10902
|
+
2. Card encoding
|
|
10903
|
+
Write the credential data onto the card using a compatible card encoder.
|
|
10904
|
+
|
|
10905
|
+
Separately, the Seam API also supports card scanning, which enables you to scan and read the encoded data on a card. You can use this action to confirm consistency with access control system records or diagnose discrepancies if needed.
|
|
10906
|
+
|
|
10907
|
+
See [Working with Card Encoders and Scanners](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).
|
|
10908
|
+
|
|
10909
|
+
To verify if your access control system requires a card encoder, see the corresponding [system integration guide](https://docs.seam.co/latest/device-and-system-integration-guides/overview#access-control-systems). */
|
|
10910
|
+
acs_encoder: {
|
|
10911
|
+
/** ID of the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners. */
|
|
10912
|
+
acs_encoder_id: string;
|
|
10913
|
+
/** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
|
|
10914
|
+
acs_system_id: string;
|
|
10915
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
|
|
10916
|
+
workspace_id: string;
|
|
10917
|
+
/** Errors associated with the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
|
|
10918
|
+
errors: Array<{
|
|
10919
|
+
/** Date and time at which Seam created the error. */
|
|
10920
|
+
created_at: string;
|
|
10921
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
10922
|
+
message: string;
|
|
10923
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
10924
|
+
error_code: 'acs_encoder_removed';
|
|
10925
|
+
}>;
|
|
10926
|
+
/** Date and time at which the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) was created. */
|
|
10927
|
+
created_at: string;
|
|
10928
|
+
/** Display name for the [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners). */
|
|
10929
|
+
display_name: string;
|
|
10930
|
+
};
|
|
10931
|
+
};
|
|
10932
|
+
};
|
|
10883
10933
|
'/acs/encoders/list': {
|
|
10884
10934
|
route: '/acs/encoders/list';
|
|
10885
10935
|
method: 'GET' | 'POST';
|
|
@@ -12819,12 +12869,15 @@ export interface Routes {
|
|
|
12819
12869
|
/** */
|
|
12820
12870
|
pending_mutations?: Array<{
|
|
12821
12871
|
created_at: string;
|
|
12872
|
+
message: string;
|
|
12822
12873
|
mutation_code: 'creating';
|
|
12823
12874
|
} | {
|
|
12824
12875
|
created_at: string;
|
|
12876
|
+
message: string;
|
|
12825
12877
|
mutation_code: 'deleting';
|
|
12826
12878
|
} | {
|
|
12827
12879
|
created_at: string;
|
|
12880
|
+
message: string;
|
|
12828
12881
|
mutation_code: 'updating_user_information';
|
|
12829
12882
|
from: {
|
|
12830
12883
|
email_address?: (string | null) | undefined;
|
|
@@ -12838,21 +12891,19 @@ export interface Routes {
|
|
|
12838
12891
|
};
|
|
12839
12892
|
} | {
|
|
12840
12893
|
created_at: string;
|
|
12894
|
+
message: string;
|
|
12841
12895
|
mutation_code: 'updating_access_schedule';
|
|
12842
12896
|
from: {
|
|
12843
|
-
|
|
12844
|
-
starts_at: string;
|
|
12845
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
12897
|
+
starts_at: string | null;
|
|
12846
12898
|
ends_at: string | null;
|
|
12847
12899
|
};
|
|
12848
12900
|
to: {
|
|
12849
|
-
|
|
12850
|
-
starts_at: string;
|
|
12851
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
12901
|
+
starts_at: string | null;
|
|
12852
12902
|
ends_at: string | null;
|
|
12853
12903
|
};
|
|
12854
12904
|
} | {
|
|
12855
12905
|
created_at: string;
|
|
12906
|
+
message: string;
|
|
12856
12907
|
mutation_code: 'updating_suspension_state';
|
|
12857
12908
|
from: {
|
|
12858
12909
|
is_suspended: boolean;
|
|
@@ -12862,6 +12913,7 @@ export interface Routes {
|
|
|
12862
12913
|
};
|
|
12863
12914
|
} | {
|
|
12864
12915
|
created_at: string;
|
|
12916
|
+
message: string;
|
|
12865
12917
|
mutation_code: 'updating_group_membership';
|
|
12866
12918
|
from: {
|
|
12867
12919
|
acs_access_group_id: string | null;
|
|
@@ -13003,12 +13055,15 @@ export interface Routes {
|
|
|
13003
13055
|
/** */
|
|
13004
13056
|
pending_mutations?: Array<{
|
|
13005
13057
|
created_at: string;
|
|
13058
|
+
message: string;
|
|
13006
13059
|
mutation_code: 'creating';
|
|
13007
13060
|
} | {
|
|
13008
13061
|
created_at: string;
|
|
13062
|
+
message: string;
|
|
13009
13063
|
mutation_code: 'deleting';
|
|
13010
13064
|
} | {
|
|
13011
13065
|
created_at: string;
|
|
13066
|
+
message: string;
|
|
13012
13067
|
mutation_code: 'updating_user_information';
|
|
13013
13068
|
from: {
|
|
13014
13069
|
email_address?: (string | null) | undefined;
|
|
@@ -13022,21 +13077,19 @@ export interface Routes {
|
|
|
13022
13077
|
};
|
|
13023
13078
|
} | {
|
|
13024
13079
|
created_at: string;
|
|
13080
|
+
message: string;
|
|
13025
13081
|
mutation_code: 'updating_access_schedule';
|
|
13026
13082
|
from: {
|
|
13027
|
-
|
|
13028
|
-
starts_at: string;
|
|
13029
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13083
|
+
starts_at: string | null;
|
|
13030
13084
|
ends_at: string | null;
|
|
13031
13085
|
};
|
|
13032
13086
|
to: {
|
|
13033
|
-
|
|
13034
|
-
starts_at: string;
|
|
13035
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13087
|
+
starts_at: string | null;
|
|
13036
13088
|
ends_at: string | null;
|
|
13037
13089
|
};
|
|
13038
13090
|
} | {
|
|
13039
13091
|
created_at: string;
|
|
13092
|
+
message: string;
|
|
13040
13093
|
mutation_code: 'updating_suspension_state';
|
|
13041
13094
|
from: {
|
|
13042
13095
|
is_suspended: boolean;
|
|
@@ -13046,6 +13099,7 @@ export interface Routes {
|
|
|
13046
13099
|
};
|
|
13047
13100
|
} | {
|
|
13048
13101
|
created_at: string;
|
|
13102
|
+
message: string;
|
|
13049
13103
|
mutation_code: 'updating_group_membership';
|
|
13050
13104
|
from: {
|
|
13051
13105
|
acs_access_group_id: string | null;
|
|
@@ -13183,12 +13237,15 @@ export interface Routes {
|
|
|
13183
13237
|
/** */
|
|
13184
13238
|
pending_mutations?: Array<{
|
|
13185
13239
|
created_at: string;
|
|
13240
|
+
message: string;
|
|
13186
13241
|
mutation_code: 'creating';
|
|
13187
13242
|
} | {
|
|
13188
13243
|
created_at: string;
|
|
13244
|
+
message: string;
|
|
13189
13245
|
mutation_code: 'deleting';
|
|
13190
13246
|
} | {
|
|
13191
13247
|
created_at: string;
|
|
13248
|
+
message: string;
|
|
13192
13249
|
mutation_code: 'updating_user_information';
|
|
13193
13250
|
from: {
|
|
13194
13251
|
email_address?: (string | null) | undefined;
|
|
@@ -13202,21 +13259,19 @@ export interface Routes {
|
|
|
13202
13259
|
};
|
|
13203
13260
|
} | {
|
|
13204
13261
|
created_at: string;
|
|
13262
|
+
message: string;
|
|
13205
13263
|
mutation_code: 'updating_access_schedule';
|
|
13206
13264
|
from: {
|
|
13207
|
-
|
|
13208
|
-
starts_at: string;
|
|
13209
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13265
|
+
starts_at: string | null;
|
|
13210
13266
|
ends_at: string | null;
|
|
13211
13267
|
};
|
|
13212
13268
|
to: {
|
|
13213
|
-
|
|
13214
|
-
starts_at: string;
|
|
13215
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13269
|
+
starts_at: string | null;
|
|
13216
13270
|
ends_at: string | null;
|
|
13217
13271
|
};
|
|
13218
13272
|
} | {
|
|
13219
13273
|
created_at: string;
|
|
13274
|
+
message: string;
|
|
13220
13275
|
mutation_code: 'updating_suspension_state';
|
|
13221
13276
|
from: {
|
|
13222
13277
|
is_suspended: boolean;
|
|
@@ -13226,6 +13281,7 @@ export interface Routes {
|
|
|
13226
13281
|
};
|
|
13227
13282
|
} | {
|
|
13228
13283
|
created_at: string;
|
|
13284
|
+
message: string;
|
|
13229
13285
|
mutation_code: 'updating_group_membership';
|
|
13230
13286
|
from: {
|
|
13231
13287
|
acs_access_group_id: string | null;
|
|
@@ -13472,12 +13528,15 @@ export interface Routes {
|
|
|
13472
13528
|
/** */
|
|
13473
13529
|
pending_mutations?: Array<{
|
|
13474
13530
|
created_at: string;
|
|
13531
|
+
message: string;
|
|
13475
13532
|
mutation_code: 'creating';
|
|
13476
13533
|
} | {
|
|
13477
13534
|
created_at: string;
|
|
13535
|
+
message: string;
|
|
13478
13536
|
mutation_code: 'deleting';
|
|
13479
13537
|
} | {
|
|
13480
13538
|
created_at: string;
|
|
13539
|
+
message: string;
|
|
13481
13540
|
mutation_code: 'updating_user_information';
|
|
13482
13541
|
from: {
|
|
13483
13542
|
email_address?: (string | null) | undefined;
|
|
@@ -13491,21 +13550,19 @@ export interface Routes {
|
|
|
13491
13550
|
};
|
|
13492
13551
|
} | {
|
|
13493
13552
|
created_at: string;
|
|
13553
|
+
message: string;
|
|
13494
13554
|
mutation_code: 'updating_access_schedule';
|
|
13495
13555
|
from: {
|
|
13496
|
-
|
|
13497
|
-
starts_at: string;
|
|
13498
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13556
|
+
starts_at: string | null;
|
|
13499
13557
|
ends_at: string | null;
|
|
13500
13558
|
};
|
|
13501
13559
|
to: {
|
|
13502
|
-
|
|
13503
|
-
starts_at: string;
|
|
13504
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13560
|
+
starts_at: string | null;
|
|
13505
13561
|
ends_at: string | null;
|
|
13506
13562
|
};
|
|
13507
13563
|
} | {
|
|
13508
13564
|
created_at: string;
|
|
13565
|
+
message: string;
|
|
13509
13566
|
mutation_code: 'updating_suspension_state';
|
|
13510
13567
|
from: {
|
|
13511
13568
|
is_suspended: boolean;
|
|
@@ -13515,6 +13572,7 @@ export interface Routes {
|
|
|
13515
13572
|
};
|
|
13516
13573
|
} | {
|
|
13517
13574
|
created_at: string;
|
|
13575
|
+
message: string;
|
|
13518
13576
|
mutation_code: 'updating_group_membership';
|
|
13519
13577
|
from: {
|
|
13520
13578
|
acs_access_group_id: string | null;
|
|
@@ -13642,12 +13700,15 @@ export interface Routes {
|
|
|
13642
13700
|
/** */
|
|
13643
13701
|
pending_mutations?: Array<{
|
|
13644
13702
|
created_at: string;
|
|
13703
|
+
message: string;
|
|
13645
13704
|
mutation_code: 'creating';
|
|
13646
13705
|
} | {
|
|
13647
13706
|
created_at: string;
|
|
13707
|
+
message: string;
|
|
13648
13708
|
mutation_code: 'deleting';
|
|
13649
13709
|
} | {
|
|
13650
13710
|
created_at: string;
|
|
13711
|
+
message: string;
|
|
13651
13712
|
mutation_code: 'updating_user_information';
|
|
13652
13713
|
from: {
|
|
13653
13714
|
email_address?: (string | null) | undefined;
|
|
@@ -13661,21 +13722,19 @@ export interface Routes {
|
|
|
13661
13722
|
};
|
|
13662
13723
|
} | {
|
|
13663
13724
|
created_at: string;
|
|
13725
|
+
message: string;
|
|
13664
13726
|
mutation_code: 'updating_access_schedule';
|
|
13665
13727
|
from: {
|
|
13666
|
-
|
|
13667
|
-
starts_at: string;
|
|
13668
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13728
|
+
starts_at: string | null;
|
|
13669
13729
|
ends_at: string | null;
|
|
13670
13730
|
};
|
|
13671
13731
|
to: {
|
|
13672
|
-
|
|
13673
|
-
starts_at: string;
|
|
13674
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13732
|
+
starts_at: string | null;
|
|
13675
13733
|
ends_at: string | null;
|
|
13676
13734
|
};
|
|
13677
13735
|
} | {
|
|
13678
13736
|
created_at: string;
|
|
13737
|
+
message: string;
|
|
13679
13738
|
mutation_code: 'updating_suspension_state';
|
|
13680
13739
|
from: {
|
|
13681
13740
|
is_suspended: boolean;
|
|
@@ -13685,6 +13744,7 @@ export interface Routes {
|
|
|
13685
13744
|
};
|
|
13686
13745
|
} | {
|
|
13687
13746
|
created_at: string;
|
|
13747
|
+
message: string;
|
|
13688
13748
|
mutation_code: 'updating_group_membership';
|
|
13689
13749
|
from: {
|
|
13690
13750
|
acs_access_group_id: string | null;
|
|
@@ -30505,15 +30565,15 @@ export interface Routes {
|
|
|
30505
30565
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
30506
30566
|
error_code: 'bridge_lan_unreachable';
|
|
30507
30567
|
/** Seam cannot reach the tailscale proxy */
|
|
30508
|
-
is_tailscale_proxy_reachable: boolean;
|
|
30568
|
+
is_tailscale_proxy_reachable: boolean | null;
|
|
30509
30569
|
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
30510
|
-
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
30570
|
+
is_tailscale_proxy_socks_server_healthy: boolean | null;
|
|
30511
30571
|
/** Tailscale proxy cannot reach the Tailscale network */
|
|
30512
|
-
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
30572
|
+
can_tailscale_proxy_reach_tailscale_network: boolean | null;
|
|
30513
30573
|
/** Tailscale proxy cannot reach the bridge */
|
|
30514
|
-
can_tailscale_proxy_reach_bridge: boolean;
|
|
30574
|
+
can_tailscale_proxy_reach_bridge: boolean | null;
|
|
30515
30575
|
/** Bridge's SOCKS server is unhealthy */
|
|
30516
|
-
is_bridge_socks_server_healthy: boolean;
|
|
30576
|
+
is_bridge_socks_server_healthy: boolean | null;
|
|
30517
30577
|
} | {
|
|
30518
30578
|
message: string;
|
|
30519
30579
|
created_at: string;
|
|
@@ -30549,15 +30609,15 @@ export interface Routes {
|
|
|
30549
30609
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
30550
30610
|
error_code: 'bridge_lan_unreachable';
|
|
30551
30611
|
/** Seam cannot reach the tailscale proxy */
|
|
30552
|
-
is_tailscale_proxy_reachable: boolean;
|
|
30612
|
+
is_tailscale_proxy_reachable: boolean | null;
|
|
30553
30613
|
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
30554
|
-
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
30614
|
+
is_tailscale_proxy_socks_server_healthy: boolean | null;
|
|
30555
30615
|
/** Tailscale proxy cannot reach the Tailscale network */
|
|
30556
|
-
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
30616
|
+
can_tailscale_proxy_reach_tailscale_network: boolean | null;
|
|
30557
30617
|
/** Tailscale proxy cannot reach the bridge */
|
|
30558
|
-
can_tailscale_proxy_reach_bridge: boolean;
|
|
30618
|
+
can_tailscale_proxy_reach_bridge: boolean | null;
|
|
30559
30619
|
/** Bridge's SOCKS server is unhealthy */
|
|
30560
|
-
is_bridge_socks_server_healthy: boolean;
|
|
30620
|
+
is_bridge_socks_server_healthy: boolean | null;
|
|
30561
30621
|
} | {
|
|
30562
30622
|
message: string;
|
|
30563
30623
|
created_at: string;
|
|
@@ -30593,15 +30653,15 @@ export interface Routes {
|
|
|
30593
30653
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
30594
30654
|
error_code: 'bridge_lan_unreachable';
|
|
30595
30655
|
/** Seam cannot reach the tailscale proxy */
|
|
30596
|
-
is_tailscale_proxy_reachable: boolean;
|
|
30656
|
+
is_tailscale_proxy_reachable: boolean | null;
|
|
30597
30657
|
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
30598
|
-
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
30658
|
+
is_tailscale_proxy_socks_server_healthy: boolean | null;
|
|
30599
30659
|
/** Tailscale proxy cannot reach the Tailscale network */
|
|
30600
|
-
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
30660
|
+
can_tailscale_proxy_reach_tailscale_network: boolean | null;
|
|
30601
30661
|
/** Tailscale proxy cannot reach the bridge */
|
|
30602
|
-
can_tailscale_proxy_reach_bridge: boolean;
|
|
30662
|
+
can_tailscale_proxy_reach_bridge: boolean | null;
|
|
30603
30663
|
/** Bridge's SOCKS server is unhealthy */
|
|
30604
|
-
is_bridge_socks_server_healthy: boolean;
|
|
30664
|
+
is_bridge_socks_server_healthy: boolean | null;
|
|
30605
30665
|
} | {
|
|
30606
30666
|
message: string;
|
|
30607
30667
|
created_at: string;
|
|
@@ -42067,12 +42127,15 @@ export interface Routes {
|
|
|
42067
42127
|
/** */
|
|
42068
42128
|
pending_mutations?: Array<{
|
|
42069
42129
|
created_at: string;
|
|
42130
|
+
message: string;
|
|
42070
42131
|
mutation_code: 'creating';
|
|
42071
42132
|
} | {
|
|
42072
42133
|
created_at: string;
|
|
42134
|
+
message: string;
|
|
42073
42135
|
mutation_code: 'deleting';
|
|
42074
42136
|
} | {
|
|
42075
42137
|
created_at: string;
|
|
42138
|
+
message: string;
|
|
42076
42139
|
mutation_code: 'updating_user_information';
|
|
42077
42140
|
from: {
|
|
42078
42141
|
email_address?: (string | null) | undefined;
|
|
@@ -42086,21 +42149,19 @@ export interface Routes {
|
|
|
42086
42149
|
};
|
|
42087
42150
|
} | {
|
|
42088
42151
|
created_at: string;
|
|
42152
|
+
message: string;
|
|
42089
42153
|
mutation_code: 'updating_access_schedule';
|
|
42090
42154
|
from: {
|
|
42091
|
-
|
|
42092
|
-
starts_at: string;
|
|
42093
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
42155
|
+
starts_at: string | null;
|
|
42094
42156
|
ends_at: string | null;
|
|
42095
42157
|
};
|
|
42096
42158
|
to: {
|
|
42097
|
-
|
|
42098
|
-
starts_at: string;
|
|
42099
|
-
/** Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
42159
|
+
starts_at: string | null;
|
|
42100
42160
|
ends_at: string | null;
|
|
42101
42161
|
};
|
|
42102
42162
|
} | {
|
|
42103
42163
|
created_at: string;
|
|
42164
|
+
message: string;
|
|
42104
42165
|
mutation_code: 'updating_suspension_state';
|
|
42105
42166
|
from: {
|
|
42106
42167
|
is_suspended: boolean;
|
|
@@ -42110,6 +42171,7 @@ export interface Routes {
|
|
|
42110
42171
|
};
|
|
42111
42172
|
} | {
|
|
42112
42173
|
created_at: string;
|
|
42174
|
+
message: string;
|
|
42113
42175
|
mutation_code: 'updating_group_membership';
|
|
42114
42176
|
from: {
|
|
42115
42177
|
acs_access_group_id: string | null;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
import { phone_number } from '../../phone-number.js'
|
|
4
|
-
import { schedule } from '../../schedule.js'
|
|
5
4
|
|
|
6
5
|
const common_pending_mutation = z.object({
|
|
7
6
|
created_at: z.string().datetime(),
|
|
7
|
+
message: z.string(),
|
|
8
8
|
})
|
|
9
9
|
|
|
10
10
|
const creating = common_pending_mutation.extend({
|
|
@@ -28,10 +28,15 @@ export const updating_user_information_mutation =
|
|
|
28
28
|
to: acs_user_info.partial(),
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
const access_schedule = z.object({
|
|
32
|
+
starts_at: z.string().datetime().nullable(),
|
|
33
|
+
ends_at: z.string().datetime().nullable(),
|
|
34
|
+
})
|
|
35
|
+
|
|
31
36
|
const updating_access_schedule_mutation = common_pending_mutation.extend({
|
|
32
37
|
mutation_code: z.literal('updating_access_schedule'),
|
|
33
|
-
from:
|
|
34
|
-
to:
|
|
38
|
+
from: access_schedule,
|
|
39
|
+
to: access_schedule,
|
|
35
40
|
})
|
|
36
41
|
|
|
37
42
|
const updating_suspension_state_mutation = common_pending_mutation.extend({
|
|
@@ -67,6 +72,16 @@ export type AcsUserPendingMutation = z.infer<typeof acs_user_pending_mutations>
|
|
|
67
72
|
export const acs_user_pending_mutations_map = z.object({
|
|
68
73
|
creating: creating.optional().nullable(),
|
|
69
74
|
deleting: deleting.optional().nullable(),
|
|
75
|
+
updating_access_schedule: updating_access_schedule_mutation
|
|
76
|
+
.optional()
|
|
77
|
+
.nullable(),
|
|
78
|
+
updating_group_membership: z
|
|
79
|
+
.map(z.string().uuid(), updating_group_membership_mutation)
|
|
80
|
+
.optional()
|
|
81
|
+
.nullable(),
|
|
82
|
+
updating_suspension_state: updating_suspension_state_mutation
|
|
83
|
+
.optional()
|
|
84
|
+
.nullable(),
|
|
70
85
|
'updating_user_information.full_name': common_pending_mutation
|
|
71
86
|
.extend({
|
|
72
87
|
mutation_code: z.literal('updating_user_information'),
|
|
@@ -15,18 +15,23 @@ export const bridge_lan_unreachable = common_bridge_client_session_error
|
|
|
15
15
|
.describe(error_code_description),
|
|
16
16
|
is_tailscale_proxy_reachable: z
|
|
17
17
|
.boolean()
|
|
18
|
+
.nullable()
|
|
18
19
|
.describe('Seam cannot reach the tailscale proxy'),
|
|
19
20
|
is_tailscale_proxy_socks_server_healthy: z
|
|
20
21
|
.boolean()
|
|
22
|
+
.nullable()
|
|
21
23
|
.describe("Tailscale proxy's SOCKS server is unhealthy"),
|
|
22
24
|
can_tailscale_proxy_reach_tailscale_network: z
|
|
23
25
|
.boolean()
|
|
26
|
+
.nullable()
|
|
24
27
|
.describe('Tailscale proxy cannot reach the Tailscale network'),
|
|
25
28
|
can_tailscale_proxy_reach_bridge: z
|
|
26
29
|
.boolean()
|
|
30
|
+
.nullable()
|
|
27
31
|
.describe('Tailscale proxy cannot reach the bridge'),
|
|
28
32
|
is_bridge_socks_server_healthy: z
|
|
29
33
|
.boolean()
|
|
34
|
+
.nullable()
|
|
30
35
|
.describe("Bridge's SOCKS server is unhealthy"),
|
|
31
36
|
})
|
|
32
37
|
.describe("Seam cannot reach the bridge's LAN")
|