@sunsteel/contracts 0.92.0 → 0.94.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
@@ -2039,6 +2039,7 @@ var API_ERROR_MESSAGES = {
2039
2039
  // ── Direct messages (MSG-01) ───────────────────────────────────────────
2040
2040
  MESSAGE_SELF: "You cannot message yourself",
2041
2041
  MESSAGE_LENGTH: "A message must not be empty and may be at most {max} characters.",
2042
+ MESSAGE_ONE_ATTACHMENT: "A message can carry one routine, one workout or one record.",
2042
2043
  MESSAGES_PER_MINUTE: "You can send at most {max} messages a minute.",
2043
2044
  CONVERSATIONS_PER_DAY: "You can start at most {max} new conversations a day.",
2044
2045
  MESSAGE_NOT_ADMITTED: "This member is not taking messages from you.",
@@ -2147,7 +2148,7 @@ function normalizeMessageBody(body) {
2147
2148
  }
2148
2149
  return text;
2149
2150
  }
2150
- var MESSAGE_ATTACHMENT_KINDS = ["ROUTINE"];
2151
+ var MESSAGE_ATTACHMENT_KINDS = ["ROUTINE", "WORKOUT", "RECORD"];
2151
2152
  function messageNote(body, hasAttachment) {
2152
2153
  if ((body ?? "").trim().length === 0) {
2153
2154
  return hasAttachment ? null : void 0;