@isnap/sdk 2.2.0-next.230 → 2.2.0-next.231

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.
@@ -5029,6 +5029,8 @@ export interface paths {
5029
5029
  reply_to_message_id?: string;
5030
5030
  /** @description Whether the line's device shows the typing indicator to the recipient before it sends this message. When omitted, the line's `default_use_typing_indicator` applies, which is `true` unless you changed it. Always `false` on a line that is not an iMessage line. The response returns the value in effect. */
5031
5031
  use_typing_indicator?: boolean;
5032
+ /** @description `true` to let this message leave during the quiet hours of the line: the hours whose weight is 0 in the line's `activity_curve`, counted in the recipient's local time. Use it for a recipient of your own, such as an alert to your own phone number. The default is `false`. The message still waits for the sending limits of the line, for the spacing between messages and behind an earlier message to the same recipient that iSnap holds. No effect on a shared line. The response returns the value in effect. */
5033
+ ignore_quiet_hours?: boolean;
5032
5034
  /**
5033
5035
  * @description Your own keys and values for this message: at most 20 keys and 8,192 bytes once serialized as JSON, otherwise the API returns `400 validation_failed`. iSnap stores the object as sent and returns it in `metadata` of the message, in every response and in the events of the message.
5034
5036
  * @example {
@@ -6987,6 +6989,8 @@ export interface paths {
6987
6989
  organization?: string;
6988
6990
  /** @description Free text on the card, at most 2,000 characters. */
6989
6991
  note?: string;
6992
+ /** @description `true` to let the message that carries the card leave during the quiet hours of the line, as `ignore_quiet_hours` of `POST /v1/messages`. The default is `false`. No effect on a shared line. */
6993
+ ignore_quiet_hours?: boolean;
6990
6994
  };
6991
6995
  };
6992
6996
  };
@@ -9674,8 +9678,10 @@ export interface components {
9674
9678
  scheduled_for: string | null;
9675
9679
  /** @description Why iSnap holds the message, while its `status` is `scheduled`. `minute_limit_exceeded`, `hourly_limit_exceeded`, `total_message_quota_exceeded`, `new_contact_quota_exceeded` or `known_contact_quota_exceeded`: a sending limit of the line is reached. `inter_message_delay` or `inter_new_contact_delay`: the spacing between two messages of the line. `quiet_hours`: the message was accepted outside the line's sending hours, counted in the recipient's local time. `carrier_retry`: on a shared line, the number that serves the contact is busy or offline. `pending_retry`: iSnap is retrying the release. A message held behind an earlier message to the same recipient takes the `schedule_reason` of that earlier message while the earlier one is held, and `inter_message_delay` (`carrier_retry` on a shared line) while the earlier one waits for the line's device: `schedule_reason` alone does not tell you that a message waits for an earlier one. `null` on a message that was never held, and `null` again once the message is released. Treat a value you do not know as a hold: more values can be added. */
9676
9680
  schedule_reason: string | null;
9677
- /** @description `true` when the message was accepted in the reply lane: it answers a contact who wrote to the line in the last 24 hours, within the limits of the reply lane. Such a message is not held by the hourly limit, by the three 24-hour limits or by quiet hours. Set when the message is accepted and never changed after that. */
9681
+ /** @description `true` when the message is in the reply lane: it answers a contact who wrote to the line in the last 24 hours, within the limits of the reply lane. Such a message is not held by the hourly limit, by the three 24-hour limits or by quiet hours. Set when the message is accepted. A held message enters the reply lane when its contact writes to the line while it waits, whatever held it, oldest first and within the same limits: the value then changes from `false` to `true`, once and never back, and the message is released without waiting for its `scheduled_for`, still after the earlier messages to the same recipient and within the per-minute limit and the spacing of the line. */
9678
9682
  reply_lane: boolean;
9683
+ /** @description `true` when the message was sent with `ignore_quiet_hours: true` on a line that is not a shared line: quiet hours do not hold it. `false` otherwise, on a shared line, on an inbound message and on a message typed on the device of the line. Set when the message is accepted and never changed after that. */
9684
+ ignore_quiet_hours: boolean;
9679
9685
  /** @description The state of the line's sending limits when the message was accepted. Filled only in the response of `POST /v1/messages` to a new request: `null` on every read, in the response to a retry with the same `Idempotency-Key`, and in events. */
9680
9686
  queue_info: {
9681
9687
  /** @description 0 when the message leaves immediately. Otherwise the rank of the message among the line's held messages, starting at 1. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isnap/sdk",
3
- "version": "2.2.0-next.230",
3
+ "version": "2.2.0-next.231",
4
4
  "description": "Official TypeScript SDK for the iSnap P2P telephony API",
5
5
  "license": "MIT",
6
6
  "type": "module",