Skip to content

2086 - Contiguity component added #2704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 170 additions & 0 deletions docs/content/docs/reference/components/contiguity.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
---
title: "Contiguity"
description: "Contiguity is an SMS service for your needs - quick and simple."
---

Contiguity is an SMS service for your needs - quick and simple.


Categories: Productivity and Collaboration


Type: contiguity/v1

<hr />



## Connections

Version: 1


### Bearer Token

#### Properties

| Name | Label | Type | Description | Required |
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
| token | Token | STRING | | true |





<hr />



## Actions


### Send SMS
Name: sendSms

`Send SMS.`

#### Properties

| Name | Label | Type | Description | Required |
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
| to | To | STRING | `Recipient's phone number in E.164 format (e.g. +1234567890).` | true |
| message | Message | STRING | `Content of the message.` | true |

#### Example JSON Structure
```json
{
"label" : "Send SMS",
"name" : "sendSms",
"parameters" : {
"to" : "",
"message" : ""
},
"type" : "contiguity/v1/sendSms"
}
```

#### Output



Type: OBJECT


#### Properties

| Name | Type | Description |
|:------------:|:------------:|:-------------------:|
| code | INTEGER | Status code of response. |
| message | STRING | Response message. |
| crumbs | OBJECT <details> <summary> Properties </summary> &#123;STRING\(plan), INTEGER\(quota), INTEGER\(remaining), STRING\(type), BOOLEAN\(ad)&#125; </details> | Crumbs of the message that was sent. |




#### Output Example
```json
{
"code" : 1,
"message" : "",
"crumbs" : {
"plan" : "",
"quota" : 1,
"remaining" : 1,
"type" : "",
"ad" : false
}
}
```


### Send Email
Name: sendEmail

`Send email.`

#### Properties

| Name | Label | Type | Description | Required |
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
| to | To | STRING | `Recipient's email address.` | true |
| from | From | STRING | `Sender's name.` | true |
| subject | Subject | STRING | `Email subject.` | true |
| body | Body | STRING | `Email content.` | true |
| contentType | Content Type | STRING <details> <summary> Options </summary> html, text </details> | `Content type of the email.` | true |
| cc | CC | STRING | `CC email address (only 1 is supported as of now).` | false |
| replyTo | Reply To | STRING | `Reply-to email address.` | false |

#### Example JSON Structure
```json
{
"label" : "Send Email",
"name" : "sendEmail",
"parameters" : {
"to" : "",
"from" : "",
"subject" : "",
"body" : "",
"contentType" : "",
"cc" : "",
"replyTo" : ""
},
"type" : "contiguity/v1/sendEmail"
}
```

#### Output



Type: OBJECT


#### Properties

| Name | Type | Description |
|:------------:|:------------:|:-------------------:|
| code | INTEGER | Status code of response. |
| message | STRING | Response message. |
| crumbs | OBJECT <details> <summary> Properties </summary> &#123;STRING\(plan), INTEGER\(quota), STRING\(type), BOOLEAN\(ad)&#125; </details> | Crumbs of the message that was sent. |




#### Output Example
```json
{
"code" : 1,
"message" : "",
"crumbs" : {
"plan" : "",
"quota" : 1,
"type" : "",
"ad" : false
}
}
```




1 change: 1 addition & 0 deletions server/apps/server-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ dependencies {
implementation(project(":server:libs:modules:components:capsule-crm"))
implementation(project(":server:libs:modules:components:chat"))
implementation(project(":server:libs:modules:components:clickup"))
implementation(project(":server:libs:modules:components:contiguity"))
implementation(project(":server:libs:modules:components:copper"))
implementation(project(":server:libs:modules:components:crypto-helper"))
implementation(project(":server:libs:modules:components:csv-file"))
Expand Down
1 change: 1 addition & 0 deletions server/ee/apps/worker-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ dependencies {
implementation(project(":server:libs:modules:components:calendly"))
implementation(project(":server:libs:modules:components:capsule-crm"))
implementation(project(":server:libs:modules:components:clickup"))
implementation(project(":server:libs:modules:components:contiguity"))
implementation(project(":server:libs:modules:components:copper"))
implementation(project(":server:libs:modules:components:crypto-helper"))
implementation(project(":server:libs:modules:components:csv-file"))
Expand Down
152 changes: 152 additions & 0 deletions server/libs/modules/components/contiguity/openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
---
openapi: "3.0.1"
info:
title: "Contiguity"
description: "Contiguity is an SMS service for your needs - quick and simple."
version: "v1"
servers:
- url: "https://api.contiguity.co"
paths:
/send/text:
post:
summary: "Send SMS"
description: "Send SMS."
operationId: "sendSms"
x-ai-agent-tool: true
requestBody:
content:
application/json:
schema:
type: "object"
title: "SMS"
required:
- "to"
- "message"
properties:
to:
type: "string"
description: "Recipient's phone number in E.164 format (e.g. +1234567890)."
title: "To"
message:
type: "string"
description: "Content of the message."
title: "Message"
responses:
201:
description: "Successfully sent"
content:
application/json:
schema:
type: "object"
properties:
code:
type: "integer"
description: "Status code of response."
message:
type: "string"
description: "Response message."
crumbs:
type: "object"
description: "Crumbs of the message that was sent."
properties:
plan:
type: "string"
description: "Subscription plan of the sender."
quota:
type: "integer"
description: "How many messages of same type were already sent."
remaining:
type: "integer"
description: "How many messages can sender still send."
type:
type: "string"
description: "Type of message that was sent; SMS or email."
ad:
type: "boolean"
description: "Whether the message was an ad or not."
/send/email:
post:
summary: "Send Email"
description: "Send email."
operationId: "sendEmail"
x-ai-agent-tool: true
requestBody:
content:
application/json:
schema:
type: "object"
title: "Email"
required:
- "to"
- "from"
- "subject"
- "body"
- "contentType"
properties:
to:
type: "string"
description: "Recipient's email address."
title: "To"
from:
type: "string"
description: "Sender's name."
title: "From"
subject:
type: "string"
description: "Email subject."
title: "Subject"
body:
type: "string"
description: "Email content."
title: "Body"
contentType:
type: "string"
description: "Content type of the email."
title: "Content Type"
enum:
- "html"
- "text"
cc:
type: "string"
description: "CC email address (only 1 is supported as of now)."
title: "CC"
replyTo:
type: "string"
description: "Reply-to email address."
title: "Reply To"
responses:
201:
description: "Successfully sent"
content:
application/json:
schema:
type: "object"
properties:
code:
type: "integer"
description: "Status code of response."
message:
type: "string"
description: "Response message."
crumbs:
type: "object"
description: "Crumbs of the message that was sent."
properties:
plan:
type: "string"
description: "Subscription plan of the sender."
quota:
type: "integer"
description: "How many messages of same type were already sent."
type:
type: "string"
description: "Type of message that was sent; SMS or email."
ad:
type: "boolean"
description: "Whether the message was an ad or not."
components:
securitySchemes:
bearerAuth:
type: "http"
scheme: "bearer"
description: "Token can be created in Contiguity.co account dashboard."
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright 2025 ByteChef
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.bytechef.component.contiguity;

import static com.bytechef.component.definition.ComponentDsl.component;
import static com.bytechef.component.definition.ComponentDsl.tool;

import com.bytechef.component.OpenApiComponentHandler;
import com.bytechef.component.contiguity.action.ContiguitySendEmailAction;
import com.bytechef.component.contiguity.action.ContiguitySendSmsAction;
import com.bytechef.component.contiguity.connection.ContiguityConnection;
import com.bytechef.component.definition.ComponentDefinition;

/**
* Provides the base implementation for the REST based component.
*
* @generated
*/
public abstract class AbstractContiguityComponentHandler implements OpenApiComponentHandler {
private final ComponentDefinition componentDefinition = modifyComponent(
component("contiguity")
.title("Contiguity")
.description("Contiguity is an SMS service for your needs - quick and simple."))
.actions(modifyActions(ContiguitySendSmsAction.ACTION_DEFINITION,
ContiguitySendEmailAction.ACTION_DEFINITION))
.connection(modifyConnection(ContiguityConnection.CONNECTION_DEFINITION))
.clusterElements(modifyClusterElements(tool(ContiguitySendSmsAction.ACTION_DEFINITION),
tool(ContiguitySendEmailAction.ACTION_DEFINITION)))
.triggers(getTriggers());

@Override
public ComponentDefinition getDefinition() {
return componentDefinition;
}
}
Loading