Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@sinch/sms

Package Overview
Dependencies
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sinch/sms - npm Package Compare versions

Comparing version
1.2.1
to
1.3.0
+13
dist/models/v1/add-keyword/add-keyword.d.ts
/**
* Keyword to be sent in MO to add MSISDN to a group
*/
export interface AddKeyword {
/** Opt-in keyword like "JOIN" if `auto_update.to` is dedicated long/short number or unique brand keyword like "Sinch" if it is a shared short code. */
first_word: string;
/** Opt-in keyword like "JOIN" if `auto_update.to` is shared short code. */
second_word?: string;
}
/** Validation regex for first_word */
export declare const firstWordPattern: RegExp;
/** Validation regex for second_word */
export declare const secondWordPattern: RegExp;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.secondWordPattern = exports.firstWordPattern = void 0;
/** Validation regex for first_word */
exports.firstWordPattern = /^\w+$/;
/** Validation regex for second_word */
exports.secondWordPattern = /^\w+$/;
//# sourceMappingURL=add-keyword.js.map
{"version":3,"file":"add-keyword.js","sourceRoot":"","sources":["../../../../src/models/v1/add-keyword/add-keyword.ts"],"names":[],"mappings":";;;AAUA,sCAAsC;AACzB,QAAA,gBAAgB,GAAG,OAAO,CAAC;AAExC,uCAAuC;AAC1B,QAAA,iBAAiB,GAAG,OAAO,CAAC"}
export type { AddKeyword } from './add-keyword';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/add-keyword/index.ts"],"names":[],"mappings":""}
export type { MmsMedia } from './mms-media';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/mms-media/index.ts"],"names":[],"mappings":""}
/**
* Collection of attachments in incoming message.
*/
export interface MmsMedia {
/** The result code. Possible values: 0 (success), 1 (content upload error), 2 (cloud bucket error), 3 (bucket key error). */
code: number;
/** Content type of binary. [More info](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) */
content_type: string;
/** Status of the uploaded media. */
status: 'Uploaded' | 'Failed' | string;
/** URL to be used to download attachment. */
url?: string;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=mms-media.js.map
{"version":3,"file":"mms-media.js","sourceRoot":"","sources":["../../../../src/models/v1/mms-media/mms-media.ts"],"names":[],"mappings":""}
export type { MmsMoBody } from './mms-mo-body';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/mms-mo-body/index.ts"],"names":[],"mappings":""}
import { MmsMedia } from '../mms-media';
/**
* The message content, including a URL to the media filters.
*/
export interface MmsMoBody {
/** The subject of the MMS media message. */
subject?: string;
/** The text message content of the MMS media message. */
message?: string;
/** List of MmsMedias */
media?: MmsMedia[];
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=mms-mo-body.js.map
{"version":3,"file":"mms-mo-body.js","sourceRoot":"","sources":["../../../../src/models/v1/mms-mo-body/mms-mo-body.ts"],"names":[],"mappings":""}
export type { MOMedia } from './mo-media';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/mo-media/index.ts"],"names":[],"mappings":""}
import { MmsMoBody } from '../mms-mo-body';
import { ApiMoMessage } from '../api-mo-message';
export interface MOMedia extends ApiMoMessage {
/** MMS */
type: 'mo_media';
/** @see MmsMoBody */
body: MmsMoBody;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=mo-media.js.map
{"version":3,"file":"mo-media.js","sourceRoot":"","sources":["../../../../src/models/v1/mo-media/mo-media.ts"],"names":[],"mappings":""}
export type { RemoveKeyword } from './remove-keyword';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/remove-keyword/index.ts"],"names":[],"mappings":""}
/**
* Keyword to be sent in MO to remove MSISDN to a group
*/
export interface RemoveKeyword {
/** Opt-out keyword like "LEAVE" if `auto_update.to` is dedicated long/short number or unique brand keyword like "Sinch" if it is a shared short code. */
first_word: string;
/** Opt-out keyword like "LEAVE" if `auto_update.to` is shared short code. */
second_word?: string;
}
/** Validation regex for first_word */
export declare const firstWordPattern: RegExp;
/** Validation regex for second_word */
export declare const secondWordPattern: RegExp;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.secondWordPattern = exports.firstWordPattern = void 0;
/** Validation regex for first_word */
exports.firstWordPattern = /^\w+$/;
/** Validation regex for second_word */
exports.secondWordPattern = /^\w+$/;
//# sourceMappingURL=remove-keyword.js.map
{"version":3,"file":"remove-keyword.js","sourceRoot":"","sources":["../../../../src/models/v1/remove-keyword/remove-keyword.ts"],"names":[],"mappings":";;;AAUA,sCAAsC;AACzB,QAAA,gBAAgB,GAAG,OAAO,CAAC;AAExC,uCAAuC;AAC1B,QAAA,iBAAiB,GAAG,OAAO,CAAC"}
+4
-6

@@ -5,18 +5,16 @@ /**

export interface ApiMoMessage {
body?: string;
/** If this inbound message is in response to a previously sent message that contained a client reference, then this field contains *that* client reference. Utilizing this feature requires additional setup on your account. Contact your <a href=\"https://dashboard.sinch.com/settings/account-details\" target=\"_blank\">account manager</a> to enable this feature. */
client_reference?: string;
/** The phone number that sent the message. <a href=\"https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628\" target=\"_blank\">More info</a> */
/** The phone number that sent the message. [More info](https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628) */
from: string;
/** The ID of this inbound message. */
id: string;
/** The MCC/MNC of the sender\'s operator if known. */
/** The MCC/MNC of the sender's operator if known. */
operator_id?: string;
/** When the system received the message. Formatted as <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO-8601</a>: `YYYY-MM-DDThh:mm:ss.SSSZ`. */
/** When the system received the message. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. */
received_at: Date;
/** When the message left the originating device. Only available if provided by operator. Formatted as <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO-8601</a>: `YYYY-MM-DDThh:mm:ss.SSSZ`. */
/** When the message left the originating device. Only available if provided by operator. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. */
sent_at?: Date;
/** The Sinch phone number or short code to which the message was sent. */
to: string;
type: string;
}

@@ -5,3 +5,3 @@ import { DeliveryReportEnum } from '../enums';

from?: string;
/** SMS in binary format */
/** SMS in [binary](https://community.sinch.com/t5/Glossary/Binary-SMS/ta-p/7470) format. */
type?: 'mt_binary';

@@ -14,8 +14,13 @@ /** List of phone numbers and group IDs to add to the batch. */

delivery_report?: DeliveryReportEnum;
/** If set, in the future the message will be delayed until `send_at` occurs. Formatted as <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO-8601</a>: `YYYY-MM-DDThh:mm:ss.SSSZ`. Constraints: Must be before expire_at. If set in the past, messages will be sent immediately. */
/** If set, in the future the message will be delayed until `send_at` occurs. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. Constraints: Must be before expire_at. If set in the past, messages will be sent immediately. */
send_at?: Date;
/** If set, the system will stop trying to deliver the message at this point. Constraints: Must be after `send_at` Default: 3 days after `send_at` */
/** If set, the system will stop trying to deliver the message at this point.
* Must be after `send_at`. Default and max is 3 days after `send_at`. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601). For example: `YYYY-MM-DDThh:mm:ss.SSSZ`. */
expire_at?: Date;
/** Override the default callback URL for this batch. Constraints: Must be valid URL. */
callback_url?: string;
/** The client identifier of a batch message. If set, the identifier will be added in the delivery report/callback of this batch. */
client_reference?: string;
/** If set to true then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;
/** The message content Base64 encoded. Max 140 bytes together with udh. */

@@ -25,2 +30,6 @@ body?: string;

udh?: string;
/** The type of number for the sender number. Use to override the automatic detection. */
from_ton?: number;
/** Number Plan Indicator for the sender number. Use to override the automatic detection. */
from_npi?: number;
}
+8
-3

@@ -15,8 +15,13 @@ import { MediaBody } from '../media-body';

delivery_report?: DeliveryReportEnum;
/** If set, in the future the message will be delayed until `send_at` occurs. Formatted as <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO-8601</a>: `YYYY-MM-DDThh:mm:ss.SSSZ`. Constraints: Must be before expire_at. If set in the past, messages will be sent immediately. */
/** If set, in the future the message will be delayed until `send_at` occurs. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. Constraints: Must be before expire_at. If set in the past, messages will be sent immediately. */
send_at?: Date;
/** If set, the system will stop trying to deliver the message at this point. Constraints: Must be after `send_at` Default: 3 days after `send_at` */
/** If set, the system will stop trying to deliver the message at this point.
* Must be after `send_at`. Default and max is 3 days after `send_at`. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. */
expire_at?: Date;
/** Override the default callback URL for this batch. Constraints: Must be valid URL. */
callback_url?: string;
/** The client identifier of a batch message. If set, the identifier will be added in the delivery report/callback of this batch */
client_reference?: string;
/** If set to `true`, then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;
/** @see MediaBody */

@@ -26,4 +31,4 @@ body?: MediaBody;

parameters?: ParameterGroup;
/** Whether or not you want the media included in your message to be checked against [Sinch MMS channel best practices](/docs/mms/bestpractices/). If set to true, your message will be rejected if it doesn\'t conform to the listed recommendations, otherwise no validation will be performed. */
/** Whether or not you want the media included in your message to be checked against [Sinch MMS channel best practices](https://developers.sinch.com/docs/mms/bestpractices/). If set to true, your message will be rejected if it doesn't conform to the listed recommendations, otherwise no validation will be performed. */
strict_validation?: boolean;
}

@@ -14,8 +14,13 @@ import { ParameterGroup } from '../parameter-group';

delivery_report?: DeliveryReportEnum;
/** If set, in the future the message will be delayed until `send_at` occurs. Formatted as <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO-8601</a>: `YYYY-MM-DDThh:mm:ss.SSSZ`. Constraints: Must be before expire_at. If set in the past, messages will be sent immediately. */
/** If set, in the future the message will be delayed until `send_at` occurs. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. Constraints: Must be before expire_at. If set in the past, messages will be sent immediately. */
send_at?: Date;
/** If set, the system will stop trying to deliver the message at this point. Constraints: Must be after `send_at` Default: 3 days after `send_at` */
/** If set, the system will stop trying to deliver the message at this point.
* Must be after `send_at`. Default and max is 3 days after `send_at`. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. */
expire_at?: Date;
/** Override the default callback URL for this batch. Constraints: Must be valid URL. */
callback_url?: string;
/** The client identifier of a batch message. If set, the identifier will be added in the delivery report/callback of this batch */
client_reference?: string;
/** If set to `true`, then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;
/** @see ParameterGroup */

@@ -25,2 +30,12 @@ parameters?: ParameterGroup;

body?: string;
/** The type of number for the sender number. Use to override the automatic detection. */
from_ton?: number;
/** Number Plan Indicator for the sender number. Use to override the automatic detection. */
from_npi?: number;
/** Message will be dispatched only if it is not split to more parts than Max Number of Message Parts */
max_number_of_message_parts?: number;
/** If set to `true` the message will be shortened when exceeding one part. */
truncate_concat?: boolean;
/** Shows message on screen without user interaction while not saving the message to the inbox. */
flash_message?: boolean;
}

@@ -11,3 +11,3 @@ import { DeliveryReportEnum } from '../enums';

udh: string;
/** SMS in <a href=\"https://community.sinch.com/t5/Glossary/Binary-SMS/ta-p/7470\" target=\"_blank\">binary</a> format. */
/** SMS in [binary](https://community.sinch.com/t5/Glossary/Binary-SMS/ta-p/7470) format. */
type?: 'mt_binary';

@@ -26,10 +26,4 @@ /** Request delivery report callback. Note that delivery reports can be fetched from the API regardless of this setting. */

client_reference?: string;
/** If set to true then [feedback](/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
/** If set to true then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;
/** Shows message on screen without user interaction while not saving the message to the inbox. */
flash_message?: boolean;
/** If set to `true`, the message will be shortened when exceeding one part. */
truncate_concat?: boolean;
/** Message will be dispatched only if it is not split to more parts than the maximum number of message parts. */
max_number_of_message_parts?: number;
/** The type of number for the sender number. Use to override the automatic detection. */

@@ -36,0 +30,0 @@ from_ton?: number;

@@ -13,5 +13,5 @@ import { DeliveryReportEnum } from '../enums';

body?: string;
/** The <a href=\"https://community.sinch.com/t5/Glossary/UDH-User-Data-Header/ta-p/7776\" target=\"_blank\">UDH</a> header of a binary message HEX encoded. Max 140 bytes including the `body`. */
/** The [UDH](https://community.sinch.com/t5/Glossary/UDH-User-Data-Header/ta-p/7776) header of a binary message HEX encoded. Max 140 bytes including the `body`. */
udh?: string;
/** SMS in <a href=\"https://community.sinch.com/t5/Glossary/Binary-SMS/ta-p/7470\" target=\"_blank\">binary</a> format. */
/** SMS in [binary](https://community.sinch.com/t5/Glossary/Binary-SMS/ta-p/7470) format. */
type?: 'mt_binary';

@@ -26,3 +26,4 @@ /** Timestamp for when batch was created. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601). For example: `YYYY-MM-DDThh:mm:ss.SSSZ`. */

send_at?: Date;
/** If set, the date and time the message will expire. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601). For example: `YYYY-MM-DDThh:mm:ss.SSSZ`. */
/** If set, the system will stop trying to deliver the message at this point.
* Must be after `send_at`. Default and max is 3 days after `send_at`. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. */
expire_at?: Date;

@@ -33,10 +34,4 @@ /** The callback URL provided in the request. */

client_reference?: string;
/** If set to true, then [feedback](/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
/** If set to true then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;
/** If sent as a flash message, displays `true`. */
flash_message?: boolean;
/** If set to `true`, the message was shortened when exceeding one part. */
truncate_concat?: boolean;
/** Displays the number of message parts set in the request. */
max_number_of_message_parts?: number;
/** The type of number for the sender number. */

@@ -43,0 +38,0 @@ from_ton?: number;

@@ -1,11 +0,11 @@

import { GroupObjectAutoUpdate } from '../group-object-auto-update';
import { GroupAutoUpdate } from '../group-auto-update';
export interface CreateGroupRequest {
/** Name of the group */
name?: string;
/** \"Initial list of phone numbers in <a href=\"https://community.sinch.com/t5/Glossary/E-164/ta-p/7537\" target=\"_blank\">E.164</a> format <a href=\"https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628\" target=\"_blank\">MSISDNs</a> for the group.\" */
/** Initial list of phone numbers in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format [MSISDNs](https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628) for the group. */
members?: string[];
/** Phone numbers (<a href=\"https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628\" target=\"_blank\">MSISDNs</a>) of child group will be included in this group. If present then this group will be auto populated. Constraints: Elements must be group IDs. */
/** Phone numbers ([MSISDNs](https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628)) of child group will be included in this group. If present then this group will be auto populated. Constraints: Elements must be group IDs. */
child_groups?: string[];
/** @see GroupObjectAutoUpdate */
auto_update?: GroupObjectAutoUpdate;
/** @see GroupAutoUpdate */
auto_update?: GroupAutoUpdate;
}

@@ -1,2 +0,14 @@

export type DeliveryReportEnum = 'none' | 'summary' | 'full' | 'per_recipient' | 'per_recipient_final';
export type DeliveryReportStatusEnum = 'Queued' | 'Dispatched' | 'Aborted' | 'Cancelled' | 'Rejected' | 'Deleted' | 'Delivered' | 'Failed' | 'Expired' | 'Unknown';
/**
* Kind of delivery report
*/
export type DeliveryReportEnum = 'none' | 'summary' | 'full' | 'per_recipient' | 'per_recipient_final' | string;
/**
* The simplified status as described in _Delivery Report Statuses_.
*/
export type DeliveryStatusEnum = 'Queued' | 'Dispatched' | 'Aborted' | 'Cancelled' | 'Rejected' | 'Deleted' | 'Delivered' | 'Failed' | 'Expired' | 'Unknown' | string;
/** @deprecated */
export type DeliveryReportStatusEnum = DeliveryReportEnum;
/**
* The delivery report status code provides a more detailed view of what happened with a message. The REST API error codes are a combination of [SMPP error codes](/docs/sms/smpp/error-codes/#status-reports-error-codes), [MMS error codes](/docs/mms/7-service/mms-status-codes/) and custom codes.
*/
export type DeliveryReceiptCodeEnum = 0 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | number;

@@ -0,6 +1,10 @@

import { AddKeyword } from '../add-keyword';
import { RemoveKeyword } from '../remove-keyword';
export interface GroupAutoUpdate {
/** Short code or long number addressed in <a href=\"https://community.sinch.com/t5/Glossary/MO-Mobile-Originated/ta-p/7618\" target=\"_blank\">MO</a>. Constraints: Must be valid MSISDN or short code. */
/** Short code or long number addressed in [MO](https://community.sinch.com/t5/Glossary/MO-Mobile-Originated/ta-p/7618). Constraints: Must be valid phone number or short code which has been **provisioned by your account manager**. */
to: string;
add?: string;
remove?: string;
/** @see AddKeyword */
add?: AddKeyword;
/** @see RemoveKeyword */
remove?: RemoveKeyword;
}

@@ -21,6 +21,6 @@ import { GroupAutoUpdate } from '../group-auto-update';

modified_at?: Date;
/** Phone numbers (MSISDNs) of child group will be included in this group. If present, this group will be auto populated. Constraints: Elements must be group IDs. */
child_groups?: object[];
/** Phone numbers ([MSISDNs](https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628)) of child group will be included in this group. If present, this group will be auto populated. Constraints: Elements must be group IDs. */
child_groups?: string[];
/** @see GroupAutoUpdate */
auto_update?: GroupAutoUpdate;
}
import { MOBinary } from '../mo-binary';
import { MOText } from '../mo-text';
export type InboundMessageResponse = MOText | MOBinary;
import { MOMedia } from '../mo-media';
export type InboundMessageResponse = MOText | MOBinary | MOMedia;

@@ -0,1 +1,2 @@

export * from './add-keyword';
export * from './api-batch-list';

@@ -21,8 +22,4 @@ export * from './delivery-feedback-request';

export * from './create-group-request';
export * from './group-object-auto-update';
export * from './group-object-auto-update-remove';
export * from './inbound-message-response';
export * from './list-groups-response';
export * from './mo-binary';
export * from './mo-text';
export * from './media-body';

@@ -32,5 +29,11 @@ export * from './media-request';

export * from './message-delivery-status';
export * from './mms-media';
export * from './mms-mo-body';
export * from './mo-binary';
export * from './mo-media';
export * from './mo-text';
export * from './parameter-group';
export * from './parameter-values';
export * from './recipient-delivery-report';
export * from './remove-keyword';
export * from './replace-group-request';

@@ -43,6 +46,3 @@ export * from './send-sms-response';

export * from './update-group-request';
export * from './update-group-request-auto-update';
export * from './update-group-request-auto-update-add';
export * from './update-group-request-auto-update-remove';
export * from './enums';
export * from './requests';

@@ -17,2 +17,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./add-keyword"), exports);
__exportStar(require("./api-batch-list"), exports);

@@ -38,8 +39,4 @@ __exportStar(require("./delivery-feedback-request"), exports);

__exportStar(require("./create-group-request"), exports);
__exportStar(require("./group-object-auto-update"), exports);
__exportStar(require("./group-object-auto-update-remove"), exports);
__exportStar(require("./inbound-message-response"), exports);
__exportStar(require("./list-groups-response"), exports);
__exportStar(require("./mo-binary"), exports);
__exportStar(require("./mo-text"), exports);
__exportStar(require("./media-body"), exports);

@@ -49,5 +46,11 @@ __exportStar(require("./media-request"), exports);

__exportStar(require("./message-delivery-status"), exports);
__exportStar(require("./mms-media"), exports);
__exportStar(require("./mms-mo-body"), exports);
__exportStar(require("./mo-binary"), exports);
__exportStar(require("./mo-media"), exports);
__exportStar(require("./mo-text"), exports);
__exportStar(require("./parameter-group"), exports);
__exportStar(require("./parameter-values"), exports);
__exportStar(require("./recipient-delivery-report"), exports);
__exportStar(require("./remove-keyword"), exports);
__exportStar(require("./replace-group-request"), exports);

@@ -60,7 +63,4 @@ __exportStar(require("./send-sms-response"), exports);

__exportStar(require("./update-group-request"), exports);
__exportStar(require("./update-group-request-auto-update"), exports);
__exportStar(require("./update-group-request-auto-update-add"), exports);
__exportStar(require("./update-group-request-auto-update-remove"), exports);
__exportStar(require("./enums"), exports);
__exportStar(require("./requests"), exports);
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,8DAA4C;AAC5C,qDAAmC;AACnC,6DAA2C;AAC3C,mDAAiC;AACjC,iEAA+C;AAC/C,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,mDAAiC;AACjC,oDAAkC;AAClC,0CAAwB;AACxB,oDAAkC;AAClC,yDAAuC;AACvC,oDAAkC;AAClC,qDAAmC;AACnC,yEAAuD;AACvD,uDAAqC;AACrC,sDAAoC;AACpC,yDAAuC;AACvC,6DAA2C;AAC3C,oEAAkD;AAClD,6DAA2C;AAC3C,yDAAuC;AACvC,8CAA4B;AAC5B,4CAA0B;AAC1B,+CAA6B;AAC7B,kDAAgC;AAChC,mDAAiC;AACjC,4DAA0C;AAC1C,oDAAkC;AAClC,qDAAmC;AACnC,8DAA4C;AAC5C,0DAAwC;AACxC,sDAAoC;AACpC,qDAAmC;AACnC,iDAA+B;AAC/B,kDAAgC;AAChC,iEAA+C;AAC/C,yDAAuC;AACvC,qEAAmD;AACnD,yEAAuD;AACvD,4EAA0D;AAC1D,0CAAwB;AACxB,6CAA2B"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,mDAAiC;AACjC,8DAA4C;AAC5C,qDAAmC;AACnC,6DAA2C;AAC3C,mDAAiC;AACjC,iEAA+C;AAC/C,8DAA4C;AAC5C,0DAAwC;AACxC,+DAA6C;AAC7C,mDAAiC;AACjC,oDAAkC;AAClC,0CAAwB;AACxB,oDAAkC;AAClC,yDAAuC;AACvC,oDAAkC;AAClC,qDAAmC;AACnC,yEAAuD;AACvD,uDAAqC;AACrC,sDAAoC;AACpC,yDAAuC;AACvC,6DAA2C;AAC3C,yDAAuC;AACvC,+CAA6B;AAC7B,kDAAgC;AAChC,mDAAiC;AACjC,4DAA0C;AAC1C,8CAA4B;AAC5B,gDAA8B;AAC9B,8CAA4B;AAC5B,6CAA2B;AAC3B,4CAA0B;AAC1B,oDAAkC;AAClC,qDAAmC;AACnC,8DAA4C;AAC5C,mDAAiC;AACjC,0DAAwC;AACxC,sDAAoC;AACpC,qDAAmC;AACnC,iDAA+B;AAC/B,kDAAgC;AAChC,iEAA+C;AAC/C,yDAAuC;AACvC,0CAAwB;AACxB,6CAA2B"}

@@ -5,2 +5,4 @@ /**

export interface MediaBody {
/** The subject text */
subject?: string;
/** The message text. Text only media messages will be rejected, please use SMS instead. */

@@ -7,0 +9,0 @@ message?: string;

@@ -8,3 +8,3 @@ import { MediaBody } from '../media-body';

export interface MediaRequest {
/** List of Phone numbers and group IDs that will receive the batch. <a href=\"https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628\" target=\"_blank\">More info</a> */
/** List of Phone numbers and group IDs that will receive the batch. [More info](https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628) */
to: string[];

@@ -22,6 +22,6 @@ /** Sender number. Must be valid phone number, short code or alphanumeric. Required if Automatic Default Originator not configured. */

/** If set in the future, the message will be delayed until `send_at` occurs.
* Must be before `expire_at`. If set in the past, messages will be sent immediately. Formatted as <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO-8601</a>: `YYYY-MM-DDThh:mm:ss.SSSZ`. */
* Must be before `expire_at`. If set in the past, messages will be sent immediately. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. */
send_at?: Date;
/** If set, the system will stop trying to deliver the message at this point.
* Must be after `send_at`. Default and max is 3 days after `send_at`. Formatted as <a href=\"https://en.wikipedia.org/wiki/ISO_8601\" target=\"_blank\">ISO-8601</a>: `YYYY-MM-DDThh:mm:ss.SSSZ`. */
* Must be after `send_at`. Default and max is 3 days after `send_at`. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601): `YYYY-MM-DDThh:mm:ss.SSSZ`. */
expire_at?: Date;

@@ -32,6 +32,6 @@ /** Override the default callback URL for this batch. Must be valid URL. */

client_reference?: string;
/** If set to `true`, then [feedback](/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
/** If set to `true`, then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;
/** Whether or not you want the media included in your message to be checked against [Sinch MMS channel best practices](/docs/mms/bestpractices/). If set to true, your message will be rejected if it doesn\'t conform to the listed recommendations, otherwise no validation will be performed. */
/** Whether or not you want the media included in your message to be checked against [Sinch MMS channel best practices](https://developers.sinch.com/docs/mms/bestpractices/). If set to true, your message will be rejected if it doesn't conform to the listed recommendations, otherwise no validation will be performed. */
strict_validation?: boolean;
}

@@ -19,5 +19,5 @@ import { MediaBody } from '../media-body';

type?: 'mt_media';
/** Timestamp for when batch was created. YYYY-MM-DDThh:mm:ss.SSSZ format */
/** Timestamp for when batch was created. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601):`YYYY-MM-DDThh:mm:ss.SSSZ`. */
created_at?: Date;
/** Timestamp for when batch was last updated. YYYY-MM-DDThh:mm:ss.SSSZ format */
/** Timestamp for when batch was last updated. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601):`YYYY-MM-DDThh:mm:ss.SSSZ`. */
modified_at?: Date;

@@ -27,6 +27,6 @@ /** Request delivery report callback. Note that delivery reports can be fetched from the API regardless of this setting. */

/** If set in the future the message will be delayed until send_at occurs.
* Must be before `expire_at`. If set in the past messages will be sent immediately. YYYY-MM-DDThh:mm:ss.SSSZ format */
* Must be before `expire_at`. If set in the past messages will be sent immediately. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601):`YYYY-MM-DDThh:mm:ss.SSSZ`. */
send_at?: Date;
/** If set the system will stop trying to deliver the message at this point.
* Must be after `send_at`. Default and max is 3 days after send_at. YYYY-MM-DDThh:mm:ss.SSSZ format */
* Must be after `send_at`. Default and max is 3 days after send_at. Formatted as [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601):`YYYY-MM-DDThh:mm:ss.SSSZ`. */
expire_at?: Date;

@@ -37,3 +37,3 @@ /** Override the default callback URL for this batch. Must be valid URL. */

client_reference?: string;
/** If set to true then [feedback](/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
/** If set to true then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;

@@ -40,0 +40,0 @@ /** Whether or not you want the media included in your message to be checked against [Sinch MMS channel best practices](/docs/mms/bestpractices/). If set to true, your message will be rejected if it doesn't conform to the listed recommendations, otherwise no validation will be performed. */

@@ -1,2 +0,2 @@

import { DeliveryReportStatusEnum } from '../enums';
import { DeliveryReceiptCodeEnum, DeliveryStatusEnum } from '../enums';
/**

@@ -6,4 +6,4 @@ * Array with status objects. Only status codes with at least one recipient will be listed.

export interface MessageDeliveryStatus {
/** The detailed status code. */
code: number;
/** The detailed [status code](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Delivery-reports/#tag/Delivery-reports/section/Delivery-report-error-codes). */
code: DeliveryReceiptCodeEnum;
/** The number of messages that currently has this code. */

@@ -14,3 +14,3 @@ count: number;

/** The simplified status as described in _Delivery Report Statuses_. */
status: DeliveryReportStatusEnum;
status: DeliveryStatusEnum;
}

@@ -5,3 +5,3 @@ import { ApiMoMessage } from '../api-mo-message';

body: string;
/** SMS in binary format */
/** SMS in [binary](https://community.sinch.com/t5/Glossary/Binary-SMS/ta-p/7470) format */
type: 'mo_binary';

@@ -8,0 +8,0 @@ /** The UDH header of a binary message HEX encoded. Max 140 bytes together with body. */

@@ -1,2 +0,2 @@

import { DeliveryReportStatusEnum } from '../enums';
import { DeliveryReceiptCodeEnum, DeliveryStatusEnum } from '../enums';
export interface RecipientDeliveryReport {

@@ -11,4 +11,4 @@ /** The default originator used for the recipient this delivery report belongs to, if default originator pool configured and no originator set when submitting batch. */

client_reference?: string;
/** The detailed status code. */
code: number;
/** The detailed [status code](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Delivery-reports/#tag/Delivery-reports/section/Delivery-report-error-codes). */
code: DeliveryReceiptCodeEnum;
/** Applied encoding for message. Present only if smart encoding is enabled. */

@@ -25,5 +25,5 @@ encoding?: 'GSM' | 'UNICODE';

/** The simplified status as described in _Delivery Report Statuses_. */
status: DeliveryReportStatusEnum;
status: DeliveryStatusEnum;
/** The recipient delivery report type. */
type: 'recipient_delivery_report_sms' | 'recipient_delivery_report_mms';
}

@@ -0,6 +1,11 @@

import { GroupAutoUpdate } from '../group-auto-update';
export interface ReplaceGroupRequest {
/** Name of group. */
name?: string;
/** The initial members of the group. Constraints: Elements must be phone numbers in <a href=\"https://community.sinch.com/t5/Glossary/E-164/ta-p/7537\" target=\"_blank\">E.164</a> format MSISDNs. */
/** The initial members of the group. Constraints: Elements must be phone numbers in [E.164](https://community.sinch.com/t5/Glossary/E-164/ta-p/7537) format MSISDNs. */
members: string[];
/** Phone numbers ([MSISDNs](https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628)) of child group will be included in this group. If present then this group will be auto populated. Constraints: Elements must be group IDs. */
child_groups?: string[];
/** @see GroupAutoUpdate */
auto_update?: GroupAutoUpdate;
}

@@ -1,11 +0,15 @@

import { DeliveryReportStatusEnum } from '../../enums';
import { DeliveryReceiptCodeEnum, DeliveryStatusEnum } from '../../enums';
export interface GetDeliveryReportByBatchIdRequestData {
/** The batch ID you received from sending a message. */
'batch_id': string;
/** The type of delivery report. - A `summary` will count the number of messages sent per status. - A `full` report give that of a `summary` report but in addition, lists phone numbers. */
/**
* The type of delivery report.
* - A `summary` will count the number of messages sent per status.
* - A `full` report give that of a `summary` report but in addition, lists phone numbers.
*/
'type'?: 'summary' | 'full';
/** Comma separated list of delivery_report_statuses to include */
'status'?: DeliveryReportStatusEnum[];
/** Comma separated list of delivery_receipt_error_codes to include */
'code'?: string | number | number[];
/** Comma separated list of delivery report statuses to include */
'status'?: DeliveryStatusEnum | DeliveryStatusEnum[];
/** Comma separated list of delivery receipt codes to include */
'code'?: string | DeliveryReceiptCodeEnum | DeliveryReceiptCodeEnum[];
}

@@ -39,7 +43,7 @@ export type GetDeliveryReportByPhoneNumberRequestData = GetDeliveryReportByPhoneNumberRequestDataBC | GetDeliveryReportByPhoneNumberRequestDataDeprecated;

/** Comma separated list of delivery report statuses to include. */
'status'?: DeliveryReportStatusEnum[];
/** Comma separated list of delivery receipt error codes to include. */
'code'?: string;
'status'?: DeliveryStatusEnum | DeliveryStatusEnum[];
/** Comma separated list of delivery receipt codes to include. */
'code'?: string | DeliveryReceiptCodeEnum | DeliveryReceiptCodeEnum[];
/** Client reference to include */
'client_reference'?: string;
}

@@ -6,3 +6,3 @@ import { CreateGroupRequest } from '../../create-group-request';

/** */
'createGroupRequestBody'?: CreateGroupRequest;
'createGroupRequestBody': CreateGroupRequest;
}

@@ -27,3 +27,3 @@ export interface DeleteGroupRequestData {

/** */
'replaceGroupRequestBody'?: ReplaceGroupRequest;
'replaceGroupRequestBody': ReplaceGroupRequest;
}

@@ -38,3 +38,3 @@ export interface GetGroupRequestData {

/** */
'updateGroupRequestBody'?: UpdateGroupRequest;
'updateGroupRequestBody': UpdateGroupRequest;
}
import { ParameterGroup } from '../parameter-group';
import { DeliveryReportEnum } from '../enums';
export interface TextRequest {
/** List of Phone numbers and group IDs that will receive the batch. <a href=\"https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628\" target=\"_blank\">More info</a> */
/** List of Phone numbers and group IDs that will receive the batch. [More info](https://community.sinch.com/t5/Glossary/MSISDN/ta-p/7628) */
to: string[];

@@ -26,3 +26,3 @@ /** Sender number. Must be valid phone number, short code or alphanumeric. Required if Automatic Default Originator not configured. */

client_reference?: string;
/** If set to `true`, then [feedback](/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
/** If set to `true`, then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;

@@ -29,0 +29,0 @@ /** Shows message on screen without user interaction while not saving the message to the inbox. */

@@ -34,3 +34,3 @@ import { ParameterGroup } from '../parameter-group';

client_reference?: string;
/** If set to `true`, then [feedback](/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
/** If set to `true`, then [feedback](https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/#tag/Batches/operation/deliveryFeedback) is expected after successful delivery. */
feedback_enabled?: boolean;

@@ -37,0 +37,0 @@ /** Shows message on screen without user interaction while not saving the message to the inbox. */

@@ -1,2 +0,2 @@

import { UpdateGroupRequestAutoUpdate } from '../update-group-request-auto-update';
import { GroupAutoUpdate } from '../group-auto-update';
export interface UpdateGroupRequest {

@@ -13,4 +13,4 @@ /** The name of the group. Omitting `name` from the JSON body will leave the name unchanged. To remove an existing name set, name explicitly to the JSON value `null`. */

remove_from_group?: string;
/** @see UpdateGroupRequestAutoUpdate */
auto_update?: UpdateGroupRequestAutoUpdate;
/** @see GroupAutoUpdate */
auto_update?: GroupAutoUpdate;
}

@@ -1,7 +0,9 @@

import { DeliveryReport, MOBinary, MOText, RecipientDeliveryReport } from '../../../models';
import { DeliveryReport, MOBinary, MOMedia, MOText, RecipientDeliveryReport } from '../../../models';
import { CallbackProcessor } from '@sinch/sdk-client';
import { IncomingHttpHeaders } from 'http';
export type SmsCallback = DeliveryReport | RecipientDeliveryReport | MOText | MOBinary;
export type SmsCallback = DeliveryReport | RecipientDeliveryReport | MOText | MOBinary | MOMedia;
export declare class SmsCallbackWebhooks implements CallbackProcessor<SmsCallback> {
validateAuthenticationHeader(_headers: IncomingHttpHeaders, _body: any, _path: string, _method: string): boolean;
private readonly appSecret;
constructor(appSecret?: string);
validateAuthenticationHeader(headers: IncomingHttpHeaders, body: any, _path?: string, _method?: string): boolean;
/**

@@ -8,0 +10,0 @@ * Reviver for an SMS Event.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SmsCallbackWebhooks = void 0;
const sdk_client_1 = require("@sinch/sdk-client");
class SmsCallbackWebhooks {
validateAuthenticationHeader(
constructor(appSecret) {
this.appSecret = appSecret;
}
validateAuthenticationHeader(headers, body,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
_headers, _body, _path, _method) {
// No header validation is implemented for SMS API
return true;
_path, _method) {
if (!this.appSecret) {
return false;
}
return (0, sdk_client_1.validateWebhookSignature)(this.appSecret, headers, body);
}

@@ -18,2 +24,5 @@ /**

parseEvent(eventBody) {
if (typeof eventBody === 'string') {
eventBody = JSON.parse(eventBody);
}
if (eventBody.type) {

@@ -23,2 +32,3 @@ let recipientDeliveryReport = null;

let moBinary = null;
let moMedia = null;
switch (eventBody.type) {

@@ -56,2 +66,11 @@ case 'delivery_report_sms':

return moBinary;
case 'mo_media':
moMedia = eventBody;
if (moMedia.received_at) {
moMedia.received_at = new Date(moMedia.received_at);
}
if (moMedia.sent_at) {
moMedia.sent_at = new Date(moMedia.sent_at);
}
return moMedia;
default:

@@ -61,4 +80,3 @@ throw new Error(`Unknown SMS event type: ${eventBody.type}`);

}
console.log(eventBody);
throw new Error('Unknown SMS event');
throw new Error(`Unknown SMS event: ${JSON.stringify(eventBody)}`);
}

@@ -65,0 +83,0 @@ ;

@@ -1,1 +0,1 @@

{"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks/callbacks-webhook.ts"],"names":[],"mappings":";;;AAMA,MAAa,mBAAmB;IAEvB,4BAA4B;IACjC,6DAA6D;IAC7D,QAA6B,EAAE,KAAU,EAAE,KAAa,EAAE,OAAe;QAEzE,kDAAkD;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;OAKG;IACI,UAAU,CAAC,SAAc;QAC9B,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;YACnB,IAAI,uBAAuB,GAAmC,IAAI,CAAC;YACnE,IAAI,MAAM,GAAkB,IAAI,CAAC;YACjC,IAAI,QAAQ,GAAoB,IAAI,CAAC;YACrC,QAAQ,SAAS,CAAC,IAAI,EAAE,CAAC;gBACzB,KAAK,qBAAqB,CAAC;gBAC3B,KAAK,qBAAqB;oBACxB,OAAO,SAA2B,CAAC;gBACrC,KAAK,+BAA+B,CAAC;gBACrC,KAAK,+BAA+B;oBAClC,uBAAuB,GAAG,SAAoC,CAAC;oBAC/D,IAAI,uBAAuB,CAAC,EAAE,EAAE,CAAC;wBAC/B,uBAAuB,CAAC,EAAE,GAAG,IAAI,IA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MAAM,IAAI,KAAK,CAAC,sBAAsB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACrE,CAAC;IAAA,CAAC;CAEH;AAvFD,kDAuFC"}
import { Api, ApiClient, SinchClientParameters, SmsRegion, UnifiedCredentials, ServicePlanIdCredentials } from '@sinch/sdk-client';
export declare const DEFAULT_SMS_REGION_DEPRECATION_WARNING: string;
export declare class SmsDomainApi implements Api {

@@ -3,0 +4,0 @@ readonly apiName: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SmsDomainApi = void 0;
exports.SmsDomainApi = exports.DEFAULT_SMS_REGION_DEPRECATION_WARNING = void 0;
const sdk_client_1 = require("@sinch/sdk-client");
exports.DEFAULT_SMS_REGION_DEPRECATION_WARNING = '** DEPRECATION NOTICE ** '
+ 'The "smsRegion" property will become mandatory in the next major version of the SDK and not default '
+ 'to "us" anymore. Please set it to a valid region.';
class SmsDomainApi {

@@ -16,2 +19,4 @@ constructor(sinchClientParameters, apiName) {

try {
// The following line is a workaround to detect if the hostname is set for the Conversation or Templates API - To be deleted in 2.0
this.sinchClientParameters.smsHostname = hostname;
this.client = this.getSinchClient();

@@ -68,2 +73,6 @@ this.client.apiClientOptions.hostname = hostname;

const region = this.sinchClientParameters.smsRegion ?? sdk_client_1.SmsRegion.UNITED_STATES;
// Deprecation Notice - to remove in 2.0
if (!this.sinchClientParameters.smsRegion && !this.sinchClientParameters.smsHostname) {
console.warn(exports.DEFAULT_SMS_REGION_DEPRECATION_WARNING);
}
if (!Object.values(sdk_client_1.SupportedSmsRegion).includes(region)) {

@@ -70,0 +79,0 @@ console.warn(`The region "${region}" is not known as a supported region for the SMS API`);

@@ -1,1 +0,1 @@

{"version":3,"file":"sms-domain-api.js","sourceRoot":"","sources":["../../../src/rest/v1/sms-domain-api.ts"],"names":[],"mappings":";;;AAAA,kDAY2B;AAE3B,MAAa,YAAY;IAKvB,YAAY,qBAA4C,EAAE,OAAe;QACvE,IAAI,CA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C,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAEO,aAAa,CAAC,MAAiB,EAAE,WAAoB;QAC3D,MAAM,eAAe,GAAG,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC1D,OAAO,IAAA,uCAA0B,EAAC,yBAAY,EAAE,GAAG,WAAW,CAAA,CAAC,CAAA,KAAK,CAAA,CAAC,CAAA,EAAE,GAAG,eAAe,EAAE,CAAC,CAAC;IAC/F,CAAC;CAEF;AA5FD,oCA4FC"}
{
"name": "@sinch/sms",
"version": "1.2.1",
"version": "1.3.0",
"description": "Sinch SMS API",

@@ -32,3 +32,3 @@ "homepage": "",

"dependencies": {
"@sinch/sdk-client": "^1.2.1"
"@sinch/sdk-client": "^1.3.0"
},

@@ -35,0 +35,0 @@ "devDependencies": {},

/**
* Keyword to be sent in MO to remove from a group.
*/
export interface GroupObjectAutoUpdateRemove {
/** Opt-out keyword like \"LEAVE\" If auto_update.to is dedicated long/short number or unique brand keyword like \"Sinch\" if it is a shared short code. Constraints: Must be one word. */
first_word?: string;
/** Opt-out keyword like \"LEAVE\" if auto_update.to is shared short code. Constraints: Must be one word. */
second_word?: string;
}
/** Validation regex for first_word */
export declare const firstWordPattern: RegExp;
/** Validation regex for second_word */
export declare const secondWordPattern: RegExp;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.secondWordPattern = exports.firstWordPattern = void 0;
/** Validation regex for first_word */
exports.firstWordPattern = /^\w+$/;
/** Validation regex for second_word */
exports.secondWordPattern = /^\w+$/;
//# sourceMappingURL=group-object-auto-update-remove.js.map
{"version":3,"file":"group-object-auto-update-remove.js","sourceRoot":"","sources":["../../../../src/models/v1/group-object-auto-update-remove/group-object-auto-update-remove.ts"],"names":[],"mappings":";;;AAYA,sCAAsC;AACzB,QAAA,gBAAgB,GAAG,OAAO,CAAC;AACxC,uCAAuC;AAC1B,QAAA,iBAAiB,GAAG,OAAO,CAAC"}
export type { GroupObjectAutoUpdateRemove } from './group-object-auto-update-remove';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/group-object-auto-update-remove/index.ts"],"names":[],"mappings":""}
import { GroupObjectAutoUpdateRemove } from '../group-object-auto-update-remove';
import { UpdateGroupRequestAutoUpdateAdd } from '../update-group-request-auto-update-add';
export interface GroupObjectAutoUpdate {
/** Short code or long number addressed in <a href=\"https://community.sinch.com/t5/Glossary/MO-Mobile-Originated/ta-p/7618\" target=\"_blank\">MO</a>. Constraints: Must be valid phone number or short code. */
to?: string;
/** @see UpdateGroupRequestAutoUpdateAdd */
add?: UpdateGroupRequestAutoUpdateAdd;
/** @see GroupObjectAutoUpdateRemove */
remove?: GroupObjectAutoUpdateRemove;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=group-object-auto-update.js.map
{"version":3,"file":"group-object-auto-update.js","sourceRoot":"","sources":["../../../../src/models/v1/group-object-auto-update/group-object-auto-update.ts"],"names":[],"mappings":""}
export type { GroupObjectAutoUpdate } from './group-object-auto-update';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/group-object-auto-update/index.ts"],"names":[],"mappings":""}
export type { UpdateGroupRequestAutoUpdateAdd } from './update-group-request-auto-update-add';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/update-group-request-auto-update-add/index.ts"],"names":[],"mappings":""}
export interface UpdateGroupRequestAutoUpdateAdd {
/** Keyword to be sent in <a href=\"https://community.sinch.com/t5/Glossary/MO-Mobile-Originated/ta-p/7618\" target=\"_blank\">MO</a> to add phone number to a group opt-in keyword like \"JOIN\". If `auto_update.to` is dedicated long/short number or unique brand keyword like \"Sinch\" if it is a shared short code. Constraints: Must be one word. */
first_word?: string;
/** Opt-in keyword like \"JOIN\" if auto_update.to is shared short code. Constraints: Must be one word. */
second_word?: string;
}
/** Validation regex for first_word */
export declare const firstWordPattern: RegExp;
/** Validation regex for second_word */
export declare const secondWordPattern: RegExp;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.secondWordPattern = exports.firstWordPattern = void 0;
/** Validation regex for first_word */
exports.firstWordPattern = /^\w+$/;
/** Validation regex for second_word */
exports.secondWordPattern = /^\w+$/;
//# sourceMappingURL=update-group-request-auto-update-add.js.map
{"version":3,"file":"update-group-request-auto-update-add.js","sourceRoot":"","sources":["../../../../src/models/v1/update-group-request-auto-update-add/update-group-request-auto-update-add.ts"],"names":[],"mappings":";;;AASA,sCAAsC;AACzB,QAAA,gBAAgB,GAAG,OAAO,CAAC;AACxC,uCAAuC;AAC1B,QAAA,iBAAiB,GAAG,OAAO,CAAC"}
export type { UpdateGroupRequestAutoUpdateRemove } from './update-group-request-auto-update-remove';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/update-group-request-auto-update-remove/index.ts"],"names":[],"mappings":""}
/**
* Keyword to be sent in MO to remove from a group.
*/
export interface UpdateGroupRequestAutoUpdateRemove {
/** Opt-out keyword. For example, \"LEAVE\" if `auto_update.to` is a dedicated long/short number or a unique brand keyword like \"Sinch\" (if it is a shared short code). Constraints: Must be one word. */
first_word?: string;
/** Opt-out keyword. For example, \"LEAVE\" if `auto_update.to` is a shared short code. Constraints: Must be one word. */
second_word?: string;
}
/** Validation regex for first_word */
export declare const firstWordPattern: RegExp;
/** Validation regex for second_word */
export declare const secondWordPattern: RegExp;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.secondWordPattern = exports.firstWordPattern = void 0;
/** Validation regex for first_word */
exports.firstWordPattern = /^\w+$/;
/** Validation regex for second_word */
exports.secondWordPattern = /^\w+$/;
//# sourceMappingURL=update-group-request-auto-update-remove.js.map
{"version":3,"file":"update-group-request-auto-update-remove.js","sourceRoot":"","sources":["../../../../src/models/v1/update-group-request-auto-update-remove/update-group-request-auto-update-remove.ts"],"names":[],"mappings":";;;AAYA,sCAAsC;AACzB,QAAA,gBAAgB,GAAG,OAAO,CAAC;AACxC,uCAAuC;AAC1B,QAAA,iBAAiB,GAAG,OAAO,CAAC"}
export type { UpdateGroupRequestAutoUpdate } from './update-group-request-auto-update';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/update-group-request-auto-update/index.ts"],"names":[],"mappings":""}
import { UpdateGroupRequestAutoUpdateAdd } from '../update-group-request-auto-update-add';
import { UpdateGroupRequestAutoUpdateRemove } from '../update-group-request-auto-update-remove';
export interface UpdateGroupRequestAutoUpdate {
/** Short code or long number addressed in <a href=\"https://community.sinch.com/t5/Glossary/MO-Mobile-Originated/ta-p/7618\" target=\"_blank\">MO</a>. Constraints: Must be a valid phone number or short code. */
to?: string;
/** @see UpdateGroupRequestAutoUpdateAdd */
add?: UpdateGroupRequestAutoUpdateAdd;
/** @see UpdateGroupRequestAutoUpdateRemove */
remove?: UpdateGroupRequestAutoUpdateRemove;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=update-group-request-auto-update.js.map
{"version":3,"file":"update-group-request-auto-update.js","sourceRoot":"","sources":["../../../../src/models/v1/update-group-request-auto-update/update-group-request-auto-update.ts"],"names":[],"mappings":""}