@seamapi/types 1.377.0 → 1.378.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 +92 -15
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +224 -118
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +28 -28
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +195 -10
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +16 -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 +94 -8
- package/lib/seam/connect/openapi.js +78 -8
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +77 -57
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +17 -3
- package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +5 -0
- package/src/lib/seam/connect/openapi.ts +79 -16
- package/src/lib/seam/connect/route-types.ts +77 -57
package/dist/connect.cjs
CHANGED
|
@@ -2421,10 +2421,14 @@ var updating_user_information_mutation = common_pending_mutation.extend({
|
|
|
2421
2421
|
from: acs_user_info.partial(),
|
|
2422
2422
|
to: acs_user_info.partial()
|
|
2423
2423
|
});
|
|
2424
|
+
var access_schedule = zod.z.object({
|
|
2425
|
+
starts_at: zod.z.string().datetime().nullable(),
|
|
2426
|
+
ends_at: zod.z.string().datetime().nullable()
|
|
2427
|
+
});
|
|
2424
2428
|
var updating_access_schedule_mutation = common_pending_mutation.extend({
|
|
2425
2429
|
mutation_code: zod.z.literal("updating_access_schedule"),
|
|
2426
|
-
from:
|
|
2427
|
-
to:
|
|
2430
|
+
from: access_schedule,
|
|
2431
|
+
to: access_schedule
|
|
2428
2432
|
});
|
|
2429
2433
|
var updating_suspension_state_mutation = common_pending_mutation.extend({
|
|
2430
2434
|
mutation_code: zod.z.literal("updating_suspension_state"),
|
|
@@ -2454,6 +2458,9 @@ var acs_user_pending_mutations = zod.z.discriminatedUnion(
|
|
|
2454
2458
|
zod.z.object({
|
|
2455
2459
|
creating: creating.optional().nullable(),
|
|
2456
2460
|
deleting: deleting.optional().nullable(),
|
|
2461
|
+
updating_access_schedule: updating_access_schedule_mutation.optional().nullable(),
|
|
2462
|
+
updating_group_membership: zod.z.map(zod.z.string().uuid(), updating_group_membership_mutation).optional().nullable(),
|
|
2463
|
+
updating_suspension_state: updating_suspension_state_mutation.optional().nullable(),
|
|
2457
2464
|
"updating_user_information.full_name": common_pending_mutation.extend({
|
|
2458
2465
|
mutation_code: zod.z.literal("updating_user_information"),
|
|
2459
2466
|
from: zod.z.object({
|
|
@@ -3051,11 +3058,11 @@ var common_bridge_client_session_error = zod.z.object({
|
|
|
3051
3058
|
var error_code_description6 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
|
|
3052
3059
|
var bridge_lan_unreachable = common_bridge_client_session_error.extend({
|
|
3053
3060
|
error_code: zod.z.literal("bridge_lan_unreachable").describe(error_code_description6),
|
|
3054
|
-
is_tailscale_proxy_reachable: zod.z.boolean().describe("Seam cannot reach the tailscale proxy"),
|
|
3055
|
-
is_tailscale_proxy_socks_server_healthy: zod.z.boolean().describe("Tailscale proxy's SOCKS server is unhealthy"),
|
|
3056
|
-
can_tailscale_proxy_reach_tailscale_network: zod.z.boolean().describe("Tailscale proxy cannot reach the Tailscale network"),
|
|
3057
|
-
can_tailscale_proxy_reach_bridge: zod.z.boolean().describe("Tailscale proxy cannot reach the bridge"),
|
|
3058
|
-
is_bridge_socks_server_healthy: zod.z.boolean().describe("Bridge's SOCKS server is unhealthy")
|
|
3061
|
+
is_tailscale_proxy_reachable: zod.z.boolean().nullable().describe("Seam cannot reach the tailscale proxy"),
|
|
3062
|
+
is_tailscale_proxy_socks_server_healthy: zod.z.boolean().nullable().describe("Tailscale proxy's SOCKS server is unhealthy"),
|
|
3063
|
+
can_tailscale_proxy_reach_tailscale_network: zod.z.boolean().nullable().describe("Tailscale proxy cannot reach the Tailscale network"),
|
|
3064
|
+
can_tailscale_proxy_reach_bridge: zod.z.boolean().nullable().describe("Tailscale proxy cannot reach the bridge"),
|
|
3065
|
+
is_bridge_socks_server_healthy: zod.z.boolean().nullable().describe("Bridge's SOCKS server is unhealthy")
|
|
3059
3066
|
}).describe("Seam cannot reach the bridge's LAN");
|
|
3060
3067
|
var no_communication_from_bridge = common_bridge_client_session_error.extend({
|
|
3061
3068
|
error_code: zod.z.literal("no_communication_from_bridge").describe(error_code_description6)
|
|
@@ -6863,14 +6870,13 @@ var openapi_default = {
|
|
|
6863
6870
|
from: {
|
|
6864
6871
|
properties: {
|
|
6865
6872
|
ends_at: {
|
|
6866
|
-
description: "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.",
|
|
6867
6873
|
format: "date-time",
|
|
6868
6874
|
nullable: true,
|
|
6869
6875
|
type: "string"
|
|
6870
6876
|
},
|
|
6871
6877
|
starts_at: {
|
|
6872
|
-
description: "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.",
|
|
6873
6878
|
format: "date-time",
|
|
6879
|
+
nullable: true,
|
|
6874
6880
|
type: "string"
|
|
6875
6881
|
}
|
|
6876
6882
|
},
|
|
@@ -6884,14 +6890,13 @@ var openapi_default = {
|
|
|
6884
6890
|
to: {
|
|
6885
6891
|
properties: {
|
|
6886
6892
|
ends_at: {
|
|
6887
|
-
description: "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.",
|
|
6888
6893
|
format: "date-time",
|
|
6889
6894
|
nullable: true,
|
|
6890
6895
|
type: "string"
|
|
6891
6896
|
},
|
|
6892
6897
|
starts_at: {
|
|
6893
|
-
description: "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.",
|
|
6894
6898
|
format: "date-time",
|
|
6899
|
+
nullable: true,
|
|
6895
6900
|
type: "string"
|
|
6896
6901
|
}
|
|
6897
6902
|
},
|
|
@@ -18866,14 +18871,13 @@ var openapi_default = {
|
|
|
18866
18871
|
from: {
|
|
18867
18872
|
properties: {
|
|
18868
18873
|
ends_at: {
|
|
18869
|
-
description: "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.",
|
|
18870
18874
|
format: "date-time",
|
|
18871
18875
|
nullable: true,
|
|
18872
18876
|
type: "string"
|
|
18873
18877
|
},
|
|
18874
18878
|
starts_at: {
|
|
18875
|
-
description: "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.",
|
|
18876
18879
|
format: "date-time",
|
|
18880
|
+
nullable: true,
|
|
18877
18881
|
type: "string"
|
|
18878
18882
|
}
|
|
18879
18883
|
},
|
|
@@ -18887,14 +18891,13 @@ var openapi_default = {
|
|
|
18887
18891
|
to: {
|
|
18888
18892
|
properties: {
|
|
18889
18893
|
ends_at: {
|
|
18890
|
-
description: "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.",
|
|
18891
18894
|
format: "date-time",
|
|
18892
18895
|
nullable: true,
|
|
18893
18896
|
type: "string"
|
|
18894
18897
|
},
|
|
18895
18898
|
starts_at: {
|
|
18896
|
-
description: "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.",
|
|
18897
18899
|
format: "date-time",
|
|
18900
|
+
nullable: true,
|
|
18898
18901
|
type: "string"
|
|
18899
18902
|
}
|
|
18900
18903
|
},
|
|
@@ -23469,6 +23472,60 @@ var openapi_default = {
|
|
|
23469
23472
|
"x-title": "Encode a Credential"
|
|
23470
23473
|
}
|
|
23471
23474
|
},
|
|
23475
|
+
"/acs/encoders/get": {
|
|
23476
|
+
post: {
|
|
23477
|
+
description: "Returns a specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
|
|
23478
|
+
operationId: "acsEncodersGetPost",
|
|
23479
|
+
requestBody: {
|
|
23480
|
+
content: {
|
|
23481
|
+
"application/json": {
|
|
23482
|
+
schema: {
|
|
23483
|
+
properties: {
|
|
23484
|
+
acs_encoder_id: {
|
|
23485
|
+
description: "ID of the desired encoder.",
|
|
23486
|
+
format: "uuid",
|
|
23487
|
+
type: "string"
|
|
23488
|
+
}
|
|
23489
|
+
},
|
|
23490
|
+
required: ["acs_encoder_id"],
|
|
23491
|
+
type: "object"
|
|
23492
|
+
}
|
|
23493
|
+
}
|
|
23494
|
+
}
|
|
23495
|
+
},
|
|
23496
|
+
responses: {
|
|
23497
|
+
200: {
|
|
23498
|
+
content: {
|
|
23499
|
+
"application/json": {
|
|
23500
|
+
schema: {
|
|
23501
|
+
properties: {
|
|
23502
|
+
acs_encoder: { $ref: "#/components/schemas/acs_encoder" },
|
|
23503
|
+
ok: { type: "boolean" }
|
|
23504
|
+
},
|
|
23505
|
+
required: ["acs_encoder", "ok"],
|
|
23506
|
+
type: "object"
|
|
23507
|
+
}
|
|
23508
|
+
}
|
|
23509
|
+
},
|
|
23510
|
+
description: "OK"
|
|
23511
|
+
},
|
|
23512
|
+
400: { description: "Bad Request" },
|
|
23513
|
+
401: { description: "Unauthorized" }
|
|
23514
|
+
},
|
|
23515
|
+
security: [
|
|
23516
|
+
{ pat_with_workspace: [] },
|
|
23517
|
+
{ console_session_with_workspace: [] },
|
|
23518
|
+
{ api_key: [] }
|
|
23519
|
+
],
|
|
23520
|
+
summary: "/acs/encoders/get",
|
|
23521
|
+
tags: ["/acs"],
|
|
23522
|
+
"x-fern-sdk-group-name": ["acs", "encoders"],
|
|
23523
|
+
"x-fern-sdk-method-name": "get",
|
|
23524
|
+
"x-fern-sdk-return-value": "acs_encoder",
|
|
23525
|
+
"x-response-key": "acs_encoder",
|
|
23526
|
+
"x-title": "Get an Encoder"
|
|
23527
|
+
}
|
|
23528
|
+
},
|
|
23472
23529
|
"/acs/encoders/list": {
|
|
23473
23530
|
post: {
|
|
23474
23531
|
description: "Returns a list of all [encoders](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
|
|
@@ -29437,10 +29494,12 @@ var openapi_default = {
|
|
|
29437
29494
|
properties: {
|
|
29438
29495
|
can_tailscale_proxy_reach_bridge: {
|
|
29439
29496
|
description: "Tailscale proxy cannot reach the bridge",
|
|
29497
|
+
nullable: true,
|
|
29440
29498
|
type: "boolean"
|
|
29441
29499
|
},
|
|
29442
29500
|
can_tailscale_proxy_reach_tailscale_network: {
|
|
29443
29501
|
description: "Tailscale proxy cannot reach the Tailscale network",
|
|
29502
|
+
nullable: true,
|
|
29444
29503
|
type: "boolean"
|
|
29445
29504
|
},
|
|
29446
29505
|
created_at: {
|
|
@@ -29454,14 +29513,17 @@ var openapi_default = {
|
|
|
29454
29513
|
},
|
|
29455
29514
|
is_bridge_socks_server_healthy: {
|
|
29456
29515
|
description: "Bridge's SOCKS server is unhealthy",
|
|
29516
|
+
nullable: true,
|
|
29457
29517
|
type: "boolean"
|
|
29458
29518
|
},
|
|
29459
29519
|
is_tailscale_proxy_reachable: {
|
|
29460
29520
|
description: "Seam cannot reach the tailscale proxy",
|
|
29521
|
+
nullable: true,
|
|
29461
29522
|
type: "boolean"
|
|
29462
29523
|
},
|
|
29463
29524
|
is_tailscale_proxy_socks_server_healthy: {
|
|
29464
29525
|
description: "Tailscale proxy's SOCKS server is unhealthy",
|
|
29526
|
+
nullable: true,
|
|
29465
29527
|
type: "boolean"
|
|
29466
29528
|
},
|
|
29467
29529
|
message: { type: "string" }
|
|
@@ -29593,10 +29655,12 @@ var openapi_default = {
|
|
|
29593
29655
|
properties: {
|
|
29594
29656
|
can_tailscale_proxy_reach_bridge: {
|
|
29595
29657
|
description: "Tailscale proxy cannot reach the bridge",
|
|
29658
|
+
nullable: true,
|
|
29596
29659
|
type: "boolean"
|
|
29597
29660
|
},
|
|
29598
29661
|
can_tailscale_proxy_reach_tailscale_network: {
|
|
29599
29662
|
description: "Tailscale proxy cannot reach the Tailscale network",
|
|
29663
|
+
nullable: true,
|
|
29600
29664
|
type: "boolean"
|
|
29601
29665
|
},
|
|
29602
29666
|
created_at: {
|
|
@@ -29610,14 +29674,17 @@ var openapi_default = {
|
|
|
29610
29674
|
},
|
|
29611
29675
|
is_bridge_socks_server_healthy: {
|
|
29612
29676
|
description: "Bridge's SOCKS server is unhealthy",
|
|
29677
|
+
nullable: true,
|
|
29613
29678
|
type: "boolean"
|
|
29614
29679
|
},
|
|
29615
29680
|
is_tailscale_proxy_reachable: {
|
|
29616
29681
|
description: "Seam cannot reach the tailscale proxy",
|
|
29682
|
+
nullable: true,
|
|
29617
29683
|
type: "boolean"
|
|
29618
29684
|
},
|
|
29619
29685
|
is_tailscale_proxy_socks_server_healthy: {
|
|
29620
29686
|
description: "Tailscale proxy's SOCKS server is unhealthy",
|
|
29687
|
+
nullable: true,
|
|
29621
29688
|
type: "boolean"
|
|
29622
29689
|
},
|
|
29623
29690
|
message: { type: "string" }
|
|
@@ -29740,10 +29807,12 @@ var openapi_default = {
|
|
|
29740
29807
|
properties: {
|
|
29741
29808
|
can_tailscale_proxy_reach_bridge: {
|
|
29742
29809
|
description: "Tailscale proxy cannot reach the bridge",
|
|
29810
|
+
nullable: true,
|
|
29743
29811
|
type: "boolean"
|
|
29744
29812
|
},
|
|
29745
29813
|
can_tailscale_proxy_reach_tailscale_network: {
|
|
29746
29814
|
description: "Tailscale proxy cannot reach the Tailscale network",
|
|
29815
|
+
nullable: true,
|
|
29747
29816
|
type: "boolean"
|
|
29748
29817
|
},
|
|
29749
29818
|
created_at: {
|
|
@@ -29757,14 +29826,17 @@ var openapi_default = {
|
|
|
29757
29826
|
},
|
|
29758
29827
|
is_bridge_socks_server_healthy: {
|
|
29759
29828
|
description: "Bridge's SOCKS server is unhealthy",
|
|
29829
|
+
nullable: true,
|
|
29760
29830
|
type: "boolean"
|
|
29761
29831
|
},
|
|
29762
29832
|
is_tailscale_proxy_reachable: {
|
|
29763
29833
|
description: "Seam cannot reach the tailscale proxy",
|
|
29834
|
+
nullable: true,
|
|
29764
29835
|
type: "boolean"
|
|
29765
29836
|
},
|
|
29766
29837
|
is_tailscale_proxy_socks_server_healthy: {
|
|
29767
29838
|
description: "Tailscale proxy's SOCKS server is unhealthy",
|
|
29839
|
+
nullable: true,
|
|
29768
29840
|
type: "boolean"
|
|
29769
29841
|
},
|
|
29770
29842
|
message: { type: "string" }
|
|
@@ -29896,10 +29968,12 @@ var openapi_default = {
|
|
|
29896
29968
|
properties: {
|
|
29897
29969
|
can_tailscale_proxy_reach_bridge: {
|
|
29898
29970
|
description: "Tailscale proxy cannot reach the bridge",
|
|
29971
|
+
nullable: true,
|
|
29899
29972
|
type: "boolean"
|
|
29900
29973
|
},
|
|
29901
29974
|
can_tailscale_proxy_reach_tailscale_network: {
|
|
29902
29975
|
description: "Tailscale proxy cannot reach the Tailscale network",
|
|
29976
|
+
nullable: true,
|
|
29903
29977
|
type: "boolean"
|
|
29904
29978
|
},
|
|
29905
29979
|
created_at: {
|
|
@@ -29913,14 +29987,17 @@ var openapi_default = {
|
|
|
29913
29987
|
},
|
|
29914
29988
|
is_bridge_socks_server_healthy: {
|
|
29915
29989
|
description: "Bridge's SOCKS server is unhealthy",
|
|
29990
|
+
nullable: true,
|
|
29916
29991
|
type: "boolean"
|
|
29917
29992
|
},
|
|
29918
29993
|
is_tailscale_proxy_reachable: {
|
|
29919
29994
|
description: "Seam cannot reach the tailscale proxy",
|
|
29995
|
+
nullable: true,
|
|
29920
29996
|
type: "boolean"
|
|
29921
29997
|
},
|
|
29922
29998
|
is_tailscale_proxy_socks_server_healthy: {
|
|
29923
29999
|
description: "Tailscale proxy's SOCKS server is unhealthy",
|
|
30000
|
+
nullable: true,
|
|
29924
30001
|
type: "boolean"
|
|
29925
30002
|
},
|
|
29926
30003
|
message: { type: "string" }
|