@seamapi/types 1.835.0 → 1.836.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
@@ -695,19 +695,26 @@ var being_deleted = common_connected_account_warning.extend({
695
695
  }).describe(
696
696
  "Indicates that the connected account is currently being deleted. All devices, access codes, and other resources associated with this account are in the process of being removed from Seam."
697
697
  );
698
+ var provider_service_unavailable = common_connected_account_warning.extend({
699
+ warning_code: zod.z.literal("provider_service_unavailable").describe(warning_code_description)
700
+ }).describe(
701
+ "Indicates that the connected account's provider service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again."
702
+ );
698
703
  var connected_account_warning = zod.z.discriminatedUnion("warning_code", [
699
704
  scheduled_maintenance_window,
700
705
  unknown_issue_with_connected_account,
701
706
  salto_ks_subscription_limit_almost_reached,
702
707
  account_reauthorization_requested,
703
- being_deleted
708
+ being_deleted,
709
+ provider_service_unavailable
704
710
  ]).describe("Warning associated with the connected account.");
705
711
  zod.z.object({
706
712
  scheduled_maintenance_window: scheduled_maintenance_window.nullable().optional(),
707
713
  unknown_issue_with_connected_account: unknown_issue_with_connected_account.nullable().optional(),
708
714
  salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional(),
709
715
  account_reauthorization_requested: account_reauthorization_requested.nullable().optional(),
710
- being_deleted: being_deleted.nullable().optional()
716
+ being_deleted: being_deleted.nullable().optional(),
717
+ provider_service_unavailable: provider_service_unavailable.nullable().optional()
711
718
  });
712
719
  var connected_account = zod.z.object({
713
720
  connected_account_id: zod.z.string().uuid().describe("ID of the connected account."),
@@ -17017,6 +17024,27 @@ var openapi = {
17017
17024
  },
17018
17025
  required: ["created_at", "message", "warning_code"],
17019
17026
  type: "object"
17027
+ },
17028
+ {
17029
+ description: "Indicates that the connected account's provider service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.",
17030
+ properties: {
17031
+ created_at: {
17032
+ description: "Date and time at which Seam created the warning.",
17033
+ format: "date-time",
17034
+ type: "string"
17035
+ },
17036
+ message: {
17037
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
17038
+ type: "string"
17039
+ },
17040
+ warning_code: {
17041
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
17042
+ enum: ["provider_service_unavailable"],
17043
+ type: "string"
17044
+ }
17045
+ },
17046
+ required: ["created_at", "message", "warning_code"],
17047
+ type: "object"
17020
17048
  }
17021
17049
  ]
17022
17050
  },