@wildix/wim-tools-client 0.0.31 → 0.0.32

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToolExecutionServerException = exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolWebhookMethod = exports.ToolWebhookAuth = exports.ToolSmsRecipient = exports.ToolEmailHandler = exports.ToolChatRecipient = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = exports.AlreadyExistException = void 0;
3
+ exports.ToolExecutionServerException = exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolWebhookMethod = exports.ToolWebhookAuth = exports.ToolEmailHandler = exports.ToolChatRecipient = exports.ValidationException = exports.NotFoundException = exports.ForbiddenException = exports.AlreadyExistException = void 0;
4
4
  const ToolsServiceException_1 = require("./ToolsServiceException");
5
5
  class AlreadyExistException extends ToolsServiceException_1.ToolsServiceException {
6
6
  name = "AlreadyExistException";
@@ -74,16 +74,6 @@ var ToolEmailHandler;
74
74
  return visitor._(value.$unknown[0], value.$unknown[1]);
75
75
  };
76
76
  })(ToolEmailHandler || (exports.ToolEmailHandler = ToolEmailHandler = {}));
77
- var ToolSmsRecipient;
78
- (function (ToolSmsRecipient) {
79
- ToolSmsRecipient.visit = (value, visitor) => {
80
- if (value.recipientId !== undefined)
81
- return visitor.recipientId(value.recipientId);
82
- if (value.recipientNumber !== undefined)
83
- return visitor.recipientNumber(value.recipientNumber);
84
- return visitor._(value.$unknown[0], value.$unknown[1]);
85
- };
86
- })(ToolSmsRecipient || (exports.ToolSmsRecipient = ToolSmsRecipient = {}));
87
77
  var ToolWebhookAuth;
88
78
  (function (ToolWebhookAuth) {
89
79
  ToolWebhookAuth.visit = (value, visitor) => {
@@ -67,16 +67,6 @@ export var ToolEmailHandler;
67
67
  return visitor._(value.$unknown[0], value.$unknown[1]);
68
68
  };
69
69
  })(ToolEmailHandler || (ToolEmailHandler = {}));
70
- export var ToolSmsRecipient;
71
- (function (ToolSmsRecipient) {
72
- ToolSmsRecipient.visit = (value, visitor) => {
73
- if (value.recipientId !== undefined)
74
- return visitor.recipientId(value.recipientId);
75
- if (value.recipientNumber !== undefined)
76
- return visitor.recipientNumber(value.recipientNumber);
77
- return visitor._(value.$unknown[0], value.$unknown[1]);
78
- };
79
- })(ToolSmsRecipient || (ToolSmsRecipient = {}));
80
70
  export var ToolWebhookAuth;
81
71
  (function (ToolWebhookAuth) {
82
72
  ToolWebhookAuth.visit = (value, visitor) => {
@@ -112,13 +112,9 @@ declare const CreateToolCommand_base: {
112
112
  * },
113
113
  * sms: { // ToolSmsHandler
114
114
  * config: { // ToolSmsConfig
115
- * serviceUri: "STRING_VALUE", // required
116
- * recipient: { // ToolSmsRecipient Union: only one key present
117
- * recipientId: "STRING_VALUE",
118
- * recipientNumber: "STRING_VALUE",
119
- * },
120
- * text: "STRING_VALUE", // required
121
- * botName: "STRING_VALUE", // required
115
+ * from: "STRING_VALUE", // required
116
+ * to: "STRING_VALUE", // required
117
+ * message: "STRING_VALUE", // required
122
118
  * },
123
119
  * },
124
120
  * },
@@ -205,13 +201,9 @@ declare const CreateToolCommand_base: {
205
201
  * // },
206
202
  * // sms: { // ToolSmsHandler
207
203
  * // config: { // ToolSmsConfig
208
- * // serviceUri: "STRING_VALUE", // required
209
- * // recipient: { // ToolSmsRecipient Union: only one key present
210
- * // recipientId: "STRING_VALUE",
211
- * // recipientNumber: "STRING_VALUE",
212
- * // },
213
- * // text: "STRING_VALUE", // required
214
- * // botName: "STRING_VALUE", // required
204
+ * // from: "STRING_VALUE", // required
205
+ * // to: "STRING_VALUE", // required
206
+ * // message: "STRING_VALUE", // required
215
207
  * // },
216
208
  * // },
217
209
  * // },
@@ -120,13 +120,9 @@ declare const GetToolCommand_base: {
120
120
  * // },
121
121
  * // sms: { // ToolSmsHandler
122
122
  * // config: { // ToolSmsConfig
123
- * // serviceUri: "STRING_VALUE", // required
124
- * // recipient: { // ToolSmsRecipient Union: only one key present
125
- * // recipientId: "STRING_VALUE",
126
- * // recipientNumber: "STRING_VALUE",
127
- * // },
128
- * // text: "STRING_VALUE", // required
129
- * // botName: "STRING_VALUE", // required
123
+ * // from: "STRING_VALUE", // required
124
+ * // to: "STRING_VALUE", // required
125
+ * // message: "STRING_VALUE", // required
130
126
  * // },
131
127
  * // },
132
128
  * // },
@@ -120,13 +120,9 @@ declare const ListToolsCommand_base: {
120
120
  * // },
121
121
  * // sms: { // ToolSmsHandler
122
122
  * // config: { // ToolSmsConfig
123
- * // serviceUri: "STRING_VALUE", // required
124
- * // recipient: { // ToolSmsRecipient Union: only one key present
125
- * // recipientId: "STRING_VALUE",
126
- * // recipientNumber: "STRING_VALUE",
127
- * // },
128
- * // text: "STRING_VALUE", // required
129
- * // botName: "STRING_VALUE", // required
123
+ * // from: "STRING_VALUE", // required
124
+ * // to: "STRING_VALUE", // required
125
+ * // message: "STRING_VALUE", // required
130
126
  * // },
131
127
  * // },
132
128
  * // },
@@ -113,13 +113,9 @@ declare const UpdateToolCommand_base: {
113
113
  * },
114
114
  * sms: { // ToolSmsHandler
115
115
  * config: { // ToolSmsConfig
116
- * serviceUri: "STRING_VALUE", // required
117
- * recipient: { // ToolSmsRecipient Union: only one key present
118
- * recipientId: "STRING_VALUE",
119
- * recipientNumber: "STRING_VALUE",
120
- * },
121
- * text: "STRING_VALUE", // required
122
- * botName: "STRING_VALUE", // required
116
+ * from: "STRING_VALUE", // required
117
+ * to: "STRING_VALUE", // required
118
+ * message: "STRING_VALUE", // required
123
119
  * },
124
120
  * },
125
121
  * },
@@ -206,13 +202,9 @@ declare const UpdateToolCommand_base: {
206
202
  * // },
207
203
  * // sms: { // ToolSmsHandler
208
204
  * // config: { // ToolSmsConfig
209
- * // serviceUri: "STRING_VALUE", // required
210
- * // recipient: { // ToolSmsRecipient Union: only one key present
211
- * // recipientId: "STRING_VALUE",
212
- * // recipientNumber: "STRING_VALUE",
213
- * // },
214
- * // text: "STRING_VALUE", // required
215
- * // botName: "STRING_VALUE", // required
205
+ * // from: "STRING_VALUE", // required
206
+ * // to: "STRING_VALUE", // required
207
+ * // message: "STRING_VALUE", // required
216
208
  * // },
217
209
  * // },
218
210
  * // },
@@ -263,78 +263,32 @@ export declare namespace ToolEmailHandler {
263
263
  */
264
264
  export interface ToolSearchConfig {
265
265
  }
266
- /**
267
- * @public
268
- */
269
- export type ToolSmsRecipient = ToolSmsRecipient.RecipientIdMember | ToolSmsRecipient.RecipientNumberMember | ToolSmsRecipient.$UnknownMember;
270
- /**
271
- * @public
272
- */
273
- export declare namespace ToolSmsRecipient {
274
- /**
275
- * User ID for existing users.
276
- * @public
277
- */
278
- interface RecipientIdMember {
279
- recipientId: string;
280
- recipientNumber?: never;
281
- $unknown?: never;
282
- }
283
- /**
284
- * Phone number for SMS recipient.
285
- * @public
286
- */
287
- interface RecipientNumberMember {
288
- recipientId?: never;
289
- recipientNumber: string;
290
- $unknown?: never;
291
- }
292
- /**
293
- * @public
294
- */
295
- interface $UnknownMember {
296
- recipientId?: never;
297
- recipientNumber?: never;
298
- $unknown: [string, any];
299
- }
300
- interface Visitor<T> {
301
- recipientId: (value: string) => T;
302
- recipientNumber: (value: string) => T;
303
- _: (name: string, value: any) => T;
304
- }
305
- const visit: <T>(value: ToolSmsRecipient, visitor: Visitor<T>) => T;
306
- }
307
266
  /**
308
267
  * @public
309
268
  */
310
269
  export interface ToolSmsConfig {
311
270
  /**
312
- * The unique identifier of the telephony channel.
271
+ * Sender phone number in E.164 format (e.g., +1234567890). This is the phone number that will appear as the sender of the SMS. Supports template syntax with variables.
313
272
  * @public
314
273
  */
315
- serviceUri: string;
316
- /**
317
- * Recipient of the SMS message - either a user ID for existing users or phone number.
318
- * @public
319
- */
320
- recipient: ToolSmsRecipient;
274
+ from: string;
321
275
  /**
322
- * SMS message text to send.
276
+ * Recipient phone number in E.164 format (e.g., +1234567890). Supports template syntax with variables.
323
277
  * @public
324
278
  */
325
- text: string;
279
+ to: string;
326
280
  /**
327
- * Name of the system bot that will send the message.
281
+ * SMS message text to send. Supports template syntax with variables. Maximum length depends on carrier limits (typically 160 characters for single SMS, 1600 for concatenated).
328
282
  * @public
329
283
  */
330
- botName: string;
284
+ message: string;
331
285
  }
332
286
  /**
333
287
  * @public
334
288
  */
335
289
  export interface ToolSmsHandler {
336
290
  /**
337
- * SMS handler configuration for sending messages via xbees-conversations.
291
+ * SMS handler configuration for sending text messages via Classound a2s API.
338
292
  * @public
339
293
  */
340
294
  config: ToolSmsConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wim-tools-client",
3
3
  "description": "@wildix/wim-tools-client client",
4
- "version": "0.0.31",
4
+ "version": "0.0.32",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",