@seamapi/types 1.365.0 → 1.367.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 +708 -7
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1802 -95
- package/lib/seam/connect/models/acs/{acs-user.d.ts → acs-users/acs-user.d.ts} +540 -18
- package/lib/seam/connect/models/acs/{acs-user.js → acs-users/acs-user.js} +9 -2
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-users/index.d.ts +2 -0
- package/lib/seam/connect/models/acs/acs-users/index.js +3 -0
- package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -0
- package/lib/seam/connect/models/acs/acs-users/pending-modifications.d.ts +176 -0
- package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +42 -0
- package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +1 -0
- package/lib/seam/connect/models/acs/index.d.ts +1 -1
- package/lib/seam/connect/models/acs/index.js +1 -1
- package/lib/seam/connect/models/acs/index.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge_client_session.d.ts +235 -0
- package/lib/seam/connect/models/bridges/bridge_client_session.js +47 -0
- package/lib/seam/connect/models/bridges/bridge_client_session.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
- package/lib/seam/connect/openapi.d.ts +716 -0
- package/lib/seam/connect/openapi.js +628 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +399 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/{acs-user.ts → acs-users/acs-user.ts} +9 -2
- package/src/lib/seam/connect/models/acs/acs-users/index.ts +2 -0
- package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +56 -0
- package/src/lib/seam/connect/models/acs/index.ts +1 -1
- package/src/lib/seam/connect/models/bridges/bridge_client_session.ts +62 -0
- package/src/lib/seam/connect/openapi.ts +676 -0
- package/src/lib/seam/connect/route-types.ts +457 -0
- package/lib/seam/connect/models/acs/acs-user.js.map +0 -1
|
@@ -7026,6 +7026,54 @@ export interface Routes {
|
|
|
7026
7026
|
message: string;
|
|
7027
7027
|
error_code: 'failed_to_delete_on_acs_system';
|
|
7028
7028
|
}>;
|
|
7029
|
+
/** */
|
|
7030
|
+
pending_modifications?: Array<{
|
|
7031
|
+
created_at: string;
|
|
7032
|
+
modification_code: 'profile';
|
|
7033
|
+
modified_from: {
|
|
7034
|
+
email_address?: (string | null) | undefined;
|
|
7035
|
+
full_name?: (string | null) | undefined;
|
|
7036
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
7037
|
+
};
|
|
7038
|
+
modified_to: {
|
|
7039
|
+
email_address?: (string | null) | undefined;
|
|
7040
|
+
full_name?: (string | null) | undefined;
|
|
7041
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
7042
|
+
};
|
|
7043
|
+
} | {
|
|
7044
|
+
created_at: string;
|
|
7045
|
+
modification_code: 'access_schedule';
|
|
7046
|
+
modified_from: {
|
|
7047
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
7048
|
+
starts_at: string;
|
|
7049
|
+
/** 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. */
|
|
7050
|
+
ends_at: string | null;
|
|
7051
|
+
};
|
|
7052
|
+
modified_to: {
|
|
7053
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
7054
|
+
starts_at: string;
|
|
7055
|
+
/** 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. */
|
|
7056
|
+
ends_at: string | null;
|
|
7057
|
+
};
|
|
7058
|
+
} | {
|
|
7059
|
+
created_at: string;
|
|
7060
|
+
modification_code: 'suspension_state';
|
|
7061
|
+
modified_from: {
|
|
7062
|
+
is_suspended: boolean;
|
|
7063
|
+
};
|
|
7064
|
+
modified_to: {
|
|
7065
|
+
is_suspended: boolean;
|
|
7066
|
+
};
|
|
7067
|
+
} | {
|
|
7068
|
+
created_at: string;
|
|
7069
|
+
modification_code: 'acs_access_group_membership';
|
|
7070
|
+
modified_from: {
|
|
7071
|
+
acs_access_group_id: string | null;
|
|
7072
|
+
};
|
|
7073
|
+
modified_to: {
|
|
7074
|
+
acs_access_group_id: string | null;
|
|
7075
|
+
};
|
|
7076
|
+
}> | undefined;
|
|
7029
7077
|
/** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
|
|
7030
7078
|
full_name?: string | undefined;
|
|
7031
7079
|
/**
|
|
@@ -11209,6 +11257,54 @@ export interface Routes {
|
|
|
11209
11257
|
message: string;
|
|
11210
11258
|
error_code: 'failed_to_delete_on_acs_system';
|
|
11211
11259
|
}>;
|
|
11260
|
+
/** */
|
|
11261
|
+
pending_modifications?: Array<{
|
|
11262
|
+
created_at: string;
|
|
11263
|
+
modification_code: 'profile';
|
|
11264
|
+
modified_from: {
|
|
11265
|
+
email_address?: (string | null) | undefined;
|
|
11266
|
+
full_name?: (string | null) | undefined;
|
|
11267
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
11268
|
+
};
|
|
11269
|
+
modified_to: {
|
|
11270
|
+
email_address?: (string | null) | undefined;
|
|
11271
|
+
full_name?: (string | null) | undefined;
|
|
11272
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
11273
|
+
};
|
|
11274
|
+
} | {
|
|
11275
|
+
created_at: string;
|
|
11276
|
+
modification_code: 'access_schedule';
|
|
11277
|
+
modified_from: {
|
|
11278
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11279
|
+
starts_at: string;
|
|
11280
|
+
/** 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. */
|
|
11281
|
+
ends_at: string | null;
|
|
11282
|
+
};
|
|
11283
|
+
modified_to: {
|
|
11284
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11285
|
+
starts_at: string;
|
|
11286
|
+
/** 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. */
|
|
11287
|
+
ends_at: string | null;
|
|
11288
|
+
};
|
|
11289
|
+
} | {
|
|
11290
|
+
created_at: string;
|
|
11291
|
+
modification_code: 'suspension_state';
|
|
11292
|
+
modified_from: {
|
|
11293
|
+
is_suspended: boolean;
|
|
11294
|
+
};
|
|
11295
|
+
modified_to: {
|
|
11296
|
+
is_suspended: boolean;
|
|
11297
|
+
};
|
|
11298
|
+
} | {
|
|
11299
|
+
created_at: string;
|
|
11300
|
+
modification_code: 'acs_access_group_membership';
|
|
11301
|
+
modified_from: {
|
|
11302
|
+
acs_access_group_id: string | null;
|
|
11303
|
+
};
|
|
11304
|
+
modified_to: {
|
|
11305
|
+
acs_access_group_id: string | null;
|
|
11306
|
+
};
|
|
11307
|
+
}> | undefined;
|
|
11212
11308
|
/** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
|
|
11213
11309
|
full_name?: string | undefined;
|
|
11214
11310
|
/**
|
|
@@ -11335,6 +11431,54 @@ export interface Routes {
|
|
|
11335
11431
|
message: string;
|
|
11336
11432
|
error_code: 'failed_to_delete_on_acs_system';
|
|
11337
11433
|
}>;
|
|
11434
|
+
/** */
|
|
11435
|
+
pending_modifications?: Array<{
|
|
11436
|
+
created_at: string;
|
|
11437
|
+
modification_code: 'profile';
|
|
11438
|
+
modified_from: {
|
|
11439
|
+
email_address?: (string | null) | undefined;
|
|
11440
|
+
full_name?: (string | null) | undefined;
|
|
11441
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
11442
|
+
};
|
|
11443
|
+
modified_to: {
|
|
11444
|
+
email_address?: (string | null) | undefined;
|
|
11445
|
+
full_name?: (string | null) | undefined;
|
|
11446
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
11447
|
+
};
|
|
11448
|
+
} | {
|
|
11449
|
+
created_at: string;
|
|
11450
|
+
modification_code: 'access_schedule';
|
|
11451
|
+
modified_from: {
|
|
11452
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11453
|
+
starts_at: string;
|
|
11454
|
+
/** 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. */
|
|
11455
|
+
ends_at: string | null;
|
|
11456
|
+
};
|
|
11457
|
+
modified_to: {
|
|
11458
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11459
|
+
starts_at: string;
|
|
11460
|
+
/** 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. */
|
|
11461
|
+
ends_at: string | null;
|
|
11462
|
+
};
|
|
11463
|
+
} | {
|
|
11464
|
+
created_at: string;
|
|
11465
|
+
modification_code: 'suspension_state';
|
|
11466
|
+
modified_from: {
|
|
11467
|
+
is_suspended: boolean;
|
|
11468
|
+
};
|
|
11469
|
+
modified_to: {
|
|
11470
|
+
is_suspended: boolean;
|
|
11471
|
+
};
|
|
11472
|
+
} | {
|
|
11473
|
+
created_at: string;
|
|
11474
|
+
modification_code: 'acs_access_group_membership';
|
|
11475
|
+
modified_from: {
|
|
11476
|
+
acs_access_group_id: string | null;
|
|
11477
|
+
};
|
|
11478
|
+
modified_to: {
|
|
11479
|
+
acs_access_group_id: string | null;
|
|
11480
|
+
};
|
|
11481
|
+
}> | undefined;
|
|
11338
11482
|
/** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
|
|
11339
11483
|
full_name?: string | undefined;
|
|
11340
11484
|
/**
|
|
@@ -11461,6 +11605,54 @@ export interface Routes {
|
|
|
11461
11605
|
message: string;
|
|
11462
11606
|
error_code: 'failed_to_delete_on_acs_system';
|
|
11463
11607
|
}>;
|
|
11608
|
+
/** */
|
|
11609
|
+
pending_modifications?: Array<{
|
|
11610
|
+
created_at: string;
|
|
11611
|
+
modification_code: 'profile';
|
|
11612
|
+
modified_from: {
|
|
11613
|
+
email_address?: (string | null) | undefined;
|
|
11614
|
+
full_name?: (string | null) | undefined;
|
|
11615
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
11616
|
+
};
|
|
11617
|
+
modified_to: {
|
|
11618
|
+
email_address?: (string | null) | undefined;
|
|
11619
|
+
full_name?: (string | null) | undefined;
|
|
11620
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
11621
|
+
};
|
|
11622
|
+
} | {
|
|
11623
|
+
created_at: string;
|
|
11624
|
+
modification_code: 'access_schedule';
|
|
11625
|
+
modified_from: {
|
|
11626
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11627
|
+
starts_at: string;
|
|
11628
|
+
/** 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. */
|
|
11629
|
+
ends_at: string | null;
|
|
11630
|
+
};
|
|
11631
|
+
modified_to: {
|
|
11632
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11633
|
+
starts_at: string;
|
|
11634
|
+
/** 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. */
|
|
11635
|
+
ends_at: string | null;
|
|
11636
|
+
};
|
|
11637
|
+
} | {
|
|
11638
|
+
created_at: string;
|
|
11639
|
+
modification_code: 'suspension_state';
|
|
11640
|
+
modified_from: {
|
|
11641
|
+
is_suspended: boolean;
|
|
11642
|
+
};
|
|
11643
|
+
modified_to: {
|
|
11644
|
+
is_suspended: boolean;
|
|
11645
|
+
};
|
|
11646
|
+
} | {
|
|
11647
|
+
created_at: string;
|
|
11648
|
+
modification_code: 'acs_access_group_membership';
|
|
11649
|
+
modified_from: {
|
|
11650
|
+
acs_access_group_id: string | null;
|
|
11651
|
+
};
|
|
11652
|
+
modified_to: {
|
|
11653
|
+
acs_access_group_id: string | null;
|
|
11654
|
+
};
|
|
11655
|
+
}> | undefined;
|
|
11464
11656
|
/** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
|
|
11465
11657
|
full_name?: string | undefined;
|
|
11466
11658
|
/**
|
|
@@ -11696,6 +11888,54 @@ export interface Routes {
|
|
|
11696
11888
|
message: string;
|
|
11697
11889
|
error_code: 'failed_to_delete_on_acs_system';
|
|
11698
11890
|
}>;
|
|
11891
|
+
/** */
|
|
11892
|
+
pending_modifications?: Array<{
|
|
11893
|
+
created_at: string;
|
|
11894
|
+
modification_code: 'profile';
|
|
11895
|
+
modified_from: {
|
|
11896
|
+
email_address?: (string | null) | undefined;
|
|
11897
|
+
full_name?: (string | null) | undefined;
|
|
11898
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
11899
|
+
};
|
|
11900
|
+
modified_to: {
|
|
11901
|
+
email_address?: (string | null) | undefined;
|
|
11902
|
+
full_name?: (string | null) | undefined;
|
|
11903
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
11904
|
+
};
|
|
11905
|
+
} | {
|
|
11906
|
+
created_at: string;
|
|
11907
|
+
modification_code: 'access_schedule';
|
|
11908
|
+
modified_from: {
|
|
11909
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11910
|
+
starts_at: string;
|
|
11911
|
+
/** 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. */
|
|
11912
|
+
ends_at: string | null;
|
|
11913
|
+
};
|
|
11914
|
+
modified_to: {
|
|
11915
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
11916
|
+
starts_at: string;
|
|
11917
|
+
/** 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. */
|
|
11918
|
+
ends_at: string | null;
|
|
11919
|
+
};
|
|
11920
|
+
} | {
|
|
11921
|
+
created_at: string;
|
|
11922
|
+
modification_code: 'suspension_state';
|
|
11923
|
+
modified_from: {
|
|
11924
|
+
is_suspended: boolean;
|
|
11925
|
+
};
|
|
11926
|
+
modified_to: {
|
|
11927
|
+
is_suspended: boolean;
|
|
11928
|
+
};
|
|
11929
|
+
} | {
|
|
11930
|
+
created_at: string;
|
|
11931
|
+
modification_code: 'acs_access_group_membership';
|
|
11932
|
+
modified_from: {
|
|
11933
|
+
acs_access_group_id: string | null;
|
|
11934
|
+
};
|
|
11935
|
+
modified_to: {
|
|
11936
|
+
acs_access_group_id: string | null;
|
|
11937
|
+
};
|
|
11938
|
+
}> | undefined;
|
|
11699
11939
|
/** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
|
|
11700
11940
|
full_name?: string | undefined;
|
|
11701
11941
|
/**
|
|
@@ -11812,6 +12052,54 @@ export interface Routes {
|
|
|
11812
12052
|
message: string;
|
|
11813
12053
|
error_code: 'failed_to_delete_on_acs_system';
|
|
11814
12054
|
}>;
|
|
12055
|
+
/** */
|
|
12056
|
+
pending_modifications?: Array<{
|
|
12057
|
+
created_at: string;
|
|
12058
|
+
modification_code: 'profile';
|
|
12059
|
+
modified_from: {
|
|
12060
|
+
email_address?: (string | null) | undefined;
|
|
12061
|
+
full_name?: (string | null) | undefined;
|
|
12062
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
12063
|
+
};
|
|
12064
|
+
modified_to: {
|
|
12065
|
+
email_address?: (string | null) | undefined;
|
|
12066
|
+
full_name?: (string | null) | undefined;
|
|
12067
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
12068
|
+
};
|
|
12069
|
+
} | {
|
|
12070
|
+
created_at: string;
|
|
12071
|
+
modification_code: 'access_schedule';
|
|
12072
|
+
modified_from: {
|
|
12073
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
12074
|
+
starts_at: string;
|
|
12075
|
+
/** 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. */
|
|
12076
|
+
ends_at: string | null;
|
|
12077
|
+
};
|
|
12078
|
+
modified_to: {
|
|
12079
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
12080
|
+
starts_at: string;
|
|
12081
|
+
/** 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. */
|
|
12082
|
+
ends_at: string | null;
|
|
12083
|
+
};
|
|
12084
|
+
} | {
|
|
12085
|
+
created_at: string;
|
|
12086
|
+
modification_code: 'suspension_state';
|
|
12087
|
+
modified_from: {
|
|
12088
|
+
is_suspended: boolean;
|
|
12089
|
+
};
|
|
12090
|
+
modified_to: {
|
|
12091
|
+
is_suspended: boolean;
|
|
12092
|
+
};
|
|
12093
|
+
} | {
|
|
12094
|
+
created_at: string;
|
|
12095
|
+
modification_code: 'acs_access_group_membership';
|
|
12096
|
+
modified_from: {
|
|
12097
|
+
acs_access_group_id: string | null;
|
|
12098
|
+
};
|
|
12099
|
+
modified_to: {
|
|
12100
|
+
acs_access_group_id: string | null;
|
|
12101
|
+
};
|
|
12102
|
+
}> | undefined;
|
|
11815
12103
|
/** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
|
|
11816
12104
|
full_name?: string | undefined;
|
|
11817
12105
|
/**
|
|
@@ -27883,6 +28171,27 @@ export interface Routes {
|
|
|
27883
28171
|
bridge_client_name: string;
|
|
27884
28172
|
bridge_client_time_zone: string;
|
|
27885
28173
|
bridge_client_machine_identifier_key: string;
|
|
28174
|
+
errors: Array<{
|
|
28175
|
+
message: string;
|
|
28176
|
+
created_at: string;
|
|
28177
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28178
|
+
error_code: 'bridge_lan_unreachable';
|
|
28179
|
+
/** Seam cannot reach the tailscale proxy */
|
|
28180
|
+
is_tailscale_proxy_reachable: boolean;
|
|
28181
|
+
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
28182
|
+
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
28183
|
+
/** Tailscale proxy cannot reach the Tailscale network */
|
|
28184
|
+
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
28185
|
+
/** Tailscale proxy cannot reach the bridge */
|
|
28186
|
+
can_tailscale_proxy_reach_bridge: boolean;
|
|
28187
|
+
/** Bridge's SOCKS server is unhealthy */
|
|
28188
|
+
is_bridge_socks_server_healthy: boolean;
|
|
28189
|
+
} | {
|
|
28190
|
+
message: string;
|
|
28191
|
+
created_at: string;
|
|
28192
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28193
|
+
error_code: 'no_communication_from_bridge';
|
|
28194
|
+
}>;
|
|
27886
28195
|
};
|
|
27887
28196
|
};
|
|
27888
28197
|
};
|
|
@@ -27906,6 +28215,27 @@ export interface Routes {
|
|
|
27906
28215
|
bridge_client_name: string;
|
|
27907
28216
|
bridge_client_time_zone: string;
|
|
27908
28217
|
bridge_client_machine_identifier_key: string;
|
|
28218
|
+
errors: Array<{
|
|
28219
|
+
message: string;
|
|
28220
|
+
created_at: string;
|
|
28221
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28222
|
+
error_code: 'bridge_lan_unreachable';
|
|
28223
|
+
/** Seam cannot reach the tailscale proxy */
|
|
28224
|
+
is_tailscale_proxy_reachable: boolean;
|
|
28225
|
+
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
28226
|
+
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
28227
|
+
/** Tailscale proxy cannot reach the Tailscale network */
|
|
28228
|
+
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
28229
|
+
/** Tailscale proxy cannot reach the bridge */
|
|
28230
|
+
can_tailscale_proxy_reach_bridge: boolean;
|
|
28231
|
+
/** Bridge's SOCKS server is unhealthy */
|
|
28232
|
+
is_bridge_socks_server_healthy: boolean;
|
|
28233
|
+
} | {
|
|
28234
|
+
message: string;
|
|
28235
|
+
created_at: string;
|
|
28236
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28237
|
+
error_code: 'no_communication_from_bridge';
|
|
28238
|
+
}>;
|
|
27909
28239
|
};
|
|
27910
28240
|
};
|
|
27911
28241
|
};
|
|
@@ -27929,6 +28259,27 @@ export interface Routes {
|
|
|
27929
28259
|
bridge_client_name: string;
|
|
27930
28260
|
bridge_client_time_zone: string;
|
|
27931
28261
|
bridge_client_machine_identifier_key: string;
|
|
28262
|
+
errors: Array<{
|
|
28263
|
+
message: string;
|
|
28264
|
+
created_at: string;
|
|
28265
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28266
|
+
error_code: 'bridge_lan_unreachable';
|
|
28267
|
+
/** Seam cannot reach the tailscale proxy */
|
|
28268
|
+
is_tailscale_proxy_reachable: boolean;
|
|
28269
|
+
/** Tailscale proxy's SOCKS server is unhealthy */
|
|
28270
|
+
is_tailscale_proxy_socks_server_healthy: boolean;
|
|
28271
|
+
/** Tailscale proxy cannot reach the Tailscale network */
|
|
28272
|
+
can_tailscale_proxy_reach_tailscale_network: boolean;
|
|
28273
|
+
/** Tailscale proxy cannot reach the bridge */
|
|
28274
|
+
can_tailscale_proxy_reach_bridge: boolean;
|
|
28275
|
+
/** Bridge's SOCKS server is unhealthy */
|
|
28276
|
+
is_bridge_socks_server_healthy: boolean;
|
|
28277
|
+
} | {
|
|
28278
|
+
message: string;
|
|
28279
|
+
created_at: string;
|
|
28280
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
28281
|
+
error_code: 'no_communication_from_bridge';
|
|
28282
|
+
}>;
|
|
27932
28283
|
};
|
|
27933
28284
|
};
|
|
27934
28285
|
};
|
|
@@ -38705,6 +39056,54 @@ export interface Routes {
|
|
|
38705
39056
|
message: string;
|
|
38706
39057
|
error_code: 'failed_to_delete_on_acs_system';
|
|
38707
39058
|
}>;
|
|
39059
|
+
/** */
|
|
39060
|
+
pending_modifications?: Array<{
|
|
39061
|
+
created_at: string;
|
|
39062
|
+
modification_code: 'profile';
|
|
39063
|
+
modified_from: {
|
|
39064
|
+
email_address?: (string | null) | undefined;
|
|
39065
|
+
full_name?: (string | null) | undefined;
|
|
39066
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
39067
|
+
};
|
|
39068
|
+
modified_to: {
|
|
39069
|
+
email_address?: (string | null) | undefined;
|
|
39070
|
+
full_name?: (string | null) | undefined;
|
|
39071
|
+
phone_number?: ((string | undefined) | null) | undefined;
|
|
39072
|
+
};
|
|
39073
|
+
} | {
|
|
39074
|
+
created_at: string;
|
|
39075
|
+
modification_code: 'access_schedule';
|
|
39076
|
+
modified_from: {
|
|
39077
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
39078
|
+
starts_at: string;
|
|
39079
|
+
/** 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. */
|
|
39080
|
+
ends_at: string | null;
|
|
39081
|
+
};
|
|
39082
|
+
modified_to: {
|
|
39083
|
+
/** Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
39084
|
+
starts_at: string;
|
|
39085
|
+
/** 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. */
|
|
39086
|
+
ends_at: string | null;
|
|
39087
|
+
};
|
|
39088
|
+
} | {
|
|
39089
|
+
created_at: string;
|
|
39090
|
+
modification_code: 'suspension_state';
|
|
39091
|
+
modified_from: {
|
|
39092
|
+
is_suspended: boolean;
|
|
39093
|
+
};
|
|
39094
|
+
modified_to: {
|
|
39095
|
+
is_suspended: boolean;
|
|
39096
|
+
};
|
|
39097
|
+
} | {
|
|
39098
|
+
created_at: string;
|
|
39099
|
+
modification_code: 'acs_access_group_membership';
|
|
39100
|
+
modified_from: {
|
|
39101
|
+
acs_access_group_id: string | null;
|
|
39102
|
+
};
|
|
39103
|
+
modified_to: {
|
|
39104
|
+
acs_access_group_id: string | null;
|
|
39105
|
+
};
|
|
39106
|
+
}> | undefined;
|
|
38708
39107
|
/** Full name of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). */
|
|
38709
39108
|
full_name?: string | undefined;
|
|
38710
39109
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
import { phone_number } from '
|
|
4
|
-
import { schedule } from '
|
|
3
|
+
import { phone_number } from '../../phone-number.js'
|
|
4
|
+
import { schedule } from '../../schedule.js'
|
|
5
|
+
import { acs_user_pending_modification } from './pending-modifications.js'
|
|
5
6
|
|
|
6
7
|
export const acs_user_external_type = z.enum([
|
|
7
8
|
'pti_user',
|
|
@@ -323,6 +324,12 @@ const common_acs_user = z
|
|
|
323
324
|
.describe(
|
|
324
325
|
'Errors associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
325
326
|
),
|
|
327
|
+
pending_modifications: z.array(acs_user_pending_modification).optional()
|
|
328
|
+
.describe(`
|
|
329
|
+
---
|
|
330
|
+
undocumented: Experimental.
|
|
331
|
+
---
|
|
332
|
+
`),
|
|
326
333
|
})
|
|
327
334
|
.merge(user_fields)
|
|
328
335
|
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
import { phone_number } from '../../phone-number.js'
|
|
4
|
+
import { schedule } from '../../schedule.js'
|
|
5
|
+
|
|
6
|
+
const common_pending_modification = z.object({
|
|
7
|
+
created_at: z.string().datetime(),
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
const acs_user_profile = z.object({
|
|
11
|
+
email_address: z.string().email().nullable(),
|
|
12
|
+
full_name: z.string().nullable(),
|
|
13
|
+
phone_number: phone_number.optional().nullable(),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const profile_pending_modification = common_pending_modification.extend({
|
|
17
|
+
modification_code: z.literal('profile'),
|
|
18
|
+
modified_from: acs_user_profile.partial(),
|
|
19
|
+
modified_to: acs_user_profile.partial(),
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const access_schedule_pending_modification = common_pending_modification.extend(
|
|
23
|
+
{
|
|
24
|
+
modification_code: z.literal('access_schedule'),
|
|
25
|
+
modified_from: schedule,
|
|
26
|
+
modified_to: schedule,
|
|
27
|
+
},
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
const suspension_state_pending_modification =
|
|
31
|
+
common_pending_modification.extend({
|
|
32
|
+
modification_code: z.literal('suspension_state'),
|
|
33
|
+
modified_from: z.object({ is_suspended: z.boolean() }),
|
|
34
|
+
modified_to: z.object({ is_suspended: z.boolean() }),
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
const acs_access_group_membership_pending_modification =
|
|
38
|
+
common_pending_modification.extend({
|
|
39
|
+
modification_code: z.literal('acs_access_group_membership'),
|
|
40
|
+
modified_from: z.object({
|
|
41
|
+
acs_access_group_id: z.string().uuid().nullable(),
|
|
42
|
+
}),
|
|
43
|
+
modified_to: z.object({
|
|
44
|
+
acs_access_group_id: z.string().uuid().nullable(),
|
|
45
|
+
}),
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
export const acs_user_pending_modification = z.discriminatedUnion(
|
|
49
|
+
'modification_code',
|
|
50
|
+
[
|
|
51
|
+
profile_pending_modification,
|
|
52
|
+
access_schedule_pending_modification,
|
|
53
|
+
suspension_state_pending_modification,
|
|
54
|
+
acs_access_group_membership_pending_modification,
|
|
55
|
+
],
|
|
56
|
+
)
|
|
@@ -5,5 +5,5 @@ export * from './acs-credential-provisioning-automation.js'
|
|
|
5
5
|
export * from './acs-encoder.js'
|
|
6
6
|
export * from './acs-entrance.js'
|
|
7
7
|
export * from './acs-system.js'
|
|
8
|
-
export * from './acs-
|
|
8
|
+
export * from './acs-users/index.js'
|
|
9
9
|
export * from './metadata/index.js'
|
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
+
const common_bridge_client_session_error = z.object({
|
|
4
|
+
message: z.string(),
|
|
5
|
+
created_at: z.string().datetime(),
|
|
6
|
+
})
|
|
7
|
+
|
|
8
|
+
const error_code_description =
|
|
9
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
|
|
10
|
+
|
|
11
|
+
export const bridge_lan_unreachable = common_bridge_client_session_error
|
|
12
|
+
.extend({
|
|
13
|
+
error_code: z
|
|
14
|
+
.literal('bridge_lan_unreachable')
|
|
15
|
+
.describe(error_code_description),
|
|
16
|
+
is_tailscale_proxy_reachable: z
|
|
17
|
+
.boolean()
|
|
18
|
+
.describe('Seam cannot reach the tailscale proxy'),
|
|
19
|
+
is_tailscale_proxy_socks_server_healthy: z
|
|
20
|
+
.boolean()
|
|
21
|
+
.describe("Tailscale proxy's SOCKS server is unhealthy"),
|
|
22
|
+
can_tailscale_proxy_reach_tailscale_network: z
|
|
23
|
+
.boolean()
|
|
24
|
+
.describe('Tailscale proxy cannot reach the Tailscale network'),
|
|
25
|
+
can_tailscale_proxy_reach_bridge: z
|
|
26
|
+
.boolean()
|
|
27
|
+
.describe('Tailscale proxy cannot reach the bridge'),
|
|
28
|
+
is_bridge_socks_server_healthy: z
|
|
29
|
+
.boolean()
|
|
30
|
+
.describe("Bridge's SOCKS server is unhealthy"),
|
|
31
|
+
})
|
|
32
|
+
.describe("Seam cannot reach the bridge's LAN")
|
|
33
|
+
|
|
34
|
+
export const no_communication_from_bridge = common_bridge_client_session_error
|
|
35
|
+
.extend({
|
|
36
|
+
error_code: z
|
|
37
|
+
.literal('no_communication_from_bridge')
|
|
38
|
+
.describe(error_code_description),
|
|
39
|
+
})
|
|
40
|
+
.describe('Bridge has stopped communicating with Seam')
|
|
41
|
+
|
|
42
|
+
export const bridge_client_session_error = z
|
|
43
|
+
.discriminatedUnion('error_code', [
|
|
44
|
+
bridge_lan_unreachable,
|
|
45
|
+
no_communication_from_bridge,
|
|
46
|
+
])
|
|
47
|
+
.describe('Error associated with the `bridge_client_session`.')
|
|
48
|
+
|
|
49
|
+
export type BridgeClientSessionError = z.infer<
|
|
50
|
+
typeof bridge_client_session_error
|
|
51
|
+
>
|
|
52
|
+
|
|
53
|
+
const bridge_client_session_error_map = z.object({
|
|
54
|
+
bridge_lan_unreachable: bridge_lan_unreachable.optional().nullable(),
|
|
55
|
+
no_communication_from_bridge: no_communication_from_bridge
|
|
56
|
+
.optional()
|
|
57
|
+
.nullable(),
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
export type BridgeClientSessionErrorMap = z.infer<
|
|
61
|
+
typeof bridge_client_session_error_map
|
|
62
|
+
>
|
|
63
|
+
|
|
3
64
|
export const bridge_client_session = z.object({
|
|
4
65
|
created_at: z.string().datetime(),
|
|
5
66
|
bridge_client_session_id: z.string().uuid(),
|
|
@@ -11,6 +72,7 @@ export const bridge_client_session = z.object({
|
|
|
11
72
|
bridge_client_name: z.string(),
|
|
12
73
|
bridge_client_time_zone: z.string(),
|
|
13
74
|
bridge_client_machine_identifier_key: z.string(),
|
|
75
|
+
errors: z.array(bridge_client_session_error),
|
|
14
76
|
}).describe(`
|
|
15
77
|
---
|
|
16
78
|
route_path: /seam/bridge/v1/bridge_client_sessions
|