@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 CHANGED
@@ -2403,7 +2403,8 @@ var start_end_schedule = zod.z.object({
2403
2403
  });
2404
2404
  var schedule = start_end_schedule;
2405
2405
  var common_pending_mutation = zod.z.object({
2406
- created_at: zod.z.string().datetime()
2406
+ created_at: zod.z.string().datetime(),
2407
+ message: zod.z.string()
2407
2408
  });
2408
2409
  var creating = common_pending_mutation.extend({
2409
2410
  mutation_code: zod.z.literal("creating")
@@ -2421,10 +2422,14 @@ var updating_user_information_mutation = common_pending_mutation.extend({
2421
2422
  from: acs_user_info.partial(),
2422
2423
  to: acs_user_info.partial()
2423
2424
  });
2425
+ var access_schedule = zod.z.object({
2426
+ starts_at: zod.z.string().datetime().nullable(),
2427
+ ends_at: zod.z.string().datetime().nullable()
2428
+ });
2424
2429
  var updating_access_schedule_mutation = common_pending_mutation.extend({
2425
2430
  mutation_code: zod.z.literal("updating_access_schedule"),
2426
- from: schedule,
2427
- to: schedule
2431
+ from: access_schedule,
2432
+ to: access_schedule
2428
2433
  });
2429
2434
  var updating_suspension_state_mutation = common_pending_mutation.extend({
2430
2435
  mutation_code: zod.z.literal("updating_suspension_state"),
@@ -2454,6 +2459,9 @@ var acs_user_pending_mutations = zod.z.discriminatedUnion(
2454
2459
  zod.z.object({
2455
2460
  creating: creating.optional().nullable(),
2456
2461
  deleting: deleting.optional().nullable(),
2462
+ updating_access_schedule: updating_access_schedule_mutation.optional().nullable(),
2463
+ updating_group_membership: zod.z.map(zod.z.string().uuid(), updating_group_membership_mutation).optional().nullable(),
2464
+ updating_suspension_state: updating_suspension_state_mutation.optional().nullable(),
2457
2465
  "updating_user_information.full_name": common_pending_mutation.extend({
2458
2466
  mutation_code: zod.z.literal("updating_user_information"),
2459
2467
  from: zod.z.object({
@@ -3051,11 +3059,11 @@ var common_bridge_client_session_error = zod.z.object({
3051
3059
  var error_code_description6 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
3052
3060
  var bridge_lan_unreachable = common_bridge_client_session_error.extend({
3053
3061
  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")
3062
+ is_tailscale_proxy_reachable: zod.z.boolean().nullable().describe("Seam cannot reach the tailscale proxy"),
3063
+ is_tailscale_proxy_socks_server_healthy: zod.z.boolean().nullable().describe("Tailscale proxy's SOCKS server is unhealthy"),
3064
+ can_tailscale_proxy_reach_tailscale_network: zod.z.boolean().nullable().describe("Tailscale proxy cannot reach the Tailscale network"),
3065
+ can_tailscale_proxy_reach_bridge: zod.z.boolean().nullable().describe("Tailscale proxy cannot reach the bridge"),
3066
+ is_bridge_socks_server_healthy: zod.z.boolean().nullable().describe("Bridge's SOCKS server is unhealthy")
3059
3067
  }).describe("Seam cannot reach the bridge's LAN");
3060
3068
  var no_communication_from_bridge = common_bridge_client_session_error.extend({
3061
3069
  error_code: zod.z.literal("no_communication_from_bridge").describe(error_code_description6)
@@ -6809,17 +6817,19 @@ var openapi_default = {
6809
6817
  {
6810
6818
  properties: {
6811
6819
  created_at: { format: "date-time", type: "string" },
6820
+ message: { type: "string" },
6812
6821
  mutation_code: { enum: ["creating"], type: "string" }
6813
6822
  },
6814
- required: ["created_at", "mutation_code"],
6823
+ required: ["created_at", "message", "mutation_code"],
6815
6824
  type: "object"
6816
6825
  },
6817
6826
  {
6818
6827
  properties: {
6819
6828
  created_at: { format: "date-time", type: "string" },
6829
+ message: { type: "string" },
6820
6830
  mutation_code: { enum: ["deleting"], type: "string" }
6821
6831
  },
6822
- required: ["created_at", "mutation_code"],
6832
+ required: ["created_at", "message", "mutation_code"],
6823
6833
  type: "object"
6824
6834
  },
6825
6835
  {
@@ -6837,6 +6847,7 @@ var openapi_default = {
6837
6847
  },
6838
6848
  type: "object"
6839
6849
  },
6850
+ message: { type: "string" },
6840
6851
  mutation_code: {
6841
6852
  enum: ["updating_user_information"],
6842
6853
  type: "string"
@@ -6854,7 +6865,13 @@ var openapi_default = {
6854
6865
  type: "object"
6855
6866
  }
6856
6867
  },
6857
- required: ["created_at", "mutation_code", "from", "to"],
6868
+ required: [
6869
+ "created_at",
6870
+ "message",
6871
+ "mutation_code",
6872
+ "from",
6873
+ "to"
6874
+ ],
6858
6875
  type: "object"
6859
6876
  },
6860
6877
  {
@@ -6863,20 +6880,20 @@ var openapi_default = {
6863
6880
  from: {
6864
6881
  properties: {
6865
6882
  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
6883
  format: "date-time",
6868
6884
  nullable: true,
6869
6885
  type: "string"
6870
6886
  },
6871
6887
  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
6888
  format: "date-time",
6889
+ nullable: true,
6874
6890
  type: "string"
6875
6891
  }
6876
6892
  },
6877
6893
  required: ["starts_at", "ends_at"],
6878
6894
  type: "object"
6879
6895
  },
6896
+ message: { type: "string" },
6880
6897
  mutation_code: {
6881
6898
  enum: ["updating_access_schedule"],
6882
6899
  type: "string"
@@ -6884,14 +6901,13 @@ var openapi_default = {
6884
6901
  to: {
6885
6902
  properties: {
6886
6903
  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
6904
  format: "date-time",
6889
6905
  nullable: true,
6890
6906
  type: "string"
6891
6907
  },
6892
6908
  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
6909
  format: "date-time",
6910
+ nullable: true,
6895
6911
  type: "string"
6896
6912
  }
6897
6913
  },
@@ -6899,7 +6915,13 @@ var openapi_default = {
6899
6915
  type: "object"
6900
6916
  }
6901
6917
  },
6902
- required: ["created_at", "mutation_code", "from", "to"],
6918
+ required: [
6919
+ "created_at",
6920
+ "message",
6921
+ "mutation_code",
6922
+ "from",
6923
+ "to"
6924
+ ],
6903
6925
  type: "object"
6904
6926
  },
6905
6927
  {
@@ -6910,6 +6932,7 @@ var openapi_default = {
6910
6932
  required: ["is_suspended"],
6911
6933
  type: "object"
6912
6934
  },
6935
+ message: { type: "string" },
6913
6936
  mutation_code: {
6914
6937
  enum: ["updating_suspension_state"],
6915
6938
  type: "string"
@@ -6920,7 +6943,13 @@ var openapi_default = {
6920
6943
  type: "object"
6921
6944
  }
6922
6945
  },
6923
- required: ["created_at", "mutation_code", "from", "to"],
6946
+ required: [
6947
+ "created_at",
6948
+ "message",
6949
+ "mutation_code",
6950
+ "from",
6951
+ "to"
6952
+ ],
6924
6953
  type: "object"
6925
6954
  },
6926
6955
  {
@@ -6937,6 +6966,7 @@ var openapi_default = {
6937
6966
  required: ["acs_access_group_id"],
6938
6967
  type: "object"
6939
6968
  },
6969
+ message: { type: "string" },
6940
6970
  mutation_code: {
6941
6971
  enum: ["updating_group_membership"],
6942
6972
  type: "string"
@@ -6953,7 +6983,13 @@ var openapi_default = {
6953
6983
  type: "object"
6954
6984
  }
6955
6985
  },
6956
- required: ["created_at", "mutation_code", "from", "to"],
6986
+ required: [
6987
+ "created_at",
6988
+ "message",
6989
+ "mutation_code",
6990
+ "from",
6991
+ "to"
6992
+ ],
6957
6993
  type: "object"
6958
6994
  }
6959
6995
  ]
@@ -18812,17 +18848,19 @@ var openapi_default = {
18812
18848
  {
18813
18849
  properties: {
18814
18850
  created_at: { format: "date-time", type: "string" },
18851
+ message: { type: "string" },
18815
18852
  mutation_code: { enum: ["creating"], type: "string" }
18816
18853
  },
18817
- required: ["created_at", "mutation_code"],
18854
+ required: ["created_at", "message", "mutation_code"],
18818
18855
  type: "object"
18819
18856
  },
18820
18857
  {
18821
18858
  properties: {
18822
18859
  created_at: { format: "date-time", type: "string" },
18860
+ message: { type: "string" },
18823
18861
  mutation_code: { enum: ["deleting"], type: "string" }
18824
18862
  },
18825
- required: ["created_at", "mutation_code"],
18863
+ required: ["created_at", "message", "mutation_code"],
18826
18864
  type: "object"
18827
18865
  },
18828
18866
  {
@@ -18840,6 +18878,7 @@ var openapi_default = {
18840
18878
  },
18841
18879
  type: "object"
18842
18880
  },
18881
+ message: { type: "string" },
18843
18882
  mutation_code: {
18844
18883
  enum: ["updating_user_information"],
18845
18884
  type: "string"
@@ -18857,7 +18896,13 @@ var openapi_default = {
18857
18896
  type: "object"
18858
18897
  }
18859
18898
  },
18860
- required: ["created_at", "mutation_code", "from", "to"],
18899
+ required: [
18900
+ "created_at",
18901
+ "message",
18902
+ "mutation_code",
18903
+ "from",
18904
+ "to"
18905
+ ],
18861
18906
  type: "object"
18862
18907
  },
18863
18908
  {
@@ -18866,20 +18911,20 @@ var openapi_default = {
18866
18911
  from: {
18867
18912
  properties: {
18868
18913
  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
18914
  format: "date-time",
18871
18915
  nullable: true,
18872
18916
  type: "string"
18873
18917
  },
18874
18918
  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
18919
  format: "date-time",
18920
+ nullable: true,
18877
18921
  type: "string"
18878
18922
  }
18879
18923
  },
18880
18924
  required: ["starts_at", "ends_at"],
18881
18925
  type: "object"
18882
18926
  },
18927
+ message: { type: "string" },
18883
18928
  mutation_code: {
18884
18929
  enum: ["updating_access_schedule"],
18885
18930
  type: "string"
@@ -18887,14 +18932,13 @@ var openapi_default = {
18887
18932
  to: {
18888
18933
  properties: {
18889
18934
  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
18935
  format: "date-time",
18892
18936
  nullable: true,
18893
18937
  type: "string"
18894
18938
  },
18895
18939
  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
18940
  format: "date-time",
18941
+ nullable: true,
18898
18942
  type: "string"
18899
18943
  }
18900
18944
  },
@@ -18902,7 +18946,13 @@ var openapi_default = {
18902
18946
  type: "object"
18903
18947
  }
18904
18948
  },
18905
- required: ["created_at", "mutation_code", "from", "to"],
18949
+ required: [
18950
+ "created_at",
18951
+ "message",
18952
+ "mutation_code",
18953
+ "from",
18954
+ "to"
18955
+ ],
18906
18956
  type: "object"
18907
18957
  },
18908
18958
  {
@@ -18913,6 +18963,7 @@ var openapi_default = {
18913
18963
  required: ["is_suspended"],
18914
18964
  type: "object"
18915
18965
  },
18966
+ message: { type: "string" },
18916
18967
  mutation_code: {
18917
18968
  enum: ["updating_suspension_state"],
18918
18969
  type: "string"
@@ -18923,7 +18974,13 @@ var openapi_default = {
18923
18974
  type: "object"
18924
18975
  }
18925
18976
  },
18926
- required: ["created_at", "mutation_code", "from", "to"],
18977
+ required: [
18978
+ "created_at",
18979
+ "message",
18980
+ "mutation_code",
18981
+ "from",
18982
+ "to"
18983
+ ],
18927
18984
  type: "object"
18928
18985
  },
18929
18986
  {
@@ -18940,6 +18997,7 @@ var openapi_default = {
18940
18997
  required: ["acs_access_group_id"],
18941
18998
  type: "object"
18942
18999
  },
19000
+ message: { type: "string" },
18943
19001
  mutation_code: {
18944
19002
  enum: ["updating_group_membership"],
18945
19003
  type: "string"
@@ -18956,7 +19014,13 @@ var openapi_default = {
18956
19014
  type: "object"
18957
19015
  }
18958
19016
  },
18959
- required: ["created_at", "mutation_code", "from", "to"],
19017
+ required: [
19018
+ "created_at",
19019
+ "message",
19020
+ "mutation_code",
19021
+ "from",
19022
+ "to"
19023
+ ],
18960
19024
  type: "object"
18961
19025
  }
18962
19026
  ]
@@ -23469,6 +23533,60 @@ var openapi_default = {
23469
23533
  "x-title": "Encode a Credential"
23470
23534
  }
23471
23535
  },
23536
+ "/acs/encoders/get": {
23537
+ post: {
23538
+ description: "Returns a specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
23539
+ operationId: "acsEncodersGetPost",
23540
+ requestBody: {
23541
+ content: {
23542
+ "application/json": {
23543
+ schema: {
23544
+ properties: {
23545
+ acs_encoder_id: {
23546
+ description: "ID of the desired encoder.",
23547
+ format: "uuid",
23548
+ type: "string"
23549
+ }
23550
+ },
23551
+ required: ["acs_encoder_id"],
23552
+ type: "object"
23553
+ }
23554
+ }
23555
+ }
23556
+ },
23557
+ responses: {
23558
+ 200: {
23559
+ content: {
23560
+ "application/json": {
23561
+ schema: {
23562
+ properties: {
23563
+ acs_encoder: { $ref: "#/components/schemas/acs_encoder" },
23564
+ ok: { type: "boolean" }
23565
+ },
23566
+ required: ["acs_encoder", "ok"],
23567
+ type: "object"
23568
+ }
23569
+ }
23570
+ },
23571
+ description: "OK"
23572
+ },
23573
+ 400: { description: "Bad Request" },
23574
+ 401: { description: "Unauthorized" }
23575
+ },
23576
+ security: [
23577
+ { pat_with_workspace: [] },
23578
+ { console_session_with_workspace: [] },
23579
+ { api_key: [] }
23580
+ ],
23581
+ summary: "/acs/encoders/get",
23582
+ tags: ["/acs"],
23583
+ "x-fern-sdk-group-name": ["acs", "encoders"],
23584
+ "x-fern-sdk-method-name": "get",
23585
+ "x-fern-sdk-return-value": "acs_encoder",
23586
+ "x-response-key": "acs_encoder",
23587
+ "x-title": "Get an Encoder"
23588
+ }
23589
+ },
23472
23590
  "/acs/encoders/list": {
23473
23591
  post: {
23474
23592
  description: "Returns a list of all [encoders](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
@@ -29437,10 +29555,12 @@ var openapi_default = {
29437
29555
  properties: {
29438
29556
  can_tailscale_proxy_reach_bridge: {
29439
29557
  description: "Tailscale proxy cannot reach the bridge",
29558
+ nullable: true,
29440
29559
  type: "boolean"
29441
29560
  },
29442
29561
  can_tailscale_proxy_reach_tailscale_network: {
29443
29562
  description: "Tailscale proxy cannot reach the Tailscale network",
29563
+ nullable: true,
29444
29564
  type: "boolean"
29445
29565
  },
29446
29566
  created_at: {
@@ -29454,14 +29574,17 @@ var openapi_default = {
29454
29574
  },
29455
29575
  is_bridge_socks_server_healthy: {
29456
29576
  description: "Bridge's SOCKS server is unhealthy",
29577
+ nullable: true,
29457
29578
  type: "boolean"
29458
29579
  },
29459
29580
  is_tailscale_proxy_reachable: {
29460
29581
  description: "Seam cannot reach the tailscale proxy",
29582
+ nullable: true,
29461
29583
  type: "boolean"
29462
29584
  },
29463
29585
  is_tailscale_proxy_socks_server_healthy: {
29464
29586
  description: "Tailscale proxy's SOCKS server is unhealthy",
29587
+ nullable: true,
29465
29588
  type: "boolean"
29466
29589
  },
29467
29590
  message: { type: "string" }
@@ -29593,10 +29716,12 @@ var openapi_default = {
29593
29716
  properties: {
29594
29717
  can_tailscale_proxy_reach_bridge: {
29595
29718
  description: "Tailscale proxy cannot reach the bridge",
29719
+ nullable: true,
29596
29720
  type: "boolean"
29597
29721
  },
29598
29722
  can_tailscale_proxy_reach_tailscale_network: {
29599
29723
  description: "Tailscale proxy cannot reach the Tailscale network",
29724
+ nullable: true,
29600
29725
  type: "boolean"
29601
29726
  },
29602
29727
  created_at: {
@@ -29610,14 +29735,17 @@ var openapi_default = {
29610
29735
  },
29611
29736
  is_bridge_socks_server_healthy: {
29612
29737
  description: "Bridge's SOCKS server is unhealthy",
29738
+ nullable: true,
29613
29739
  type: "boolean"
29614
29740
  },
29615
29741
  is_tailscale_proxy_reachable: {
29616
29742
  description: "Seam cannot reach the tailscale proxy",
29743
+ nullable: true,
29617
29744
  type: "boolean"
29618
29745
  },
29619
29746
  is_tailscale_proxy_socks_server_healthy: {
29620
29747
  description: "Tailscale proxy's SOCKS server is unhealthy",
29748
+ nullable: true,
29621
29749
  type: "boolean"
29622
29750
  },
29623
29751
  message: { type: "string" }
@@ -29740,10 +29868,12 @@ var openapi_default = {
29740
29868
  properties: {
29741
29869
  can_tailscale_proxy_reach_bridge: {
29742
29870
  description: "Tailscale proxy cannot reach the bridge",
29871
+ nullable: true,
29743
29872
  type: "boolean"
29744
29873
  },
29745
29874
  can_tailscale_proxy_reach_tailscale_network: {
29746
29875
  description: "Tailscale proxy cannot reach the Tailscale network",
29876
+ nullable: true,
29747
29877
  type: "boolean"
29748
29878
  },
29749
29879
  created_at: {
@@ -29757,14 +29887,17 @@ var openapi_default = {
29757
29887
  },
29758
29888
  is_bridge_socks_server_healthy: {
29759
29889
  description: "Bridge's SOCKS server is unhealthy",
29890
+ nullable: true,
29760
29891
  type: "boolean"
29761
29892
  },
29762
29893
  is_tailscale_proxy_reachable: {
29763
29894
  description: "Seam cannot reach the tailscale proxy",
29895
+ nullable: true,
29764
29896
  type: "boolean"
29765
29897
  },
29766
29898
  is_tailscale_proxy_socks_server_healthy: {
29767
29899
  description: "Tailscale proxy's SOCKS server is unhealthy",
29900
+ nullable: true,
29768
29901
  type: "boolean"
29769
29902
  },
29770
29903
  message: { type: "string" }
@@ -29896,10 +30029,12 @@ var openapi_default = {
29896
30029
  properties: {
29897
30030
  can_tailscale_proxy_reach_bridge: {
29898
30031
  description: "Tailscale proxy cannot reach the bridge",
30032
+ nullable: true,
29899
30033
  type: "boolean"
29900
30034
  },
29901
30035
  can_tailscale_proxy_reach_tailscale_network: {
29902
30036
  description: "Tailscale proxy cannot reach the Tailscale network",
30037
+ nullable: true,
29903
30038
  type: "boolean"
29904
30039
  },
29905
30040
  created_at: {
@@ -29913,14 +30048,17 @@ var openapi_default = {
29913
30048
  },
29914
30049
  is_bridge_socks_server_healthy: {
29915
30050
  description: "Bridge's SOCKS server is unhealthy",
30051
+ nullable: true,
29916
30052
  type: "boolean"
29917
30053
  },
29918
30054
  is_tailscale_proxy_reachable: {
29919
30055
  description: "Seam cannot reach the tailscale proxy",
30056
+ nullable: true,
29920
30057
  type: "boolean"
29921
30058
  },
29922
30059
  is_tailscale_proxy_socks_server_healthy: {
29923
30060
  description: "Tailscale proxy's SOCKS server is unhealthy",
30061
+ nullable: true,
29924
30062
  type: "boolean"
29925
30063
  },
29926
30064
  message: { type: "string" }