@seamapi/types 1.695.0 → 1.696.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/index.cjs CHANGED
@@ -2391,6 +2391,16 @@ var requested_access_method = zod.z.object({
2391
2391
  });
2392
2392
 
2393
2393
  // src/lib/seam/connect/models/access-grants/access-grant.ts
2394
+ var common_access_grant_error = zod.z.object({
2395
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
2396
+ message: zod.z.string().describe(
2397
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
2398
+ )
2399
+ });
2400
+ var error_code_description4 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
2401
+ var cannot_create_requested_access_methods_error = common_access_grant_error.extend({
2402
+ error_code: zod.z.literal("cannot_create_requested_access_methods").describe(error_code_description4)
2403
+ });
2394
2404
  var common_access_grant_warning = zod.z.object({
2395
2405
  created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
2396
2406
  message: zod.z.string().describe(
@@ -2398,6 +2408,12 @@ var common_access_grant_warning = zod.z.object({
2398
2408
  )
2399
2409
  });
2400
2410
  var warning_code_description4 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
2411
+ var access_grant_error = zod.z.discriminatedUnion("error_code", [
2412
+ cannot_create_requested_access_methods_error
2413
+ ]);
2414
+ zod.z.object({
2415
+ cannot_create_requested_access_methods: cannot_create_requested_access_methods_error.optional().nullable()
2416
+ });
2401
2417
  var being_deleted = common_access_grant_warning.extend({
2402
2418
  warning_code: zod.z.literal("being_deleted").describe(warning_code_description4)
2403
2419
  }).describe(
@@ -2439,6 +2455,9 @@ var access_grant = zod.z.object({
2439
2455
  warnings: zod.z.array(access_grant_warning).describe(
2440
2456
  "Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants)."
2441
2457
  ),
2458
+ errors: zod.z.array(access_grant_error).describe(
2459
+ "Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants)."
2460
+ ),
2442
2461
  customization_profile_id: zod.z.string().uuid().optional().describe(
2443
2462
  "ID of the customization profile associated with the Access Grant."
2444
2463
  )
@@ -2958,9 +2977,9 @@ var common_acs_encoder_error = zod.z.object({
2958
2977
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
2959
2978
  )
2960
2979
  });
2961
- var error_code_description4 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
2980
+ var error_code_description5 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
2962
2981
  var acs_encoder_removed = common_acs_encoder_error.extend({
2963
- error_code: zod.z.literal("acs_encoder_removed").describe(error_code_description4)
2982
+ error_code: zod.z.literal("acs_encoder_removed").describe(error_code_description5)
2964
2983
  });
2965
2984
  var acs_encoder_error = (
2966
2985
  // z.union([
@@ -3119,40 +3138,40 @@ var common_acs_system_error = zod.z.object({
3119
3138
  "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
3120
3139
  )
3121
3140
  });
3122
- var error_code_description5 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
3141
+ var error_code_description6 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
3123
3142
  var warning_code_description8 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
3124
3143
  var seam_bridge_disconnected = common_acs_system_error.extend({
3125
- error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description5)
3144
+ error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description6)
3126
3145
  }).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
3127
3146
  This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
3128
3147
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
3129
3148
  var bridge_disconnected2 = common_acs_system_error.extend({
3130
- error_code: zod.z.literal("bridge_disconnected").describe(error_code_description5),
3149
+ error_code: zod.z.literal("bridge_disconnected").describe(error_code_description6),
3131
3150
  is_bridge_error: zod.z.boolean().optional()
3132
3151
  }).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
3133
3152
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
3134
3153
  var visionline_instance_unreachable = common_acs_system_error.extend({
3135
- error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description5)
3154
+ error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description6)
3136
3155
  }).describe(`Indicates that [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/latest/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
3137
3156
  For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
3138
3157
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`);
3139
3158
  var salto_ks_subscription_limit_exceeded3 = common_acs_system_error.extend({
3140
- error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description5)
3159
+ error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description6)
3141
3160
  }).describe(
3142
3161
  "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit."
3143
3162
  );
3144
3163
  var acs_system_disconnected = common_acs_system_error.extend({
3145
- error_code: zod.z.literal("acs_system_disconnected").describe(error_code_description5)
3164
+ error_code: zod.z.literal("acs_system_disconnected").describe(error_code_description6)
3146
3165
  }).describe(
3147
3166
  "Indicates that the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) has been disconnected. See [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system) to resolve the issue."
3148
3167
  );
3149
3168
  var account_disconnected3 = common_acs_system_error.extend({
3150
- error_code: zod.z.literal("account_disconnected").describe(error_code_description5)
3169
+ error_code: zod.z.literal("account_disconnected").describe(error_code_description6)
3151
3170
  }).describe(
3152
3171
  "Indicates that the login credentials are invalid. Reconnect the account using a [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews) to restore access."
3153
3172
  );
3154
3173
  var salto_ks_certification_expired = common_acs_system_error.extend({
3155
- error_code: zod.z.literal("salto_ks_certification_expired").describe(error_code_description5)
3174
+ error_code: zod.z.literal("salto_ks_certification_expired").describe(error_code_description6)
3156
3175
  }).describe(
3157
3176
  "Indicates that the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access."
3158
3177
  );
@@ -5735,9 +5754,9 @@ var common_bridge_client_session_error = zod.z.object({
5735
5754
  ),
5736
5755
  created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error.")
5737
5756
  });
5738
- var error_code_description6 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
5757
+ var error_code_description7 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
5739
5758
  var bridge_lan_unreachable = common_bridge_client_session_error.extend({
5740
- error_code: zod.z.literal("bridge_lan_unreachable").describe(error_code_description6),
5759
+ error_code: zod.z.literal("bridge_lan_unreachable").describe(error_code_description7),
5741
5760
  is_tailscale_proxy_reachable: zod.z.boolean().nullable().describe("Indicates whether Seam can reach the Tailscale proxy."),
5742
5761
  is_tailscale_proxy_socks_server_healthy: zod.z.boolean().nullable().describe(
5743
5762
  "Indicates whether the Tailscale proxy's SOCKS server is healthy."
@@ -5749,7 +5768,7 @@ var bridge_lan_unreachable = common_bridge_client_session_error.extend({
5749
5768
  is_bridge_socks_server_healthy: zod.z.boolean().nullable().describe("Indicates whether Seam Bridge's SOCKS server is healthy.")
5750
5769
  }).describe("Indicates that Seam cannot reach Seam Bridge's LAN.");
5751
5770
  var no_communication_from_bridge = common_bridge_client_session_error.extend({
5752
- error_code: zod.z.literal("no_communication_from_bridge").describe(error_code_description6)
5771
+ error_code: zod.z.literal("no_communication_from_bridge").describe(error_code_description7)
5753
5772
  }).describe("Indicates that Seam Bridge has stopped communicating with Seam.");
5754
5773
  var bridge_client_session_error = zod.z.discriminatedUnion("error_code", [
5755
5774
  bridge_lan_unreachable,
@@ -7560,6 +7579,35 @@ var openapi_default = {
7560
7579
  nullable: true,
7561
7580
  type: "string"
7562
7581
  },
7582
+ errors: {
7583
+ description: "Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).",
7584
+ items: {
7585
+ discriminator: { propertyName: "error_code" },
7586
+ oneOf: [
7587
+ {
7588
+ properties: {
7589
+ created_at: {
7590
+ description: "Date and time at which Seam created the error.",
7591
+ format: "date-time",
7592
+ type: "string"
7593
+ },
7594
+ error_code: {
7595
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
7596
+ enum: ["cannot_create_requested_access_methods"],
7597
+ type: "string"
7598
+ },
7599
+ message: {
7600
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
7601
+ type: "string"
7602
+ }
7603
+ },
7604
+ required: ["created_at", "message", "error_code"],
7605
+ type: "object"
7606
+ }
7607
+ ]
7608
+ },
7609
+ type: "array"
7610
+ },
7563
7611
  instant_key_url: {
7564
7612
  description: "Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. ",
7565
7613
  format: "uri",
@@ -7686,7 +7734,8 @@ var openapi_default = {
7686
7734
  "created_at",
7687
7735
  "starts_at",
7688
7736
  "ends_at",
7689
- "warnings"
7737
+ "warnings",
7738
+ "errors"
7690
7739
  ],
7691
7740
  type: "object",
7692
7741
  "x-draft": "Early access.",
@@ -33068,6 +33117,41 @@ var openapi_default = {
33068
33117
  nullable: true,
33069
33118
  type: "string"
33070
33119
  },
33120
+ errors: {
33121
+ description: "Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).",
33122
+ items: {
33123
+ discriminator: { propertyName: "error_code" },
33124
+ oneOf: [
33125
+ {
33126
+ properties: {
33127
+ created_at: {
33128
+ description: "Date and time at which Seam created the error.",
33129
+ format: "date-time",
33130
+ type: "string"
33131
+ },
33132
+ error_code: {
33133
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
33134
+ enum: [
33135
+ "cannot_create_requested_access_methods"
33136
+ ],
33137
+ type: "string"
33138
+ },
33139
+ message: {
33140
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
33141
+ type: "string"
33142
+ }
33143
+ },
33144
+ required: [
33145
+ "created_at",
33146
+ "message",
33147
+ "error_code"
33148
+ ],
33149
+ type: "object"
33150
+ }
33151
+ ]
33152
+ },
33153
+ type: "array"
33154
+ },
33071
33155
  location_ids: {
33072
33156
  deprecated: true,
33073
33157
  items: { format: "uuid", type: "string" },
@@ -33192,7 +33276,8 @@ var openapi_default = {
33192
33276
  "created_at",
33193
33277
  "starts_at",
33194
33278
  "ends_at",
33195
- "warnings"
33279
+ "warnings",
33280
+ "errors"
33196
33281
  ],
33197
33282
  type: "object",
33198
33283
  "x-draft": "Early access.",
@@ -33279,6 +33364,41 @@ var openapi_default = {
33279
33364
  nullable: true,
33280
33365
  type: "string"
33281
33366
  },
33367
+ errors: {
33368
+ description: "Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).",
33369
+ items: {
33370
+ discriminator: { propertyName: "error_code" },
33371
+ oneOf: [
33372
+ {
33373
+ properties: {
33374
+ created_at: {
33375
+ description: "Date and time at which Seam created the error.",
33376
+ format: "date-time",
33377
+ type: "string"
33378
+ },
33379
+ error_code: {
33380
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
33381
+ enum: [
33382
+ "cannot_create_requested_access_methods"
33383
+ ],
33384
+ type: "string"
33385
+ },
33386
+ message: {
33387
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
33388
+ type: "string"
33389
+ }
33390
+ },
33391
+ required: [
33392
+ "created_at",
33393
+ "message",
33394
+ "error_code"
33395
+ ],
33396
+ type: "object"
33397
+ }
33398
+ ]
33399
+ },
33400
+ type: "array"
33401
+ },
33282
33402
  location_ids: {
33283
33403
  deprecated: true,
33284
33404
  items: { format: "uuid", type: "string" },
@@ -33403,7 +33523,8 @@ var openapi_default = {
33403
33523
  "created_at",
33404
33524
  "starts_at",
33405
33525
  "ends_at",
33406
- "warnings"
33526
+ "warnings",
33527
+ "errors"
33407
33528
  ],
33408
33529
  type: "object",
33409
33530
  "x-draft": "Early access.",
@@ -33513,6 +33634,41 @@ var openapi_default = {
33513
33634
  nullable: true,
33514
33635
  type: "string"
33515
33636
  },
33637
+ errors: {
33638
+ description: "Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).",
33639
+ items: {
33640
+ discriminator: { propertyName: "error_code" },
33641
+ oneOf: [
33642
+ {
33643
+ properties: {
33644
+ created_at: {
33645
+ description: "Date and time at which Seam created the error.",
33646
+ format: "date-time",
33647
+ type: "string"
33648
+ },
33649
+ error_code: {
33650
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
33651
+ enum: [
33652
+ "cannot_create_requested_access_methods"
33653
+ ],
33654
+ type: "string"
33655
+ },
33656
+ message: {
33657
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
33658
+ type: "string"
33659
+ }
33660
+ },
33661
+ required: [
33662
+ "created_at",
33663
+ "message",
33664
+ "error_code"
33665
+ ],
33666
+ type: "object"
33667
+ }
33668
+ ]
33669
+ },
33670
+ type: "array"
33671
+ },
33516
33672
  location_ids: {
33517
33673
  deprecated: true,
33518
33674
  items: { format: "uuid", type: "string" },
@@ -33637,7 +33793,8 @@ var openapi_default = {
33637
33793
  "created_at",
33638
33794
  "starts_at",
33639
33795
  "ends_at",
33640
- "warnings"
33796
+ "warnings",
33797
+ "errors"
33641
33798
  ],
33642
33799
  type: "object",
33643
33800
  "x-draft": "Early access.",
@@ -33740,6 +33897,41 @@ var openapi_default = {
33740
33897
  nullable: true,
33741
33898
  type: "string"
33742
33899
  },
33900
+ errors: {
33901
+ description: "Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).",
33902
+ items: {
33903
+ discriminator: { propertyName: "error_code" },
33904
+ oneOf: [
33905
+ {
33906
+ properties: {
33907
+ created_at: {
33908
+ description: "Date and time at which Seam created the error.",
33909
+ format: "date-time",
33910
+ type: "string"
33911
+ },
33912
+ error_code: {
33913
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
33914
+ enum: [
33915
+ "cannot_create_requested_access_methods"
33916
+ ],
33917
+ type: "string"
33918
+ },
33919
+ message: {
33920
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
33921
+ type: "string"
33922
+ }
33923
+ },
33924
+ required: [
33925
+ "created_at",
33926
+ "message",
33927
+ "error_code"
33928
+ ],
33929
+ type: "object"
33930
+ }
33931
+ ]
33932
+ },
33933
+ type: "array"
33934
+ },
33743
33935
  location_ids: {
33744
33936
  deprecated: true,
33745
33937
  items: { format: "uuid", type: "string" },
@@ -33864,7 +34056,8 @@ var openapi_default = {
33864
34056
  "created_at",
33865
34057
  "starts_at",
33866
34058
  "ends_at",
33867
- "warnings"
34059
+ "warnings",
34060
+ "errors"
33868
34061
  ],
33869
34062
  type: "object",
33870
34063
  "x-draft": "Early access.",