Skip to content

Commit

Permalink
Merge pull request #10 from team-telnyx/remove-basemessage
Browse files Browse the repository at this point in the history
remove the basemessage from the spec to clean up messagerequetss
  • Loading branch information
d-telnyx authored Oct 21, 2020
2 parents 4ffe36c + 39fff5c commit fcc90f1
Show file tree
Hide file tree
Showing 22 changed files with 1,643 additions and 660 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.telnyx.sdk</groupId>
<artifactId>telnyx</artifactId>
<version>2.0.7-beta</version>
<version>2.0.8-beta</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -50,7 +50,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.telnyx.sdk:telnyx:2.0.7-beta"
compile "com.telnyx.sdk:telnyx:2.0.8-beta"
```

### Others
Expand All @@ -63,7 +63,7 @@ mvn clean package

Then manually install the following JARs:

- `target/telnyx-2.0.7-beta.jar`
- `target/telnyx-2.0.8-beta.jar`
- `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -211,7 +211,6 @@ Class | Method | HTTP request | Description
- [AnswerRequest](docs/AnswerRequest.md)
- [AvailablePhoneNumber](docs/AvailablePhoneNumber.md)
- [AvailablePhoneNumbersMetadata](docs/AvailablePhoneNumbersMetadata.md)
- [BaseMessageRequest](docs/BaseMessageRequest.md)
- [BridgeRequest](docs/BridgeRequest.md)
- [CSVDownloadResponse](docs/CSVDownloadResponse.md)
- [Call](docs/Call.md)
Expand Down
231 changes: 176 additions & 55 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5907,53 +5907,6 @@ components:
example: 0
type: integer
type: object
BaseMessageRequest:
properties:
text:
description: |-
Message body (i.e., content) as a non-empty string.

**Required for SMS**
type: string
subject:
description: Subject of multimedia message
type: string
media_urls:
description: |-
A list of media URLs. The total media size must be less than 1 MB.

**Required for MMS**
items:
format: url
type: string
type: array
webhook_url:
description: The URL where webhooks related to this message will be sent.
format: url
type: string
webhook_failover_url:
description: The failover URL where webhooks related to this message will
be sent if sending to the primary URL fails.
format: url
type: string
use_profile_webhooks:
default: true
description: If the profile this number is associated with has webhooks,
use them for delivery notifications. If webhooks are also specified on
the message itself, they will be attempted first, then those on the profile.
type: boolean
type:
description: The protocol for sending the message, either SMS or MMS.
enum:
- SMS
- MMS
type: string
auto_detect:
default: false
description: Automatically detect if an SMS message is unusually long and
exceeds a recommended limit of message parts.
type: boolean
type: object
BridgeRequest:
example:
call_control_id: v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ
Expand Down Expand Up @@ -8604,8 +8557,6 @@ components:
title: Create Conference Request
type: object
CreateLongCodeMessageRequest:
allOf:
- $ref: '#/components/schemas/BaseMessageRequest'
example:
from: +18445550001
to: +13125550002
Expand All @@ -8627,13 +8578,55 @@ components:
example: +E.164
format: address
type: string
text:
description: |-
Message body (i.e., content) as a non-empty string.

**Required for SMS**
type: string
subject:
description: Subject of multimedia message
type: string
media_urls:
description: |-
A list of media URLs. The total media size must be less than 1 MB.

**Required for MMS**
items:
format: url
type: string
type: array
webhook_url:
description: The URL where webhooks related to this message will be sent.
format: url
type: string
webhook_failover_url:
description: The failover URL where webhooks related to this message will
be sent if sending to the primary URL fails.
format: url
type: string
use_profile_webhooks:
default: true
description: If the profile this number is associated with has webhooks,
use them for delivery notifications. If webhooks are also specified on
the message itself, they will be attempted first, then those on the profile.
type: boolean
type:
description: The protocol for sending the message, either SMS or MMS.
enum:
- SMS
- MMS
type: string
auto_detect:
default: false
description: Automatically detect if an SMS message is unusually long and
exceeds a recommended limit of message parts.
type: boolean
required:
- from
- to
type: object
CreateMessageRequest:
allOf:
- $ref: '#/components/schemas/BaseMessageRequest'
example:
from: +18445550001
messaging_profile_id: abc85f64-5717-4562-b3fc-2c9600000000
Expand Down Expand Up @@ -8665,6 +8658,50 @@ components:
example: +E.164
format: address
type: string
text:
description: |-
Message body (i.e., content) as a non-empty string.

**Required for SMS**
type: string
subject:
description: Subject of multimedia message
type: string
media_urls:
description: |-
A list of media URLs. The total media size must be less than 1 MB.

**Required for MMS**
items:
format: url
type: string
type: array
webhook_url:
description: The URL where webhooks related to this message will be sent.
format: url
type: string
webhook_failover_url:
description: The failover URL where webhooks related to this message will
be sent if sending to the primary URL fails.
format: url
type: string
use_profile_webhooks:
default: true
description: If the profile this number is associated with has webhooks,
use them for delivery notifications. If webhooks are also specified on
the message itself, they will be attempted first, then those on the profile.
type: boolean
type:
description: The protocol for sending the message, either SMS or MMS.
enum:
- SMS
- MMS
type: string
auto_detect:
default: false
description: Automatically detect if an SMS message is unusually long and
exceeds a recommended limit of message parts.
type: boolean
required:
- to
type: object
Expand Down Expand Up @@ -8872,8 +8909,6 @@ components:
readOnly: true
type: boolean
CreateNumberPoolMessageRequest:
allOf:
- $ref: '#/components/schemas/BaseMessageRequest'
example:
from: +18445550001
messaging_profile_id: abc85f64-5717-4562-b3fc-2c9600000000
Expand All @@ -8896,6 +8931,50 @@ components:
example: +E.164
format: address
type: string
text:
description: |-
Message body (i.e., content) as a non-empty string.

**Required for SMS**
type: string
subject:
description: Subject of multimedia message
type: string
media_urls:
description: |-
A list of media URLs. The total media size must be less than 1 MB.

**Required for MMS**
items:
format: url
type: string
type: array
webhook_url:
description: The URL where webhooks related to this message will be sent.
format: url
type: string
webhook_failover_url:
description: The failover URL where webhooks related to this message will
be sent if sending to the primary URL fails.
format: url
type: string
use_profile_webhooks:
default: true
description: If the profile this number is associated with has webhooks,
use them for delivery notifications. If webhooks are also specified on
the message itself, they will be attempted first, then those on the profile.
type: boolean
type:
description: The protocol for sending the message, either SMS or MMS.
enum:
- SMS
- MMS
type: string
auto_detect:
default: false
description: Automatically detect if an SMS message is unusually long and
exceeds a recommended limit of message parts.
type: boolean
required:
- messaging_profile_id
- to
Expand Down Expand Up @@ -8957,8 +9036,6 @@ components:
readOnly: true
type: string
CreateShortCodeMessageRequest:
allOf:
- $ref: '#/components/schemas/BaseMessageRequest'
example:
from: +18445550001
to: +18445550001
Expand All @@ -8980,6 +9057,50 @@ components:
example: +E.164
format: address
type: string
text:
description: |-
Message body (i.e., content) as a non-empty string.

**Required for SMS**
type: string
subject:
description: Subject of multimedia message
type: string
media_urls:
description: |-
A list of media URLs. The total media size must be less than 1 MB.

**Required for MMS**
items:
format: url
type: string
type: array
webhook_url:
description: The URL where webhooks related to this message will be sent.
format: url
type: string
webhook_failover_url:
description: The failover URL where webhooks related to this message will
be sent if sending to the primary URL fails.
format: url
type: string
use_profile_webhooks:
default: true
description: If the profile this number is associated with has webhooks,
use them for delivery notifications. If webhooks are also specified on
the message itself, they will be attempted first, then those on the profile.
type: boolean
type:
description: The protocol for sending the message, either SMS or MMS.
enum:
- SMS
- MMS
type: string
auto_detect:
default: false
description: Automatically detect if an SMS message is unusually long and
exceeds a recommended limit of message parts.
type: boolean
required:
- from
- to
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.telnyx.sdk'
version = '2.0.7-beta'
version = '2.0.8-beta'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.telnyx.sdk",
name := "telnyx",
version := "2.0.7-beta",
version := "2.0.8-beta",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
28 changes: 0 additions & 28 deletions docs/BaseMessageRequest.md

This file was deleted.

17 changes: 17 additions & 0 deletions docs/CreateLongCodeMessageRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**from** | **String** | Phone number, in +E.164 format, used to send the message. |
**to** | **String** | Receiving address (+E.164 formatted phone number or short code). |
**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional]
**subject** | **String** | Subject of multimedia message | [optional]
**mediaUrls** | **List&lt;String&gt;** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional]
**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional]
**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional]
**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional]
**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional]
**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional]



## Enum: TypeEnum

Name | Value
---- | -----
SMS | &quot;SMS&quot;
MMS | &quot;MMS&quot;



Loading

0 comments on commit fcc90f1

Please sign in to comment.