Auto-commit 2026-04-29 16:31
This commit is contained in:
66
node_modules/twilio/lib/twiml/FaxResponse.d.ts
generated
vendored
Normal file
66
node_modules/twilio/lib/twiml/FaxResponse.d.ts
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* This code was generated by
|
||||
* \ / _ _ _| _ _
|
||||
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
||||
* / /
|
||||
*/
|
||||
import { XMLElement } from "xmlbuilder";
|
||||
import TwiML from "./TwiML";
|
||||
declare class FaxResponse extends TwiML {
|
||||
/**
|
||||
* <Response> TwiML for Faxes
|
||||
*/
|
||||
constructor();
|
||||
/**
|
||||
* Comments in <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
comment(comment: string): XMLElement;
|
||||
/**
|
||||
* Comments after <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
commentAfter(comment: string): XMLElement;
|
||||
/**
|
||||
* Comments before <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
commentBefore(comment: string): XMLElement;
|
||||
/**
|
||||
* <Receive> TwiML Verb
|
||||
*
|
||||
* @param attributes - TwiML attributes
|
||||
*/
|
||||
receive(attributes?: FaxResponse.ReceiveAttributes): FaxResponse.Receive;
|
||||
}
|
||||
declare namespace FaxResponse {
|
||||
type ReceiveMediaType = "application/pdf" | "image/tiff";
|
||||
type ReceivePageSize = "letter" | "legal" | "a4";
|
||||
/**
|
||||
* Attributes to pass to receive
|
||||
*/
|
||||
export interface ReceiveAttributes {
|
||||
/** action - Receive action URL */
|
||||
action?: string;
|
||||
/** mediaType - The media type used to store media in the fax media store */
|
||||
mediaType?: ReceiveMediaType;
|
||||
/** method - Receive action URL method */
|
||||
method?: string;
|
||||
/** pageSize - What size to interpret received pages as */
|
||||
pageSize?: ReceivePageSize;
|
||||
/** storeMedia - Whether or not to store received media in the fax media store */
|
||||
storeMedia?: boolean;
|
||||
}
|
||||
export class Receive extends TwiML {
|
||||
receive: XMLElement;
|
||||
/**
|
||||
* <Receive> TwiML Verb
|
||||
*/
|
||||
constructor(receive: XMLElement);
|
||||
}
|
||||
export {};
|
||||
}
|
||||
export = FaxResponse;
|
||||
66
node_modules/twilio/lib/twiml/FaxResponse.js
generated
vendored
Normal file
66
node_modules/twilio/lib/twiml/FaxResponse.js
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
"use strict";
|
||||
/**
|
||||
* This code was generated by
|
||||
* \ / _ _ _| _ _
|
||||
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
||||
* / /
|
||||
*/
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
const TwiML_1 = __importDefault(require("./TwiML"));
|
||||
class FaxResponse extends TwiML_1.default {
|
||||
/**
|
||||
* <Response> TwiML for Faxes
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
this._propertyName = "response";
|
||||
}
|
||||
/**
|
||||
* Comments in <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
comment(comment) {
|
||||
return this.response.comment(comment);
|
||||
}
|
||||
/**
|
||||
* Comments after <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
commentAfter(comment) {
|
||||
return this.response.commentAfter(comment);
|
||||
}
|
||||
/**
|
||||
* Comments before <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
commentBefore(comment) {
|
||||
return this.response.commentBefore(comment);
|
||||
}
|
||||
/**
|
||||
* <Receive> TwiML Verb
|
||||
*
|
||||
* @param attributes - TwiML attributes
|
||||
*/
|
||||
receive(attributes) {
|
||||
return new FaxResponse.Receive(this.response.ele("Receive", attributes));
|
||||
}
|
||||
}
|
||||
(function (FaxResponse) {
|
||||
class Receive extends TwiML_1.default {
|
||||
/**
|
||||
* <Receive> TwiML Verb
|
||||
*/
|
||||
constructor(receive) {
|
||||
super();
|
||||
this.receive = receive;
|
||||
this._propertyName = "receive";
|
||||
}
|
||||
}
|
||||
FaxResponse.Receive = Receive;
|
||||
})(FaxResponse || (FaxResponse = {}));
|
||||
module.exports = FaxResponse;
|
||||
117
node_modules/twilio/lib/twiml/MessagingResponse.d.ts
generated
vendored
Normal file
117
node_modules/twilio/lib/twiml/MessagingResponse.d.ts
generated
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
/**
|
||||
* This code was generated by
|
||||
* \ / _ _ _| _ _
|
||||
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
||||
* / /
|
||||
*/
|
||||
import { XMLElement } from "xmlbuilder";
|
||||
import TwiML from "./TwiML";
|
||||
declare class MessagingResponse extends TwiML {
|
||||
/**
|
||||
* <Response> TwiML for Messages
|
||||
*/
|
||||
constructor();
|
||||
/**
|
||||
* Comments in <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
comment(comment: string): XMLElement;
|
||||
/**
|
||||
* Comments after <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
commentAfter(comment: string): XMLElement;
|
||||
/**
|
||||
* Comments before <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
commentBefore(comment: string): XMLElement;
|
||||
/**
|
||||
* <Message> TwiML Verb
|
||||
*
|
||||
* @param attributes - TwiML attributes
|
||||
* @param body - Message Body
|
||||
*/
|
||||
message(body: string): MessagingResponse.Message;
|
||||
message(attributes: MessagingResponse.MessageAttributes, body: string): MessagingResponse.Message;
|
||||
/**
|
||||
* <Redirect> TwiML Verb
|
||||
*
|
||||
* @param attributes - TwiML attributes
|
||||
* @param url - Redirect URL
|
||||
*/
|
||||
redirect(url: string): MessagingResponse.Redirect;
|
||||
redirect(attributes: MessagingResponse.RedirectAttributes, url: string): MessagingResponse.Redirect;
|
||||
}
|
||||
declare namespace MessagingResponse {
|
||||
/**
|
||||
* Attributes to pass to message
|
||||
*/
|
||||
interface MessageAttributes {
|
||||
/** action - A URL specifying where Twilio should send status callbacks for the created outbound message. */
|
||||
action?: string;
|
||||
/** from - Phone Number to send Message from */
|
||||
from?: string;
|
||||
/** method - Action URL Method */
|
||||
method?: string;
|
||||
/** statusCallback - Status callback URL. Deprecated in favor of action. */
|
||||
statusCallback?: string;
|
||||
/** to - Phone Number to send Message to */
|
||||
to?: string;
|
||||
}
|
||||
/**
|
||||
* Attributes to pass to redirect
|
||||
*/
|
||||
interface RedirectAttributes {
|
||||
/** method - Redirect URL method */
|
||||
method?: string;
|
||||
}
|
||||
class Body extends TwiML {
|
||||
body: XMLElement;
|
||||
/**
|
||||
* <Body> TwiML Noun
|
||||
*/
|
||||
constructor(body: XMLElement);
|
||||
}
|
||||
class Media extends TwiML {
|
||||
media: XMLElement;
|
||||
/**
|
||||
* <Media> TwiML Noun
|
||||
*/
|
||||
constructor(media: XMLElement);
|
||||
}
|
||||
class Message extends TwiML {
|
||||
message: XMLElement;
|
||||
/**
|
||||
* <Message> TwiML Verb
|
||||
*/
|
||||
constructor(message: XMLElement);
|
||||
/**
|
||||
* <Body> TwiML Noun
|
||||
*
|
||||
* @param attributes - TwiML attributes
|
||||
* @param message - Message Body
|
||||
*/
|
||||
body(message: string): MessagingResponse.Body;
|
||||
body(attributes: object, message: string): MessagingResponse.Body;
|
||||
/**
|
||||
* <Media> TwiML Noun
|
||||
*
|
||||
* @param attributes - TwiML attributes
|
||||
* @param url - Media URL
|
||||
*/
|
||||
media(url: string): MessagingResponse.Media;
|
||||
media(attributes: object, url: string): MessagingResponse.Media;
|
||||
}
|
||||
class Redirect extends TwiML {
|
||||
redirect: XMLElement;
|
||||
/**
|
||||
* <Redirect> TwiML Verb
|
||||
*/
|
||||
constructor(redirect: XMLElement);
|
||||
}
|
||||
}
|
||||
export = MessagingResponse;
|
||||
119
node_modules/twilio/lib/twiml/MessagingResponse.js
generated
vendored
Normal file
119
node_modules/twilio/lib/twiml/MessagingResponse.js
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
"use strict";
|
||||
/**
|
||||
* This code was generated by
|
||||
* \ / _ _ _| _ _
|
||||
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
||||
* / /
|
||||
*/
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
const TwiML_1 = __importDefault(require("./TwiML"));
|
||||
class MessagingResponse extends TwiML_1.default {
|
||||
/**
|
||||
* <Response> TwiML for Messages
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
this._propertyName = "response";
|
||||
}
|
||||
/**
|
||||
* Comments in <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
comment(comment) {
|
||||
return this.response.comment(comment);
|
||||
}
|
||||
/**
|
||||
* Comments after <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
commentAfter(comment) {
|
||||
return this.response.commentAfter(comment);
|
||||
}
|
||||
/**
|
||||
* Comments before <Response>
|
||||
*
|
||||
* @param comment - XML Comment
|
||||
*/
|
||||
commentBefore(comment) {
|
||||
return this.response.commentBefore(comment);
|
||||
}
|
||||
message(attributes, body) {
|
||||
if (typeof attributes === "string") {
|
||||
body = attributes;
|
||||
attributes = {};
|
||||
}
|
||||
return new MessagingResponse.Message(this.response.ele("Message", attributes, body));
|
||||
}
|
||||
redirect(attributes, url) {
|
||||
if (typeof attributes === "string") {
|
||||
url = attributes;
|
||||
attributes = {};
|
||||
}
|
||||
return new MessagingResponse.Redirect(this.response.ele("Redirect", attributes, url));
|
||||
}
|
||||
}
|
||||
(function (MessagingResponse) {
|
||||
class Body extends TwiML_1.default {
|
||||
/**
|
||||
* <Body> TwiML Noun
|
||||
*/
|
||||
constructor(body) {
|
||||
super();
|
||||
this.body = body;
|
||||
this._propertyName = "body";
|
||||
}
|
||||
}
|
||||
MessagingResponse.Body = Body;
|
||||
class Media extends TwiML_1.default {
|
||||
/**
|
||||
* <Media> TwiML Noun
|
||||
*/
|
||||
constructor(media) {
|
||||
super();
|
||||
this.media = media;
|
||||
this._propertyName = "media";
|
||||
}
|
||||
}
|
||||
MessagingResponse.Media = Media;
|
||||
class Message extends TwiML_1.default {
|
||||
/**
|
||||
* <Message> TwiML Verb
|
||||
*/
|
||||
constructor(message) {
|
||||
super();
|
||||
this.message = message;
|
||||
this._propertyName = "message";
|
||||
}
|
||||
body(attributes, message) {
|
||||
if (typeof attributes === "string") {
|
||||
message = attributes;
|
||||
attributes = {};
|
||||
}
|
||||
return new MessagingResponse.Body(this.message.ele("Body", attributes, message));
|
||||
}
|
||||
media(attributes, url) {
|
||||
if (typeof attributes === "string") {
|
||||
url = attributes;
|
||||
attributes = {};
|
||||
}
|
||||
return new MessagingResponse.Media(this.message.ele("Media", attributes, url));
|
||||
}
|
||||
}
|
||||
MessagingResponse.Message = Message;
|
||||
class Redirect extends TwiML_1.default {
|
||||
/**
|
||||
* <Redirect> TwiML Verb
|
||||
*/
|
||||
constructor(redirect) {
|
||||
super();
|
||||
this.redirect = redirect;
|
||||
this._propertyName = "redirect";
|
||||
}
|
||||
}
|
||||
MessagingResponse.Redirect = Redirect;
|
||||
})(MessagingResponse || (MessagingResponse = {}));
|
||||
module.exports = MessagingResponse;
|
||||
42
node_modules/twilio/lib/twiml/TwiML.d.ts
generated
vendored
Normal file
42
node_modules/twilio/lib/twiml/TwiML.d.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Parent TwiML object
|
||||
*/
|
||||
export default class TwiML {
|
||||
[key: string]: any;
|
||||
response: any;
|
||||
_propertyName: string;
|
||||
constructor();
|
||||
/**
|
||||
* Because child elements have properties named after their class names, we need
|
||||
* to translate that when we want to access that at the parent prototype level.
|
||||
* So this will translate something like Say to 'say' and VoiceResponse to
|
||||
* 'response'.
|
||||
*/
|
||||
_getXml(): any;
|
||||
/**
|
||||
* Convert to TwiML
|
||||
*
|
||||
* @returns TwiML XML
|
||||
*/
|
||||
toString(): string;
|
||||
/**
|
||||
* Add text under the TwiML node
|
||||
*
|
||||
* @param {string} content
|
||||
*/
|
||||
addText(content: string): void;
|
||||
/**
|
||||
* Add an arbitrary tag as a child.
|
||||
*
|
||||
* @param {string} content
|
||||
*/
|
||||
addChild(tagName: string, attributes: Object): GenericNode;
|
||||
}
|
||||
/**
|
||||
* Generic node
|
||||
*/
|
||||
declare class GenericNode extends TwiML {
|
||||
node: any;
|
||||
constructor(node: any);
|
||||
}
|
||||
export {};
|
||||
83
node_modules/twilio/lib/twiml/TwiML.js
generated
vendored
Normal file
83
node_modules/twilio/lib/twiml/TwiML.js
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const xmlbuilder_1 = __importDefault(require("xmlbuilder"));
|
||||
/* jshint ignore:start */
|
||||
/**
|
||||
* Parent TwiML object
|
||||
*/
|
||||
/* jshint ignore:end */
|
||||
class TwiML {
|
||||
constructor() {
|
||||
this._propertyName = "";
|
||||
this.response = xmlbuilder_1.default
|
||||
.create("Response", {
|
||||
stringify: {
|
||||
attValue: function (value) {
|
||||
if (Array.isArray(value)) {
|
||||
value = value.join(" ");
|
||||
}
|
||||
return this.attEscape?.("" + value || "") || "";
|
||||
},
|
||||
},
|
||||
})
|
||||
.dec("1.0", "UTF-8");
|
||||
}
|
||||
/* jshint ignore:start */
|
||||
/**
|
||||
* Because child elements have properties named after their class names, we need
|
||||
* to translate that when we want to access that at the parent prototype level.
|
||||
* So this will translate something like Say to 'say' and VoiceResponse to
|
||||
* 'response'.
|
||||
*/
|
||||
/* jshint ignore:end */
|
||||
_getXml() {
|
||||
return this[this._propertyName];
|
||||
}
|
||||
/* jshint ignore:start */
|
||||
/**
|
||||
* Convert to TwiML
|
||||
*
|
||||
* @returns TwiML XML
|
||||
*/
|
||||
/* jshint ignore:end */
|
||||
toString() {
|
||||
return this._getXml().end();
|
||||
}
|
||||
/* jshint ignore:start */
|
||||
/**
|
||||
* Add text under the TwiML node
|
||||
*
|
||||
* @param {string} content
|
||||
*/
|
||||
/* jshint ignore:end */
|
||||
addText(content) {
|
||||
this._getXml().txt(content);
|
||||
}
|
||||
/* jshint ignore:start */
|
||||
/**
|
||||
* Add an arbitrary tag as a child.
|
||||
*
|
||||
* @param {string} content
|
||||
*/
|
||||
/* jshint ignore:end */
|
||||
addChild(tagName, attributes) {
|
||||
return new GenericNode(this._getXml().ele(tagName, attributes));
|
||||
}
|
||||
}
|
||||
exports.default = TwiML;
|
||||
/* jshint ignore:start */
|
||||
/**
|
||||
* Generic node
|
||||
*/
|
||||
/* jshint ignore:end */
|
||||
class GenericNode extends TwiML {
|
||||
// must match variable name for _getPropertyName
|
||||
constructor(node) {
|
||||
super();
|
||||
this.node = node;
|
||||
this._propertyName = "node";
|
||||
}
|
||||
}
|
||||
2952
node_modules/twilio/lib/twiml/VoiceResponse.d.ts
generated
vendored
Normal file
2952
node_modules/twilio/lib/twiml/VoiceResponse.d.ts
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1690
node_modules/twilio/lib/twiml/VoiceResponse.js
generated
vendored
Normal file
1690
node_modules/twilio/lib/twiml/VoiceResponse.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user