@scopieflows/app-contiguity 0.2.1
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/README.md +7 -0
- package/package.json +28 -0
- package/src/i18n/ca.json +26 -0
- package/src/i18n/de.json +46 -0
- package/src/i18n/es.json +46 -0
- package/src/i18n/fr.json +46 -0
- package/src/i18n/hi.json +26 -0
- package/src/i18n/id.json +26 -0
- package/src/i18n/ja.json +46 -0
- package/src/i18n/nl.json +46 -0
- package/src/i18n/pt.json +46 -0
- package/src/i18n/ru.json +26 -0
- package/src/i18n/translation.json +46 -0
- package/src/i18n/vi.json +26 -0
- package/src/i18n/zh.json +46 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +38 -0
- package/src/index.js.map +1 -0
- package/src/lib/actions/send/imessage.d.ts +8 -0
- package/src/lib/actions/send/imessage.js +116 -0
- package/src/lib/actions/send/imessage.js.map +1 -0
- package/src/lib/actions/send/text.d.ts +6 -0
- package/src/lib/actions/send/text.js +78 -0
- package/src/lib/actions/send/text.js.map +1 -0
- package/src/lib/common/http-client.d.ts +11 -0
- package/src/lib/common/http-client.js +28 -0
- package/src/lib/common/http-client.js.map +1 -0
- package/src/lib/common/request.d.ts +11 -0
- package/src/lib/common/request.js +28 -0
- package/src/lib/common/request.js.map +1 -0
package/README.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scopieflows/app-contiguity",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"@sinclair/typebox": "0.34.11",
|
|
6
|
+
"ai": "^6.0.0",
|
|
7
|
+
"axios": "1.13.1",
|
|
8
|
+
"axios-retry": "4.4.1",
|
|
9
|
+
"deepmerge-ts": "7.1.0",
|
|
10
|
+
"form-data": "4.0.4",
|
|
11
|
+
"i18next": "23.13.0",
|
|
12
|
+
"mime-types": "2.1.35",
|
|
13
|
+
"nanoid": "3.3.8",
|
|
14
|
+
"semver": "7.6.0",
|
|
15
|
+
"socket.io-client": "4.8.1",
|
|
16
|
+
"zod": "4.1.13",
|
|
17
|
+
"@scopieflows/pieces-common": "0.11.2",
|
|
18
|
+
"@scopieflows/pieces-framework": "0.25.0",
|
|
19
|
+
"@scopieflows/shared": "0.33.0",
|
|
20
|
+
"tslib": "2.6.2"
|
|
21
|
+
},
|
|
22
|
+
"resolutions": {
|
|
23
|
+
"rollup": "npm:@rollup/wasm-node"
|
|
24
|
+
},
|
|
25
|
+
"types": "./src/index.d.ts",
|
|
26
|
+
"main": "./src/index.js",
|
|
27
|
+
"type": "commonjs"
|
|
28
|
+
}
|
package/src/i18n/ca.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Contiguity": "Contiguity",
|
|
3
|
+
"An SMS service for your needs - quick and simple": "An SMS service for your needs - quick and simple",
|
|
4
|
+
"API key acquired from your Contiguity settings": "API key acquired from your Contiguity settings",
|
|
5
|
+
"Send SMS": "Send SMS",
|
|
6
|
+
"Custom API Call": "Custom API Call",
|
|
7
|
+
"Send a text message": "Send a text message",
|
|
8
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
9
|
+
"To": "To",
|
|
10
|
+
"Content": "Content",
|
|
11
|
+
"Method": "Method",
|
|
12
|
+
"Headers": "Headers",
|
|
13
|
+
"Query Parameters": "Query Parameters",
|
|
14
|
+
"Body": "Body",
|
|
15
|
+
"No Error on Failure": "No Error on Failure",
|
|
16
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
17
|
+
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.",
|
|
18
|
+
"Message to send": "Message to send",
|
|
19
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
20
|
+
"GET": "GET",
|
|
21
|
+
"POST": "POST",
|
|
22
|
+
"PATCH": "PATCH",
|
|
23
|
+
"PUT": "PUT",
|
|
24
|
+
"DELETE": "DELETE",
|
|
25
|
+
"HEAD": "HEAD"
|
|
26
|
+
}
|
package/src/i18n/de.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Communications for what you're building": "Kommunikation für das, was du baust",
|
|
3
|
+
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authentifizieren Sie sich mit der Contiguity API mit einem widerrufbaren Schlüssel. Erstellen Sie einen unter console.contiguity.com/dashboard/tokens",
|
|
4
|
+
"Send SMS/MMS": "SMS/MMS senden",
|
|
5
|
+
"Send iMessage": "Nachricht senden",
|
|
6
|
+
"Custom API Call": "Eigener API-Aufruf",
|
|
7
|
+
"Send a text message": "Textnachricht senden",
|
|
8
|
+
"Send an iMessage": "Eine iMessage senden",
|
|
9
|
+
"Make a custom API call to a specific endpoint": "Einen benutzerdefinierten API-Aufruf an einen bestimmten Endpunkt machen",
|
|
10
|
+
"To": "An",
|
|
11
|
+
"From": "Von",
|
|
12
|
+
"Message": "Nachricht",
|
|
13
|
+
"Attachments": "Anhänge",
|
|
14
|
+
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
|
15
|
+
"When to fallback": "Wann zurückfallen",
|
|
16
|
+
"Method": "Methode",
|
|
17
|
+
"Headers": "Kopfzeilen",
|
|
18
|
+
"Query Parameters": "Abfrageparameter",
|
|
19
|
+
"Body Type": "Körpertyp",
|
|
20
|
+
"Body": "Körper",
|
|
21
|
+
"Response is Binary ?": "Antwort ist binär?",
|
|
22
|
+
"No Error on Failure": "Kein Fehler bei Fehler",
|
|
23
|
+
"Timeout (in seconds)": "Timeout (in Sekunden)",
|
|
24
|
+
"Follow redirects": "Weiterleitungen folgen",
|
|
25
|
+
"Recipient phone number in E.164 format": "Telefonnummer des Empfängers im E.164-Format",
|
|
26
|
+
"Your leased phone number": "Ihre Miet-Telefonnummer",
|
|
27
|
+
"Text message content": "Textnachricht Inhalt",
|
|
28
|
+
"File URLs (max 3, 5MB total, HTTPS required)": "Datei-URLs (max 3, 5MB insgesamt, HTTPS erforderlich)",
|
|
29
|
+
"Your leased iMessage number.": "Ihre geleasste iMessage-Nummer.",
|
|
30
|
+
"iMessage content": "iMessage-Inhalt",
|
|
31
|
+
"Fallback to SMS/RCS when iMessage fails or unsupported": "Auf SMS/RCS zurückgreifen, wenn iMessage fehlschlägt oder nicht unterstützt wird",
|
|
32
|
+
"Conditions that trigger SMS/RCS fallback": "Bedingungen, die SMS/RCS-Fallback auslösen",
|
|
33
|
+
"File URLs (max 10, 50MB total, HTTPS required)": "Datei-URLs (max 10, 50MB insgesamt, HTTPS benötigt)",
|
|
34
|
+
"Authorization headers are injected automatically from your connection.": "Autorisierungs-Header werden automatisch von Ihrer Verbindung injiziert.",
|
|
35
|
+
"Enable for files like PDFs, images, etc.": "Aktivieren für Dateien wie PDFs, Bilder usw.",
|
|
36
|
+
"GET": "ERHALTEN",
|
|
37
|
+
"POST": "POST",
|
|
38
|
+
"PATCH": "PATCH",
|
|
39
|
+
"PUT": "PUT",
|
|
40
|
+
"DELETE": "LÖSCHEN",
|
|
41
|
+
"HEAD": "HEAD",
|
|
42
|
+
"None": "Keine",
|
|
43
|
+
"JSON": "JSON",
|
|
44
|
+
"Form Data": "Formulardaten",
|
|
45
|
+
"Raw": "Rohe"
|
|
46
|
+
}
|
package/src/i18n/es.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Communications for what you're building": "Comunicaciones para lo que estás construyendo",
|
|
3
|
+
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Autenticar con la API de Contiguidad usando una clave revocable. Crea una en console.contiguity.com/dashboard/tokens",
|
|
4
|
+
"Send SMS/MMS": "Enviar SMS/MMS",
|
|
5
|
+
"Send iMessage": "Enviar iMessage",
|
|
6
|
+
"Custom API Call": "Llamada API personalizada",
|
|
7
|
+
"Send a text message": "Enviar un mensaje de texto",
|
|
8
|
+
"Send an iMessage": "Enviar un iMessage",
|
|
9
|
+
"Make a custom API call to a specific endpoint": "Hacer una llamada API personalizada a un extremo específico",
|
|
10
|
+
"To": "A",
|
|
11
|
+
"From": "De",
|
|
12
|
+
"Message": "Mensaje",
|
|
13
|
+
"Attachments": "Adjuntos",
|
|
14
|
+
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
|
15
|
+
"When to fallback": "Cuándo fallar",
|
|
16
|
+
"Method": "Método",
|
|
17
|
+
"Headers": "Encabezados",
|
|
18
|
+
"Query Parameters": "Parámetros de consulta",
|
|
19
|
+
"Body Type": "Tipo de cuerpo",
|
|
20
|
+
"Body": "Cuerpo",
|
|
21
|
+
"Response is Binary ?": "¿Respuesta es binaria?",
|
|
22
|
+
"No Error on Failure": "No hay ningún error en fallo",
|
|
23
|
+
"Timeout (in seconds)": "Tiempo de espera (en segundos)",
|
|
24
|
+
"Follow redirects": "Seguir redirecciones",
|
|
25
|
+
"Recipient phone number in E.164 format": "Número de teléfono del destinatario en formato E.164",
|
|
26
|
+
"Your leased phone number": "Tu número de teléfono arrendado",
|
|
27
|
+
"Text message content": "Contenido del mensaje de texto",
|
|
28
|
+
"File URLs (max 3, 5MB total, HTTPS required)": "URL de archivo (máximo 3, 5MB total, HTTPS requerido)",
|
|
29
|
+
"Your leased iMessage number.": "Tu número iMessage arrendado.",
|
|
30
|
+
"iMessage content": "contenido iMessage",
|
|
31
|
+
"Fallback to SMS/RCS when iMessage fails or unsupported": "Retroceder a SMS/RCS cuando iMessage falla o no está soportado",
|
|
32
|
+
"Conditions that trigger SMS/RCS fallback": "Condiciones que activan SMS/RCS",
|
|
33
|
+
"File URLs (max 10, 50MB total, HTTPS required)": "URL de archivo (máximo 10, 50MB total, HTTPS requerido)",
|
|
34
|
+
"Authorization headers are injected automatically from your connection.": "Las cabeceras de autorización se inyectan automáticamente desde tu conexión.",
|
|
35
|
+
"Enable for files like PDFs, images, etc.": "Activar para archivos como PDFs, imágenes, etc.",
|
|
36
|
+
"GET": "RECOGER",
|
|
37
|
+
"POST": "POST",
|
|
38
|
+
"PATCH": "PATCH",
|
|
39
|
+
"PUT": "PUT",
|
|
40
|
+
"DELETE": "BORRAR",
|
|
41
|
+
"HEAD": "LIMPIO",
|
|
42
|
+
"None": "Ninguna",
|
|
43
|
+
"JSON": "JSON",
|
|
44
|
+
"Form Data": "Datos de Formulario",
|
|
45
|
+
"Raw": "Rápido"
|
|
46
|
+
}
|
package/src/i18n/fr.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Communications for what you're building": "Communications pour ce que vous construisez",
|
|
3
|
+
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authentifier avec l'API Contiguity à l'aide d'une clé révocable. Créez en une sur console.contiguity.com/dashboard/tokens",
|
|
4
|
+
"Send SMS/MMS": "Envoyer des SMS/MMS",
|
|
5
|
+
"Send iMessage": "Envoyer iMessage",
|
|
6
|
+
"Custom API Call": "Appel API personnalisé",
|
|
7
|
+
"Send a text message": "Envoyer un SMS",
|
|
8
|
+
"Send an iMessage": "Envoyer un iMessage",
|
|
9
|
+
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
|
|
10
|
+
"To": "À",
|
|
11
|
+
"From": "A partir de",
|
|
12
|
+
"Message": "Message",
|
|
13
|
+
"Attachments": "Pièces jointes",
|
|
14
|
+
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
|
15
|
+
"When to fallback": "Quand faire un repli",
|
|
16
|
+
"Method": "Méthode",
|
|
17
|
+
"Headers": "En-têtes",
|
|
18
|
+
"Query Parameters": "Paramètres de requête",
|
|
19
|
+
"Body Type": "Body Type",
|
|
20
|
+
"Body": "Corps",
|
|
21
|
+
"Response is Binary ?": "La réponse est Binaire ?",
|
|
22
|
+
"No Error on Failure": "Aucune erreur en cas d'échec",
|
|
23
|
+
"Timeout (in seconds)": "Délai d'attente (en secondes)",
|
|
24
|
+
"Follow redirects": "Suivre les redirections",
|
|
25
|
+
"Recipient phone number in E.164 format": "Numéro de téléphone du destinataire au format E.164",
|
|
26
|
+
"Your leased phone number": "Votre numéro de téléphone loué",
|
|
27
|
+
"Text message content": "Contenu du message texte",
|
|
28
|
+
"File URLs (max 3, 5MB total, HTTPS required)": "URL de fichier (max 3, 5MB total, HTTPS requis)",
|
|
29
|
+
"Your leased iMessage number.": "Votre numéro iMessage loué.",
|
|
30
|
+
"iMessage content": "Contenu iMessage",
|
|
31
|
+
"Fallback to SMS/RCS when iMessage fails or unsupported": "Revenir au SMS / RCS lorsque iMessage échoue ou n'est pas pris en charge",
|
|
32
|
+
"Conditions that trigger SMS/RCS fallback": "Conditions qui déclenchent le repli SMS/RCS",
|
|
33
|
+
"File URLs (max 10, 50MB total, HTTPS required)": "URL de fichier (max 10, 50 Mo au total, HTTPS requis)",
|
|
34
|
+
"Authorization headers are injected automatically from your connection.": "Les en-têtes d'autorisation sont injectés automatiquement à partir de votre connexion.",
|
|
35
|
+
"Enable for files like PDFs, images, etc.": "Activer pour les fichiers comme les PDFs, les images, etc.",
|
|
36
|
+
"GET": "OBTENIR",
|
|
37
|
+
"POST": "POSTER",
|
|
38
|
+
"PATCH": "PATCH",
|
|
39
|
+
"PUT": "EFFACER",
|
|
40
|
+
"DELETE": "SUPPRIMER",
|
|
41
|
+
"HEAD": "TÊTE",
|
|
42
|
+
"None": "Aucun",
|
|
43
|
+
"JSON": "JSON",
|
|
44
|
+
"Form Data": "Données du formulaire",
|
|
45
|
+
"Raw": "Brut"
|
|
46
|
+
}
|
package/src/i18n/hi.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Contiguity": "Contiguity",
|
|
3
|
+
"An SMS service for your needs - quick and simple": "An SMS service for your needs - quick and simple",
|
|
4
|
+
"API key acquired from your Contiguity settings": "API key acquired from your Contiguity settings",
|
|
5
|
+
"Send SMS": "Send SMS",
|
|
6
|
+
"Custom API Call": "Custom API Call",
|
|
7
|
+
"Send a text message": "Send a text message",
|
|
8
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
9
|
+
"To": "To",
|
|
10
|
+
"Content": "Content",
|
|
11
|
+
"Method": "Method",
|
|
12
|
+
"Headers": "Headers",
|
|
13
|
+
"Query Parameters": "Query Parameters",
|
|
14
|
+
"Body": "Body",
|
|
15
|
+
"No Error on Failure": "No Error on Failure",
|
|
16
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
17
|
+
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.",
|
|
18
|
+
"Message to send": "Message to send",
|
|
19
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
20
|
+
"GET": "GET",
|
|
21
|
+
"POST": "POST",
|
|
22
|
+
"PATCH": "PATCH",
|
|
23
|
+
"PUT": "PUT",
|
|
24
|
+
"DELETE": "DELETE",
|
|
25
|
+
"HEAD": "HEAD"
|
|
26
|
+
}
|
package/src/i18n/id.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Contiguity": "Contiguity",
|
|
3
|
+
"An SMS service for your needs - quick and simple": "An SMS service for your needs - quick and simple",
|
|
4
|
+
"API key acquired from your Contiguity settings": "API key acquired from your Contiguity settings",
|
|
5
|
+
"Send SMS": "Send SMS",
|
|
6
|
+
"Custom API Call": "Custom API Call",
|
|
7
|
+
"Send a text message": "Send a text message",
|
|
8
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
9
|
+
"To": "To",
|
|
10
|
+
"Content": "Content",
|
|
11
|
+
"Method": "Method",
|
|
12
|
+
"Headers": "Headers",
|
|
13
|
+
"Query Parameters": "Query Parameters",
|
|
14
|
+
"Body": "Body",
|
|
15
|
+
"No Error on Failure": "No Error on Failure",
|
|
16
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
17
|
+
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.",
|
|
18
|
+
"Message to send": "Message to send",
|
|
19
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
20
|
+
"GET": "GET",
|
|
21
|
+
"POST": "POST",
|
|
22
|
+
"PATCH": "PATCH",
|
|
23
|
+
"PUT": "PUT",
|
|
24
|
+
"DELETE": "DELETE",
|
|
25
|
+
"HEAD": "HEAD"
|
|
26
|
+
}
|
package/src/i18n/ja.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Communications for what you're building": "構築しているものとのコミュニケーション",
|
|
3
|
+
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "取消し可能なキーを使用して Contiguity API で認証します。console.contiguity.com/dashboard/tokens に作成してください。",
|
|
4
|
+
"Send SMS/MMS": "SMS/MMS の送信",
|
|
5
|
+
"Send iMessage": "IMessageがを送信",
|
|
6
|
+
"Custom API Call": "カスタムAPI通話",
|
|
7
|
+
"Send a text message": "テキストメッセージを送信",
|
|
8
|
+
"Send an iMessage": "IMessageがを送信",
|
|
9
|
+
"Make a custom API call to a specific endpoint": "特定のエンドポイントへのカスタム API コールを実行します。",
|
|
10
|
+
"To": "終了日",
|
|
11
|
+
"From": "差出人:",
|
|
12
|
+
"Message": "メッセージ",
|
|
13
|
+
"Attachments": "添付ファイル",
|
|
14
|
+
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
|
15
|
+
"When to fallback": "フォールバックする時",
|
|
16
|
+
"Method": "方法",
|
|
17
|
+
"Headers": "ヘッダー",
|
|
18
|
+
"Query Parameters": "クエリパラメータ",
|
|
19
|
+
"Body Type": "ボディタイプ",
|
|
20
|
+
"Body": "本文",
|
|
21
|
+
"Response is Binary ?": "応答はバイナリですか?",
|
|
22
|
+
"No Error on Failure": "失敗時にエラーはありません",
|
|
23
|
+
"Timeout (in seconds)": "タイムアウト(秒)",
|
|
24
|
+
"Follow redirects": "リダイレクトをフォローする",
|
|
25
|
+
"Recipient phone number in E.164 format": "受信者の電話番号(E.164形式)",
|
|
26
|
+
"Your leased phone number": "リースされた電話番号",
|
|
27
|
+
"Text message content": "テキストメッセージの内容",
|
|
28
|
+
"File URLs (max 3, 5MB total, HTTPS required)": "ファイルURL(最大3,5MB、HTTPSが必要)",
|
|
29
|
+
"Your leased iMessage number.": "あなたのリースされたiMessage番号。",
|
|
30
|
+
"iMessage content": "iMessage コンテンツ",
|
|
31
|
+
"Fallback to SMS/RCS when iMessage fails or unsupported": "IMessageが失敗またはサポートされていない場合にSMS/RCSにフォールバックします",
|
|
32
|
+
"Conditions that trigger SMS/RCS fallback": "SMS/RCSフォールバックをトリガーする条件",
|
|
33
|
+
"File URLs (max 10, 50MB total, HTTPS required)": "ファイルURL(最大10,50MB、HTTPSが必要)",
|
|
34
|
+
"Authorization headers are injected automatically from your connection.": "認証ヘッダは接続から自動的に注入されます。",
|
|
35
|
+
"Enable for files like PDFs, images, etc.": "PDF、画像などのファイルを有効にする",
|
|
36
|
+
"GET": "取得",
|
|
37
|
+
"POST": "POST",
|
|
38
|
+
"PATCH": "PATCH",
|
|
39
|
+
"PUT": "PUT",
|
|
40
|
+
"DELETE": "削除",
|
|
41
|
+
"HEAD": "頭",
|
|
42
|
+
"None": "なし",
|
|
43
|
+
"JSON": "JSON",
|
|
44
|
+
"Form Data": "フォームデータ",
|
|
45
|
+
"Raw": "Raw"
|
|
46
|
+
}
|
package/src/i18n/nl.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Communications for what you're building": "Communicatie over wat je aan het maken bent",
|
|
3
|
+
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authenticeer met de Contiguity API met behulp van een herroepbare sleutel. Maak er een aan op console.contiguity.com/dashboard/tokens",
|
|
4
|
+
"Send SMS/MMS": "Sms/mms verzenden",
|
|
5
|
+
"Send iMessage": "Verstuur iMessage",
|
|
6
|
+
"Custom API Call": "Custom API Call",
|
|
7
|
+
"Send a text message": "Stuur een sms",
|
|
8
|
+
"Send an iMessage": "Stuur een iMessage",
|
|
9
|
+
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
|
|
10
|
+
"To": "tot",
|
|
11
|
+
"From": "van",
|
|
12
|
+
"Message": "bericht",
|
|
13
|
+
"Attachments": "Bijlagen",
|
|
14
|
+
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
|
15
|
+
"When to fallback": "Wanneer terug te vallen",
|
|
16
|
+
"Method": "Methode",
|
|
17
|
+
"Headers": "Kopteksten",
|
|
18
|
+
"Query Parameters": "Query parameters",
|
|
19
|
+
"Body Type": "Type lichaam",
|
|
20
|
+
"Body": "Lichaam",
|
|
21
|
+
"Response is Binary ?": "Antwoord is binair?",
|
|
22
|
+
"No Error on Failure": "Geen fout bij fout",
|
|
23
|
+
"Timeout (in seconds)": "Time-out (in seconden)",
|
|
24
|
+
"Follow redirects": "Volg omleidingen",
|
|
25
|
+
"Recipient phone number in E.164 format": "Ontvanger telefoonnummer in E.164 formaat",
|
|
26
|
+
"Your leased phone number": "Jouw leased phone number",
|
|
27
|
+
"Text message content": "Inhoud van tekstbericht",
|
|
28
|
+
"File URLs (max 3, 5MB total, HTTPS required)": "File URLs (max 3, 5MB totaal, HTTPS vereist)",
|
|
29
|
+
"Your leased iMessage number.": "Je leaset iMessage nummer.",
|
|
30
|
+
"iMessage content": "iMessage inhoud",
|
|
31
|
+
"Fallback to SMS/RCS when iMessage fails or unsupported": "Terugvallen naar SMS/RCS wanneer iMessage mislukt of niet ondersteund wordt",
|
|
32
|
+
"Conditions that trigger SMS/RCS fallback": "Voorwaarden die SMS/RCS terugvallen",
|
|
33
|
+
"File URLs (max 10, 50MB total, HTTPS required)": "File URLs (max 10, 50MB totaal, HTTPS vereist)",
|
|
34
|
+
"Authorization headers are injected automatically from your connection.": "Autorisatie headers worden automatisch geïnjecteerd vanuit uw verbinding.",
|
|
35
|
+
"Enable for files like PDFs, images, etc.": "Inschakelen voor bestanden zoals PDF's, afbeeldingen etc.",
|
|
36
|
+
"GET": "KRIJG",
|
|
37
|
+
"POST": "POSTE",
|
|
38
|
+
"PATCH": "BEKIJK",
|
|
39
|
+
"PUT": "PUT",
|
|
40
|
+
"DELETE": "VERWIJDEREN",
|
|
41
|
+
"HEAD": "HOOFD",
|
|
42
|
+
"None": "geen",
|
|
43
|
+
"JSON": "JSON",
|
|
44
|
+
"Form Data": "Formulieren gegevens",
|
|
45
|
+
"Raw": "Onbewerkte"
|
|
46
|
+
}
|
package/src/i18n/pt.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Communications for what you're building": "Comunicações sobre o que você está construindo",
|
|
3
|
+
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Autenticar com a API Contiguity usando uma chave revogável. Crie uma em console.contiguity.com/dashboard/tokens",
|
|
4
|
+
"Send SMS/MMS": "Enviar SMS/MMS",
|
|
5
|
+
"Send iMessage": "Enviar iMessage",
|
|
6
|
+
"Custom API Call": "Chamada de API personalizada",
|
|
7
|
+
"Send a text message": "Enviar uma mensagem de texto",
|
|
8
|
+
"Send an iMessage": "Enviar um iMessage",
|
|
9
|
+
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
|
|
10
|
+
"To": "Para",
|
|
11
|
+
"From": "De",
|
|
12
|
+
"Message": "mensagem",
|
|
13
|
+
"Attachments": "Anexos",
|
|
14
|
+
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
|
15
|
+
"When to fallback": "Quando fallback",
|
|
16
|
+
"Method": "Método",
|
|
17
|
+
"Headers": "Cabeçalhos",
|
|
18
|
+
"Query Parameters": "Parâmetros da consulta",
|
|
19
|
+
"Body Type": "Tipo de Corpo",
|
|
20
|
+
"Body": "Conteúdo",
|
|
21
|
+
"Response is Binary ?": "A resposta é binária ?",
|
|
22
|
+
"No Error on Failure": "Nenhum erro no Failure",
|
|
23
|
+
"Timeout (in seconds)": "Tempo limite (em segundos)",
|
|
24
|
+
"Follow redirects": "Seguir redirecionamentos",
|
|
25
|
+
"Recipient phone number in E.164 format": "Número de telefone destinatário no formato E.164",
|
|
26
|
+
"Your leased phone number": "Seu número de telefone alugado",
|
|
27
|
+
"Text message content": "Texto do conteúdo da mensagem",
|
|
28
|
+
"File URLs (max 3, 5MB total, HTTPS required)": "URLs de arquivos (máximo de 3, 5MB no total, HTTPS necessário)",
|
|
29
|
+
"Your leased iMessage number.": "Seu número iMessage de aluguel.",
|
|
30
|
+
"iMessage content": "Conteúdo iMessage",
|
|
31
|
+
"Fallback to SMS/RCS when iMessage fails or unsupported": "Retornar para SMS/RCS quando iMessage falhar ou não suportado",
|
|
32
|
+
"Conditions that trigger SMS/RCS fallback": "Condições que ativam SMS/RCS fallback",
|
|
33
|
+
"File URLs (max 10, 50MB total, HTTPS required)": "URLs de arquivos (máximo de 10, 50MB total, HTTPS requerido)",
|
|
34
|
+
"Authorization headers are injected automatically from your connection.": "Os cabeçalhos de autorização são inseridos automaticamente a partir da sua conexão.",
|
|
35
|
+
"Enable for files like PDFs, images, etc.": "Habilitar para arquivos como PDFs, imagens, etc.",
|
|
36
|
+
"GET": "OBTER",
|
|
37
|
+
"POST": "POSTAR",
|
|
38
|
+
"PATCH": "COMPRAR",
|
|
39
|
+
"PUT": "COLOCAR",
|
|
40
|
+
"DELETE": "EXCLUIR",
|
|
41
|
+
"HEAD": "CABEÇA",
|
|
42
|
+
"None": "Nenhuma",
|
|
43
|
+
"JSON": "JSON",
|
|
44
|
+
"Form Data": "Dados de Formulário",
|
|
45
|
+
"Raw": "RAW"
|
|
46
|
+
}
|
package/src/i18n/ru.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Contiguity": "Contiguity",
|
|
3
|
+
"An SMS service for your needs - quick and simple": "SMS-сервис для ваших потребностей - быстрый и простой",
|
|
4
|
+
"API key acquired from your Contiguity settings": "Ключ API получен из настроек Вашего Contiguity",
|
|
5
|
+
"Send SMS": "Отправить СМС",
|
|
6
|
+
"Custom API Call": "Пользовательский вызов API",
|
|
7
|
+
"Send a text message": "Отправить текстовое сообщение",
|
|
8
|
+
"Make a custom API call to a specific endpoint": "Сделать пользовательский API вызов к определенной конечной точке",
|
|
9
|
+
"To": "Кому",
|
|
10
|
+
"Content": "Содержание",
|
|
11
|
+
"Method": "Метод",
|
|
12
|
+
"Headers": "Заголовки",
|
|
13
|
+
"Query Parameters": "Параметры запроса",
|
|
14
|
+
"Body": "Тело",
|
|
15
|
+
"No Error on Failure": "Нет ошибок при ошибке",
|
|
16
|
+
"Timeout (in seconds)": "Таймаут (в секундах)",
|
|
17
|
+
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Введите номер телефона получателя в международном формате без пробелов, следующий шаблон: [+] [Код страны][Номер абонента]. Например, +12065551234.",
|
|
18
|
+
"Message to send": "Отправленное сообщение",
|
|
19
|
+
"Authorization headers are injected automatically from your connection.": "Заголовки авторизации включаются автоматически из вашего соединения.",
|
|
20
|
+
"GET": "ПОЛУЧИТЬ",
|
|
21
|
+
"POST": "ПОСТ",
|
|
22
|
+
"PATCH": "ПАТЧ",
|
|
23
|
+
"PUT": "ПОКУПИТЬ",
|
|
24
|
+
"DELETE": "УДАЛИТЬ",
|
|
25
|
+
"HEAD": "HEAD"
|
|
26
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Communications for what you're building": "Communications for what you're building",
|
|
3
|
+
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens",
|
|
4
|
+
"Send SMS/MMS": "Send SMS/MMS",
|
|
5
|
+
"Send iMessage": "Send iMessage",
|
|
6
|
+
"Custom API Call": "Custom API Call",
|
|
7
|
+
"Send a text message": "Send a text message",
|
|
8
|
+
"Send an iMessage": "Send an iMessage",
|
|
9
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
10
|
+
"To": "To",
|
|
11
|
+
"From": "From",
|
|
12
|
+
"Message": "Message",
|
|
13
|
+
"Attachments": "Attachments",
|
|
14
|
+
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
|
15
|
+
"When to fallback": "When to fallback",
|
|
16
|
+
"Method": "Method",
|
|
17
|
+
"Headers": "Headers",
|
|
18
|
+
"Query Parameters": "Query Parameters",
|
|
19
|
+
"Body Type": "Body Type",
|
|
20
|
+
"Body": "Body",
|
|
21
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
22
|
+
"No Error on Failure": "No Error on Failure",
|
|
23
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
24
|
+
"Follow redirects": "Follow redirects",
|
|
25
|
+
"Recipient phone number in E.164 format": "Recipient phone number in E.164 format",
|
|
26
|
+
"Your leased phone number": "Your leased phone number",
|
|
27
|
+
"Text message content": "Text message content",
|
|
28
|
+
"File URLs (max 3, 5MB total, HTTPS required)": "File URLs (max 3, 5MB total, HTTPS required)",
|
|
29
|
+
"Your leased iMessage number.": "Your leased iMessage number.",
|
|
30
|
+
"iMessage content": "iMessage content",
|
|
31
|
+
"Fallback to SMS/RCS when iMessage fails or unsupported": "Fallback to SMS/RCS when iMessage fails or unsupported",
|
|
32
|
+
"Conditions that trigger SMS/RCS fallback": "Conditions that trigger SMS/RCS fallback",
|
|
33
|
+
"File URLs (max 10, 50MB total, HTTPS required)": "File URLs (max 10, 50MB total, HTTPS required)",
|
|
34
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
35
|
+
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
36
|
+
"GET": "GET",
|
|
37
|
+
"POST": "POST",
|
|
38
|
+
"PATCH": "PATCH",
|
|
39
|
+
"PUT": "PUT",
|
|
40
|
+
"DELETE": "DELETE",
|
|
41
|
+
"HEAD": "HEAD",
|
|
42
|
+
"None": "None",
|
|
43
|
+
"JSON": "JSON",
|
|
44
|
+
"Form Data": "Form Data",
|
|
45
|
+
"Raw": "Raw"
|
|
46
|
+
}
|
package/src/i18n/vi.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Contiguity": "Contiguity",
|
|
3
|
+
"An SMS service for your needs - quick and simple": "An SMS service for your needs - quick and simple",
|
|
4
|
+
"API key acquired from your Contiguity settings": "API key acquired from your Contiguity settings",
|
|
5
|
+
"Send SMS": "Send SMS",
|
|
6
|
+
"Custom API Call": "Custom API Call",
|
|
7
|
+
"Send a text message": "Send a text message",
|
|
8
|
+
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
|
|
9
|
+
"To": "To",
|
|
10
|
+
"Content": "Content",
|
|
11
|
+
"Method": "Method",
|
|
12
|
+
"Headers": "Headers",
|
|
13
|
+
"Query Parameters": "Query Parameters",
|
|
14
|
+
"Body": "Body",
|
|
15
|
+
"No Error on Failure": "No Error on Failure",
|
|
16
|
+
"Timeout (in seconds)": "Timeout (in seconds)",
|
|
17
|
+
"Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.": "Enter the recipient's phone number in international format with no spaces, following this pattern: [+][Country Code][Subscriber Number]. For example, +12065551234.",
|
|
18
|
+
"Message to send": "Message to send",
|
|
19
|
+
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
|
|
20
|
+
"GET": "GET",
|
|
21
|
+
"POST": "POST",
|
|
22
|
+
"PATCH": "PATCH",
|
|
23
|
+
"PUT": "PUT",
|
|
24
|
+
"DELETE": "DELETE",
|
|
25
|
+
"HEAD": "HEAD"
|
|
26
|
+
}
|
package/src/i18n/zh.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Communications for what you're building": "Communications for what you're building",
|
|
3
|
+
"Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens": "Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens",
|
|
4
|
+
"Send SMS/MMS": "Send SMS/MMS",
|
|
5
|
+
"Send iMessage": "Send iMessage",
|
|
6
|
+
"Custom API Call": "自定义 API 呼叫",
|
|
7
|
+
"Send a text message": "Send a text message",
|
|
8
|
+
"Send an iMessage": "Send an iMessage",
|
|
9
|
+
"Make a custom API call to a specific endpoint": "将一个自定义 API 调用到一个特定的终点",
|
|
10
|
+
"To": "To",
|
|
11
|
+
"From": "From",
|
|
12
|
+
"Message": "Message",
|
|
13
|
+
"Attachments": "Attachments",
|
|
14
|
+
"SMS/RCS Fallback": "SMS/RCS Fallback",
|
|
15
|
+
"When to fallback": "When to fallback",
|
|
16
|
+
"Method": "方法",
|
|
17
|
+
"Headers": "信头",
|
|
18
|
+
"Query Parameters": "查询参数",
|
|
19
|
+
"Body Type": "Body Type",
|
|
20
|
+
"Body": "正文内容",
|
|
21
|
+
"Response is Binary ?": "Response is Binary ?",
|
|
22
|
+
"No Error on Failure": "失败时没有错误",
|
|
23
|
+
"Timeout (in seconds)": "超时(秒)",
|
|
24
|
+
"Follow redirects": "Follow redirects",
|
|
25
|
+
"Recipient phone number in E.164 format": "Recipient phone number in E.164 format",
|
|
26
|
+
"Your leased phone number": "Your leased phone number",
|
|
27
|
+
"Text message content": "Text message content",
|
|
28
|
+
"File URLs (max 3, 5MB total, HTTPS required)": "File URLs (max 3, 5MB total, HTTPS required)",
|
|
29
|
+
"Your leased iMessage number.": "Your leased iMessage number.",
|
|
30
|
+
"iMessage content": "iMessage content",
|
|
31
|
+
"Fallback to SMS/RCS when iMessage fails or unsupported": "Fallback to SMS/RCS when iMessage fails or unsupported",
|
|
32
|
+
"Conditions that trigger SMS/RCS fallback": "Conditions that trigger SMS/RCS fallback",
|
|
33
|
+
"File URLs (max 10, 50MB total, HTTPS required)": "File URLs (max 10, 50MB total, HTTPS required)",
|
|
34
|
+
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
|
|
35
|
+
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
|
|
36
|
+
"GET": "获取",
|
|
37
|
+
"POST": "帖子",
|
|
38
|
+
"PATCH": "PATCH",
|
|
39
|
+
"PUT": "弹出",
|
|
40
|
+
"DELETE": "删除",
|
|
41
|
+
"HEAD": "黑色",
|
|
42
|
+
"None": "无",
|
|
43
|
+
"JSON": "JSON",
|
|
44
|
+
"Form Data": "表单数据",
|
|
45
|
+
"Raw": "原始文件"
|
|
46
|
+
}
|
package/src/index.d.ts
ADDED
package/src/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contiguity = exports.contiguityAuth = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_common_1 = require("@scopieflows/pieces-common");
|
|
6
|
+
const pieces_framework_1 = require("@scopieflows/pieces-framework");
|
|
7
|
+
const shared_1 = require("@scopieflows/shared");
|
|
8
|
+
const text_1 = require("./lib/actions/send/text");
|
|
9
|
+
const imessage_1 = require("./lib/actions/send/imessage");
|
|
10
|
+
exports.contiguityAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
11
|
+
displayName: 'API Key',
|
|
12
|
+
required: true,
|
|
13
|
+
description: 'Authenticate with the Contiguity API using a revocable key. Create one at console.contiguity.com/dashboard/tokens',
|
|
14
|
+
});
|
|
15
|
+
exports.contiguity = (0, pieces_framework_1.createPiece)({
|
|
16
|
+
displayName: 'Contiguity',
|
|
17
|
+
description: 'Communications for what you\'re building',
|
|
18
|
+
auth: exports.contiguityAuth,
|
|
19
|
+
minimumSupportedRelease: '0.30.0',
|
|
20
|
+
logoUrl: '/pieces/contiguity.png',
|
|
21
|
+
authors: ["Owlcept", "Ozak93", "kishanprmr", "MoShizzle", "abuaboud", "Contiguity"],
|
|
22
|
+
categories: [shared_1.PieceCategory.MARKETING],
|
|
23
|
+
actions: [
|
|
24
|
+
text_1.sendText,
|
|
25
|
+
imessage_1.send_iMessage,
|
|
26
|
+
(0, pieces_common_1.createCustomApiCallAction)({
|
|
27
|
+
baseUrl: () => 'https://api.contiguity.com',
|
|
28
|
+
auth: exports.contiguityAuth,
|
|
29
|
+
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
30
|
+
return ({
|
|
31
|
+
authorization: `Bearer ${auth}`,
|
|
32
|
+
});
|
|
33
|
+
}),
|
|
34
|
+
}),
|
|
35
|
+
],
|
|
36
|
+
triggers: [],
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/contiguity/src/index.ts"],"names":[],"mappings":";;;;AAAA,8DAAuE;AACvE,oEAAuE;AACvE,gDAAoD;AACpD,kDAAmD;AACnD,0DAA4D;AAE/C,QAAA,cAAc,GAAG,4BAAS,CAAC,UAAU,CAAC;IACjD,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,mHAAmH;CACjI,CAAC,CAAC;AAEU,QAAA,UAAU,GAAG,IAAA,8BAAW,EAAC;IACpC,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,0CAA0C;IACvD,IAAI,EAAE,sBAAc;IACpB,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,wBAAwB;IACjC,OAAO,EAAE,CAAC,SAAS,EAAC,QAAQ,EAAC,YAAY,EAAC,WAAW,EAAC,UAAU,EAAC,YAAY,CAAC;IAC9E,UAAU,EAAE,CAAC,sBAAa,CAAC,SAAS,CAAC;IACrC,OAAO,EAAE;QACP,eAAQ;QACR,wBAAa;QACb,IAAA,yCAAyB,EAAC;YAClB,OAAO,EAAE,GAAG,EAAE,CAAC,4BAA4B;YAC3C,IAAI,EAAE,sBAAc;YACpB,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC1B,aAAa,EAAE,UAAU,IAAI,EAAE;iBAClC,CAAC,CAAA;cAAA;SACT,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const send_iMessage: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
to: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
from: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
|
|
4
|
+
message: import("@scopieflows/pieces-framework").LongTextProperty<true>;
|
|
5
|
+
fallback: import("@scopieflows/pieces-framework").CheckboxProperty<false>;
|
|
6
|
+
fallback_when: import("@scopieflows/pieces-framework").DynamicProperties<true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
|
|
7
|
+
attachments: import("@scopieflows/pieces-framework").ArrayProperty<true> | import("@scopieflows/pieces-framework").ArrayProperty<false>;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.send_iMessage = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_common_1 = require("@scopieflows/pieces-common");
|
|
6
|
+
const __1 = require("../../..");
|
|
7
|
+
const pieces_framework_1 = require("@scopieflows/pieces-framework");
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
const request_1 = require("../../common/request");
|
|
10
|
+
exports.send_iMessage = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: __1.contiguityAuth,
|
|
12
|
+
name: 'send_imessage',
|
|
13
|
+
displayName: 'Send iMessage',
|
|
14
|
+
description: 'Send an iMessage',
|
|
15
|
+
props: {
|
|
16
|
+
to: pieces_framework_1.Property.ShortText({
|
|
17
|
+
displayName: 'To',
|
|
18
|
+
description: 'Recipient phone number in E.164 format',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
from: pieces_framework_1.Property.ShortText({
|
|
22
|
+
displayName: 'From',
|
|
23
|
+
description: 'Your leased iMessage number.',
|
|
24
|
+
required: false,
|
|
25
|
+
}),
|
|
26
|
+
message: pieces_framework_1.Property.LongText({
|
|
27
|
+
displayName: 'Message',
|
|
28
|
+
description: 'iMessage content',
|
|
29
|
+
required: true,
|
|
30
|
+
}),
|
|
31
|
+
fallback: pieces_framework_1.Property.Checkbox({
|
|
32
|
+
displayName: 'SMS/RCS Fallback',
|
|
33
|
+
description: 'Fallback to SMS/RCS when iMessage fails or unsupported',
|
|
34
|
+
required: false,
|
|
35
|
+
defaultValue: false,
|
|
36
|
+
}),
|
|
37
|
+
fallback_when: pieces_framework_1.Property.DynamicProperties({
|
|
38
|
+
auth: __1.contiguityAuth,
|
|
39
|
+
displayName: "When to fallback",
|
|
40
|
+
description: 'Conditions that trigger SMS/RCS fallback',
|
|
41
|
+
required: true,
|
|
42
|
+
refreshers: ['fallback'],
|
|
43
|
+
props: (propsValue) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
const fallback = propsValue['fallback'];
|
|
45
|
+
if (!fallback) {
|
|
46
|
+
return {};
|
|
47
|
+
}
|
|
48
|
+
if (fallback) {
|
|
49
|
+
return {
|
|
50
|
+
when: pieces_framework_1.Property.StaticMultiSelectDropdown({
|
|
51
|
+
displayName: "When to fallback",
|
|
52
|
+
description: "Conditions that trigger SMS/RCS fallback",
|
|
53
|
+
required: true,
|
|
54
|
+
options: {
|
|
55
|
+
options: [
|
|
56
|
+
{ label: 'iMessage Unsupported', value: 'imessage_unsupported' },
|
|
57
|
+
{ label: 'iMessage Fails', value: 'imessage_fails' },
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}),
|
|
61
|
+
from: pieces_framework_1.Property.ShortText({
|
|
62
|
+
displayName: 'Fallback From Number',
|
|
63
|
+
description: 'SMS/RCS number for fallback',
|
|
64
|
+
required: false,
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return {};
|
|
69
|
+
}),
|
|
70
|
+
}),
|
|
71
|
+
attachments: pieces_framework_1.Property.Array({
|
|
72
|
+
displayName: 'Attachments',
|
|
73
|
+
description: 'File URLs (max 10, 50MB total, HTTPS required)',
|
|
74
|
+
required: false,
|
|
75
|
+
properties: {
|
|
76
|
+
url: pieces_framework_1.Property.ShortText({
|
|
77
|
+
displayName: 'File URL',
|
|
78
|
+
description: 'HTTPS URL with file extension',
|
|
79
|
+
required: true,
|
|
80
|
+
}),
|
|
81
|
+
},
|
|
82
|
+
}),
|
|
83
|
+
},
|
|
84
|
+
run(context) {
|
|
85
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
yield pieces_common_1.propsValidation.validateZod(context.propsValue, {
|
|
87
|
+
to: zod_1.z.string().regex(/^\+\d{1,4}\d+$/, 'Invalid E.164 format'),
|
|
88
|
+
from: zod_1.z.string().regex(/^\+\d{1,4}\d+$/, 'Must be E.164 format').optional(),
|
|
89
|
+
message: zod_1.z.string().min(1, 'Message cannot be empty'),
|
|
90
|
+
fallback: zod_1.z.object({
|
|
91
|
+
when: zod_1.z.array(zod_1.z.enum(['imessage_unsupported', 'imessage_fails'])).min(1, 'Select at least one fallback condition'),
|
|
92
|
+
from: zod_1.z.string().regex(/^\+\d{1,4}\d+$/, 'Must be E.164 format').optional(),
|
|
93
|
+
}).optional(),
|
|
94
|
+
attachments: zod_1.z.array(zod_1.z.object({
|
|
95
|
+
url: zod_1.z.string()
|
|
96
|
+
.url('Invalid URL format')
|
|
97
|
+
.regex(/^https:\/\/.*\.[a-zA-Z0-9]+$/, 'Must be HTTPS URL with file extension')
|
|
98
|
+
})).max(10, 'Maximum 10 attachments').optional(),
|
|
99
|
+
});
|
|
100
|
+
const { to, from, message, attachments } = context.propsValue;
|
|
101
|
+
const body = { to, message };
|
|
102
|
+
if (from)
|
|
103
|
+
body.from = from;
|
|
104
|
+
if (attachments === null || attachments === void 0 ? void 0 : attachments.length) {
|
|
105
|
+
body.attachments = attachments.map(attachment => attachment.url);
|
|
106
|
+
}
|
|
107
|
+
return yield (0, request_1._fetch)({
|
|
108
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
109
|
+
endpoint: '/send/imessage',
|
|
110
|
+
body: body,
|
|
111
|
+
auth: context.auth.secret_text,
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
//# sourceMappingURL=imessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"imessage.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/contiguity/src/lib/actions/send/imessage.ts"],"names":[],"mappings":";;;;AAAA,8DAGoC;AACpC,gCAA0C;AAC1C,oEAIuC;AACvC,6BAAwB;AACxB,kDAA8C;AAEjC,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,kBAAc;IACpB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,kBAAkB;IAC/B,KAAK,EAAE;QACH,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACnB,WAAW,EAAE,IAAI;YACjB,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,MAAM;YACnB,WAAW,EAA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,CAAC,8BAA8B,EAAE,uCAAuC,CAAC;iBACtF,CAAC,CACL,CAAC,GAAG,CAAC,EAAE,EAAE,wBAAwB,CAAC,CAAC,QAAQ,EAAE;aACjD,CAAC,CAAC;YAEH,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE9D,MAAM,IAAI,GAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;YAElC,IAAI,IAAI;gBAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YAC3B,IAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,EAAE,CAAC;gBACtB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAE,UAA4B,CAAC,GAAG,CAAC,CAAC;YACxF,CAAC;YAED,OAAO,MAAM,IAAA,gBAAM,EAAC;gBAChB,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,QAAQ,EAAE,gBAAgB;gBAC1B,IAAI,EAAE,IAAI;gBACV,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;aACjC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const sendText: import("@scopieflows/pieces-framework").IAction<import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
to: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
from: import("@scopieflows/pieces-framework").ShortTextProperty<false>;
|
|
4
|
+
message: import("@scopieflows/pieces-framework").LongTextProperty<true>;
|
|
5
|
+
attachments: import("@scopieflows/pieces-framework").ArrayProperty<true> | import("@scopieflows/pieces-framework").ArrayProperty<false>;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendText = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_common_1 = require("@scopieflows/pieces-common");
|
|
6
|
+
const __1 = require("../../..");
|
|
7
|
+
const pieces_framework_1 = require("@scopieflows/pieces-framework");
|
|
8
|
+
const zod_1 = require("zod");
|
|
9
|
+
const request_1 = require("../../common/request");
|
|
10
|
+
exports.sendText = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: __1.contiguityAuth,
|
|
12
|
+
name: 'send_text',
|
|
13
|
+
displayName: 'Send SMS/MMS',
|
|
14
|
+
description: 'Send a text message',
|
|
15
|
+
props: {
|
|
16
|
+
to: pieces_framework_1.Property.ShortText({
|
|
17
|
+
displayName: 'To',
|
|
18
|
+
description: 'Recipient phone number in E.164 format',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
from: pieces_framework_1.Property.ShortText({
|
|
22
|
+
displayName: 'From',
|
|
23
|
+
description: 'Your leased phone number',
|
|
24
|
+
required: false,
|
|
25
|
+
}),
|
|
26
|
+
message: pieces_framework_1.Property.LongText({
|
|
27
|
+
displayName: 'Message',
|
|
28
|
+
description: 'Text message content',
|
|
29
|
+
required: true,
|
|
30
|
+
}),
|
|
31
|
+
attachments: pieces_framework_1.Property.Array({
|
|
32
|
+
displayName: 'Attachments',
|
|
33
|
+
description: 'File URLs (max 3, 5MB total, HTTPS required)',
|
|
34
|
+
required: false,
|
|
35
|
+
properties: {
|
|
36
|
+
url: pieces_framework_1.Property.ShortText({
|
|
37
|
+
displayName: 'File URL',
|
|
38
|
+
description: 'HTTPS URL with file extension',
|
|
39
|
+
required: true,
|
|
40
|
+
}),
|
|
41
|
+
},
|
|
42
|
+
}),
|
|
43
|
+
},
|
|
44
|
+
run(context) {
|
|
45
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
yield pieces_common_1.propsValidation.validateZod(context.propsValue, {
|
|
47
|
+
to: zod_1.z.string().regex(/^\+\d{1,4}\d+$/, 'Invalid E.164 format'),
|
|
48
|
+
from: zod_1.z.string().regex(/^\+\d{1,4}\d+$/, 'Invalid E.164 format').optional(),
|
|
49
|
+
// Messages above >160 characters are supported by Contiguity, they will be automatically split into multiple messages. When MMS launches, messages will not be split unless they exceed 1,600 characters.
|
|
50
|
+
message: zod_1.z.string().refine((message) => {
|
|
51
|
+
const { attachments } = context.propsValue;
|
|
52
|
+
// Message can be empty if attachments are provided
|
|
53
|
+
return message.trim().length > 0 || (attachments && attachments.length > 0);
|
|
54
|
+
}, 'Message cannot be empty unless attachments are provided'),
|
|
55
|
+
// MMS is supported by Contiguity, however it is in beta as of September 2025. If not a beta tester, attachments[] will be ignored.
|
|
56
|
+
attachments: zod_1.z.array(zod_1.z.object({
|
|
57
|
+
url: zod_1.z.string()
|
|
58
|
+
.url('Invalid URL format')
|
|
59
|
+
.regex(/^https:\/\/.*\.[a-zA-Z0-9]+$/, 'Must be a valid, HTTPS-secured URL, with a file extension. Example: https://example.com/image.png')
|
|
60
|
+
})).max(3, 'Maximum 3 attachment URLs').optional(),
|
|
61
|
+
});
|
|
62
|
+
const { to, from, message, attachments } = context.propsValue;
|
|
63
|
+
const body = { to, message };
|
|
64
|
+
if (from)
|
|
65
|
+
body.from = from;
|
|
66
|
+
if (attachments === null || attachments === void 0 ? void 0 : attachments.length) {
|
|
67
|
+
body.attachments = attachments.map(attachment => attachment.url);
|
|
68
|
+
}
|
|
69
|
+
return yield (0, request_1._fetch)({
|
|
70
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
71
|
+
endpoint: '/send/text',
|
|
72
|
+
body: body,
|
|
73
|
+
auth: context.auth.secret_text,
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/contiguity/src/lib/actions/send/text.ts"],"names":[],"mapp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C,CAAC,CAAC;QACP,CAAC;KAAA;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpMethod, HttpRequest } from '@scopieflows/pieces-common';
|
|
2
|
+
export declare const CONTIGUITY_API_BASE_URL = "https://api.contiguity.com";
|
|
3
|
+
export interface ContiguityRequestConfig {
|
|
4
|
+
method: HttpMethod;
|
|
5
|
+
endpoint: string;
|
|
6
|
+
body?: any;
|
|
7
|
+
auth: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const contiguityHeaders: (auth: string) => Record<string, string>;
|
|
10
|
+
export declare const contiguityRequest: (config: ContiguityRequestConfig) => HttpRequest;
|
|
11
|
+
export declare const _fetch: (config: ContiguityRequestConfig) => Promise<import("@scopieflows/pieces-common").HttpResponse<any>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._fetch = exports.contiguityRequest = exports.contiguityHeaders = exports.CONTIGUITY_API_BASE_URL = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_common_1 = require("@scopieflows/pieces-common");
|
|
6
|
+
exports.CONTIGUITY_API_BASE_URL = 'https://api.contiguity.com';
|
|
7
|
+
const contiguityHeaders = (auth) => {
|
|
8
|
+
return {
|
|
9
|
+
authorization: `Bearer ${auth}`,
|
|
10
|
+
'Content-Type': 'application/json',
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.contiguityHeaders = contiguityHeaders;
|
|
14
|
+
const contiguityRequest = (config) => {
|
|
15
|
+
return {
|
|
16
|
+
method: config.method,
|
|
17
|
+
url: `${exports.CONTIGUITY_API_BASE_URL}${config.endpoint}`,
|
|
18
|
+
body: config.body,
|
|
19
|
+
headers: (0, exports.contiguityHeaders)(config.auth),
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
exports.contiguityRequest = contiguityRequest;
|
|
23
|
+
const _fetch = (config) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
+
const request = (0, exports.contiguityRequest)(config);
|
|
25
|
+
return yield pieces_common_1.httpClient.sendRequest(request);
|
|
26
|
+
});
|
|
27
|
+
exports._fetch = _fetch;
|
|
28
|
+
//# sourceMappingURL=http-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-client.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/contiguity/src/lib/common/http-client.ts"],"names":[],"mappings":";;;;AAAA,8DAAiF;AAEpE,QAAA,uBAAuB,GAAG,4BAA4B,CAAC;AAS7D,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAA0B,EAAE;IACtE,OAAO;QACH,aAAa,EAAE,UAAU,IAAI,EAAE;QAC/B,cAAc,EAAE,kBAAkB;KACrC,CAAC;AACN,CAAC,CAAC;AALW,QAAA,iBAAiB,qBAK5B;AAEK,MAAM,iBAAiB,GAAG,CAAC,MAA+B,EAAe,EAAE;IAC9E,OAAO;QACH,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,GAAG,EAAE,GAAG,+BAAuB,GAAG,MAAM,CAAC,QAAQ,EAAE;QACnD,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,OAAO,EAAE,IAAA,yBAAiB,EAAC,MAAM,CAAC,IAAI,CAAC;KAC1C,CAAC;AACN,CAAC,CAAC;AAPW,QAAA,iBAAiB,qBAO5B;AAEK,MAAM,MAAM,GAAG,CAAO,MAA+B,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAG,IAAA,yBAAiB,EAAC,MAAM,CAAC,CAAC;IAC1C,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC,CAAA,CAAC;AAHW,QAAA,MAAM,UAGjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpMethod, HttpRequest } from '@scopieflows/pieces-common';
|
|
2
|
+
export declare const CONTIGUITY_API_BASE_URL = "https://api.contiguity.com";
|
|
3
|
+
export interface ContiguityRequestConfig {
|
|
4
|
+
method: HttpMethod;
|
|
5
|
+
endpoint: string;
|
|
6
|
+
body?: any;
|
|
7
|
+
auth: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const contiguityHeaders: (auth: string) => Record<string, string>;
|
|
10
|
+
export declare const contiguityRequest: (config: ContiguityRequestConfig) => HttpRequest;
|
|
11
|
+
export declare const _fetch: (config: ContiguityRequestConfig) => Promise<import("@scopieflows/pieces-common").HttpResponse<any>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._fetch = exports.contiguityRequest = exports.contiguityHeaders = exports.CONTIGUITY_API_BASE_URL = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_common_1 = require("@scopieflows/pieces-common");
|
|
6
|
+
exports.CONTIGUITY_API_BASE_URL = 'https://api.contiguity.com';
|
|
7
|
+
const contiguityHeaders = (auth) => {
|
|
8
|
+
return {
|
|
9
|
+
authorization: `Bearer ${auth}`,
|
|
10
|
+
'Content-Type': 'application/json',
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.contiguityHeaders = contiguityHeaders;
|
|
14
|
+
const contiguityRequest = (config) => {
|
|
15
|
+
return {
|
|
16
|
+
method: config.method,
|
|
17
|
+
url: `${exports.CONTIGUITY_API_BASE_URL}${config.endpoint}`,
|
|
18
|
+
body: config.body,
|
|
19
|
+
headers: (0, exports.contiguityHeaders)(config.auth),
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
exports.contiguityRequest = contiguityRequest;
|
|
23
|
+
const _fetch = (config) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
+
const request = (0, exports.contiguityRequest)(config);
|
|
25
|
+
return yield pieces_common_1.httpClient.sendRequest(request);
|
|
26
|
+
});
|
|
27
|
+
exports._fetch = _fetch;
|
|
28
|
+
//# sourceMappingURL=request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/contiguity/src/lib/common/request.ts"],"names":[],"mappings":";;;;AAAA,8DAAiF;AAEpE,QAAA,uBAAuB,GAAG,4BAA4B,CAAC;AAS7D,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAA0B,EAAE;IACtE,OAAO;QACH,aAAa,EAAE,UAAU,IAAI,EAAE;QAC/B,cAAc,EAAE,kBAAkB;KACrC,CAAC;AACN,CAAC,CAAC;AALW,QAAA,iBAAiB,qBAK5B;AAEK,MAAM,iBAAiB,GAAG,CAAC,MAA+B,EAAe,EAAE;IAC9E,OAAO;QACH,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,GAAG,EAAE,GAAG,+BAAuB,GAAG,MAAM,CAAC,QAAQ,EAAE;QACnD,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,OAAO,EAAE,IAAA,yBAAiB,EAAC,MAAM,CAAC,IAAI,CAAC;KAC1C,CAAC;AACN,CAAC,CAAC;AAPW,QAAA,iBAAiB,qBAO5B;AAEK,MAAM,MAAM,GAAG,CAAO,MAA+B,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAG,IAAA,yBAAiB,EAAC,MAAM,CAAC,CAAC;IAC1C,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC,CAAA,CAAC;AAHW,QAAA,MAAM,UAGjB"}
|